fix(amis-editor): 右侧属性配置 collapseGroup 增加可折叠控制项

This commit is contained in:
wibetter 2023-06-08 17:56:05 +08:00
parent db0d9e56e6
commit 3537a25a0c
5 changed files with 6 additions and 5 deletions

View File

@ -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",

View File

@ -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)
}));

View File

@ -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",

View File

@ -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 ",

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "3.1.1",
"version": "3.1.5",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"module": "esm/index.js",