File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " form-making" ,
3
3
"description" : " 基于Vue,ElementUI快速创建表单,进行数据校验,获取表单数据" ,
4
- "version" : " 0.1.10 " ,
4
+ "version" : " 0.1.12 " ,
5
5
"author" : " GavinZhulei" ,
6
6
"license" : " MIT" ,
7
7
"keywords" : [
Original file line number Diff line number Diff line change 90
90
<generate-form :data =" widgetForm" :remote =" remoteFuncs" :value =" widgetModels" ref =" generateForm" >
91
91
92
92
<template slot="blank" slot-scope="scope">
93
- 宽度:<el-input v-model =" scope.model.blank.width" style =" width : 200 px " ></el-input >
94
- 高度:<el-input v-model =" scope.model.blank.height" style =" width : 200 px " ></el-input >
93
+ 宽度:<el-input v-model =" scope.model.blank.width" style =" width : 100 px " ></el-input >
94
+ 高度:<el-input v-model =" scope.model.blank.height" style =" width : 100 px " ></el-input >
95
95
</template >
96
96
</generate-form >
97
97
</cus-dialog >
Original file line number Diff line number Diff line change 12
12
:align =" item.options.align"
13
13
>
14
14
<el-col v-for =" (col, colIndex) in item.columns" :key =" colIndex" :span =" col.span" >
15
- <genetate-form-item v-for =" citem in col.list" :key =" citem.key" :models.sync =" models" :remote =" remote" :rules =" rules" :widget =" citem" ></genetate-form-item >
15
+
16
+
17
+ <template v-for =" citem in col .list " >
18
+ <el-form-item v-if =" citem.type=='blank'" :label =" citem.name" :prop =" citem.model" :key =" citem.key" >
19
+ <slot :name =" citem.model" :model =" models" ></slot >
20
+ </el-form-item >
21
+ <genetate-form-item v-else :key =" citem.key" :models.sync =" models" :remote =" remote" :rules =" rules" :widget =" citem" ></genetate-form-item >
22
+ </template >
16
23
</el-col >
17
24
</el-row >
18
25
</template >
You can’t perform that action at this time.
0 commit comments