提交 b7efc68f 编写于 作者: KK's avatar KK

必填样式调整

上级 b382850e
......@@ -6,7 +6,7 @@
</template>
<template v-else>
<template v-if="labelPos == 'LEFT'">
<ion-label :style="{minWidth:labelWidth+'px'}" v-if="isShowCaption && labelWidth > 0"><span v-if="required" class="required">* </span>{{isEmptyCaption ? '' : caption}}</ion-label>
<ion-label :style="{minWidth:labelWidth+'px'}" v-if="isShowCaption && labelWidth > 0">{{isEmptyCaption ? '' : caption}}<span v-if="required" class="required"> *</span></ion-label>
<div :style="contentStyle" style="display: flex;align-items: center;">
<slot></slot>
</div>
......@@ -17,14 +17,14 @@
:style="{minWidth:labelWidth+'px'}"
position="floating"
v-if="isShowCaption && labelWidth > 0"
><span v-if="required" class="required">* </span>{{isEmptyCaption ? '' : caption}}</ion-label>
>{{isEmptyCaption ? '' : caption}}<span v-if="required" class="required"> *</span></ion-label>
<slot></slot>
<div class="prompt_text">{{errorText}}</div>
</template>
<template v-if="labelPos == 'RIGHT' ">
<slot></slot>
<div class="prompt_text_right">{{errorText}}</div>
<ion-label :style="{minWidth:labelWidth+'px'}" v-if="isShowCaption && labelWidth > 0"><span v-if="required" class="required">* </span> {{isEmptyCaption ? '' : caption}}</ion-label>
<ion-label :style="{minWidth:labelWidth+'px'}" v-if="isShowCaption && labelWidth > 0">{{isEmptyCaption ? '' : caption}}<span v-if="required" class="required"> *</span> </ion-label>
</template>
<template v-if="labelPos == 'NONE'" >
<slot></slot>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册