@luck-design-biz/luckda 0.0.25-6 → 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 +26 -8
- package/es/components/LdFormList/index.js +37 -22
- package/es/components/LdGrid/index.js +14 -7
- package/es/components/LdGridForm/index.js +18 -6
- package/es/components/LdTree/index.js +33 -15
- package/es/helper/form.js +15 -8
- package/es/locales/zh-CN.js +16 -10
- package/es/lowcode/constants/api-url.js +120 -32
- package/es/lowcode/constants/event-topics.js +2 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- 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.default.json +10 -5
- package/es/lowcode/engine/meta/dialog.props.json +72 -42
- package/es/lowcode/engine/meta/drawer.props.json +8 -20
- package/es/lowcode/engine/meta/form.props.json +16 -10
- 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 +17 -11
- package/es/lowcode/engine/meta/tabs.props.json +3 -3
- package/es/lowcode/engine/meta/tree.props.default.json +2 -0
- package/es/lowcode/engine/meta/tree.props.json +62 -6
- package/es/lowcode/engine/provider/ContextProvider/index.js +20 -43
- package/es/lowcode/engine/provider/RemoteSourceProvider.js +69 -24
- package/es/lowcode/engine/tools/dataProcess.js +4 -0
- package/es/lowcode/engine/tools/helper.js +2 -3
- package/es/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/es/lowcode/engine/tools/usePageDataStore.js +176 -0
- package/es/lowcode/engine/tools/usePromiseState.js +12 -23
- package/es/lowcode/engine/tools/useTodo.js +20 -10
- package/es/lowcode/painter/DesignOperator.js +12 -23
- package/es/lowcode/painter/DesignToolbar.js +10 -45
- package/es/lowcode/painter/Outline.js +2 -4
- package/es/lowcode/painter/Panel.js +29 -28
- package/es/lowcode/painter/components/ActionBindModal.js +30 -24
- package/es/lowcode/painter/components/AdvancePanel.js +6 -1
- package/es/lowcode/painter/components/AttrsPanel.js +38 -29
- package/es/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- 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 +162 -30
- 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 +14 -17
- package/es/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/es/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/es/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- 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/SerialsSelector.js +4 -2
- 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/panel-section/TreeRootEditor.js +2 -2
- package/es/lowcode/painter/style/action-bind-modal.less +3 -3
- package/es/lowcode/painter/style/design.less +1 -1
- package/es/lowcode/painter/style/page-layout-display.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +1 -1
- package/es/lowcode/painter/style/split-display.less +0 -9
- package/es/lowcode/preview/index.js +4 -2
- package/es/lowcode/view/Canvas.js +6 -7
- package/es/lowcode/view/Page.js +2 -3
- 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/FunctionDesign.js +3 -10
- package/es/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/es/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/es/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/es/lowcode/view/lc-components/Form/FunctionDesign.js +23 -33
- package/es/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/es/lowcode/view/lc-components/Form/index.js +113 -21
- package/es/lowcode/view/lc-components/Form/meta.json +16 -10
- 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/FunctionDesign.js +12 -19
- 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/PageContent/index.js +8 -9
- package/es/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/es/lowcode/view/lc-components/PageHeader/index.js +5 -6
- 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/PageModal/index.js +12 -15
- package/es/lowcode/view/lc-components/Section/FunctionDesign.js +3 -9
- package/es/lowcode/view/lc-components/Section/meta.json +2 -2
- package/es/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- 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 +124 -39
- package/es/lowcode/view/lc-components/Table/meta.json +17 -11
- package/es/lowcode/view/lc-components/Tabs/FunctionDesign.js +10 -17
- 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 +67 -18
- package/es/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/es/lowcode/view/lc-components/Wrapper.js +9 -11
- package/es/services.js +0 -24
- package/es/upload/FilesWall/file.png +0 -0
- package/es/upload/FilesWall/index.js +422 -0
- package/es/upload/FilesWall/index.less +74 -0
- package/es/upload/Form/index.js +2 -1
- package/es/upload/FormItem/index.js +3 -5
- package/es/upload/index.js +2 -1
- package/es/utils/action.js +2 -2
- package/lib/components/LDActions/index.js +7 -9
- package/lib/components/LDActions/index.less +7 -4
- package/lib/components/LdAutoForm/index.js +25 -7
- package/lib/components/LdFormList/index.js +36 -21
- package/lib/components/LdGrid/index.js +14 -7
- package/lib/components/LdGridForm/index.js +16 -4
- package/lib/components/LdTree/index.js +33 -15
- package/lib/helper/form.js +14 -7
- package/lib/locales/zh-CN.js +16 -10
- package/lib/lowcode/constants/api-url.js +123 -32
- package/lib/lowcode/constants/event-topics.js +3 -1
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +4 -2
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +4 -2
- 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.default.json +10 -5
- package/lib/lowcode/engine/meta/dialog.props.json +72 -42
- package/lib/lowcode/engine/meta/drawer.props.json +8 -20
- package/lib/lowcode/engine/meta/form.props.json +16 -10
- 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 +17 -11
- package/lib/lowcode/engine/meta/tabs.props.json +3 -3
- package/lib/lowcode/engine/meta/tree.props.default.json +2 -0
- package/lib/lowcode/engine/meta/tree.props.json +62 -6
- package/lib/lowcode/engine/provider/ContextProvider/index.js +36 -43
- package/lib/lowcode/engine/provider/RemoteSourceProvider.js +68 -23
- package/lib/lowcode/engine/tools/dataProcess.js +4 -0
- package/lib/lowcode/engine/tools/helper.js +2 -3
- package/lib/lowcode/engine/tools/useCanvasRender.js +3 -2
- package/lib/lowcode/engine/tools/usePageDataStore.js +183 -0
- package/lib/lowcode/engine/tools/usePromiseState.js +11 -21
- package/lib/lowcode/engine/tools/useTodo.js +19 -9
- package/lib/lowcode/painter/DesignOperator.js +11 -22
- package/lib/lowcode/painter/DesignToolbar.js +9 -44
- package/lib/lowcode/painter/Outline.js +1 -3
- package/lib/lowcode/painter/Panel.js +28 -27
- package/lib/lowcode/painter/components/ActionBindModal.js +28 -22
- package/lib/lowcode/painter/components/AdvancePanel.js +6 -1
- package/lib/lowcode/painter/components/AttrsPanel.js +37 -28
- package/lib/lowcode/painter/components/DragDrop/DragDropContext.js +1 -1
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +3 -2
- 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 +159 -27
- 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 +13 -16
- package/lib/lowcode/painter/panel-section/ButtonType.js +4 -2
- package/lib/lowcode/painter/panel-section/DataSetSelector.js +4 -1
- package/lib/lowcode/painter/panel-section/FieldsSetting.js +53 -8
- 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/SerialsSelector.js +4 -2
- 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/panel-section/TreeRootEditor.js +2 -2
- package/lib/lowcode/painter/style/action-bind-modal.less +3 -3
- package/lib/lowcode/painter/style/design.less +1 -1
- package/lib/lowcode/painter/style/page-layout-display.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +1 -1
- package/lib/lowcode/painter/style/split-display.less +0 -9
- package/lib/lowcode/preview/index.js +4 -2
- package/lib/lowcode/view/Canvas.js +5 -6
- package/lib/lowcode/view/Page.js +2 -3
- 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/FunctionDesign.js +2 -9
- package/lib/lowcode/view/lc-components/Dialog/index.js +114 -19
- package/lib/lowcode/view/lc-components/Dialog/meta.json +65 -42
- package/lib/lowcode/view/lc-components/Drawer/meta.json +8 -20
- package/lib/lowcode/view/lc-components/Form/FunctionDesign.js +20 -31
- package/lib/lowcode/view/lc-components/Form/FunctionPreview.js +8 -1
- package/lib/lowcode/view/lc-components/Form/index.js +110 -18
- package/lib/lowcode/view/lc-components/Form/meta.json +16 -10
- 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/FunctionDesign.js +11 -18
- 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/PageContent/index.js +7 -8
- package/lib/lowcode/view/lc-components/PageFooter/index.js +2 -5
- package/lib/lowcode/view/lc-components/PageHeader/index.js +4 -5
- 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/PageModal/index.js +11 -14
- package/lib/lowcode/view/lc-components/Section/FunctionDesign.js +2 -8
- package/lib/lowcode/view/lc-components/Section/meta.json +2 -2
- package/lib/lowcode/view/lc-components/Split/FunctionDesign.js +19 -20
- 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 +123 -38
- package/lib/lowcode/view/lc-components/Table/meta.json +17 -11
- package/lib/lowcode/view/lc-components/Tabs/FunctionDesign.js +11 -18
- 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 +65 -16
- package/lib/lowcode/view/lc-components/Tree/meta.json +62 -7
- package/lib/lowcode/view/lc-components/Wrapper.js +8 -10
- package/lib/services.js +0 -25
- package/lib/upload/FilesWall/file.png +0 -0
- package/lib/upload/FilesWall/index.js +429 -0
- package/lib/upload/FilesWall/index.less +74 -0
- package/lib/upload/Form/index.js +2 -1
- package/lib/upload/FormItem/index.js +3 -5
- package/lib/upload/index.js +8 -1
- package/lib/utils/action.js +2 -2
- package/package.json +5 -4
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
{
|
|
39
39
|
"key": "saveTitle",
|
|
40
40
|
"name": "保存按钮标题",
|
|
41
|
-
"type": "
|
|
41
|
+
"type": "_I18nInput",
|
|
42
42
|
"default": "保存"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
{
|
|
126
126
|
"key": "name",
|
|
127
127
|
"name": "区块名称",
|
|
128
|
-
"type": "
|
|
128
|
+
"type": "_I18nInput"
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
"key": "serial",
|
|
@@ -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": {
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
{
|
|
544
544
|
"key": "zipName",
|
|
545
545
|
"name": "压缩包命名",
|
|
546
|
-
"type": "
|
|
546
|
+
"type": "_I18nInput"
|
|
547
547
|
},
|
|
548
548
|
{
|
|
549
549
|
"key": "uploadUrl",
|
|
@@ -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
|
}
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"moreText": "操作",
|
|
67
67
|
"todoList": []
|
|
68
68
|
},
|
|
69
|
-
"defaultCode": "function todo(
|
|
69
|
+
"defaultCode": "function todo() { \n \n}",
|
|
70
70
|
"wrapper": "collapse"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"moreText": "更多操作",
|
|
116
116
|
"todoList": []
|
|
117
117
|
},
|
|
118
|
-
"defaultCode": "function onActionClick(data) {\n\n}",
|
|
118
|
+
"defaultCode": "function onActionClick(data, rowIndex, params) {\n\n}",
|
|
119
119
|
"wrapper": "collapse",
|
|
120
120
|
"wrapperProps": {
|
|
121
121
|
"suppressIcon": true
|
|
@@ -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
|
}
|
|
@@ -15,9 +15,11 @@
|
|
|
15
15
|
"showLine": false,
|
|
16
16
|
"treeNodeTitle": "sname",
|
|
17
17
|
"defaultExpandDeep": "0",
|
|
18
|
+
"cancelSelect": true,
|
|
18
19
|
"showIcon": true,
|
|
19
20
|
"treeNodeIcon": [],
|
|
20
21
|
"showRootAdd": true,
|
|
22
|
+
"onlyRoot": false,
|
|
21
23
|
"rootAddSetting": {},
|
|
22
24
|
"actions": {
|
|
23
25
|
"todoList": []
|