Skip to content

Commit

Permalink
feat: generator数组容器支持配置新增按钮文案
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Dec 23, 2021
1 parent 05298cb commit f4693e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/generator/src/fields/container/array.field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config: Field = {
ui: {
type: 'array',
mode: 'add',
addTitle: '添加一行数据',
},
},
propertyConfig: {
Expand All @@ -29,6 +30,14 @@ const config: Field = {
],
},
},
{
fieldKey: 'addTitle',
type: 'string',
title: '新增按钮文案',
ui: {
type: 'text',
},
},
],
},
}
Expand Down

0 comments on commit f4693e8

Please sign in to comment.