@luck-design-biz/luckda 0.0.22 → 0.0.23
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 -49
- package/es/components/Builder/index.js +4 -4
- package/es/components/LdAutoForm/index.js +7 -9
- package/es/components/LdCard/index.js +5 -6
- package/es/components/LdCard/model.js +1 -1
- package/es/components/LdCom/index.js +2 -2
- package/es/components/LdFormList/index.js +19 -17
- package/es/components/LdGrid/index.js +11 -12
- package/es/components/LdGrid/model.js +1 -1
- package/es/components/LdGridForm/index.js +10 -10
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdInfoPanel/index.js +2 -2
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.js +3 -4
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/FromItems.js +1 -1
- package/es/helper/action.js +8 -8
- package/es/helper/form.js +16 -16
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +1 -1
- package/es/helper/ldComBuild.js +4 -4
- package/es/index.js +10 -9
- package/es/lowcode/constants/api-url.js +2 -0
- package/es/lowcode/constants/event-topics.js +23 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/meta/button.props.default.json +8 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/es/lowcode/engine/meta/components/button.json +104 -0
- package/es/lowcode/engine/meta/components/card-list.json +143 -0
- package/es/lowcode/engine/meta/components/drawer.json +143 -0
- package/es/lowcode/engine/meta/components/form.json +116 -0
- package/es/lowcode/engine/meta/components/iframe.json +31 -0
- package/es/lowcode/engine/meta/components/image.json +113 -0
- package/es/lowcode/engine/meta/components/imex.json +81 -0
- package/es/lowcode/engine/meta/components/jsx.json +24 -0
- package/es/lowcode/engine/meta/components/layout.json +107 -0
- package/es/lowcode/engine/meta/components/link.json +111 -0
- package/es/lowcode/engine/meta/components/modal.json +120 -0
- package/es/lowcode/engine/meta/components/section.json +107 -0
- package/es/lowcode/engine/meta/components/split.json +71 -0
- package/es/lowcode/engine/meta/components/table.json +161 -0
- package/es/lowcode/engine/meta/components/tabs.json +140 -0
- package/es/lowcode/engine/meta/components/text.json +65 -0
- package/es/lowcode/engine/meta/components/tree.json +156 -0
- package/es/lowcode/engine/meta/components-list.json +122 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/es/lowcode/engine/meta/form.props.default.json +5 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/es/lowcode/engine/meta/image.props.default.json +8 -0
- package/es/lowcode/engine/meta/imex.props.default.json +4 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/es/lowcode/engine/meta/layout.props.default.json +5 -0
- package/es/lowcode/engine/meta/link.props.default.json +6 -0
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +9 -0
- package/es/lowcode/engine/meta/split.props.default.json +5 -0
- package/es/lowcode/engine/meta/table.props.default.json +10 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/es/lowcode/engine/meta/text.props.default.json +4 -0
- package/es/lowcode/engine/meta/tree.props.default.json +9 -0
- package/es/lowcode/engine/provider/ContextProvider.js +164 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +188 -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 +97 -0
- package/es/lowcode/painter/I18n.js +5 -0
- package/es/lowcode/painter/Outline.js +202 -0
- package/es/lowcode/painter/Panel.js +8 -0
- package/es/lowcode/painter/Ribbon.js +136 -0
- package/es/lowcode/painter/components/PanelItem.js +20 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/index.js +19 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +123 -0
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +38 -0
- package/es/lowcode/painter/style/index.less +7 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +26 -0
- package/es/lowcode/painter/style/panel-item.less +21 -0
- package/es/lowcode/painter/style/panel.less +5 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +4 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +55 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +21 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +50 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +46 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/Layout/index.js +24 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Wrapper.js +45 -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 +6 -0
- package/es/services.js +1 -1
- package/es/upload/Form/gridForm.js +29 -7
- package/es/upload/Form/index.js +1 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +30 -18
- package/es/upload/index.js +3 -3
- package/es/utils/action.js +1 -1
- package/es/utils/form.js +26 -26
- package/es/utils/grid.js +22 -26
- package/es/utils/index.js +3 -3
- package/lib/components/Builder/index.js +3 -5
- package/lib/components/LdAutoForm/index.js +5 -8
- package/lib/components/LdCard/index.js +5 -7
- package/lib/components/LdCom/index.js +6 -11
- package/lib/components/LdFormList/index.js +15 -13
- package/lib/components/LdGrid/index.js +10 -12
- package/lib/components/LdGridForm/index.js +6 -7
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdInfoPanel/index.js +2 -3
- package/lib/components/LdPop/index.js +2 -4
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.js +2 -4
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/FromItems.js +15 -29
- package/lib/helper/action.js +9 -11
- package/lib/helper/form.js +18 -20
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +1 -2
- package/lib/helper/ldComBuild.js +7 -11
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +8 -0
- package/lib/lowcode/constants/event-topics.js +29 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/meta/button.props.default.json +8 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/lib/lowcode/engine/meta/components/button.json +104 -0
- package/lib/lowcode/engine/meta/components/card-list.json +143 -0
- package/lib/lowcode/engine/meta/components/drawer.json +143 -0
- package/lib/lowcode/engine/meta/components/form.json +116 -0
- package/lib/lowcode/engine/meta/components/iframe.json +31 -0
- package/lib/lowcode/engine/meta/components/image.json +113 -0
- package/lib/lowcode/engine/meta/components/imex.json +81 -0
- package/lib/lowcode/engine/meta/components/jsx.json +24 -0
- package/lib/lowcode/engine/meta/components/layout.json +107 -0
- package/lib/lowcode/engine/meta/components/link.json +111 -0
- package/lib/lowcode/engine/meta/components/modal.json +120 -0
- package/lib/lowcode/engine/meta/components/section.json +107 -0
- package/lib/lowcode/engine/meta/components/split.json +71 -0
- package/lib/lowcode/engine/meta/components/table.json +161 -0
- package/lib/lowcode/engine/meta/components/tabs.json +140 -0
- package/lib/lowcode/engine/meta/components/text.json +65 -0
- package/lib/lowcode/engine/meta/components/tree.json +156 -0
- package/lib/lowcode/engine/meta/components-list.json +122 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/lib/lowcode/engine/meta/form.props.default.json +5 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/lib/lowcode/engine/meta/image.props.default.json +8 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +4 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -0
- package/lib/lowcode/engine/meta/link.props.default.json +6 -0
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +9 -0
- package/lib/lowcode/engine/meta/split.props.default.json +5 -0
- package/lib/lowcode/engine/meta/table.props.default.json +10 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/lib/lowcode/engine/meta/text.props.default.json +4 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +9 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +201 -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 +105 -0
- package/lib/lowcode/painter/I18n.js +12 -0
- package/lib/lowcode/painter/Outline.js +210 -0
- package/lib/lowcode/painter/Panel.js +16 -0
- package/lib/lowcode/painter/Ribbon.js +151 -0
- package/lib/lowcode/painter/components/PanelItem.js +26 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/index.js +26 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +131 -0
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +38 -0
- package/lib/lowcode/painter/style/index.less +7 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +26 -0
- package/lib/lowcode/painter/style/panel-item.less +21 -0
- package/lib/lowcode/painter/style/panel.less +5 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +4 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +63 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +29 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +58 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +54 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +32 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +52 -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 +6 -0
- package/lib/upload/Form/gridForm.js +27 -6
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -19
- package/lib/upload/GridCell/index.js +1 -2
- package/lib/utils/form.js +26 -29
- package/lib/utils/grid.js +23 -28
- package/lowcode.js +1 -0
- package/package.json +157 -78
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/README.zh-CN.md +0 -51
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Drawer",
|
|
3
|
+
"name": "抽屉",
|
|
4
|
+
"desc": "抽屉从父窗体边缘滑入,覆盖住部分父窗体内容。用户在抽屉内操作时不必离开当前任务,操作完成后,可以平滑地回到原任务。",
|
|
5
|
+
"icon": "icon-drawer",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "title",
|
|
17
|
+
"name": "标题",
|
|
18
|
+
"desc": "抽屉左上角的标题",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"default": "抽屉"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "width",
|
|
24
|
+
"name": "宽度",
|
|
25
|
+
"desc": "抽屉的宽度(仅左右抽屉有效)",
|
|
26
|
+
"type": "number",
|
|
27
|
+
"default": 420
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "height",
|
|
31
|
+
"name": "高度",
|
|
32
|
+
"desc": "抽屉的高度(仅上下抽屉有效)",
|
|
33
|
+
"type": "number",
|
|
34
|
+
"default": 360
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "defaultOpen",
|
|
38
|
+
"name": "默认显示",
|
|
39
|
+
"desc": "默认是否显示",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "mask",
|
|
45
|
+
"name": "显示遮罩",
|
|
46
|
+
"desc": "是否展示遮罩",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": false
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "keyboard",
|
|
52
|
+
"name": "ESC关闭",
|
|
53
|
+
"desc": "是否支持键盘 esc 关闭",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": true
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "placement",
|
|
59
|
+
"name": "弹出位置",
|
|
60
|
+
"desc": "抽屉的方向",
|
|
61
|
+
"type": "select",
|
|
62
|
+
"options": [
|
|
63
|
+
{
|
|
64
|
+
"label": "顶部",
|
|
65
|
+
"value": "top"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "右侧",
|
|
69
|
+
"value": "right"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "底部",
|
|
73
|
+
"value": "bottom"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"label": "左侧",
|
|
77
|
+
"value": "left"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"default": "right"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "footer",
|
|
84
|
+
"name": "底部按钮是否显示",
|
|
85
|
+
"desc": "是否显示底部按钮区域",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": true
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "btnGroup",
|
|
91
|
+
"name": "按钮组",
|
|
92
|
+
"desc": "底部按钮区域的按钮组(参考按钮配置)",
|
|
93
|
+
"type": "_ActionSelector"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"style": {},
|
|
97
|
+
"advance": {
|
|
98
|
+
"events": [
|
|
99
|
+
{
|
|
100
|
+
"key": "onMount",
|
|
101
|
+
"name": "组件首次渲染时",
|
|
102
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
103
|
+
"func": "(params)=>{\n\t\n}"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "onUnmount",
|
|
107
|
+
"name": "组件卸载时",
|
|
108
|
+
"desc": "在组件卸载时,执行方法。",
|
|
109
|
+
"func": "(params)=>{\n\t\n}"
|
|
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}"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "onOpen",
|
|
125
|
+
"name": "抽屉打开时",
|
|
126
|
+
"desc": "在抽屉打开时,执行方法",
|
|
127
|
+
"func": "(params)=>{\n\t\n}"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "onClose",
|
|
131
|
+
"name": "抽屉关闭时",
|
|
132
|
+
"desc": "在抽屉打开时,执行方法,promise反馈false无法截断关闭",
|
|
133
|
+
"func": "(params)=>{\n\t\n}"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"key": "onButtonClick",
|
|
137
|
+
"name": "按钮组点击",
|
|
138
|
+
"desc": "点击按钮组某个按钮时,执行方法",
|
|
139
|
+
"func": "(buttonKey,params)=>{\n\t\n}"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Form",
|
|
3
|
+
"name": "表单",
|
|
4
|
+
"desc": "表单组件是用于收集、验证和提交用户输入数据的重要组件。",
|
|
5
|
+
"icon": "icon-form",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "dateset",
|
|
17
|
+
"name": "首次数据自动加载",
|
|
18
|
+
"desc": "选择系统中的可用树形数据集",
|
|
19
|
+
"type": "_DataSetSelector"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "type",
|
|
23
|
+
"name": "表单类型",
|
|
24
|
+
"desc": "表单存储数据的形式",
|
|
25
|
+
"type": "radio",
|
|
26
|
+
"options": [
|
|
27
|
+
{
|
|
28
|
+
"label": "表单",
|
|
29
|
+
"value": "auto"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"label": "表格",
|
|
33
|
+
"value": "grid"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"label": "单元格可写表格",
|
|
37
|
+
"value": "writer"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"default": "auto"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "header",
|
|
44
|
+
"name": "表头",
|
|
45
|
+
"desc": "单个子单表表头,不设置就没有子表头",
|
|
46
|
+
"type": "radio",
|
|
47
|
+
"options": [
|
|
48
|
+
{
|
|
49
|
+
"label": "无",
|
|
50
|
+
"value": "none"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"label": "收缩框",
|
|
54
|
+
"value": "collapse"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "流式收缩框",
|
|
58
|
+
"value": "collapseFollow"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"label": "分隔线",
|
|
62
|
+
"value": "divider"
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"key": "saveBtnTitle",
|
|
68
|
+
"name": "保存按钮的名称",
|
|
69
|
+
"desc": "配置保存按钮的名称",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"default": "保存"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "defaultColumnCount",
|
|
75
|
+
"name": "默认列数",
|
|
76
|
+
"desc": "表示表格的默认列数",
|
|
77
|
+
"type": "number",
|
|
78
|
+
"default": 4
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"key": "defaultLength",
|
|
82
|
+
"name": "默认长度",
|
|
83
|
+
"desc": "表示通用的默认长度,可背单字段设置的长度覆盖",
|
|
84
|
+
"type": "number"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"style": {},
|
|
88
|
+
"advance": {
|
|
89
|
+
"events": [
|
|
90
|
+
{
|
|
91
|
+
"key": "onMount",
|
|
92
|
+
"name": "组件首次渲染时",
|
|
93
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
94
|
+
"func": "(params)=>{\n\t\n}"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "onUnmount",
|
|
98
|
+
"name": "组件卸载时",
|
|
99
|
+
"desc": "在组件卸载时,执行方法。",
|
|
100
|
+
"func": "(params)=>{\n\t\n}"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"key": "beforeSave",
|
|
104
|
+
"name": "保存前置事件",
|
|
105
|
+
"desc": "保存前置事件,promise,返回false取消执行",
|
|
106
|
+
"func": "(data, params)=>{\n\t\n}"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"key": "onSaveCallback",
|
|
110
|
+
"name": "保存后回调",
|
|
111
|
+
"desc": "保存后回调事件",
|
|
112
|
+
"func": "(params)=>{\n\t\n}"
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Iframe",
|
|
3
|
+
"name": "Iframe",
|
|
4
|
+
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
5
|
+
"icon": "icon-iframe",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "path",
|
|
17
|
+
"name": "网页路径",
|
|
18
|
+
"desc": "iframe打开的网页路径",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "supportFullScreen",
|
|
23
|
+
"name": "支持全屏",
|
|
24
|
+
"desc": "是否支持全屏展示",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": true
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"style": {},
|
|
30
|
+
"advance": {}
|
|
31
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Image",
|
|
3
|
+
"name": "图片",
|
|
4
|
+
"icon": "icon-image",
|
|
5
|
+
"group": "basic",
|
|
6
|
+
"groupName": "基础",
|
|
7
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "src",
|
|
17
|
+
"name": "图片地址",
|
|
18
|
+
"desc": "图片地址",
|
|
19
|
+
"type": "_ImageUploder"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "width",
|
|
23
|
+
"name": "宽度",
|
|
24
|
+
"desc": "图片宽度",
|
|
25
|
+
"type": "number",
|
|
26
|
+
"default": 350
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "height",
|
|
30
|
+
"name": "高度",
|
|
31
|
+
"desc": "图片高度",
|
|
32
|
+
"type": "number",
|
|
33
|
+
"default": 200
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "autoWidth",
|
|
37
|
+
"name": "宽度自适应",
|
|
38
|
+
"desc": "是否图片宽度自适应",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "fit",
|
|
44
|
+
"name": "摆放方式",
|
|
45
|
+
"desc": "图片摆放方式",
|
|
46
|
+
"type": "select",
|
|
47
|
+
"options": [
|
|
48
|
+
{
|
|
49
|
+
"label": "铺满",
|
|
50
|
+
"value": "fill"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"label": "适合",
|
|
54
|
+
"value": "fit"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"label": "拉伸",
|
|
58
|
+
"value": "Stretch"
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"default": "fill"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "roundRadios",
|
|
65
|
+
"name": "圆角",
|
|
66
|
+
"desc": "图片四周圆角大小,可设置“0 1px 2px 3px",
|
|
67
|
+
"type": "string",
|
|
68
|
+
"default": "0"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "title",
|
|
72
|
+
"name": "标题",
|
|
73
|
+
"desc": "图片html原生title",
|
|
74
|
+
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"key": "alt",
|
|
78
|
+
"name": "替代文本",
|
|
79
|
+
"desc": "图片加载失败的占位文字",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "preview",
|
|
84
|
+
"name": "开启图片预览",
|
|
85
|
+
"desc": "是否开启点击打开图片预览",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": false
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"style": {},
|
|
91
|
+
"advance": {
|
|
92
|
+
"events": [
|
|
93
|
+
{
|
|
94
|
+
"key": "onMount",
|
|
95
|
+
"name": "组件首次渲染时",
|
|
96
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
+
"func": "(params)=>{\n\t\n}"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "onUnmount",
|
|
101
|
+
"name": "组件卸载时",
|
|
102
|
+
"desc": "在组件卸载时,执行方法。",
|
|
103
|
+
"func": "(params)=>{\n\t\n}"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"key": "onClick",
|
|
107
|
+
"name": "点击事件",
|
|
108
|
+
"desc": "点击文本时,执行方法",
|
|
109
|
+
"func": "(e)=>{\n\t\n}"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "ImEx",
|
|
3
|
+
"name": "导入导出",
|
|
4
|
+
"desc": "支持导入导出数据的按钮组件。",
|
|
5
|
+
"icon": "icon-imex",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "type",
|
|
17
|
+
"name": "类型",
|
|
18
|
+
"desc": "选择导入功能或者导出功能",
|
|
19
|
+
"type": "radio",
|
|
20
|
+
"options": [
|
|
21
|
+
{
|
|
22
|
+
"label": "导入",
|
|
23
|
+
"value": "import"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"label": "导出",
|
|
27
|
+
"value": "export"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"default": "export"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"key": "title",
|
|
34
|
+
"name": "标题",
|
|
35
|
+
"desc": "按钮上显示的文字",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"default": "导入|导出"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"key": "templateId",
|
|
41
|
+
"name": "模板id",
|
|
42
|
+
"desc": "在导入导出模块配置的模板id",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "apiUrl",
|
|
47
|
+
"name": "接口地址",
|
|
48
|
+
"desc": "定制的导入导出接口",
|
|
49
|
+
"type": "string"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"style": {},
|
|
53
|
+
"advance": {
|
|
54
|
+
"events": [
|
|
55
|
+
{
|
|
56
|
+
"key": "onMount",
|
|
57
|
+
"name": "组件首次渲染时",
|
|
58
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
59
|
+
"func": "(params)=>{\n\t\n}"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "onUnmount",
|
|
63
|
+
"name": "组件卸载时",
|
|
64
|
+
"desc": "在组件卸载时,执行方法。",
|
|
65
|
+
"func": "(params)=>{\n\t\n}"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"key": "beforeExe",
|
|
69
|
+
"name": "操作执行前",
|
|
70
|
+
"desc": "在导入或导出执行前,执行方法,promise反回false截断执行",
|
|
71
|
+
"func": "(params)=>{\n\t\n}"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"key": "afterExe",
|
|
75
|
+
"name": "操作执行后",
|
|
76
|
+
"desc": "在导入或导出执行后,执行方法",
|
|
77
|
+
"func": "(params)=>{\n\t\n}"
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "JSX",
|
|
3
|
+
"name": "jsx代码段",
|
|
4
|
+
"desc": "通过编写JSX代码实现React组件的动态渲染。",
|
|
5
|
+
"icon": "icon-jsx",
|
|
6
|
+
"group": "basic",
|
|
7
|
+
"groupName": "基础",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "id",
|
|
11
|
+
"desc": "唯一标识",
|
|
12
|
+
"type": "string",
|
|
13
|
+
"disabled": true
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"key": "render",
|
|
17
|
+
"name": "编辑jsx代码",
|
|
18
|
+
"desc": "可执行的jsx代码",
|
|
19
|
+
"type": "_CodeEditor"
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"style": {},
|
|
23
|
+
"advance": {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Layout",
|
|
3
|
+
"name": "布局容器",
|
|
4
|
+
"icon": "icon-layout",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "fieldId",
|
|
11
|
+
"name": "唯一标识",
|
|
12
|
+
"desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "columnRatio",
|
|
18
|
+
"name": "列比例",
|
|
19
|
+
"desc": "表示列布局所占比例的比率",
|
|
20
|
+
"type": "_LayoutRatio",
|
|
21
|
+
"default": "12"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "columnSpacing",
|
|
25
|
+
"name": "列间距",
|
|
26
|
+
"desc": "表示列之间的间距或距离",
|
|
27
|
+
"type": "select",
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"label": 24,
|
|
31
|
+
"value": 24
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": 20,
|
|
35
|
+
"value": 20
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": 16,
|
|
39
|
+
"value": 16
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": 12,
|
|
43
|
+
"value": 12
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"label": 8,
|
|
47
|
+
"value": 8
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"label": 0,
|
|
51
|
+
"value": 0
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"default": 16
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"key": "lineSpacing",
|
|
58
|
+
"name": "行间距",
|
|
59
|
+
"desc": "表示行之间的间距或距离",
|
|
60
|
+
"type": "select",
|
|
61
|
+
"options": [
|
|
62
|
+
{
|
|
63
|
+
"label": 24,
|
|
64
|
+
"value": 24
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"label": 20,
|
|
68
|
+
"value": 20
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": 16,
|
|
72
|
+
"value": 16
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"label": 12,
|
|
76
|
+
"value": 12
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"label": 8,
|
|
80
|
+
"value": 8
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": 0,
|
|
84
|
+
"value": 0
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"default": 16
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
"style": {},
|
|
91
|
+
"advance": {
|
|
92
|
+
"events": [
|
|
93
|
+
{
|
|
94
|
+
"key": "onMount",
|
|
95
|
+
"name": "组件首次渲染时",
|
|
96
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
97
|
+
"func": "(params)=>{\n\t\n}"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"key": "onUnmount",
|
|
101
|
+
"name": "组件卸载时",
|
|
102
|
+
"desc": "在组件卸载时,执行方法。",
|
|
103
|
+
"func": "(params)=>{\n\t\n}"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
}
|