提交 c23db642 编写于 作者: 陈琦

fix issues

上级 97eff9f6
......@@ -7,4 +7,8 @@ fields:
length: 3
leftpad: 0
prefix: "+"
postfix: "-"
\ No newline at end of file
postfix: "-"
- field: refer1
range: '0-3{2!}'
postfix: '-'
\ No newline at end of file
......@@ -84,6 +84,21 @@
</a-form-model-item>
</a-col>
</a-row>
<a-row :gutter="cols">
<a-col :span="cols">
<a-form-model-item :label="$t('form.repeatTag')" prop="repeatTag" :labelCol="labelColFull" :wrapperCol="wrapperColFull">
<a-radio-group v-model="section.repeatTag">
<a-radio :value="''">
{{ $t('form.repeatItem') }}
</a-radio>
<a-radio :value="'!'">
{{ $t('form.repeatGroup') }}
</a-radio>
</a-radio-group>
</a-form-model-item>
</a-col>
</a-row>
<a-row :gutter="cols">
<a-col :span="cols">
<a-form-model-item :label="$t('form.rand')" prop="rand" :labelCol="labelColFull" :wrapperCol="wrapperColFull">
......@@ -257,7 +272,7 @@ export default {
}
if (this.section.repeat && this.section.repeat != '' && this.section.repeat != '1') {
this.section.value += '{' + this.section.repeat + '}'
this.section.value += '{' + this.section.repeat + this.section.repeatTag + '}'
}
} else if (this.section.type === 'literal') {
......
......@@ -113,6 +113,9 @@ const locale = {
'form.end': 'End',
'form.value': 'Value',
'form.repeat': 'repeat',
'form.repeatTag': 'Repeat Mode',
'form.repeatItem': 'Repeat Item',
'form.repeatGroup': 'Repeat Group',
'form.step': 'Step',
'form.col': 'Column',
'form.count': 'Count',
......
......@@ -113,6 +113,9 @@ const locale = {
'form.end': '结束',
'form.value': '取值',
'form.repeat': '重复',
'form.repeatTag': '重复模式',
'form.repeatItem': '逐个重复',
'form.repeatGroup': '整体重复',
'form.step': '步长',
'form.col': '列名',
'form.count': '数目',
......
title: 数据测试1
desc: 数据测试1
from: zentao.number.v1.yaml # 全局From配置
title: 数据测试3
desc: 数据测试3
fields:
- field: refer1 # 使用全局From配置
- field: refer1
range: 0-3{2!}
postfix: '-'
use: small{2}
- from: zentao.number.v1.yaml
use: large{3}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册