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

值规则

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