@luck-design-biz/luckda 0.0.22-4 → 0.0.22-5
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/LICENSE +21 -21
- package/README.md +40 -40
- package/es/components/Builder/index.js +1 -1
- package/es/components/LdGrid/index.js +4 -4
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/action.js +6 -6
- package/es/helper/form.js +14 -14
- package/es/helper/index.less +7 -7
- package/es/index.js +1 -0
- package/es/lowcode/constants/api-url.js +3 -0
- package/es/lowcode/constants/event-topics.js +31 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +60 -0
- package/es/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/Strategy.js +21 -0
- package/es/lowcode/engine/factory/panel-item-factory/StringStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +32 -0
- package/es/lowcode/engine/factory/panel-item-factory/index.js +40 -0
- package/es/lowcode/engine/meta/box.props.default.json +10 -0
- package/es/lowcode/engine/meta/box.props.json +40 -0
- package/es/lowcode/engine/meta/button.props.default.json +16 -0
- package/es/lowcode/engine/meta/button.props.json +117 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/es/lowcode/engine/meta/cardlist.props.json +144 -0
- package/es/lowcode/engine/meta/components-list.json +128 -0
- package/es/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/es/lowcode/engine/meta/dialog.props.json +121 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/es/lowcode/engine/meta/drawer.props.json +144 -0
- package/es/lowcode/engine/meta/form.props.default.json +13 -0
- package/es/lowcode/engine/meta/form.props.json +117 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/es/lowcode/engine/meta/iframe.props.json +32 -0
- package/es/lowcode/engine/meta/image.props.default.json +16 -0
- package/es/lowcode/engine/meta/image.props.json +114 -0
- package/es/lowcode/engine/meta/imex.props.default.json +12 -0
- package/es/lowcode/engine/meta/imex.props.json +82 -0
- package/es/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/es/lowcode/engine/meta/jsx.props.json +25 -0
- package/es/lowcode/engine/meta/layout.props.default.json +13 -0
- package/es/lowcode/engine/meta/layout.props.json +108 -0
- package/es/lowcode/engine/meta/link.props.default.json +14 -0
- package/es/lowcode/engine/meta/link.props.json +112 -0
- package/es/lowcode/engine/meta/section.props.default.json +17 -0
- package/es/lowcode/engine/meta/section.props.json +108 -0
- package/es/lowcode/engine/meta/split.props.default.json +13 -0
- package/es/lowcode/engine/meta/split.props.json +72 -0
- package/es/lowcode/engine/meta/table.props.default.json +18 -0
- package/es/lowcode/engine/meta/table.props.json +162 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/es/lowcode/engine/meta/tabs.props.json +141 -0
- package/es/lowcode/engine/meta/text.props.default.json +12 -0
- package/es/lowcode/engine/meta/text.props.json +66 -0
- package/es/lowcode/engine/meta/tree.props.default.json +17 -0
- package/es/lowcode/engine/meta/tree.props.json +157 -0
- package/es/lowcode/engine/provider/ContextProvider.js +165 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +263 -0
- package/es/lowcode/engine/tools/helper.js +4 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +3 -0
- package/es/lowcode/painter/Components.js +104 -0
- package/es/lowcode/painter/Design.js +210 -0
- package/es/lowcode/painter/I18n.js +202 -0
- package/es/lowcode/painter/Outline.js +208 -0
- package/es/lowcode/painter/Panel.js +195 -0
- package/es/lowcode/painter/Ribbon.js +142 -0
- package/es/lowcode/painter/components/PanelItem.js +35 -0
- package/es/lowcode/painter/components/PopConfirm.js +20 -0
- package/es/lowcode/painter/components/PopForm.js +71 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/components/SortBox.js +92 -0
- package/es/lowcode/painter/components/TabEditor.js +88 -0
- package/es/lowcode/painter/components/code-editor/BaseEditor.js +49 -0
- package/es/lowcode/painter/components/code-editor/JSEditor.js +77 -0
- package/es/lowcode/painter/components/code-editor/index.js +2 -0
- package/es/lowcode/painter/index.js +45 -0
- package/es/lowcode/painter/panel-section/Icon.js +48 -0
- package/es/lowcode/painter/panel-section/IconSelector.js +139 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +140 -0
- package/es/lowcode/painter/panel-section/TabItems.js +238 -0
- package/es/lowcode/painter/services/I18n.js +85 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +82 -0
- package/es/lowcode/painter/style/icon-selector.less +22 -0
- package/es/lowcode/painter/style/icon.less +11 -0
- package/es/lowcode/painter/style/index.less +6 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +28 -0
- package/es/lowcode/painter/style/panel-item.less +22 -0
- package/es/lowcode/painter/style/panel.less +119 -0
- package/es/lowcode/painter/style/pop-confirm.less +10 -0
- package/es/lowcode/painter/style/pop-form.less +20 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +5 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/painter/style/tabeditor.less +90 -0
- package/es/lowcode/painter/style/tabitems.less +90 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +251 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +24 -0
- package/es/lowcode/view/lc-components/Box/meta.json +40 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/Button/meta.json +117 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +61 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +62 -0
- package/es/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/es/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Form/meta.json +117 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/meta.json +114 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/es/lowcode/view/lc-components/Layout/index.js +98 -0
- package/es/lowcode/view/lc-components/Layout/index.less +9 -0
- package/es/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Link/meta.json +112 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Section/meta.json +108 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Split/meta.json +72 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Table/meta.json +162 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Text/meta.json +66 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/es/lowcode/view/lc-components/Wrapper.js +52 -0
- package/es/lowcode/view/style/canvas.less +5 -0
- package/es/lowcode/view/style/loading.less +84 -0
- package/es/lowcode/view/style/page.less +5 -0
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +15 -15
- package/es/utils/form.js +22 -22
- package/es/utils/grid.js +2 -2
- package/lib/components/Builder/index.js +1 -1
- package/lib/components/LdGrid/index.js +4 -4
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/action.js +6 -6
- package/lib/helper/form.js +14 -14
- package/lib/helper/index.less +7 -7
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +9 -0
- package/lib/lowcode/constants/event-topics.js +37 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/factory/panel-item-factory/DynamicStrategy.js +73 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SegmentedStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SelectStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/Strategy.js +27 -0
- package/lib/lowcode/engine/factory/panel-item-factory/StringStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/SwitchStrategy.js +38 -0
- package/lib/lowcode/engine/factory/panel-item-factory/index.js +46 -0
- package/lib/lowcode/engine/meta/box.props.default.json +10 -0
- package/lib/lowcode/engine/meta/box.props.json +40 -0
- package/lib/lowcode/engine/meta/button.props.default.json +16 -0
- package/lib/lowcode/engine/meta/button.props.json +117 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +18 -0
- package/lib/lowcode/engine/meta/cardlist.props.json +144 -0
- package/lib/lowcode/engine/meta/components-list.json +128 -0
- package/lib/lowcode/engine/meta/dialog.props.default.json +19 -0
- package/lib/lowcode/engine/meta/dialog.props.json +121 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +18 -0
- package/lib/lowcode/engine/meta/drawer.props.json +144 -0
- package/lib/lowcode/engine/meta/form.props.default.json +13 -0
- package/lib/lowcode/engine/meta/form.props.json +117 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +11 -0
- package/lib/lowcode/engine/meta/iframe.props.json +32 -0
- package/lib/lowcode/engine/meta/image.props.default.json +16 -0
- package/lib/lowcode/engine/meta/image.props.json +114 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +12 -0
- package/lib/lowcode/engine/meta/imex.props.json +82 -0
- package/lib/lowcode/engine/meta/js-editor/auto-complete.json +29 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +10 -0
- package/lib/lowcode/engine/meta/jsx.props.json +25 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +13 -0
- package/lib/lowcode/engine/meta/layout.props.json +108 -0
- package/lib/lowcode/engine/meta/link.props.default.json +14 -0
- package/lib/lowcode/engine/meta/link.props.json +112 -0
- package/lib/lowcode/engine/meta/section.props.default.json +17 -0
- package/lib/lowcode/engine/meta/section.props.json +108 -0
- package/lib/lowcode/engine/meta/split.props.default.json +13 -0
- package/lib/lowcode/engine/meta/split.props.json +72 -0
- package/lib/lowcode/engine/meta/table.props.default.json +18 -0
- package/lib/lowcode/engine/meta/table.props.json +162 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +18 -0
- package/lib/lowcode/engine/meta/tabs.props.json +141 -0
- package/lib/lowcode/engine/meta/text.props.default.json +12 -0
- package/lib/lowcode/engine/meta/text.props.json +66 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +17 -0
- package/lib/lowcode/engine/meta/tree.props.json +157 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +173 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +277 -0
- package/lib/lowcode/engine/tools/helper.js +11 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +20 -0
- package/lib/lowcode/painter/Components.js +112 -0
- package/lib/lowcode/painter/Design.js +218 -0
- package/lib/lowcode/painter/I18n.js +209 -0
- package/lib/lowcode/painter/Outline.js +216 -0
- package/lib/lowcode/painter/Panel.js +203 -0
- package/lib/lowcode/painter/Ribbon.js +150 -0
- package/lib/lowcode/painter/components/PanelItem.js +41 -0
- package/lib/lowcode/painter/components/PopConfirm.js +26 -0
- package/lib/lowcode/painter/components/PopForm.js +77 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/components/SortBox.js +99 -0
- package/lib/lowcode/painter/components/TabEditor.js +94 -0
- package/lib/lowcode/painter/components/code-editor/BaseEditor.js +57 -0
- package/lib/lowcode/painter/components/code-editor/JSEditor.js +88 -0
- package/lib/lowcode/painter/components/code-editor/index.js +20 -0
- package/lib/lowcode/painter/index.js +54 -0
- package/lib/lowcode/painter/panel-section/Icon.js +54 -0
- package/lib/lowcode/painter/panel-section/IconSelector.js +146 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +148 -0
- package/lib/lowcode/painter/panel-section/TabItems.js +246 -0
- package/lib/lowcode/painter/services/I18n.js +95 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +82 -0
- package/lib/lowcode/painter/style/icon-selector.less +22 -0
- package/lib/lowcode/painter/style/icon.less +11 -0
- package/lib/lowcode/painter/style/index.less +6 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +28 -0
- package/lib/lowcode/painter/style/panel-item.less +22 -0
- package/lib/lowcode/painter/style/panel.less +119 -0
- package/lib/lowcode/painter/style/pop-confirm.less +10 -0
- package/lib/lowcode/painter/style/pop-form.less +20 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +5 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/painter/style/tabeditor.less +90 -0
- package/lib/lowcode/painter/style/tabitems.less +90 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +259 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +32 -0
- package/lib/lowcode/view/lc-components/Box/meta.json +40 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/Button/meta.json +117 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/CardList/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +69 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Dialog/meta.json +121 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +70 -0
- package/lib/lowcode/view/lc-components/Drawer/meta.json +144 -0
- package/lib/lowcode/view/lc-components/Drawer/style.less +7 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Form/meta.json +117 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/meta.json +32 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/meta.json +82 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/meta.json +114 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/meta.json +25 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +106 -0
- package/lib/lowcode/view/lc-components/Layout/index.less +9 -0
- package/lib/lowcode/view/lc-components/Layout/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Link/meta.json +112 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Section/meta.json +108 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Split/meta.json +72 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Table/meta.json +162 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Tabs/meta.json +141 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Text/meta.json +66 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Tree/meta.json +157 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +59 -0
- package/lib/lowcode/view/style/canvas.less +5 -0
- package/lib/lowcode/view/style/loading.less +84 -0
- package/lib/lowcode/view/style/page.less +5 -0
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +15 -15
- package/lib/utils/form.js +22 -22
- package/lib/utils/grid.js +2 -2
- package/lowcode.js +1 -0
- package/package.json +163 -151
- package/upload.js +1 -1
- package/utils.js +1 -1
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Form",
|
|
3
|
+
"name": "表单",
|
|
4
|
+
"desc": "表单组件是用于收集、验证和提交用户输入数据的重要组件。",
|
|
5
|
+
"icon": "icon-form",
|
|
6
|
+
"group": "advance",
|
|
7
|
+
"groupName": "高级",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "dateset",
|
|
18
|
+
"name": "首次数据自动加载",
|
|
19
|
+
"desc": "选择系统中的可用树形数据集",
|
|
20
|
+
"type": "_DataSetSelector"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "type",
|
|
24
|
+
"name": "表单类型",
|
|
25
|
+
"desc": "表单存储数据的形式",
|
|
26
|
+
"type": "radio",
|
|
27
|
+
"options": [
|
|
28
|
+
{
|
|
29
|
+
"label": "表单",
|
|
30
|
+
"value": "auto"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"label": "表格",
|
|
34
|
+
"value": "grid"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"label": "单元格可写表格",
|
|
38
|
+
"value": "writer"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"default": "auto"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "header",
|
|
45
|
+
"name": "表头",
|
|
46
|
+
"desc": "单个子单表表头,不设置就没有子表头",
|
|
47
|
+
"type": "radio",
|
|
48
|
+
"options": [
|
|
49
|
+
{
|
|
50
|
+
"label": "无",
|
|
51
|
+
"value": "none"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "收缩框",
|
|
55
|
+
"value": "collapse"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "流式收缩框",
|
|
59
|
+
"value": "collapseFollow"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"label": "分隔线",
|
|
63
|
+
"value": "divider"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "saveBtnTitle",
|
|
69
|
+
"name": "保存按钮的名称",
|
|
70
|
+
"desc": "配置保存按钮的名称",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"default": "保存"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "defaultColumnCount",
|
|
76
|
+
"name": "默认列数",
|
|
77
|
+
"desc": "表示表格的默认列数",
|
|
78
|
+
"type": "number",
|
|
79
|
+
"default": 4
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"key": "defaultLength",
|
|
83
|
+
"name": "默认长度",
|
|
84
|
+
"desc": "表示通用的默认长度,可背单字段设置的长度覆盖",
|
|
85
|
+
"type": "number"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"style": {},
|
|
89
|
+
"advance": {
|
|
90
|
+
"events": [
|
|
91
|
+
{
|
|
92
|
+
"key": "onMount",
|
|
93
|
+
"name": "组件首次渲染时",
|
|
94
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
95
|
+
"func": "(params)=>{\n\t\n}"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"key": "onUnmount",
|
|
99
|
+
"name": "组件卸载时",
|
|
100
|
+
"desc": "在组件卸载时,执行方法。",
|
|
101
|
+
"func": "(params)=>{\n\t\n}"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"key": "beforeSave",
|
|
105
|
+
"name": "保存前置事件",
|
|
106
|
+
"desc": "保存前置事件,promise,返回false取消执行",
|
|
107
|
+
"func": "(data, params)=>{\n\t\n}"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"key": "onSaveCallback",
|
|
111
|
+
"name": "保存后回调",
|
|
112
|
+
"desc": "保存后回调事件",
|
|
113
|
+
"func": "(params)=>{\n\t\n}"
|
|
114
|
+
}
|
|
115
|
+
]
|
|
116
|
+
}
|
|
117
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Iframe",
|
|
3
|
+
"name": "Iframe",
|
|
4
|
+
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
5
|
+
"icon": "icon-iframe",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "path",
|
|
18
|
+
"name": "网页路径",
|
|
19
|
+
"desc": "iframe打开的网页路径",
|
|
20
|
+
"type": "string"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "supportFullScreen",
|
|
24
|
+
"name": "支持全屏",
|
|
25
|
+
"desc": "是否支持全屏展示",
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"default": true
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"style": {},
|
|
31
|
+
"advance": {}
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Image",
|
|
3
|
+
"name": "图片",
|
|
4
|
+
"icon": "icon-image",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"style": {},
|
|
10
|
+
"width": 350,
|
|
11
|
+
"height": 200,
|
|
12
|
+
"autoWidth": false,
|
|
13
|
+
"fit": "fill",
|
|
14
|
+
"roundRadios": "0",
|
|
15
|
+
"preview": false
|
|
16
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Image",
|
|
3
|
+
"name": "图片",
|
|
4
|
+
"icon": "icon-image",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "src",
|
|
18
|
+
"name": "图片地址",
|
|
19
|
+
"desc": "图片地址",
|
|
20
|
+
"type": "_ImageUploder"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "width",
|
|
24
|
+
"name": "宽度",
|
|
25
|
+
"desc": "图片宽度",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 350
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "height",
|
|
31
|
+
"name": "高度",
|
|
32
|
+
"desc": "图片高度",
|
|
33
|
+
"type": "number",
|
|
34
|
+
"default": 200
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "autoWidth",
|
|
38
|
+
"name": "宽度自适应",
|
|
39
|
+
"desc": "是否图片宽度自适应",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "fit",
|
|
45
|
+
"name": "摆放方式",
|
|
46
|
+
"desc": "图片摆放方式",
|
|
47
|
+
"type": "select",
|
|
48
|
+
"options": [
|
|
49
|
+
{
|
|
50
|
+
"label": "铺满",
|
|
51
|
+
"value": "fill"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"label": "适合",
|
|
55
|
+
"value": "fit"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"label": "拉伸",
|
|
59
|
+
"value": "Stretch"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"default": "fill"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "roundRadios",
|
|
66
|
+
"name": "圆角",
|
|
67
|
+
"desc": "图片四周圆角大小,可设置“0 1px 2px 3px",
|
|
68
|
+
"type": "string",
|
|
69
|
+
"default": "0"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"key": "title",
|
|
73
|
+
"name": "标题",
|
|
74
|
+
"desc": "图片html原生title",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"key": "alt",
|
|
79
|
+
"name": "替代文本",
|
|
80
|
+
"desc": "图片加载失败的占位文字",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "preview",
|
|
85
|
+
"name": "开启图片预览",
|
|
86
|
+
"desc": "是否开启点击打开图片预览",
|
|
87
|
+
"type": "boolean",
|
|
88
|
+
"default": false
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"style": {},
|
|
92
|
+
"advance": {
|
|
93
|
+
"events": [
|
|
94
|
+
{
|
|
95
|
+
"key": "onMount",
|
|
96
|
+
"name": "组件首次渲染时",
|
|
97
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
98
|
+
"func": "(params)=>{\n\t\n}"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "onUnmount",
|
|
102
|
+
"name": "组件卸载时",
|
|
103
|
+
"desc": "在组件卸载时,执行方法。",
|
|
104
|
+
"func": "(params)=>{\n\t\n}"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"key": "onClick",
|
|
108
|
+
"name": "点击事件",
|
|
109
|
+
"desc": "点击文本时,执行方法",
|
|
110
|
+
"func": "(e)=>{\n\t\n}"
|
|
111
|
+
}
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "ImEx",
|
|
3
|
+
"name": "导入导出",
|
|
4
|
+
"desc": "支持导入导出数据的按钮组件。",
|
|
5
|
+
"icon": "icon-imex",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "type",
|
|
18
|
+
"name": "类型",
|
|
19
|
+
"desc": "选择导入功能或者导出功能",
|
|
20
|
+
"type": "radio",
|
|
21
|
+
"options": [
|
|
22
|
+
{
|
|
23
|
+
"label": "导入",
|
|
24
|
+
"value": "import"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "导出",
|
|
28
|
+
"value": "export"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"default": "export"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"key": "title",
|
|
35
|
+
"name": "标题",
|
|
36
|
+
"desc": "按钮上显示的文字",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"default": "导入|导出"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "templateId",
|
|
42
|
+
"name": "模板id",
|
|
43
|
+
"desc": "在导入导出模块配置的模板id",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"key": "apiUrl",
|
|
48
|
+
"name": "接口地址",
|
|
49
|
+
"desc": "定制的导入导出接口",
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"style": {},
|
|
54
|
+
"advance": {
|
|
55
|
+
"events": [
|
|
56
|
+
{
|
|
57
|
+
"key": "onMount",
|
|
58
|
+
"name": "组件首次渲染时",
|
|
59
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
60
|
+
"func": "(params)=>{\n\t\n}"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "onUnmount",
|
|
64
|
+
"name": "组件卸载时",
|
|
65
|
+
"desc": "在组件卸载时,执行方法。",
|
|
66
|
+
"func": "(params)=>{\n\t\n}"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "beforeExe",
|
|
70
|
+
"name": "操作执行前",
|
|
71
|
+
"desc": "在导入或导出执行前,执行方法,promise反回false截断执行",
|
|
72
|
+
"func": "(params)=>{\n\t\n}"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"key": "afterExe",
|
|
76
|
+
"name": "操作执行后",
|
|
77
|
+
"desc": "在导入或导出执行后,执行方法",
|
|
78
|
+
"func": "(params)=>{\n\t\n}"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name":"Botton",
|
|
4
|
+
"triggerWord": "btn",
|
|
5
|
+
"completions": [
|
|
6
|
+
{
|
|
7
|
+
"label": "onClick",
|
|
8
|
+
"kind": "Method",
|
|
9
|
+
"insertText": "onClick(event=>{\n\t\n})"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"name":"Context",
|
|
15
|
+
"triggerWord": "ctx",
|
|
16
|
+
"completions": [
|
|
17
|
+
{
|
|
18
|
+
"label": "customMethod",
|
|
19
|
+
"kind": "Method",
|
|
20
|
+
"insertText": "customMethod((btn,event)=>{\n\t\n})"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"label": "customProperty",
|
|
24
|
+
"kind": "Property",
|
|
25
|
+
"insertText": "customProperty"
|
|
26
|
+
}
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "JSX",
|
|
3
|
+
"name": "jsx代码段",
|
|
4
|
+
"desc": "通过编写JSX代码实现React组件的动态渲染。",
|
|
5
|
+
"icon": "icon-jsx",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"desc": "唯一标识",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "render",
|
|
18
|
+
"name": "编辑jsx代码",
|
|
19
|
+
"desc": "可执行的jsx代码",
|
|
20
|
+
"type": "_CodeEditor"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"style": {},
|
|
24
|
+
"advance": {}
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Layout",
|
|
3
|
+
"name": "布局容器",
|
|
4
|
+
"icon": "icon-layout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"style": {},
|
|
10
|
+
"columnRatio": "12:3:9",
|
|
11
|
+
"columnSpacing": 16,
|
|
12
|
+
"lineSpacing": 16
|
|
13
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Layout",
|
|
3
|
+
"name": "布局容器",
|
|
4
|
+
"icon": "icon-layout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"props": [
|
|
10
|
+
{
|
|
11
|
+
"key": "id",
|
|
12
|
+
"name": "唯一标识",
|
|
13
|
+
"desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"disabled": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"key": "columnRatio",
|
|
19
|
+
"name": "#列比例",
|
|
20
|
+
"desc": "表示列布局所占比例的比率",
|
|
21
|
+
"type": "_LayoutRatio",
|
|
22
|
+
"default": "12:3:9"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"key": "columnSpacing",
|
|
26
|
+
"name": "列间距",
|
|
27
|
+
"desc": "表示列之间的间距或距离",
|
|
28
|
+
"type": "select",
|
|
29
|
+
"options": [
|
|
30
|
+
{
|
|
31
|
+
"label": 24,
|
|
32
|
+
"value": 24
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": 20,
|
|
36
|
+
"value": 20
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"label": 16,
|
|
40
|
+
"value": 16
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": 12,
|
|
44
|
+
"value": 12
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": 8,
|
|
48
|
+
"value": 8
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"label": 0,
|
|
52
|
+
"value": 0
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"default": 16
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "lineSpacing",
|
|
59
|
+
"name": "行间距",
|
|
60
|
+
"desc": "表示行之间的间距或距离",
|
|
61
|
+
"type": "select",
|
|
62
|
+
"options": [
|
|
63
|
+
{
|
|
64
|
+
"label": 24,
|
|
65
|
+
"value": 24
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": 20,
|
|
69
|
+
"value": 20
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": 16,
|
|
73
|
+
"value": 16
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"label": 12,
|
|
77
|
+
"value": 12
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"label": 8,
|
|
81
|
+
"value": 8
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"label": 0,
|
|
85
|
+
"value": 0
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"default": 16
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"style": {},
|
|
92
|
+
"advance": {
|
|
93
|
+
"events": [
|
|
94
|
+
{
|
|
95
|
+
"key": "onMount",
|
|
96
|
+
"name": "组件首次渲染时",
|
|
97
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
98
|
+
"func": "(params)=>{\n\t\n}"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "onUnmount",
|
|
102
|
+
"name": "组件卸载时",
|
|
103
|
+
"desc": "在组件卸载时,执行方法。",
|
|
104
|
+
"func": "(params)=>{\n\t\n}"
|
|
105
|
+
}
|
|
106
|
+
]
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Link",
|
|
3
|
+
"name": "超链",
|
|
4
|
+
"icon": "icon-link",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
8
|
+
"order": 1,
|
|
9
|
+
"style": {},
|
|
10
|
+
"textOverflow": false,
|
|
11
|
+
"type": "page",
|
|
12
|
+
"isLayer": false,
|
|
13
|
+
"effect": "hidden"
|
|
14
|
+
}
|