Skip to content

Commit a504f9a

Browse files
committed
增加表单动态控制标签显示、隐藏属性hidden
1 parent 265c391 commit a504f9a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
<Row class="line-row"
1010
v-for="(row, findex) in formRules"
1111
:key="findex">
12+
<!-- 2020.11.21增加表单hidden属性 -->
1213
<Col :span="item.colSize ? item.colSize * 2 : 24 / span"
1314
v-for="(item, index) in row"
14-
:key="index">
15+
:key="index"
16+
v-show="!item.hidden">
1517
<!-- 2020.06.18增加render渲染自定义内容 -->
1618
<form-expand v-if="item.render && typeof item.render == 'function'"
1719
:render="item.render"></form-expand>

开发版dev/Vue.NetCore/Vol.Vue/src/components/basic/VolForm.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@
99
<Row class="line-row"
1010
v-for="(row, findex) in formRules"
1111
:key="findex">
12+
<!-- 2020.11.21增加表单hidden属性 -->
1213
<Col :span="item.colSize ? item.colSize * 2 : 24 / span"
1314
v-for="(item, index) in row"
14-
:key="index">
15+
:key="index"
16+
v-show="!item.hidden">
1517
<!-- 2020.06.18增加render渲染自定义内容 -->
1618
<form-expand v-if="item.render && typeof item.render == 'function'"
1719
:render="item.render"></form-expand>

0 commit comments

Comments
 (0)