mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix(amis-editor): 右侧属性配置 collapseGroup 增加可折叠控制项
This commit is contained in:
parent
db0d9e56e6
commit
3537a25a0c
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis-core",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.5",
|
||||
"description": "amis-core",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
@ -337,6 +337,7 @@ setSchemaTpl(
|
||||
key: string;
|
||||
visibleOn: string;
|
||||
body: Array<any>;
|
||||
collapsed?: boolean;
|
||||
}>
|
||||
) => {
|
||||
const collapseGroupBody = config
|
||||
@ -345,10 +346,10 @@ setSchemaTpl(
|
||||
)
|
||||
.map(item => ({
|
||||
type: 'collapse',
|
||||
collapsed: false,
|
||||
headingClassName: 'ae-formItemControl-header',
|
||||
bodyClassName: 'ae-formItemControl-body',
|
||||
...item,
|
||||
collapsed: item.collapsed ?? false,
|
||||
key: item.title,
|
||||
body: flatten(item.body)
|
||||
}));
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis-formula",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.5",
|
||||
"description": "负责 amis 里面的表达式实现,内置公式,编辑器等",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
@ -3,7 +3,7 @@
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.5",
|
||||
"description": "",
|
||||
"scripts": {
|
||||
"build": "npm run clean-dist && NODE_ENV=production rollup -c ",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "amis",
|
||||
"version": "3.1.1",
|
||||
"version": "3.1.5",
|
||||
"description": "一种MIS页面生成工具",
|
||||
"main": "lib/index.js",
|
||||
"module": "esm/index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user