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

值规则

上级 5036c94c
...@@ -3,6 +3,15 @@ ...@@ -3,6 +3,15 @@
.app-form-item-label-required { .app-form-item-label-required {
color: red; color: red;
} }
.prompt_text{
position: absolute;
right: 25px;
opacity: 0.8;
font-size: 12px;
bottom: 0px;
color: red;
z-index: 10;
}
} }
.app-form-item.item-has-value { .app-form-item.item-has-value {
>ion-label { >ion-label {
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<div :style="contentStyle"> <div :style="contentStyle">
<slot></slot> <slot></slot>
</div> </div>
<div class="prompt_text">{{error}}</div>
</template> </template>
<template v-if="labelPos == 'TOP'"> <template v-if="labelPos == 'TOP'">
<ion-label <ion-label
...@@ -18,10 +19,12 @@ ...@@ -18,10 +19,12 @@
v-if="isShowCaption && labelWidth > 0" v-if="isShowCaption && labelWidth > 0"
><span v-if="required" class="required">* </span>{{isEmptyCaption ? '' : caption}}</ion-label> ><span v-if="required" class="required">* </span>{{isEmptyCaption ? '' : caption}}</ion-label>
<slot></slot> <slot></slot>
<div class="prompt_text">{{error}}</div>
</template> </template>
<template v-if="labelPos == 'RIGHT' "> <template v-if="labelPos == 'RIGHT' ">
<slot></slot> <slot></slot>
<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"><span v-if="required" class="required">* </span> {{isEmptyCaption ? '' : caption}}</ion-label>
<div class="prompt_text">{{error}}</div>
</template> </template>
<template v-if="labelPos == 'NONE'" > <template v-if="labelPos == 'NONE'" >
<slot></slot> <slot></slot>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册