@luck-design-biz/luckda 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/LDActions/index.less +3 -1
- package/es/components/LdAutoForm/index.js +2 -1
- package/es/components/LdCard/index.js +154 -67
- package/es/components/LdFormList/index.js +20 -6
- package/es/components/LdGridForm/index.js +40 -24
- package/es/components/LdTree/index.js +14 -8
- package/es/components/LdTree/index.less +4 -2
- package/es/helper/ldBuilder.js +1 -1
- package/es/locales/zh-CN.js +13 -4
- package/es/lowcode/constants/index.js +1 -1
- package/es/lowcode/engine/meta/cardlist.props.default.json +27 -6
- package/es/lowcode/engine/meta/cardlist.props.json +254 -72
- package/es/lowcode/engine/meta/components-list.json +6 -102
- package/es/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/es/lowcode/engine/meta/dialog.props.json +74 -18
- package/es/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/es/lowcode/engine/meta/drawer.props.json +144 -24
- package/es/lowcode/engine/meta/form.props.default.json +14 -3
- package/es/lowcode/engine/meta/form.props.json +49 -9
- package/es/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/es/lowcode/engine/meta/grouptree.props.json +83 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/es/lowcode/engine/meta/iframe.props.json +3 -4
- package/es/lowcode/engine/meta/image.props.default.json +3 -2
- package/es/lowcode/engine/meta/image.props.json +51 -16
- package/es/lowcode/engine/meta/imex.props.json +1 -1
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +23 -5
- package/es/lowcode/engine/meta/link.props.default.json +1 -1
- package/es/lowcode/engine/meta/link.props.json +9 -9
- package/es/lowcode/engine/meta/table.props.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/es/lowcode/engine/meta/tabs.props.json +1 -1
- package/es/lowcode/engine/meta/tree.props.json +2 -2
- package/es/lowcode/engine/provider/ContextProvider/index.js +6 -2
- package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +82 -2
- package/es/lowcode/engine/tools/helper.js +21 -0
- package/es/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/es/lowcode/painter/Components.js +6 -1
- package/es/lowcode/painter/Design.js +1 -0
- package/es/lowcode/painter/DesignOperator.js +25 -15
- package/es/lowcode/painter/DesignToolbar.js +78 -47
- package/es/lowcode/painter/Ribbon.js +14 -1
- package/es/lowcode/painter/components/ActionBindModal.js +3 -7
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +144 -37
- package/es/lowcode/painter/components/DragDrop/DragDropWrapper.js +29 -6
- package/es/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/es/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/es/lowcode/painter/components/NumberInput.js +1 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/es/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/es/lowcode/painter/components/field-setting/SettingUI.js +30 -2
- package/es/lowcode/painter/components/field-setting/index.js +26 -12
- package/es/lowcode/painter/expect.js +27 -0
- package/es/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +20 -2
- package/es/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/es/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/es/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/es/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/es/lowcode/painter/panel-section/GroupClassSelector.js +55 -0
- package/es/lowcode/painter/panel-section/PageVars.js +1 -1
- package/es/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- package/es/lowcode/painter/panel-section/TabItems.js +1 -1
- package/es/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- package/es/lowcode/painter/style/action-bind-modal.less +5 -3
- package/es/lowcode/painter/style/design.less +26 -7
- package/es/lowcode/painter/style/dragdrop.less +46 -0
- package/es/lowcode/painter/style/list-editor.less +5 -3
- package/es/lowcode/painter/style/number-input.less +3 -1
- package/es/lowcode/painter/style/outline.less +3 -1
- package/es/lowcode/painter/style/panel-attrs.less +7 -3
- package/es/lowcode/painter/style/panel.less +9 -7
- package/es/lowcode/painter/style/radio.less +1 -1
- package/es/lowcode/painter/style/ribbon.less +4 -2
- package/es/lowcode/painter/svg/code.svg +3 -0
- package/es/lowcode/painter/svg/expect.svg +9 -0
- package/es/lowcode/view/lc-components/CardList/index.js +481 -12
- package/es/lowcode/view/lc-components/CardList/meta.json +255 -73
- package/es/lowcode/view/lc-components/Dialog/FunctionDesign.js +14 -6
- package/es/lowcode/view/lc-components/Dialog/index.js +15 -5
- package/es/lowcode/view/lc-components/Dialog/index.less +4 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +72 -18
- package/es/lowcode/view/lc-components/Drawer/FunctionDesign.js +51 -8
- package/es/lowcode/view/lc-components/Drawer/index.js +139 -24
- package/es/lowcode/view/lc-components/Drawer/index.less +11 -8
- package/es/lowcode/view/lc-components/Drawer/meta.json +136 -25
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Form/index.js +45 -28
- package/es/lowcode/view/lc-components/Form/meta.json +44 -8
- package/es/lowcode/view/lc-components/GroupTree/FunctionDesign.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/GroupTree/index.js +212 -0
- package/es/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/es/lowcode/view/lc-components/GroupTree/meta.json +83 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +57 -7
- package/es/lowcode/view/lc-components/Iframe/meta.json +3 -4
- package/es/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/es/lowcode/view/lc-components/Image/index.js +82 -6
- package/es/lowcode/view/lc-components/Image/index.less +27 -0
- package/es/lowcode/view/lc-components/Image/meta.json +51 -16
- package/es/lowcode/view/lc-components/Link/index.js +53 -5
- package/es/lowcode/view/lc-components/Link/index.less +15 -0
- package/es/lowcode/view/lc-components/Link/meta.json +9 -9
- package/es/lowcode/view/lc-components/Table/index.js +5 -6
- package/es/lowcode/view/lc-components/Table/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +40 -4
- package/es/lowcode/view/lc-components/Tabs/index.js +1 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/es/lowcode/view/lc-components/Tree/index.js +21 -19
- package/es/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/es/utils/grid.js +3 -3
- package/lib/components/LDActions/index.less +3 -1
- package/lib/components/LdAutoForm/index.js +2 -1
- package/lib/components/LdCard/index.js +153 -66
- package/lib/components/LdFormList/index.js +19 -5
- package/lib/components/LdGridForm/index.js +40 -24
- package/lib/components/LdTree/index.js +14 -8
- package/lib/components/LdTree/index.less +4 -2
- package/lib/helper/ldBuilder.js +2 -2
- package/lib/locales/zh-CN.js +13 -4
- package/lib/lowcode/constants/index.js +1 -1
- package/lib/lowcode/engine/meta/cardlist.props.default.json +27 -6
- package/lib/lowcode/engine/meta/cardlist.props.json +254 -72
- package/lib/lowcode/engine/meta/components-list.json +6 -102
- package/lib/lowcode/engine/meta/dialog.props.default.json +4 -2
- package/lib/lowcode/engine/meta/dialog.props.json +74 -18
- package/lib/lowcode/engine/meta/drawer.props.default.json +15 -4
- package/lib/lowcode/engine/meta/drawer.props.json +144 -24
- package/lib/lowcode/engine/meta/form.props.default.json +14 -3
- package/lib/lowcode/engine/meta/form.props.json +49 -9
- package/lib/lowcode/engine/meta/grouptree.props.default.json +16 -0
- package/lib/lowcode/engine/meta/grouptree.props.json +83 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +1 -1
- package/lib/lowcode/engine/meta/iframe.props.json +3 -4
- package/lib/lowcode/engine/meta/image.props.default.json +3 -2
- package/lib/lowcode/engine/meta/image.props.json +51 -16
- package/lib/lowcode/engine/meta/imex.props.json +1 -1
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +23 -5
- package/lib/lowcode/engine/meta/link.props.default.json +1 -1
- package/lib/lowcode/engine/meta/link.props.json +9 -9
- package/lib/lowcode/engine/meta/table.props.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.default.json +1 -1
- package/lib/lowcode/engine/meta/tabs.props.json +1 -1
- package/lib/lowcode/engine/meta/tree.props.json +2 -2
- package/lib/lowcode/engine/provider/ContextProvider/index.js +6 -2
- package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +83 -3
- package/lib/lowcode/engine/tools/helper.js +22 -0
- package/lib/lowcode/engine/tools/useCanvasRender.js +13 -1
- package/lib/lowcode/painter/Components.js +6 -1
- package/lib/lowcode/painter/Design.js +1 -0
- package/lib/lowcode/painter/DesignOperator.js +25 -15
- package/lib/lowcode/painter/DesignToolbar.js +78 -47
- package/lib/lowcode/painter/Ribbon.js +14 -1
- package/lib/lowcode/painter/components/ActionBindModal.js +3 -7
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +142 -35
- package/lib/lowcode/painter/components/DragDrop/DragDropWrapper.js +27 -4
- package/lib/lowcode/painter/components/DragDrop/Overlay.js +5 -2
- package/lib/lowcode/painter/components/DragDrop/TreeDragDropWrapper.js +7 -4
- package/lib/lowcode/painter/components/NumberInput.js +1 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +2 -1
- package/lib/lowcode/painter/components/field-setting/FieldAttrs.js +2 -2
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +29 -1
- package/lib/lowcode/painter/components/field-setting/index.js +26 -12
- package/lib/lowcode/painter/expect.js +34 -0
- package/lib/lowcode/painter/panel-section/ActionsEditor/ActionEditor.js +19 -1
- package/lib/lowcode/painter/panel-section/ActionsEditor/index.js +18 -3
- package/lib/lowcode/painter/panel-section/ComplexPop.js +1 -1
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +14 -3
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +2 -2
- package/lib/lowcode/painter/panel-section/GroupClassSelector.js +63 -0
- package/lib/lowcode/painter/panel-section/PageVars.js +1 -1
- package/lib/lowcode/painter/panel-section/StylePanel/MainPanel.js +1 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +1 -1
- package/lib/lowcode/painter/panel-section/TableTopFilter.js +3 -3
- package/lib/lowcode/painter/style/action-bind-modal.less +5 -3
- package/lib/lowcode/painter/style/design.less +26 -7
- package/lib/lowcode/painter/style/dragdrop.less +46 -0
- package/lib/lowcode/painter/style/list-editor.less +5 -3
- package/lib/lowcode/painter/style/number-input.less +3 -1
- package/lib/lowcode/painter/style/outline.less +3 -1
- package/lib/lowcode/painter/style/panel-attrs.less +7 -3
- package/lib/lowcode/painter/style/panel.less +9 -7
- package/lib/lowcode/painter/style/radio.less +1 -1
- package/lib/lowcode/painter/style/ribbon.less +4 -2
- package/lib/lowcode/painter/svg/code.svg +3 -0
- package/lib/lowcode/painter/svg/expect.svg +9 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +480 -11
- package/lib/lowcode/view/lc-components/CardList/meta.json +255 -73
- package/lib/lowcode/view/lc-components/Dialog/FunctionDesign.js +13 -5
- package/lib/lowcode/view/lc-components/Dialog/index.js +15 -5
- package/lib/lowcode/view/lc-components/Dialog/index.less +4 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +72 -18
- package/lib/lowcode/view/lc-components/Drawer/FunctionDesign.js +52 -8
- package/lib/lowcode/view/lc-components/Drawer/index.js +138 -23
- package/lib/lowcode/view/lc-components/Drawer/index.less +11 -8
- package/lib/lowcode/view/lc-components/Drawer/meta.json +136 -25
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Form/index.js +44 -27
- package/lib/lowcode/view/lc-components/Form/meta.json +44 -8
- package/lib/lowcode/view/lc-components/GroupTree/FunctionDesign.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.js +220 -0
- package/lib/lowcode/view/lc-components/GroupTree/index.less +12 -0
- package/lib/lowcode/view/lc-components/GroupTree/meta.json +83 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +55 -5
- package/lib/lowcode/view/lc-components/Iframe/meta.json +3 -4
- package/lib/lowcode/view/lc-components/ImEx/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Image/index.js +80 -4
- package/lib/lowcode/view/lc-components/Image/index.less +27 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +51 -16
- package/lib/lowcode/view/lc-components/Link/index.js +52 -4
- package/lib/lowcode/view/lc-components/Link/index.less +15 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +9 -9
- package/lib/lowcode/view/lc-components/Table/index.js +5 -6
- package/lib/lowcode/view/lc-components/Table/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +38 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +1 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +1 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +20 -18
- package/lib/lowcode/view/lc-components/Tree/meta.json +2 -2
- package/lib/utils/grid.js +2 -2
- package/package.json +10 -9
- package/es/lowcode/painter/style/treedragdrop.less +0 -19
- package/es/lowcode/view/lc-components/Form/index.less +0 -5
- package/lib/lowcode/painter/style/treedragdrop.less +0 -19
- package/lib/lowcode/view/lc-components/Form/index.less +0 -5
|
@@ -20,7 +20,7 @@ export var LC_BUILDIN_UNIT_KEY_LIST = Object.values(LC_BUILDIN_UNIT_KEY);
|
|
|
20
20
|
// 最小容器单元
|
|
21
21
|
export var CONTAINER_UNITS = ['Box', 'PageHeader', 'PageContent', 'PageFooter'];
|
|
22
22
|
// 不能拖入组件列表
|
|
23
|
-
export var NO_DROPABLE = [];
|
|
23
|
+
export var NO_DROPABLE = ['PageRoot'];
|
|
24
24
|
// 不能拖拽组件列表
|
|
25
25
|
export var NO_DRAGABLE = ['PageRoot', 'PageFooter', 'PageHeader', 'PageContent', 'Drawer', 'Dialog'];
|
|
26
26
|
export var FIELD_SCOPES = {
|
|
@@ -8,12 +8,33 @@
|
|
|
8
8
|
"order": 1,
|
|
9
9
|
"autoLoad": true,
|
|
10
10
|
"readOnly": false,
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
11
|
+
"draggable": false,
|
|
12
|
+
"col": 4,
|
|
13
|
+
"pagination": true,
|
|
14
|
+
"pageSize": 40,
|
|
15
|
+
"nocardBoxborder": false,
|
|
16
|
+
"showAvatar": true,
|
|
17
|
+
"showTitle": true,
|
|
18
|
+
"showDesc": true,
|
|
19
|
+
"describeLines": 2,
|
|
20
|
+
"showAddCard": false,
|
|
21
|
+
"addCardHeight": 240,
|
|
22
|
+
"addCardWords": "新建",
|
|
23
|
+
"topActionGroup": {
|
|
24
|
+
"display": "button",
|
|
25
|
+
"max": 2,
|
|
26
|
+
"moreText": "操作",
|
|
27
|
+
"todoList": []
|
|
28
|
+
},
|
|
29
|
+
"rowSelection": false,
|
|
30
|
+
"batchOperations": {
|
|
31
|
+
"todoList": []
|
|
32
|
+
},
|
|
33
|
+
"suppressActions": false,
|
|
34
|
+
"actions": {
|
|
35
|
+
"max": 3,
|
|
36
|
+
"todoList": []
|
|
37
|
+
},
|
|
17
38
|
"advance": {
|
|
18
39
|
"events": {}
|
|
19
40
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"props": [
|
|
10
10
|
{
|
|
11
11
|
"key": "id",
|
|
12
|
-
"
|
|
12
|
+
"name": "唯一标识",
|
|
13
13
|
"type": "string",
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
@@ -31,77 +31,265 @@
|
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"key": "autoLoad",
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "自动加载",
|
|
35
35
|
"desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
|
|
36
|
-
"type": "
|
|
36
|
+
"type": "switch",
|
|
37
37
|
"default": true
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"key": "readOnly",
|
|
41
|
-
"name": "
|
|
42
|
-
"
|
|
43
|
-
"type": "boolean",
|
|
41
|
+
"name": "只读",
|
|
42
|
+
"type": "switch",
|
|
44
43
|
"default": false
|
|
45
44
|
},
|
|
46
45
|
{
|
|
47
|
-
"key": "
|
|
48
|
-
"name": "
|
|
49
|
-
"
|
|
50
|
-
"type": "boolean",
|
|
46
|
+
"key": "draggable",
|
|
47
|
+
"name": "拖拽排序",
|
|
48
|
+
"type": "switch",
|
|
51
49
|
"default": false
|
|
52
50
|
},
|
|
53
51
|
{
|
|
54
|
-
"key": "
|
|
55
|
-
"name": "
|
|
56
|
-
"desc": "isFlow为false时设置,默认单页分页数",
|
|
52
|
+
"key": "col",
|
|
53
|
+
"name": "列数",
|
|
57
54
|
"type": "number",
|
|
58
|
-
"default":
|
|
55
|
+
"default": 4
|
|
59
56
|
},
|
|
60
57
|
{
|
|
61
|
-
"key": "
|
|
62
|
-
"name": "
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
58
|
+
"key": "paginationSetting",
|
|
59
|
+
"name": "分页设置",
|
|
60
|
+
"type": "group",
|
|
61
|
+
"props": [
|
|
62
|
+
{
|
|
63
|
+
"key": "pagination",
|
|
64
|
+
"name": "开启分页",
|
|
65
|
+
"type": "switch",
|
|
66
|
+
"default": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "pageSize",
|
|
70
|
+
"name": "每页行数",
|
|
71
|
+
"type": "number",
|
|
72
|
+
"default": 40
|
|
73
|
+
}
|
|
74
|
+
]
|
|
72
75
|
},
|
|
73
76
|
{
|
|
74
|
-
"key": "
|
|
75
|
-
"name": "
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
77
|
+
"key": "styleSetting",
|
|
78
|
+
"name": "视觉设置",
|
|
79
|
+
"type": "group",
|
|
80
|
+
"default": true,
|
|
81
|
+
"next": {
|
|
82
|
+
"name": "视觉设置",
|
|
83
|
+
"props": [
|
|
84
|
+
{
|
|
85
|
+
"key": "nocardBoxborder",
|
|
86
|
+
"name": "无边框风格",
|
|
87
|
+
"type": "switch",
|
|
88
|
+
"default": false
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"key": "showAvatar",
|
|
92
|
+
"name": "显示图标",
|
|
93
|
+
"type": "switch",
|
|
94
|
+
"default": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "avatarUrl",
|
|
98
|
+
"name": "图标地址",
|
|
99
|
+
"type": "_JSEditor",
|
|
100
|
+
"defaultCode": "function avatarUrl(record) { \n return null; \n}",
|
|
101
|
+
"mustConfirm": true,
|
|
102
|
+
"wrapper": "collapse",
|
|
103
|
+
"wrapperProps": {
|
|
104
|
+
"suppressIcon": true
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"key": "showTitle",
|
|
109
|
+
"name": "显示标题",
|
|
110
|
+
"type": "switch",
|
|
111
|
+
"default": true
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "renderTitle",
|
|
115
|
+
"name": "标题内容",
|
|
116
|
+
"type": "_JSEditor",
|
|
117
|
+
"defaultCode": "function renderTitle(record) { \n return record.sname; \n}",
|
|
118
|
+
"mustConfirm": true,
|
|
119
|
+
"wrapper": "collapse",
|
|
120
|
+
"wrapperProps": {
|
|
121
|
+
"suppressIcon": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "showDesc",
|
|
126
|
+
"name": "显示描述",
|
|
127
|
+
"type": "switch",
|
|
128
|
+
"default": true
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "describeLines",
|
|
132
|
+
"name": "描述最大展示行",
|
|
133
|
+
"type": "number",
|
|
134
|
+
"default": 2
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "renderDescribe",
|
|
138
|
+
"name": "描述内容",
|
|
139
|
+
"type": "_JSEditor",
|
|
140
|
+
"defaultCode": "function renderDescribe(record) { \n return record.describe; \n}",
|
|
141
|
+
"mustConfirm": true,
|
|
142
|
+
"wrapper": "collapse",
|
|
143
|
+
"wrapperProps": {
|
|
144
|
+
"suppressIcon": true
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"key": "renderContent",
|
|
149
|
+
"name": "自定义",
|
|
150
|
+
"type": "_JSEditor",
|
|
151
|
+
"defaultCode": "function renderContent(record) { \n return null; \n}",
|
|
152
|
+
"mustConfirm": true,
|
|
153
|
+
"wrapper": "collapse",
|
|
154
|
+
"wrapperProps": {
|
|
155
|
+
"suppressIcon": true
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
]
|
|
159
|
+
}
|
|
79
160
|
},
|
|
80
161
|
{
|
|
81
|
-
"key": "
|
|
82
|
-
"name": "
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
|
|
162
|
+
"key": "addCard",
|
|
163
|
+
"name": "新增卡片设置",
|
|
164
|
+
"type": "group",
|
|
165
|
+
"props": [
|
|
166
|
+
{
|
|
167
|
+
"key": "showAddCard",
|
|
168
|
+
"name": "展示新增卡片",
|
|
169
|
+
"type": "switch",
|
|
170
|
+
"default": false
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"key": "addCardHeight",
|
|
174
|
+
"name": "新增卡片高度",
|
|
175
|
+
"type": "number",
|
|
176
|
+
"default": 240
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"key": "addCardWords",
|
|
180
|
+
"name": "新增卡片内容",
|
|
181
|
+
"type": "string",
|
|
182
|
+
"default": "新建"
|
|
183
|
+
}
|
|
184
|
+
]
|
|
86
185
|
},
|
|
87
186
|
{
|
|
88
|
-
"key": "
|
|
89
|
-
"name": "
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
187
|
+
"key": "topSetting",
|
|
188
|
+
"name": "顶部操作",
|
|
189
|
+
"type": "group",
|
|
190
|
+
"default": true,
|
|
191
|
+
"next": {
|
|
192
|
+
"name": "顶部操作",
|
|
193
|
+
"props": [
|
|
194
|
+
{
|
|
195
|
+
"key": "topActionGroup",
|
|
196
|
+
"name": "顶部按钮组",
|
|
197
|
+
"type": "_ActionsEditor",
|
|
198
|
+
"default": {
|
|
199
|
+
"display": "button",
|
|
200
|
+
"max": 2,
|
|
201
|
+
"moreText": "操作",
|
|
202
|
+
"todoList": []
|
|
203
|
+
},
|
|
204
|
+
"defaultCode": "function todo() { \n \n}",
|
|
205
|
+
"wrapper": "collapse"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"key": "topFilter",
|
|
209
|
+
"name": "顶部过滤器",
|
|
210
|
+
"type": "_TableTopFilter",
|
|
211
|
+
"wrapper": "collapse"
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
93
215
|
},
|
|
94
216
|
{
|
|
95
|
-
"key": "
|
|
96
|
-
"name": "
|
|
97
|
-
"
|
|
98
|
-
"
|
|
217
|
+
"key": "batchOperations_group",
|
|
218
|
+
"name": "批量操作",
|
|
219
|
+
"type": "group",
|
|
220
|
+
"default": true,
|
|
221
|
+
"next": {
|
|
222
|
+
"name": "批量操作",
|
|
223
|
+
"props": [
|
|
224
|
+
{
|
|
225
|
+
"key": "rowSelection",
|
|
226
|
+
"name": "开启选择器",
|
|
227
|
+
"type": "switch",
|
|
228
|
+
"default": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"key": "disabledCheckbox",
|
|
232
|
+
"name": "不可选卡片",
|
|
233
|
+
"type": "_JSEditor",
|
|
234
|
+
"defaultCode": "function disabledCheckbox(record) { \n return false; \n}",
|
|
235
|
+
"mustConfirm": true,
|
|
236
|
+
"wrapper": "collapse",
|
|
237
|
+
"wrapperProps": {
|
|
238
|
+
"suppressIcon": true
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"key": "batchOperations",
|
|
243
|
+
"name": "卡片操作项",
|
|
244
|
+
"type": "_ActionsEditor",
|
|
245
|
+
"default": {
|
|
246
|
+
"todoList": []
|
|
247
|
+
},
|
|
248
|
+
"suppressDisplay": true,
|
|
249
|
+
"suppressMore": true,
|
|
250
|
+
"suppressMax": true,
|
|
251
|
+
"defaultCode": "function onActionClick(data, params) {\n\n}",
|
|
252
|
+
"wrapper": "collapse",
|
|
253
|
+
"wrapperProps": {
|
|
254
|
+
"suppressIcon": true
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
}
|
|
99
259
|
},
|
|
100
260
|
{
|
|
101
|
-
"key": "
|
|
102
|
-
"name": "
|
|
103
|
-
"
|
|
104
|
-
"
|
|
261
|
+
"key": "actionsColumn",
|
|
262
|
+
"name": "操作列",
|
|
263
|
+
"type": "group",
|
|
264
|
+
"default": true,
|
|
265
|
+
"next": {
|
|
266
|
+
"name": "操作列",
|
|
267
|
+
"props": [
|
|
268
|
+
{
|
|
269
|
+
"key": "suppressActions",
|
|
270
|
+
"name": "隐藏操作列",
|
|
271
|
+
"type": "switch",
|
|
272
|
+
"default": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"key": "actions",
|
|
276
|
+
"name": "卡片操作项",
|
|
277
|
+
"type": "_ActionsEditor",
|
|
278
|
+
"default": {
|
|
279
|
+
"max": 3,
|
|
280
|
+
"todoList": []
|
|
281
|
+
},
|
|
282
|
+
"suppressDisplay": true,
|
|
283
|
+
"suppressMore": true,
|
|
284
|
+
"suppressIcon": false,
|
|
285
|
+
"defaultCode": "function onActionClick(data, params) {\n\n}",
|
|
286
|
+
"wrapper": "collapse",
|
|
287
|
+
"wrapperProps": {
|
|
288
|
+
"suppressIcon": true
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
]
|
|
292
|
+
}
|
|
105
293
|
}
|
|
106
294
|
],
|
|
107
295
|
"advance": {
|
|
@@ -110,43 +298,37 @@
|
|
|
110
298
|
"key": "onMount",
|
|
111
299
|
"name": "组件首次渲染时",
|
|
112
300
|
"desc": "在组件首次渲染时,执行方法",
|
|
113
|
-
"func": "(params)=>{\n\t\n}"
|
|
301
|
+
"func": "function onMount(params)=>{\n\t\n}"
|
|
114
302
|
},
|
|
115
303
|
{
|
|
116
304
|
"key": "onUnmount",
|
|
117
305
|
"name": "组件卸载时",
|
|
118
306
|
"desc": "在组件卸载时,执行方法。",
|
|
119
|
-
"func": "(
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"key": "onBatchOperationsClick",
|
|
123
|
-
"name": "批量操作点击",
|
|
124
|
-
"desc": "点击操作的回调函数",
|
|
125
|
-
"func": "(key, selectedRows)=>{\n\t\n}"
|
|
307
|
+
"func": "function onUnmount()=>{\n\t\n}"
|
|
126
308
|
},
|
|
127
309
|
{
|
|
128
|
-
"key": "
|
|
129
|
-
"name": "
|
|
130
|
-
"desc": "
|
|
131
|
-
"func": "(
|
|
310
|
+
"key": "onAddCardClick",
|
|
311
|
+
"name": "新增卡片点击",
|
|
312
|
+
"desc": "点击新增卡片行时,执行方法",
|
|
313
|
+
"func": "function onAddCardClick()=>{\n\t\n}"
|
|
132
314
|
},
|
|
133
315
|
{
|
|
134
|
-
"key": "
|
|
135
|
-
"name": "
|
|
136
|
-
"desc": "
|
|
137
|
-
"func": "(
|
|
316
|
+
"key": "onCardClick",
|
|
317
|
+
"name": "卡片单击",
|
|
318
|
+
"desc": "单击卡片行时,执行方法",
|
|
319
|
+
"func": "function onCardClick(data, e)=>{\n\t\n}"
|
|
138
320
|
},
|
|
139
321
|
{
|
|
140
|
-
"key": "
|
|
141
|
-
"name": "
|
|
142
|
-
"desc": "
|
|
143
|
-
"func": "(data,
|
|
322
|
+
"key": "onCardDelete",
|
|
323
|
+
"name": "卡片删除",
|
|
324
|
+
"desc": "单击卡片删除图标,执行方法",
|
|
325
|
+
"func": "function onCardDelete(data, e)=>{\n\t\n}"
|
|
144
326
|
},
|
|
145
327
|
{
|
|
146
|
-
"key": "
|
|
147
|
-
"name": "
|
|
148
|
-
"desc": "
|
|
149
|
-
"func": "(
|
|
328
|
+
"key": "onDrop",
|
|
329
|
+
"name": "拖拽事件",
|
|
330
|
+
"desc": "节点拖拽事件",
|
|
331
|
+
"func": "function onDrop(dragNodeProps, targetNodeProps, evt) {\n\t\n}"
|
|
150
332
|
}
|
|
151
333
|
]
|
|
152
334
|
}
|
|
@@ -101,108 +101,6 @@
|
|
|
101
101
|
}
|
|
102
102
|
]
|
|
103
103
|
},
|
|
104
|
-
{
|
|
105
|
-
"group": "field",
|
|
106
|
-
"groupName": "表单项",
|
|
107
|
-
"components": [
|
|
108
|
-
{
|
|
109
|
-
"component": "FieldColor",
|
|
110
|
-
"name": "颜色",
|
|
111
|
-
"desc": "颜色类型表单项",
|
|
112
|
-
"icon": "icon-fieldstring"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"component": "FieldComplex",
|
|
116
|
-
"name": "复合",
|
|
117
|
-
"desc": "复合类型表单项",
|
|
118
|
-
"icon": "icon-fieldstring"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
"component": "FieldDate",
|
|
122
|
-
"name": "日期",
|
|
123
|
-
"desc": "日期类型表单项",
|
|
124
|
-
"icon": "icon-fieldstring"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"component": "FieldDict",
|
|
128
|
-
"name": "数据字典",
|
|
129
|
-
"desc": "数据字典类型表单项",
|
|
130
|
-
"icon": "icon-fieldstring"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
"component": "FieldEditor",
|
|
134
|
-
"name": "富文本",
|
|
135
|
-
"desc": "富文本类型表单项",
|
|
136
|
-
"icon": "icon-fieldstring"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"component": "FieldGroup",
|
|
140
|
-
"name": "组维度",
|
|
141
|
-
"desc": "组维度类型表单项",
|
|
142
|
-
"icon": "icon-fieldstring"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"component": "FieldNumber",
|
|
146
|
-
"name": "数字",
|
|
147
|
-
"desc": "数字类型表单项",
|
|
148
|
-
"icon": "icon-fieldstring"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"component": "FieldRadio",
|
|
152
|
-
"name": "单选组件",
|
|
153
|
-
"desc": "圆形单选表单项",
|
|
154
|
-
"icon": "icon-fieldstring"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
"component": "FieldRegion",
|
|
158
|
-
"name": "省市区选择",
|
|
159
|
-
"desc": "省市区级联选择表单项",
|
|
160
|
-
"icon": "icon-fieldstring"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"component": "FieldSelect",
|
|
164
|
-
"name": "下拉选择器",
|
|
165
|
-
"desc": "下拉选择器,支持单选、多选、tag标签选择",
|
|
166
|
-
"icon": "icon-fieldstring"
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
"component": "FieldString",
|
|
170
|
-
"name": "字符串",
|
|
171
|
-
"desc": "字符串类型表单项",
|
|
172
|
-
"icon": "icon-fieldstring"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"component": "FieldSwitch",
|
|
176
|
-
"name": "开关",
|
|
177
|
-
"desc": "开关类型表单项",
|
|
178
|
-
"icon": "icon-fieldstring"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"component": "FieldTextarea",
|
|
182
|
-
"name": "文本框",
|
|
183
|
-
"desc": "文本框类型表单项",
|
|
184
|
-
"icon": "icon-fieldstring"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"component": "FieldUpload",
|
|
188
|
-
"name": "附件上传",
|
|
189
|
-
"desc": "附件上传表单项",
|
|
190
|
-
"icon": "icon-fieldstring"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"component": "FieldUser",
|
|
194
|
-
"name": "用户",
|
|
195
|
-
"desc": "用户类型表单项",
|
|
196
|
-
"icon": "icon-fieldstring"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"component": "FieldYear",
|
|
200
|
-
"name": "年份选择",
|
|
201
|
-
"desc": "年份选择表单项",
|
|
202
|
-
"icon": "icon-fieldstring"
|
|
203
|
-
}
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
104
|
{
|
|
207
105
|
"group": "advance",
|
|
208
106
|
"groupName": "高级",
|
|
@@ -219,6 +117,12 @@
|
|
|
219
117
|
"desc": "复杂表单组件是用于收集、验证和提交用户输入数据的重要组件。",
|
|
220
118
|
"icon": "icon-form"
|
|
221
119
|
},
|
|
120
|
+
{
|
|
121
|
+
"component": "GroupTree",
|
|
122
|
+
"name": "组织树",
|
|
123
|
+
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
124
|
+
"icon": "icon-tree"
|
|
125
|
+
},
|
|
222
126
|
{
|
|
223
127
|
"component": "Table",
|
|
224
128
|
"name": "表格",
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
"title": "对话框",
|
|
10
10
|
"width": "700px",
|
|
11
11
|
"height": "50vh",
|
|
12
|
+
"padding": 16,
|
|
12
13
|
"defaultOpen": false,
|
|
13
|
-
"destroyOnClose": true,
|
|
14
14
|
"mask": true,
|
|
15
|
+
"closable": true,
|
|
16
|
+
"destroyOnClose": true,
|
|
17
|
+
"footer": true,
|
|
15
18
|
"okText": "确定",
|
|
16
19
|
"cancelText": "取消",
|
|
17
|
-
"footer": true,
|
|
18
20
|
"btnGroup": {
|
|
19
21
|
"display": "button",
|
|
20
22
|
"max": 2,
|