生成的vue表单添加默认值
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user