提交 26ab00c0 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

add rand prop for data field

上级 c5671809
......@@ -66,10 +66,9 @@ version: 1.0
fields:
- field: field_common # 默认的列表类型,通过逗号隔成若干区间。
range: 1-9, 20-25, 27, 29, 30 # 1,2,3...,10,20,21,22...,25,27,29.30
range: 1-10, 20-25, 27, 29, 30 # 1,2,3...,10,20,21,22...,25,27,29.30
prefix: "" # 前缀
postfix: "\t" # 后缀,特殊字符加引号,否则无法解析。
rand: true
- field: field_step # 区间指定步长。
range: 1-10:2, 1-2:0.1 # 1,3,5,7,9,1, 1.1,1.2...,2
......@@ -148,4 +147,4 @@ fields:
- field: field_grandson
prefix: int_
range: 10-20
postfix:
postfix:
\ No newline at end of file
......@@ -70,14 +70,14 @@
<span class="zui-input-group-addon" :style="{ width: '70px' }">
<span>左占位符</span>
</span>
<a-form-model-item prop="loopfix" :style="{ display: 'inline-block', width: 'calc(13% - 45px)' }">
<a-form-model-item prop="leftPad" :style="{ display: 'inline-block', width: 'calc(13% - 45px)' }">
<a-input v-model="model.leftPad" />
</a-form-model-item>
<span class="zui-input-group-addon" :style="{ width: '70px' }">
<span>右占位符</span>
</span>
<a-form-model-item prop="loopfix" :style="{ display: 'inline-block', width: 'calc(13% - 43px)' }">
<a-form-model-item prop="rightPad" :style="{ display: 'inline-block', width: 'calc(13% - 43px)' }">
<a-input v-model="model.rightPad" />
</a-form-model-item>
</a-form-model-item>
......@@ -103,7 +103,7 @@
</a-col>
<a-col :span="colsHalf">
<a-form-model-item label="右占位符" prop="rand" :labelCol="labelColHalf2" :wrapperCol="wrapperColHalf">
<a-form-model-item label="随机" prop="rand" :labelCol="labelColHalf2" :wrapperCol="wrapperColHalf">
<a-switch v-model="model.rand" />
</a-form-model-item>
</a-col>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册