Skip to content

Commit

Permalink
feat(generator): 对象容器折叠模式添加默认展开配置项
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Jan 14, 2022
1 parent 33eeff8 commit 1877218
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/generator/src/fields/container/object.field.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config: Field = {
ui: {
type: 'object',
mode: 'collapse',
active: false,
},
},
propertyConfig: {
Expand All @@ -29,6 +30,14 @@ const config: Field = {
],
},
},
{
fieldKey: 'active',
type: 'boolean',
title: '是否默认展开',
ui: {
type: 'switch',
},
},
],
},
}
Expand Down

0 comments on commit 1877218

Please sign in to comment.