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

必填样式调整

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