生成的vue表单添加默认值

This commit is contained in:
Mark
2021-12-10 21:40:12 +08:00
parent 9d128e42fa
commit fe95d79c9c

View File

@@ -81,6 +81,7 @@ for(c in table.columnList){
field: 'parentCode', field: 'parentCode',
fieldLabel: 'parentName', fieldLabel: 'parentName',
component: 'TreeSelect', component: 'TreeSelect',
defaultValue: '',
componentProps: { componentProps: {
allowClear: true, allowClear: true,
style: 'width: calc(50% - 60px)', style: 'width: calc(50% - 60px)',
@@ -115,6 +116,7 @@ for (c in table.columnList){
defaultValue: '30', defaultValue: '30',
<% }else{ %> <% }else{ %>
component: '${c.showType == 'input' ? 'Input' : 'InputTextArea'}', component: '${c.showType == 'input' ? 'Input' : 'InputTextArea'}',
defaultValue: '',
<% } %> <% } %>
<% if (c.dataLength != '0'){ %> <% if (c.dataLength != '0'){ %>
componentProps: { componentProps: {