Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
26ab00c0
Z
zendata
项目概览
易企天创
/
zendata
10 个月 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
26ab00c0
编写于
12月 04, 2020
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add rand prop for data field
上级
c5671809
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
6 deletion
+5
-6
demo/default.yaml
demo/default.yaml
+2
-3
ui/src/components/FieldInfo.vue
ui/src/components/FieldInfo.vue
+3
-3
未找到文件。
demo/default.yaml
浏览文件 @
26ab00c0
...
...
@@ -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
ui/src/components/FieldInfo.vue
浏览文件 @
26ab00c0
...
...
@@ -70,14 +70,14 @@
<span
class=
"zui-input-group-addon"
:style=
"
{ width: '70px' }">
<span>
左占位符
</span>
</span>
<a-form-model-item
prop=
"l
oopfix
"
:style=
"
{ display: 'inline-block', width: 'calc(13% - 45px)' }">
<a-form-model-item
prop=
"l
eftPad
"
: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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录