@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
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
export var COMPONENT_MOUNT = 'component-mount';
|
|
5
5
|
// 组件的卸载事件
|
|
6
6
|
export var COMPONENT_UNMOUNT = 'component-unmount';
|
|
7
|
+
// 页面公共资源变化事件
|
|
8
|
+
export var PAGE_PUBLIC_RESOURCE_CHANGED = 'page-pubilc-resource-changed';
|
|
7
9
|
|
|
8
10
|
/******************************** 通用Topic结束 ********************************/
|
|
9
11
|
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"key": "onMount",
|
|
22
22
|
"name": "组件首次渲染时",
|
|
23
23
|
"desc": "在组件首次渲染时,执行方法",
|
|
24
|
-
"func": "(params)
|
|
24
|
+
"func": "function onMount(params) {\n\t\n}"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"key": "onUnmount",
|
|
28
28
|
"name": "组件卸载时",
|
|
29
29
|
"desc": "在组件卸载时,执行方法。",
|
|
30
|
-
"func": "(params)
|
|
30
|
+
"func": "function onUnmount(params) {\n\t\n}"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"key": "onClick",
|
|
34
34
|
"name": "点击事件",
|
|
35
35
|
"desc": "点击文本时,执行方法",
|
|
36
|
-
"func": "(e)
|
|
36
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
39
39
|
}
|
|
@@ -108,19 +108,19 @@
|
|
|
108
108
|
"key": "onMount",
|
|
109
109
|
"name": "组件首次渲染时",
|
|
110
110
|
"desc": "在组件首次渲染时,执行方法",
|
|
111
|
-
"func": "(
|
|
111
|
+
"func": "function onMount() {\n\t\n}"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"key": "onUnmount",
|
|
115
115
|
"name": "组件卸载时",
|
|
116
116
|
"desc": "在组件卸载时,执行方法。",
|
|
117
|
-
"func": "(
|
|
117
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"key": "onClick",
|
|
121
121
|
"name": "点击事件",
|
|
122
122
|
"desc": "点击文本时,执行方法",
|
|
123
|
-
"func": "(e)
|
|
123
|
+
"func": "function onClick(e) {\n\t\n}"
|
|
124
124
|
}
|
|
125
125
|
]
|
|
126
126
|
}
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
16
16
|
"icon": "icon-layout"
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"component": "PageLayout",
|
|
20
|
+
"name": "页面布局容器",
|
|
21
|
+
"desc": "页面布局容器一般用于构建页面时根节点的基础布局,分为左右布局、左上下布局以及左中右布局。",
|
|
22
|
+
"icon": "icon-pagelayout"
|
|
23
|
+
},
|
|
18
24
|
{
|
|
19
25
|
"component": "Section",
|
|
20
26
|
"name": "分组",
|
|
@@ -119,31 +119,31 @@
|
|
|
119
119
|
"key": "onMount",
|
|
120
120
|
"name": "组件首次渲染时",
|
|
121
121
|
"desc": "在组件首次渲染时,执行方法",
|
|
122
|
-
"func": "()
|
|
122
|
+
"func": "function onMount() {\n\t\n}"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
125
|
"key": "onUnmount",
|
|
126
126
|
"name": "组件卸载时",
|
|
127
127
|
"desc": "在组件卸载时,执行方法。",
|
|
128
|
-
"func": "()
|
|
128
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"key": "onOpen",
|
|
132
132
|
"name": "对话框打开时",
|
|
133
133
|
"desc": "在对话框打开时,执行方法",
|
|
134
|
-
"func": "()
|
|
134
|
+
"func": "function onOpen() {\n\t\n}"
|
|
135
135
|
},
|
|
136
136
|
{
|
|
137
137
|
"key": "onClose",
|
|
138
138
|
"name": "对话框关闭时",
|
|
139
139
|
"desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
|
|
140
|
-
"func": "()
|
|
140
|
+
"func": "function onClose() {\n\t\n}"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"key": "onOk",
|
|
144
144
|
"name": "确定按钮点击",
|
|
145
145
|
"desc": "点击确定按钮时,执行方法",
|
|
146
|
-
"func": "()
|
|
146
|
+
"func": "function onOk() {\n\t\n}"
|
|
147
147
|
}
|
|
148
148
|
]
|
|
149
149
|
}
|
|
@@ -100,43 +100,31 @@
|
|
|
100
100
|
"key": "onMount",
|
|
101
101
|
"name": "组件首次渲染时",
|
|
102
102
|
"desc": "在组件首次渲染时,执行方法",
|
|
103
|
-
"func": "(
|
|
103
|
+
"func": "function onMount() {\n\t\n}"
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
"key": "onUnmount",
|
|
107
107
|
"name": "组件卸载时",
|
|
108
108
|
"desc": "在组件卸载时,执行方法。",
|
|
109
|
-
"func": "(
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
"key": "onMount",
|
|
113
|
-
"name": "组件首次渲染时",
|
|
114
|
-
"desc": "在组件首次渲染时,执行方法",
|
|
115
|
-
"func": "(params)=>{\n\t\n}"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"key": "onUnmount",
|
|
119
|
-
"name": "组件卸载时",
|
|
120
|
-
"desc": "在组件卸载时,执行方法。",
|
|
121
|
-
"func": "(params)=>{\n\t\n}"
|
|
109
|
+
"func": "function onUnmount() {\n\t\n}"
|
|
122
110
|
},
|
|
123
111
|
{
|
|
124
112
|
"key": "onOpen",
|
|
125
113
|
"name": "抽屉打开时",
|
|
126
114
|
"desc": "在抽屉打开时,执行方法",
|
|
127
|
-
"func": "(
|
|
115
|
+
"func": "function onOpen() {\n\t\n}"
|
|
128
116
|
},
|
|
129
117
|
{
|
|
130
118
|
"key": "onClose",
|
|
131
119
|
"name": "抽屉关闭时",
|
|
132
120
|
"desc": "在抽屉打开时,执行方法,promise反馈false无法截断关闭",
|
|
133
|
-
"func": "(
|
|
121
|
+
"func": "function onClose() {\n\t\n}"
|
|
134
122
|
},
|
|
135
123
|
{
|
|
136
|
-
"key": "
|
|
137
|
-
"name": "
|
|
138
|
-
"desc": "
|
|
139
|
-
"func": "(
|
|
124
|
+
"key": "onOk",
|
|
125
|
+
"name": "确定按钮点击",
|
|
126
|
+
"desc": "点击确定按钮时,执行方法",
|
|
127
|
+
"func": "function onOk() {\n\t\n}"
|
|
140
128
|
}
|
|
141
129
|
]
|
|
142
130
|
}
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
"name": "格式化数据",
|
|
255
255
|
"desc": "格式化单表提交数据",
|
|
256
256
|
"type": "_JSEditor",
|
|
257
|
-
"defaultCode": "function dataSourceFormat(values, submitData) { \n return submitData; \n}",
|
|
257
|
+
"defaultCode": "function dataSourceFormat(dataSetKey, values, submitData) { \n return { [dataSetKey]: submitData }; \n}",
|
|
258
258
|
"mustConfirm": true,
|
|
259
259
|
"wrapper": "collapse",
|
|
260
260
|
"wrapperProps": {
|
|
@@ -612,37 +612,43 @@
|
|
|
612
612
|
"key": "onMount",
|
|
613
613
|
"name": "组件首次渲染时",
|
|
614
614
|
"desc": "在组件首次渲染时,执行方法",
|
|
615
|
-
"func": "(instance)
|
|
615
|
+
"func": "function onMount(instance) {\n\t\n}"
|
|
616
616
|
},
|
|
617
617
|
{
|
|
618
618
|
"key": "beforeSave",
|
|
619
619
|
"name": "保存前置事件",
|
|
620
620
|
"desc": "保存前置事件,promise,返回false取消执行",
|
|
621
|
-
"func": "(values, data)
|
|
621
|
+
"func": "function beforeSave(values, data) {\n return values; \n}"
|
|
622
622
|
},
|
|
623
623
|
{
|
|
624
624
|
"key": "onSaveCallback",
|
|
625
625
|
"name": "保存后回调",
|
|
626
626
|
"desc": "保存后回调事件",
|
|
627
|
-
"func": "(success, mainKey, res)
|
|
627
|
+
"func": "function onSaveCallback(success, mainKey, res) {\n\t\n}"
|
|
628
628
|
},
|
|
629
629
|
{
|
|
630
630
|
"key": "onUnmount",
|
|
631
631
|
"name": "组件卸载时",
|
|
632
632
|
"desc": "在组件卸载时,执行方法",
|
|
633
|
-
"func": "(instance)
|
|
633
|
+
"func": "function onUnmount(instance) {\n\t\n}"
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
636
|
"key": "onValueChange",
|
|
637
637
|
"name": "参数变化的事件",
|
|
638
638
|
"desc": "参数变化时,执行方法",
|
|
639
|
-
"func": "(change, data)
|
|
639
|
+
"func": "function onValueChange(change, data) {\n\t\n}"
|
|
640
640
|
},
|
|
641
641
|
{
|
|
642
642
|
"key": "onChildChange",
|
|
643
643
|
"name": "表单内容发生改变时的回调",
|
|
644
644
|
"desc": "表单内容发生改变时的回调",
|
|
645
|
-
"func": "(instance)
|
|
645
|
+
"func": "function onChildChange(instance) {\n\t\n}"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"key": "onPagePublicResourceChanged",
|
|
649
|
+
"name": "页面共享资源变化后",
|
|
650
|
+
"desc": "当页面共享资源发生变化后(pagePublicResourceChanged),执行方法",
|
|
651
|
+
"func": "function onPagePublicResourceChanged(resource, instance) {\n\t\n}"
|
|
646
652
|
}
|
|
647
653
|
]
|
|
648
654
|
}
|
|
@@ -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
|
}
|