[update] 新增表单组件增加可隐藏字段

This commit is contained in:
lideqin
2023-09-21 17:42:05 +08:00
parent f0d3844028
commit 7360dcff84
2 changed files with 29 additions and 9 deletions
+9 -1
View File
@@ -155,7 +155,7 @@
</div>
</a-col>
<!-- 9, 文本框 -->
<a-col :span="12" v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value">
<a-col :span="12" v-else-if="item.fieldShowType === FieldType.TEXT_BOX.value && !hiddenFieldList.includes(item.dbFieldName)">
<div class="box-title-text">
<div class="title-text">
<span class="required" v-if="item.fieldMustInput === '1'">*</span>
@@ -343,6 +343,14 @@ export default {
default: () => {
return []
}
},
// 需要隐藏的字段
hiddenFieldList: {
type: Array,
required: false,
default: () => {
return []
}
}
},
data () {