@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
|
@@ -7,13 +7,24 @@
|
|
|
7
7
|
"groupName": "基础",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"title": "抽屉",
|
|
10
|
-
"width":
|
|
11
|
-
"height":
|
|
10
|
+
"width": "420px",
|
|
11
|
+
"height": "256px",
|
|
12
|
+
"padding": 16,
|
|
12
13
|
"defaultOpen": false,
|
|
13
|
-
"
|
|
14
|
-
"
|
|
14
|
+
"header": true,
|
|
15
|
+
"mask": true,
|
|
16
|
+
"closable": true,
|
|
17
|
+
"destroyOnClose": false,
|
|
15
18
|
"placement": "right",
|
|
16
19
|
"footer": true,
|
|
20
|
+
"okText": "确定",
|
|
21
|
+
"cancelText": "取消",
|
|
22
|
+
"btnGroup": {
|
|
23
|
+
"display": "button",
|
|
24
|
+
"max": 2,
|
|
25
|
+
"moreText": "操作",
|
|
26
|
+
"todoList": []
|
|
27
|
+
},
|
|
17
28
|
"advance": {
|
|
18
29
|
"events": {}
|
|
19
30
|
}
|
|
@@ -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
|
},
|
|
@@ -23,43 +23,133 @@
|
|
|
23
23
|
{
|
|
24
24
|
"key": "width",
|
|
25
25
|
"name": "宽度",
|
|
26
|
-
"desc": "
|
|
27
|
-
"type": "
|
|
28
|
-
"
|
|
26
|
+
"desc": "抽屉的宽度(仅在弹出位置为左侧和右侧时有效)",
|
|
27
|
+
"type": "_WidthHeight",
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"label": "px",
|
|
31
|
+
"value": "px"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "%",
|
|
35
|
+
"value": "%"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "vw",
|
|
39
|
+
"value": "vw"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": "A",
|
|
43
|
+
"value": "auto"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"default": "420px"
|
|
29
47
|
},
|
|
30
48
|
{
|
|
31
49
|
"key": "height",
|
|
32
50
|
"name": "高度",
|
|
33
|
-
"desc": "
|
|
34
|
-
"type": "
|
|
35
|
-
"
|
|
51
|
+
"desc": "抽屉的高度(仅在弹出位置为顶部和底部时有效)",
|
|
52
|
+
"type": "_WidthHeight",
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"label": "px",
|
|
56
|
+
"value": "px"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"label": "%",
|
|
60
|
+
"value": "%"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"label": "vw",
|
|
64
|
+
"value": "vw"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": "A",
|
|
68
|
+
"value": "auto"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"default": "256px"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "padding",
|
|
75
|
+
"name": "内边距",
|
|
76
|
+
"type": "select",
|
|
77
|
+
"options": [
|
|
78
|
+
{
|
|
79
|
+
"label": "大(24px)",
|
|
80
|
+
"value": 24
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "中(16px)",
|
|
84
|
+
"value": 16
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"label": "小(8px)",
|
|
88
|
+
"value": 8
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"label": "无(0px)",
|
|
92
|
+
"value": 0
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"default": 16
|
|
36
96
|
},
|
|
37
97
|
{
|
|
38
98
|
"key": "defaultOpen",
|
|
39
99
|
"name": "默认显示",
|
|
40
|
-
"
|
|
41
|
-
"type": "boolean",
|
|
100
|
+
"type": "switch",
|
|
42
101
|
"default": false
|
|
43
102
|
},
|
|
103
|
+
{
|
|
104
|
+
"key": "header",
|
|
105
|
+
"name": "显示Header",
|
|
106
|
+
"type": "switch",
|
|
107
|
+
"default": true
|
|
108
|
+
},
|
|
44
109
|
{
|
|
45
110
|
"key": "mask",
|
|
46
111
|
"name": "显示遮罩",
|
|
47
112
|
"desc": "是否展示遮罩",
|
|
48
|
-
"type": "
|
|
49
|
-
"default":
|
|
113
|
+
"type": "switch",
|
|
114
|
+
"default": true
|
|
50
115
|
},
|
|
51
116
|
{
|
|
52
|
-
"key": "
|
|
53
|
-
"name": "
|
|
54
|
-
"desc": "
|
|
55
|
-
"type": "
|
|
117
|
+
"key": "closable",
|
|
118
|
+
"name": "关闭按钮",
|
|
119
|
+
"desc": "是否显示右上角的关闭按钮",
|
|
120
|
+
"type": "switch",
|
|
56
121
|
"default": true
|
|
57
122
|
},
|
|
123
|
+
{
|
|
124
|
+
"key": "destroyOnClose",
|
|
125
|
+
"name": "关闭销毁",
|
|
126
|
+
"desc": "关闭时销毁对话框里的子元素",
|
|
127
|
+
"type": "switch",
|
|
128
|
+
"default": false
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "closeType",
|
|
132
|
+
"name": "关闭方式",
|
|
133
|
+
"type": "checkbox",
|
|
134
|
+
"options": [
|
|
135
|
+
{
|
|
136
|
+
"label": "点击遮罩",
|
|
137
|
+
"value": "maskClosable"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"label": "ESC",
|
|
141
|
+
"value": "keyboard"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"defaultValue": [
|
|
145
|
+
"maskClosable"
|
|
146
|
+
]
|
|
147
|
+
},
|
|
58
148
|
{
|
|
59
149
|
"key": "placement",
|
|
60
150
|
"name": "弹出位置",
|
|
61
151
|
"desc": "抽屉的方向",
|
|
62
|
-
"type": "
|
|
152
|
+
"type": "segmented",
|
|
63
153
|
"options": [
|
|
64
154
|
{
|
|
65
155
|
"label": "顶部",
|
|
@@ -78,20 +168,50 @@
|
|
|
78
168
|
"value": "left"
|
|
79
169
|
}
|
|
80
170
|
],
|
|
81
|
-
"default": "right"
|
|
171
|
+
"default": "right",
|
|
172
|
+
"repositioning": true
|
|
82
173
|
},
|
|
83
174
|
{
|
|
84
|
-
"key": "
|
|
85
|
-
"name": "
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
|
|
175
|
+
"key": "footerSetting",
|
|
176
|
+
"name": "底部按钮配置",
|
|
177
|
+
"type": "group",
|
|
178
|
+
"props": [
|
|
179
|
+
{
|
|
180
|
+
"key": "footer",
|
|
181
|
+
"name": "显示footer",
|
|
182
|
+
"desc": "是否显示底部按钮区域",
|
|
183
|
+
"type": "switch",
|
|
184
|
+
"default": true
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"key": "okText",
|
|
188
|
+
"name": "确认文字",
|
|
189
|
+
"type": "_I18nInput",
|
|
190
|
+
"default": "确定"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"key": "cancelText",
|
|
194
|
+
"name": "取消文字",
|
|
195
|
+
"type": "_I18nInput",
|
|
196
|
+
"default": "取消"
|
|
197
|
+
}
|
|
198
|
+
]
|
|
89
199
|
},
|
|
90
200
|
{
|
|
91
201
|
"key": "btnGroup",
|
|
92
202
|
"name": "按钮组",
|
|
93
|
-
"desc": "
|
|
94
|
-
"type": "
|
|
203
|
+
"desc": "底部按钮区域的按钮组",
|
|
204
|
+
"type": "_ActionsEditor",
|
|
205
|
+
"default": {
|
|
206
|
+
"display": "button",
|
|
207
|
+
"max": 2,
|
|
208
|
+
"moreText": "操作",
|
|
209
|
+
"todoList": []
|
|
210
|
+
},
|
|
211
|
+
"wrapper": "collapse",
|
|
212
|
+
"wrapperProps": {
|
|
213
|
+
"suppressIcon": true
|
|
214
|
+
}
|
|
95
215
|
}
|
|
96
216
|
],
|
|
97
217
|
"advance": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"showSave": true,
|
|
11
11
|
"saveTitle": "保存",
|
|
12
12
|
"settingLayout": "bottom",
|
|
13
|
+
"getContainer": "page_content",
|
|
13
14
|
"blocks": [
|
|
14
15
|
{
|
|
15
16
|
"id": "block_main",
|
|
@@ -30,11 +31,21 @@
|
|
|
30
31
|
"serialEffect": "hidden",
|
|
31
32
|
"header": "collapse",
|
|
32
33
|
"blockSettings": {
|
|
33
|
-
"
|
|
34
|
+
"auto": {
|
|
34
35
|
"readOnly": false,
|
|
35
|
-
"
|
|
36
|
+
"cols": 4
|
|
36
37
|
},
|
|
37
|
-
"
|
|
38
|
+
"grid": {
|
|
39
|
+
"readOnly": false,
|
|
40
|
+
"suppressPreset": false,
|
|
41
|
+
"height": "100%",
|
|
42
|
+
"bordered": false,
|
|
43
|
+
"draggable": false,
|
|
44
|
+
"orderByAdd": "asc",
|
|
45
|
+
"suppressActions": false,
|
|
46
|
+
"actionsColumnWidth": 160
|
|
47
|
+
},
|
|
48
|
+
"writer": {
|
|
38
49
|
"readOnly": false,
|
|
39
50
|
"suppressPreset": false,
|
|
40
51
|
"height": "100%",
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"meta.group",
|
|
76
76
|
"build-in"
|
|
77
77
|
]
|
|
78
|
-
]
|
|
78
|
+
],
|
|
79
|
+
"default": "page_content"
|
|
79
80
|
},
|
|
80
81
|
{
|
|
81
82
|
"key": "renderFormLeft",
|
|
@@ -217,11 +218,21 @@
|
|
|
217
218
|
"type": "_BlockEditor",
|
|
218
219
|
"wrapper": "hidden",
|
|
219
220
|
"default": {
|
|
220
|
-
"
|
|
221
|
+
"auto": {
|
|
221
222
|
"readOnly": false,
|
|
222
|
-
"
|
|
223
|
+
"cols": 4
|
|
223
224
|
},
|
|
224
|
-
"
|
|
225
|
+
"grid": {
|
|
226
|
+
"readOnly": false,
|
|
227
|
+
"suppressPreset": false,
|
|
228
|
+
"height": "100%",
|
|
229
|
+
"bordered": false,
|
|
230
|
+
"draggable": false,
|
|
231
|
+
"orderByAdd": "asc",
|
|
232
|
+
"suppressActions": false,
|
|
233
|
+
"actionsColumnWidth": 160
|
|
234
|
+
},
|
|
235
|
+
"writer": {
|
|
225
236
|
"readOnly": false,
|
|
226
237
|
"suppressPreset": false,
|
|
227
238
|
"height": "100%",
|
|
@@ -282,6 +293,11 @@
|
|
|
282
293
|
}
|
|
283
294
|
],
|
|
284
295
|
"_grid_props": [
|
|
296
|
+
{
|
|
297
|
+
"key": "height",
|
|
298
|
+
"name": "高度",
|
|
299
|
+
"type": "_WidthHeight"
|
|
300
|
+
},
|
|
285
301
|
{
|
|
286
302
|
"key": "readOnly",
|
|
287
303
|
"name": "只读",
|
|
@@ -292,11 +308,6 @@
|
|
|
292
308
|
"name": "关闭预设",
|
|
293
309
|
"type": "switch"
|
|
294
310
|
},
|
|
295
|
-
{
|
|
296
|
-
"key": "height",
|
|
297
|
-
"name": "高度",
|
|
298
|
-
"type": "_WidthHeight"
|
|
299
|
-
},
|
|
300
311
|
{
|
|
301
312
|
"key": "bordered",
|
|
302
313
|
"name": "边框线",
|
|
@@ -307,6 +318,11 @@
|
|
|
307
318
|
"name": "拖拽排序",
|
|
308
319
|
"type": "switch"
|
|
309
320
|
},
|
|
321
|
+
{
|
|
322
|
+
"key": "suppressbatch",
|
|
323
|
+
"name": "关闭批量",
|
|
324
|
+
"type": "switch"
|
|
325
|
+
},
|
|
310
326
|
{
|
|
311
327
|
"key": "orderByAdd",
|
|
312
328
|
"name": "排序方式",
|
|
@@ -322,6 +338,30 @@
|
|
|
322
338
|
}
|
|
323
339
|
]
|
|
324
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"key": "operates",
|
|
343
|
+
"name": "基础操作",
|
|
344
|
+
"type": "checkbox",
|
|
345
|
+
"options": [
|
|
346
|
+
{
|
|
347
|
+
"label": "添加",
|
|
348
|
+
"value": "add"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"label": "删除",
|
|
352
|
+
"value": "delete"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"label": "修改",
|
|
356
|
+
"value": "update"
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"defaultValue": [
|
|
360
|
+
"add",
|
|
361
|
+
"delete",
|
|
362
|
+
"update"
|
|
363
|
+
]
|
|
364
|
+
},
|
|
325
365
|
{
|
|
326
366
|
"key": "actionsColumn",
|
|
327
367
|
"name": "操作列",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "GroupTree",
|
|
3
|
+
"name": "组织树",
|
|
4
|
+
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
5
|
+
"icon": "icon-tree",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"css": "width: 100%; height: 100%;",
|
|
10
|
+
"defaultExpandAll": true,
|
|
11
|
+
"onlySelectLeaf": true,
|
|
12
|
+
"cancelSelect": false,
|
|
13
|
+
"advance": {
|
|
14
|
+
"events": {}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "GroupTree",
|
|
3
|
+
"name": "组织树",
|
|
4
|
+
"desc": "用于展示组织维度层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能。",
|
|
5
|
+
"icon": "icon-tree",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "title",
|
|
18
|
+
"name": "标题",
|
|
19
|
+
"desc": "头部标题",
|
|
20
|
+
"type": "_I18nInput"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "groupClass",
|
|
24
|
+
"name": "组维度",
|
|
25
|
+
"type": "_GroupClassSelector"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "defaultExpandAll",
|
|
29
|
+
"name": "默认展开全部",
|
|
30
|
+
"type": "switch",
|
|
31
|
+
"default": true
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "onlySelectLeaf",
|
|
35
|
+
"name": "仅叶子可选",
|
|
36
|
+
"desc": "仅叶子节点可被选中,父节点不可选中",
|
|
37
|
+
"type": "switch",
|
|
38
|
+
"default": true
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "cancelSelect",
|
|
42
|
+
"name": "允许取消选中",
|
|
43
|
+
"desc": "是否可以取消选中",
|
|
44
|
+
"type": "switch",
|
|
45
|
+
"default": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "defaultSelect",
|
|
49
|
+
"name": "默认选中",
|
|
50
|
+
"desc": "返回默认选中的数据主键",
|
|
51
|
+
"type": "_JSEditor",
|
|
52
|
+
"defaultCode": "function defaultSelect(treeData, firstNode) { \n return firstNode.id; \n}",
|
|
53
|
+
"mustConfirm": true,
|
|
54
|
+
"wrapper": "collapse",
|
|
55
|
+
"wrapperProps": {
|
|
56
|
+
"suppressIcon": true
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"css": "width: 100%; height: 100%;",
|
|
61
|
+
"advance": {
|
|
62
|
+
"events": [
|
|
63
|
+
{
|
|
64
|
+
"key": "onMount",
|
|
65
|
+
"name": "组件首次渲染时",
|
|
66
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
67
|
+
"func": "function onMount() {\n\t\n}"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "onUnmount",
|
|
71
|
+
"name": "组件卸载时",
|
|
72
|
+
"desc": "在组件卸载时,执行方法。",
|
|
73
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "onSelect",
|
|
77
|
+
"name": "选中事件",
|
|
78
|
+
"desc": "节点选中事件",
|
|
79
|
+
"func": "function onSelect(selectedKeys, e) {\n\t\n}"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -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
|
},
|
|
@@ -23,10 +23,9 @@
|
|
|
23
23
|
"key": "supportFullScreen",
|
|
24
24
|
"name": "支持全屏",
|
|
25
25
|
"desc": "是否支持全屏展示",
|
|
26
|
-
"type": "
|
|
26
|
+
"type": "switch",
|
|
27
27
|
"default": true
|
|
28
28
|
}
|
|
29
29
|
],
|
|
30
|
-
"css": ""
|
|
31
|
-
"advance": {}
|
|
30
|
+
"css": "background: white; width: 100%; height: 100%"
|
|
32
31
|
}
|
|
@@ -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
|
},
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"key": "src",
|
|
18
18
|
"name": "图片地址",
|
|
19
19
|
"desc": "图片地址",
|
|
20
|
-
"type": "
|
|
20
|
+
"type": "string"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"key": "width",
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
"type": "number",
|
|
27
27
|
"default": 350
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
"key": "autoWidth",
|
|
31
|
+
"name": "宽度自适应",
|
|
32
|
+
"desc": "是否图片宽度自适应",
|
|
33
|
+
"type": "switch",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
29
36
|
{
|
|
30
37
|
"key": "height",
|
|
31
38
|
"name": "高度",
|
|
@@ -34,10 +41,10 @@
|
|
|
34
41
|
"default": 200
|
|
35
42
|
},
|
|
36
43
|
{
|
|
37
|
-
"key": "
|
|
38
|
-
"name": "
|
|
39
|
-
"desc": "
|
|
40
|
-
"type": "
|
|
44
|
+
"key": "autoHeight",
|
|
45
|
+
"name": "高度自适应",
|
|
46
|
+
"desc": "是否图片高度自适应",
|
|
47
|
+
"type": "switch",
|
|
41
48
|
"default": false
|
|
42
49
|
},
|
|
43
50
|
{
|
|
@@ -47,16 +54,16 @@
|
|
|
47
54
|
"type": "select",
|
|
48
55
|
"options": [
|
|
49
56
|
{
|
|
50
|
-
"label": "
|
|
51
|
-
"value": "
|
|
57
|
+
"label": "铺满(Cover)",
|
|
58
|
+
"value": "cover"
|
|
52
59
|
},
|
|
53
60
|
{
|
|
54
|
-
"label": "
|
|
55
|
-
"value": "
|
|
61
|
+
"label": "适合(Contain)",
|
|
62
|
+
"value": "contain"
|
|
56
63
|
},
|
|
57
64
|
{
|
|
58
|
-
"label": "
|
|
59
|
-
"value": "
|
|
65
|
+
"label": "拉伸(Fill)",
|
|
66
|
+
"value": "fill"
|
|
60
67
|
}
|
|
61
68
|
],
|
|
62
69
|
"default": "fill"
|
|
@@ -65,8 +72,36 @@
|
|
|
65
72
|
"key": "roundRadios",
|
|
66
73
|
"name": "圆角",
|
|
67
74
|
"desc": "图片四周圆角大小,可设置“0 1px 2px 3px",
|
|
68
|
-
"type": "
|
|
69
|
-
"
|
|
75
|
+
"type": "select",
|
|
76
|
+
"options": [
|
|
77
|
+
{
|
|
78
|
+
"label": "大(16px)",
|
|
79
|
+
"value": "16px"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"label": "中(8px)",
|
|
83
|
+
"value": "8px"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"label": "小(4px)",
|
|
87
|
+
"value": "4px"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"label": "无(0px)",
|
|
91
|
+
"value": "0px"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"label": "自定义",
|
|
95
|
+
"value": ""
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"default": ""
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "borderRadios",
|
|
102
|
+
"name": "圆角大小",
|
|
103
|
+
"desc": "自定义圆角大小",
|
|
104
|
+
"type": "string"
|
|
70
105
|
},
|
|
71
106
|
{
|
|
72
107
|
"key": "title",
|
|
@@ -84,7 +119,7 @@
|
|
|
84
119
|
"key": "preview",
|
|
85
120
|
"name": "开启图片预览",
|
|
86
121
|
"desc": "是否开启点击打开图片预览",
|
|
87
|
-
"type": "
|
|
122
|
+
"type": "switch",
|
|
88
123
|
"default": false
|
|
89
124
|
}
|
|
90
125
|
],
|
|
@@ -106,7 +141,7 @@
|
|
|
106
141
|
{
|
|
107
142
|
"key": "onClick",
|
|
108
143
|
"name": "点击事件",
|
|
109
|
-
"desc": "
|
|
144
|
+
"desc": "点击图片时,执行方法",
|
|
110
145
|
"func": "(e)=>{\n\t\n}"
|
|
111
146
|
}
|
|
112
147
|
]
|