@luck-design-biz/luckda 0.0.25-7 → 0.0.25-8
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.js +8 -10
- package/es/components/LDActions/index.less +7 -4
- package/es/components/LdAutoForm/index.js +8 -6
- package/es/components/LdFormList/index.js +12 -4
- package/es/components/LdGrid/index.js +11 -5
- package/es/components/LdGridForm/index.js +4 -2
- package/es/components/LdTree/index.js +30 -13
- package/es/helper/form.js +9 -5
- package/es/locales/zh-CN.js +15 -10
- package/es/lowcode/constants/api-url.js +112 -26
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/meta/box.props.json +3 -3
- package/es/lowcode/engine/meta/button.props.json +3 -3
- package/es/lowcode/engine/meta/components-list.json +6 -0
- package/es/lowcode/engine/meta/dialog.props.json +5 -5
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/form.props.json +13 -7
- package/es/lowcode/engine/meta/imex.props.default.json +8 -1
- package/es/lowcode/engine/meta/imex.props.json +54 -22
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/es/lowcode/engine/meta/layout.props.json +2 -2
- package/es/lowcode/engine/meta/page.props.json +2 -2
- package/es/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/es/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/es/lowcode/engine/meta/section.props.json +2 -2
- package/es/lowcode/engine/meta/split.props.default.json +1 -1
- package/es/lowcode/engine/meta/split.props.json +4 -4
- package/es/lowcode/engine/meta/table.props.json +15 -9
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +1 -0
- package/es/lowcode/engine/meta/tree.props.json +55 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +12 -3
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +55 -6
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/usePageDataStore.js +4 -2
- package/es/lowcode/painter/DesignOperator.js +1 -1
- package/es/lowcode/painter/DesignToolbar.js +2 -1
- package/es/lowcode/painter/Panel.js +3 -3
- package/es/lowcode/painter/components/ActionBindModal.js +25 -13
- package/es/lowcode/painter/components/AdvancePanel.js +6 -1
- package/es/lowcode/painter/components/AttrsPanel.js +13 -11
- package/es/lowcode/painter/components/field-setting/CheckFrontRules.js +108 -0
- package/es/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/es/lowcode/painter/components/field-setting/FieldRulesModal.js +33 -13
- package/es/lowcode/painter/components/field-setting/SettingUI.js +156 -24
- package/es/lowcode/painter/components/field-setting/index.js +32 -63
- package/es/lowcode/painter/components/field-setting/meta/frontRules.js +53 -0
- package/es/lowcode/painter/panel-section/BlocksEditor/index.js +6 -9
- package/es/lowcode/painter/panel-section/FieldsSetting.js +53 -12
- package/es/lowcode/painter/panel-section/ImpExp.js +93 -6
- package/es/lowcode/painter/panel-section/ImpExpAlone.js +109 -0
- package/es/lowcode/painter/panel-section/PageLayoutDisplay.js +95 -0
- package/es/lowcode/painter/panel-section/SplitDisplay.js +25 -110
- package/es/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +4 -2
- package/es/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/es/lowcode/view/lc-components/Box/meta.json +3 -3
- package/es/lowcode/view/lc-components/Button/index.js +2 -6
- package/es/lowcode/view/lc-components/Button/meta.json +3 -3
- package/es/lowcode/view/lc-components/Dialog/index.js +27 -2
- package/es/lowcode/view/lc-components/Dialog/meta.json +5 -5
- package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/es/lowcode/view/lc-components/Form/index.js +99 -21
- package/es/lowcode/view/lc-components/Form/meta.json +13 -7
- package/es/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/es/lowcode/view/lc-components/ImEx/index.js +260 -10
- package/es/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/es/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/es/lowcode/view/lc-components/Page/meta.json +2 -2
- package/es/lowcode/view/lc-components/PageLayout/FunctionDesign.js +63 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionLive.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/FunctionPreview.js +10 -0
- package/es/lowcode/view/lc-components/PageLayout/index.js +32 -0
- package/es/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/es/lowcode/view/lc-components/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +11 -5
- package/es/lowcode/view/lc-components/Split/index.js +5 -9
- package/es/lowcode/view/lc-components/Split/meta.json +4 -4
- package/es/lowcode/view/lc-components/Table/components/TopImex.js +138 -0
- package/es/lowcode/view/lc-components/Table/index.js +60 -17
- package/es/lowcode/view/lc-components/Table/meta.json +15 -9
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +1 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/es/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/es/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/es/lowcode/view/lc-components/Tree/index.js +60 -18
- package/es/lowcode/view/lc-components/Tree/meta.json +55 -7
- package/es/upload/FormItem/index.js +1 -4
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +7 -5
- package/lib/components/LdFormList/index.js +11 -3
- package/lib/components/LdGrid/index.js +11 -5
- package/lib/components/LdGridForm/index.js +4 -2
- package/lib/components/LdTree/index.js +30 -13
- package/lib/helper/form.js +8 -4
- package/lib/locales/zh-CN.js +15 -10
- package/lib/lowcode/constants/api-url.js +113 -26
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/meta/box.props.json +3 -3
- package/lib/lowcode/engine/meta/button.props.json +3 -3
- package/lib/lowcode/engine/meta/components-list.json +6 -0
- package/lib/lowcode/engine/meta/dialog.props.json +5 -5
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/form.props.json +13 -7
- package/lib/lowcode/engine/meta/imex.props.default.json +8 -1
- package/lib/lowcode/engine/meta/imex.props.json +54 -22
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +53 -3
- package/lib/lowcode/engine/meta/layout.props.json +2 -2
- package/lib/lowcode/engine/meta/page.props.json +2 -2
- package/lib/lowcode/engine/meta/pagelayout.props.default.json +14 -0
- package/lib/lowcode/engine/meta/pagelayout.props.json +47 -0
- package/lib/lowcode/engine/meta/section.props.json +2 -2
- package/lib/lowcode/engine/meta/split.props.default.json +1 -1
- package/lib/lowcode/engine/meta/split.props.json +4 -4
- package/lib/lowcode/engine/meta/table.props.json +15 -9
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +1 -0
- package/lib/lowcode/engine/meta/tree.props.json +55 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +11 -2
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +54 -5
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/usePageDataStore.js +4 -2
- package/lib/lowcode/painter/DesignOperator.js +1 -1
- package/lib/lowcode/painter/DesignToolbar.js +2 -1
- package/lib/lowcode/painter/Panel.js +3 -3
- package/lib/lowcode/painter/components/ActionBindModal.js +23 -11
- package/lib/lowcode/painter/components/AdvancePanel.js +6 -1
- package/lib/lowcode/painter/components/AttrsPanel.js +12 -10
- package/lib/lowcode/painter/components/field-setting/CheckFrontRules.js +116 -0
- package/lib/lowcode/painter/components/field-setting/CheckRules.js +1 -26
- package/lib/lowcode/painter/components/field-setting/FieldRulesModal.js +34 -13
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +153 -21
- package/lib/lowcode/painter/components/field-setting/index.js +32 -63
- package/lib/lowcode/painter/components/field-setting/meta/frontRules.js +59 -0
- package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +6 -9
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +53 -12
- package/lib/lowcode/painter/panel-section/ImpExp.js +92 -5
- package/lib/lowcode/painter/panel-section/ImpExpAlone.js +115 -0
- package/lib/lowcode/painter/panel-section/PageLayoutDisplay.js +103 -0
- package/lib/lowcode/painter/panel-section/SplitDisplay.js +24 -109
- package/lib/lowcode/painter/panel-section/StylePanel/index.js +10 -4
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +4 -2
- package/lib/lowcode/view/lc-components/Box/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Box/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Button/index.js +2 -6
- package/lib/lowcode/view/lc-components/Button/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Dialog/index.js +29 -4
- package/lib/lowcode/view/lc-components/Dialog/meta.json +5 -5
- package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/lib/lowcode/view/lc-components/Form/index.js +96 -18
- package/lib/lowcode/view/lc-components/Form/meta.json +13 -7
- package/lib/lowcode/view/lc-components/ImEx/FunctionDesign.js +8 -3
- package/lib/lowcode/view/lc-components/ImEx/index.js +257 -8
- package/lib/lowcode/view/lc-components/ImEx/index.less +7 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +55 -23
- package/lib/lowcode/view/lc-components/Layout/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Page/meta.json +2 -2
- package/lib/lowcode/view/lc-components/PageLayout/FunctionDesign.js +71 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionLive.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/FunctionPreview.js +17 -0
- package/lib/lowcode/view/lc-components/PageLayout/index.js +40 -0
- package/lib/lowcode/view/lc-components/PageLayout/meta.json +47 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +12 -6
- package/lib/lowcode/view/lc-components/Split/index.js +2 -6
- package/lib/lowcode/view/lc-components/Split/meta.json +4 -4
- package/lib/lowcode/view/lc-components/Table/components/TopImex.js +145 -0
- package/lib/lowcode/view/lc-components/Table/index.js +59 -16
- package/lib/lowcode/view/lc-components/Table/meta.json +15 -9
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +3 -2
- package/lib/lowcode/view/lc-components/Tabs/index.js +3 -1
- package/lib/lowcode/view/lc-components/Tabs/meta.json +3 -3
- package/lib/lowcode/view/lc-components/Tree/FunctionDesign.js +2 -1
- package/lib/lowcode/view/lc-components/Tree/index.js +58 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +55 -7
- package/lib/upload/FormItem/index.js +1 -4
- package/package.json +2 -2
|
@@ -7,8 +7,15 @@
|
|
|
7
7
|
"groupName": "基础",
|
|
8
8
|
"order": 1,
|
|
9
9
|
"css": {},
|
|
10
|
-
"type": "export",
|
|
11
10
|
"title": "导入|导出",
|
|
11
|
+
"impexpSetting": {
|
|
12
|
+
"customType": false,
|
|
13
|
+
"customParam": false,
|
|
14
|
+
"type": "export"
|
|
15
|
+
},
|
|
16
|
+
"size": "middle",
|
|
17
|
+
"block": false,
|
|
18
|
+
"type": "primary",
|
|
12
19
|
"advance": {
|
|
13
20
|
"events": {}
|
|
14
21
|
}
|
|
@@ -14,40 +14,72 @@
|
|
|
14
14
|
"disabled": true
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
|
-
"key": "
|
|
18
|
-
"name": "
|
|
19
|
-
"desc": "
|
|
20
|
-
"type": "
|
|
17
|
+
"key": "title",
|
|
18
|
+
"name": "标题",
|
|
19
|
+
"desc": "按钮上显示的文字",
|
|
20
|
+
"type": "_I18nInput",
|
|
21
|
+
"default": "导入|导出"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "impexpSetting",
|
|
25
|
+
"type": "_ImpExpAlone",
|
|
26
|
+
"default": {
|
|
27
|
+
"customType": false,
|
|
28
|
+
"customParam": false,
|
|
29
|
+
"type": "export"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "size",
|
|
34
|
+
"name": "按钮",
|
|
35
|
+
"type": "segmented",
|
|
36
|
+
"repositioning": true,
|
|
21
37
|
"options": [
|
|
22
38
|
{
|
|
23
|
-
"label": "
|
|
24
|
-
"value": "
|
|
39
|
+
"label": "小",
|
|
40
|
+
"value": "small"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": "中",
|
|
44
|
+
"value": "middle"
|
|
25
45
|
},
|
|
26
46
|
{
|
|
27
|
-
"label": "
|
|
28
|
-
"value": "
|
|
47
|
+
"label": "大",
|
|
48
|
+
"value": "large"
|
|
29
49
|
}
|
|
30
50
|
],
|
|
31
|
-
"default": "
|
|
51
|
+
"default": "middle"
|
|
32
52
|
},
|
|
33
53
|
{
|
|
34
|
-
"key": "
|
|
35
|
-
"name": "
|
|
36
|
-
"desc": "
|
|
37
|
-
"type": "
|
|
38
|
-
"
|
|
54
|
+
"key": "block",
|
|
55
|
+
"name": "块级",
|
|
56
|
+
"desc": "将按钮宽度调整为其父宽度的选项",
|
|
57
|
+
"type": "switch",
|
|
58
|
+
"repositioning": true,
|
|
59
|
+
"default": false
|
|
39
60
|
},
|
|
40
61
|
{
|
|
41
|
-
"key": "
|
|
42
|
-
"name": "
|
|
43
|
-
"
|
|
44
|
-
"
|
|
62
|
+
"key": "type",
|
|
63
|
+
"name": "按钮类型",
|
|
64
|
+
"type": "_ButtonType",
|
|
65
|
+
"default": "primary"
|
|
45
66
|
},
|
|
46
67
|
{
|
|
47
|
-
"key": "
|
|
48
|
-
"name": "
|
|
49
|
-
"
|
|
50
|
-
"
|
|
68
|
+
"key": "iconFont",
|
|
69
|
+
"name": "图标",
|
|
70
|
+
"type": "_Icon",
|
|
71
|
+
"next": {
|
|
72
|
+
"name": "选择图标",
|
|
73
|
+
"autoClose": true,
|
|
74
|
+
"props": [
|
|
75
|
+
{
|
|
76
|
+
"key": "iconFont",
|
|
77
|
+
"name": "#图标选择器",
|
|
78
|
+
"type": "_IconSelector"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
},
|
|
82
|
+
"repositioning": true
|
|
51
83
|
}
|
|
52
84
|
],
|
|
53
85
|
"css": {},
|
|
@@ -17,7 +17,32 @@
|
|
|
17
17
|
{
|
|
18
18
|
"name": "Dialog",
|
|
19
19
|
"triggerWord": "dialog",
|
|
20
|
-
"completions": [
|
|
20
|
+
"completions": [
|
|
21
|
+
{
|
|
22
|
+
"label": "open",
|
|
23
|
+
"kind": "property",
|
|
24
|
+
"insertText": "open",
|
|
25
|
+
"documentation": " /**\r\n * 弹窗打开状态\r\n * @property\r\n */\r"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"label": "doOpen",
|
|
29
|
+
"kind": "method",
|
|
30
|
+
"insertText": "doOpen",
|
|
31
|
+
"documentation": " /**\r\n * 打开弹窗\r\n * @method\r\n */\r"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "doClose",
|
|
35
|
+
"kind": "method",
|
|
36
|
+
"insertText": "doClose",
|
|
37
|
+
"documentation": " /**\r\n * 关闭弹窗\r\n * @method\r\n */\r"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"label": "setTitle",
|
|
41
|
+
"kind": "method",
|
|
42
|
+
"insertText": "setTitle(title)",
|
|
43
|
+
"documentation": " /**\r\n * 设置弹窗标题\r\n * @method\r\n * @param {stirng} title -标题\r\n */\r"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
21
46
|
},
|
|
22
47
|
{
|
|
23
48
|
"name": "Drawer",
|
|
@@ -52,7 +77,20 @@
|
|
|
52
77
|
{
|
|
53
78
|
"name": "Form",
|
|
54
79
|
"triggerWord": "form",
|
|
55
|
-
"completions": [
|
|
80
|
+
"completions": [
|
|
81
|
+
{
|
|
82
|
+
"label": "getInstance",
|
|
83
|
+
"kind": "method",
|
|
84
|
+
"insertText": "getInstance",
|
|
85
|
+
"documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"label": "submit",
|
|
89
|
+
"kind": "method",
|
|
90
|
+
"insertText": "submit",
|
|
91
|
+
"documentation": " /**\r\n * 提交表格数据\r\n * @method\r\n */\r"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
56
94
|
},
|
|
57
95
|
{
|
|
58
96
|
"name": "Iframe",
|
|
@@ -99,6 +137,11 @@
|
|
|
99
137
|
"triggerWord": "pageheader",
|
|
100
138
|
"completions": []
|
|
101
139
|
},
|
|
140
|
+
{
|
|
141
|
+
"name": "PageLayout",
|
|
142
|
+
"triggerWord": "pagelayout",
|
|
143
|
+
"completions": []
|
|
144
|
+
},
|
|
102
145
|
{
|
|
103
146
|
"name": "PageModal",
|
|
104
147
|
"triggerWord": "pagemodal",
|
|
@@ -117,7 +160,14 @@
|
|
|
117
160
|
{
|
|
118
161
|
"name": "Table",
|
|
119
162
|
"triggerWord": "table",
|
|
120
|
-
"completions": [
|
|
163
|
+
"completions": [
|
|
164
|
+
{
|
|
165
|
+
"label": "getInstance",
|
|
166
|
+
"kind": "method",
|
|
167
|
+
"insertText": "getInstance",
|
|
168
|
+
"documentation": " /**\r\n * 获取表格实例\r\n * @method\r\n */\r"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
121
171
|
},
|
|
122
172
|
{
|
|
123
173
|
"name": "Tabs",
|
|
@@ -94,13 +94,13 @@
|
|
|
94
94
|
"key": "onMount",
|
|
95
95
|
"name": "组件首次渲染时",
|
|
96
96
|
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
-
"func": "(params)
|
|
97
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
100
|
"key": "onUnmount",
|
|
101
101
|
"name": "组件卸载时",
|
|
102
102
|
"desc": "在组件卸载时,执行方法。",
|
|
103
|
-
"func": "(params)
|
|
103
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
104
104
|
}
|
|
105
105
|
]
|
|
106
106
|
}
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"key": "onPageMount",
|
|
37
37
|
"name": "组件首次渲染时",
|
|
38
38
|
"desc": "在组件首次渲染时,执行方法",
|
|
39
|
-
"func": "(
|
|
39
|
+
"func": "function onPageMount()=>{\n\t\n}"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"key": "onPageUnmount",
|
|
43
43
|
"name": "组件卸载时",
|
|
44
44
|
"desc": "在组件卸载时,执行方法。",
|
|
45
|
-
"func": "(
|
|
45
|
+
"func": "function onPageUnmount()=>{\n\t\n}"
|
|
46
46
|
}
|
|
47
47
|
]
|
|
48
48
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageLayout",
|
|
3
|
+
"name": "页面布局容器",
|
|
4
|
+
"icon": "icon-pagelayout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
10
|
+
"display": "lr",
|
|
11
|
+
"advance": {
|
|
12
|
+
"events": {}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "PageLayout",
|
|
3
|
+
"name": "页面布局容器",
|
|
4
|
+
"icon": "icon-pagelayout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "displaySetting",
|
|
18
|
+
"name": "展现形式",
|
|
19
|
+
"type": "group",
|
|
20
|
+
"props": [
|
|
21
|
+
{
|
|
22
|
+
"key": "display",
|
|
23
|
+
"name": "#展现形式",
|
|
24
|
+
"type": "_PageLayoutDisplay",
|
|
25
|
+
"default": "lr"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
31
|
+
"advance": {
|
|
32
|
+
"events": [
|
|
33
|
+
{
|
|
34
|
+
"key": "onMount",
|
|
35
|
+
"name": "组件首次渲染时",
|
|
36
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
37
|
+
"func": "function onMount() {\n\t\n}"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "onUnmount",
|
|
41
|
+
"name": "组件卸载时",
|
|
42
|
+
"desc": "在组件卸载时,执行方法。",
|
|
43
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -98,13 +98,13 @@
|
|
|
98
98
|
"key": "onMount",
|
|
99
99
|
"name": "组件首次渲染时",
|
|
100
100
|
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
-
"func": "(
|
|
101
|
+
"func": "function onMount(){\n\t\n}"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"key": "onUnmount",
|
|
105
105
|
"name": "组件卸载时",
|
|
106
106
|
"desc": "在组件卸载时,执行方法。",
|
|
107
|
-
"func": "(
|
|
107
|
+
"func": "function onUnmount()=>{\n\t\n}"
|
|
108
108
|
}
|
|
109
109
|
]
|
|
110
110
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"groupName": "布局",
|
|
7
7
|
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
8
8
|
"order": 1,
|
|
9
|
-
"css": "background-color: transparent",
|
|
9
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
10
10
|
"display": {
|
|
11
11
|
"type": "normal",
|
|
12
12
|
"split": "horizontal",
|
|
@@ -31,26 +31,26 @@
|
|
|
31
31
|
]
|
|
32
32
|
}
|
|
33
33
|
],
|
|
34
|
-
"css": "background-color: transparent",
|
|
34
|
+
"css": "width: 100%, height: 100%, background-color: transparent",
|
|
35
35
|
"advance": {
|
|
36
36
|
"events": [
|
|
37
37
|
{
|
|
38
38
|
"key": "onMount",
|
|
39
39
|
"name": "组件首次渲染时",
|
|
40
40
|
"desc": "在组件首次渲染时,执行方法",
|
|
41
|
-
"func": "(
|
|
41
|
+
"func": "function onMount() {\n\t\n}"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"key": "onUnmount",
|
|
45
45
|
"name": "组件卸载时",
|
|
46
46
|
"desc": "在组件卸载时,执行方法。",
|
|
47
|
-
"func": "(
|
|
47
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
"key": "onChange",
|
|
51
51
|
"name": "尺寸变化事件",
|
|
52
52
|
"desc": "在面板尺寸发生变化时,执行方法",
|
|
53
|
-
"func": "(value)
|
|
53
|
+
"func": "function onChange(value) {\n\t\n}"
|
|
54
54
|
}
|
|
55
55
|
]
|
|
56
56
|
}
|
|
@@ -383,55 +383,61 @@
|
|
|
383
383
|
"key": "onMount",
|
|
384
384
|
"name": "组件首次渲染时",
|
|
385
385
|
"desc": "在组件首次渲染时,执行方法",
|
|
386
|
-
"func": "(params)
|
|
386
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
387
387
|
},
|
|
388
388
|
{
|
|
389
389
|
"key": "onUnmount",
|
|
390
390
|
"name": "组件卸载时",
|
|
391
391
|
"desc": "在组件卸载时,执行方法。",
|
|
392
|
-
"func": "()
|
|
392
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
393
393
|
},
|
|
394
394
|
{
|
|
395
395
|
"key": "onRowClick",
|
|
396
396
|
"name": "行单击",
|
|
397
397
|
"desc": "单击表格行时,执行方法",
|
|
398
|
-
"func": "(data, rowIndex, params)
|
|
398
|
+
"func": "function onRowClick(data, rowIndex, params) {\n\t\n}"
|
|
399
399
|
},
|
|
400
400
|
{
|
|
401
401
|
"key": "onRowDoubleClick",
|
|
402
402
|
"name": "行双击",
|
|
403
403
|
"desc": "双击表格行时,执行方法",
|
|
404
|
-
"func": "(data, rowIndex, params)
|
|
404
|
+
"func": "function onRowDoubleClick(data, rowIndex, params) {\n\t\n}"
|
|
405
405
|
},
|
|
406
406
|
{
|
|
407
407
|
"key": "onRowSelected",
|
|
408
408
|
"name": "行选择",
|
|
409
409
|
"desc": "选中行时,执行方法",
|
|
410
|
-
"func": "(data, isSelected, SelectedRows, params)
|
|
410
|
+
"func": "function onRowSelected(data, isSelected, SelectedRows, params) {\n\t\n}"
|
|
411
411
|
},
|
|
412
412
|
{
|
|
413
413
|
"key": "onRowSelectChange",
|
|
414
414
|
"name": "行选择变化",
|
|
415
415
|
"desc": "行选中发生变化时,执行方法",
|
|
416
|
-
"func": "(rows, nodes, params)
|
|
416
|
+
"func": "function onRowSelectChange(rows, nodes, params) {\n\t\n}"
|
|
417
417
|
},
|
|
418
418
|
{
|
|
419
419
|
"key": "onRowDragged",
|
|
420
420
|
"name": "行拖拽后",
|
|
421
421
|
"desc": "拖拽行使其顺序发生变化后,执行方法",
|
|
422
|
-
"func": "(toId, fromId, params)
|
|
422
|
+
"func": "function onRowDragged(toId, fromId, params) {\n\t\n}"
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
"key": "onPagePublicResourceChanged",
|
|
426
|
+
"name": "页面共享资源变化后",
|
|
427
|
+
"desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
|
|
428
|
+
"func": "function onPagePublicResourceChanged(resource, instance) {\n\t\n}"
|
|
423
429
|
},
|
|
424
430
|
{
|
|
425
431
|
"key": "afterInit",
|
|
426
432
|
"name": "初始化后的回调",
|
|
427
433
|
"desc": "组件及数据加载完成后,执行方法",
|
|
428
|
-
"func": "(res, dispatch, props)
|
|
434
|
+
"func": "function afterInit(res, dispatch, props) {\n\t\n}"
|
|
429
435
|
},
|
|
430
436
|
{
|
|
431
437
|
"key": "afterQuery",
|
|
432
438
|
"name": "数据读取回调",
|
|
433
439
|
"desc": "读取数据源后执行方法,返回接口中原始数据",
|
|
434
|
-
"func": "(res)
|
|
440
|
+
"func": "function afterQuery(res) {\n\t\n}"
|
|
435
441
|
}
|
|
436
442
|
]
|
|
437
443
|
}
|
|
@@ -98,19 +98,19 @@
|
|
|
98
98
|
"key": "onMount",
|
|
99
99
|
"name": "组件首次渲染时",
|
|
100
100
|
"desc": "在组件首次渲染时,执行方法",
|
|
101
|
-
"func": "(
|
|
101
|
+
"func": "function onMount() {\n\t\n}"
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
"key": "onUnmount",
|
|
105
105
|
"name": "组件卸载时",
|
|
106
106
|
"desc": "在组件卸载时,执行方法。",
|
|
107
|
-
"func": "(
|
|
107
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"key": "onTabClick",
|
|
111
111
|
"name": "tab被点击的回调",
|
|
112
112
|
"desc": "当tab被点击时, 执行方法",
|
|
113
|
-
"func": "(tabKey, e)
|
|
113
|
+
"func": "function onTabClick(tabKey, e) {\n\t\n}"
|
|
114
114
|
}
|
|
115
115
|
]
|
|
116
116
|
}
|
|
@@ -17,7 +17,18 @@
|
|
|
17
17
|
"key": "dataset",
|
|
18
18
|
"name": "数据集",
|
|
19
19
|
"desc": "选择系统中的可用树形数据集",
|
|
20
|
-
"type": "_DataSetSelector"
|
|
20
|
+
"type": "_DataSetSelector",
|
|
21
|
+
"next": {
|
|
22
|
+
"name": "字段配置",
|
|
23
|
+
"props": [
|
|
24
|
+
{
|
|
25
|
+
"key": "fields",
|
|
26
|
+
"name": "#字段配置器",
|
|
27
|
+
"type": "_FieldsSetting",
|
|
28
|
+
"component": "tree"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
21
32
|
},
|
|
22
33
|
{
|
|
23
34
|
"key": "title",
|
|
@@ -119,6 +130,32 @@
|
|
|
119
130
|
}
|
|
120
131
|
]
|
|
121
132
|
},
|
|
133
|
+
{
|
|
134
|
+
"key": "selectSetting",
|
|
135
|
+
"name": "选中设置",
|
|
136
|
+
"type": "group",
|
|
137
|
+
"props": [
|
|
138
|
+
{
|
|
139
|
+
"key": "cancelSelect",
|
|
140
|
+
"name": "取消选中",
|
|
141
|
+
"desc": "是否可以取消选中",
|
|
142
|
+
"type": "switch",
|
|
143
|
+
"default": true
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"key": "defaultSelect",
|
|
147
|
+
"name": "默认选中",
|
|
148
|
+
"desc": "返回默认选中的数据主键",
|
|
149
|
+
"type": "_JSEditor",
|
|
150
|
+
"defaultCode": "function defaultSelect(treeData) { \n return []; \n}",
|
|
151
|
+
"mustConfirm": true,
|
|
152
|
+
"wrapper": "collapse",
|
|
153
|
+
"wrapperProps": {
|
|
154
|
+
"suppressIcon": true
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
122
159
|
{
|
|
123
160
|
"key": "IconSetting",
|
|
124
161
|
"name": "图标设置",
|
|
@@ -279,31 +316,43 @@
|
|
|
279
316
|
"key": "onMount",
|
|
280
317
|
"name": "组件首次渲染时",
|
|
281
318
|
"desc": "在组件首次渲染时,执行方法",
|
|
282
|
-
"func": "(params)
|
|
319
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
283
320
|
},
|
|
284
321
|
{
|
|
285
322
|
"key": "onUnmount",
|
|
286
323
|
"name": "组件卸载时",
|
|
287
324
|
"desc": "在组件卸载时,执行方法。",
|
|
288
|
-
"func": "()
|
|
325
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
289
326
|
},
|
|
290
327
|
{
|
|
291
328
|
"key": "processDataSource",
|
|
292
329
|
"name": "数据预处理",
|
|
293
330
|
"desc": "数据渲染前预处理",
|
|
294
|
-
"func": "(data)
|
|
331
|
+
"func": "function processDataSource(data) {\n\t\n}"
|
|
295
332
|
},
|
|
296
333
|
{
|
|
297
334
|
"key": "onDoubleClick",
|
|
298
335
|
"name": "双击事件",
|
|
299
336
|
"desc": "树节点双击事件",
|
|
300
|
-
"func": "(e, rowData)
|
|
337
|
+
"func": "function onDoubleClick(e, rowData) {\n\t\n}"
|
|
301
338
|
},
|
|
302
339
|
{
|
|
303
340
|
"key": "onCheck",
|
|
304
341
|
"name": "复选框选择事件",
|
|
305
342
|
"desc": "点击复选框触发",
|
|
306
|
-
"func": "(checkedKeys, e)
|
|
343
|
+
"func": "function onCheck(checkedKeys, e) {\n\t\n}"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"key": "onSelect",
|
|
347
|
+
"name": "选中事件",
|
|
348
|
+
"desc": "节点选中事件",
|
|
349
|
+
"func": "function onSelect(checkedKeys, e) {\n\t\n}"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"key": "onDrop",
|
|
353
|
+
"name": "拖拽事件",
|
|
354
|
+
"desc": "节点拖拽事件",
|
|
355
|
+
"func": "function onDrop(info, dragInfo) {\n\t\n}"
|
|
307
356
|
}
|
|
308
357
|
]
|
|
309
358
|
}
|
|
@@ -42,7 +42,8 @@ var useRemoteSource = exports.useRemoteSource = function useRemoteSource() {
|
|
|
42
42
|
var PRIVATE_KEYS = ['componentList', 'componentMap'];
|
|
43
43
|
var _default = exports.default = function _default(_ref) {
|
|
44
44
|
var children = _ref.children,
|
|
45
|
-
code = _ref.code
|
|
45
|
+
code = _ref.code,
|
|
46
|
+
debug = _ref.debug;
|
|
46
47
|
var eventBus = (0, _EventBusProvider.useLDEventBus)();
|
|
47
48
|
var _useTodo = (0, _useTodo3.default)(),
|
|
48
49
|
_useTodo2 = (0, _slicedToArray2.default)(_useTodo, 3),
|
|
@@ -57,6 +58,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
57
58
|
_useSetState2 = (0, _slicedToArray2.default)(_useSetState, 2),
|
|
58
59
|
pagePublicResource = _useSetState2[0],
|
|
59
60
|
setPagePublicResource = _useSetState2[1];
|
|
61
|
+
var prevPagePublicResource = (0, _ahooks.usePrevious)(pagePublicResource);
|
|
60
62
|
|
|
61
63
|
/**
|
|
62
64
|
* 组件列表
|
|
@@ -118,6 +120,12 @@ var _default = exports.default = function _default(_ref) {
|
|
|
118
120
|
* return:object
|
|
119
121
|
*/
|
|
120
122
|
var getUrlParams = (0, _ahooks.useMemoizedFn)(function () {});
|
|
123
|
+
(0, _ahooks.useUpdateEffect)(function () {
|
|
124
|
+
eventBus.$publisher(topics.PAGE_PUBLIC_RESOURCE_CHANGED, {
|
|
125
|
+
resource: pagePublicResource,
|
|
126
|
+
prevResource: prevPagePublicResource
|
|
127
|
+
});
|
|
128
|
+
}, [pagePublicResource]);
|
|
121
129
|
var ctx = new Proxy((0, _objectSpread2.default)({
|
|
122
130
|
_register: _register,
|
|
123
131
|
_unregister: _unregister,
|
|
@@ -164,6 +172,7 @@ var _default = exports.default = function _default(_ref) {
|
|
|
164
172
|
value: ctx
|
|
165
173
|
}, /*#__PURE__*/_react.default.createElement(_RemoteSourceProvider.default, {
|
|
166
174
|
code: code,
|
|
167
|
-
runtime: eventBus.runtime
|
|
175
|
+
runtime: eventBus.runtime,
|
|
176
|
+
debug: debug
|
|
168
177
|
}, children));
|
|
169
178
|
};
|