@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,111 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Link",
|
|
3
|
+
"name": "超链",
|
|
4
|
+
"icon": "icon-link",
|
|
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": "content",
|
|
17
|
+
"name": "内容",
|
|
18
|
+
"desc": "超链接的展示内容",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"key": "textOverflow",
|
|
23
|
+
"name": "单行截断",
|
|
24
|
+
"desc": "文字超过一行,使甲...显示;开后此项后,同时会显示html标签的title",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "type",
|
|
30
|
+
"name": "链接类型",
|
|
31
|
+
"desc": "链接打开的内容类型选择",
|
|
32
|
+
"type": "radio",
|
|
33
|
+
"options": [
|
|
34
|
+
{
|
|
35
|
+
"label": "内部页面",
|
|
36
|
+
"value": "page"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"label": "外部链接",
|
|
40
|
+
"value": "url"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"default": "page"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"key": "url",
|
|
47
|
+
"name": "链接地址",
|
|
48
|
+
"desc": "选择链接类型为url时配置",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "isLayer",
|
|
53
|
+
"name": "弹窗打开",
|
|
54
|
+
"desc": "是否以弹窗形式打开",
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"default": false
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"key": "params",
|
|
60
|
+
"name": "携带参数",
|
|
61
|
+
"desc": "超链的携带参数",
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "serials",
|
|
66
|
+
"name": "资源串",
|
|
67
|
+
"desc": "挂接模块资源串",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"key": "effect",
|
|
72
|
+
"name": "资源串效果",
|
|
73
|
+
"desc": "当资源串条件生效时按钮的效果",
|
|
74
|
+
"type": "radio",
|
|
75
|
+
"options": [
|
|
76
|
+
{
|
|
77
|
+
"label": "禁用",
|
|
78
|
+
"value": "disable"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"label": "隐藏",
|
|
82
|
+
"value": "hidden"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"default": "hidden"
|
|
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": "beforeClick",
|
|
105
|
+
"name": "点击事件",
|
|
106
|
+
"desc": "点击文本时,执行方法",
|
|
107
|
+
"func": "(e,parmas)=>{\n\t\n}"
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Modal",
|
|
3
|
+
"name": "对话框",
|
|
4
|
+
"desc": "需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 Modal 在当前页面正中打开一个浮层,承载相应的操作。",
|
|
5
|
+
"icon": "icon-modal",
|
|
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": "string",
|
|
27
|
+
"default": "700px"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"key": "height",
|
|
31
|
+
"name": "高度",
|
|
32
|
+
"desc": "对话框的高度",
|
|
33
|
+
"type": "string",
|
|
34
|
+
"default": "60vh"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"key": "fullScreen",
|
|
38
|
+
"name": "默认全屏",
|
|
39
|
+
"desc": "对话框打开默认全屏",
|
|
40
|
+
"type": "boolean",
|
|
41
|
+
"default": false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "fullable",
|
|
45
|
+
"name": "支持全屏切换",
|
|
46
|
+
"desc": "可以通过右上角按钮切换全屏状态",
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"default": true
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"key": "defaultOpen",
|
|
52
|
+
"name": "默认显示",
|
|
53
|
+
"desc": "默认是否显示",
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"default": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "mask",
|
|
59
|
+
"name": "显示遮罩",
|
|
60
|
+
"desc": "是否展示遮罩",
|
|
61
|
+
"type": "boolean",
|
|
62
|
+
"default": false
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"key": "keyboard",
|
|
66
|
+
"name": "ESC关闭",
|
|
67
|
+
"desc": "是否支持键盘 esc 关闭",
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"default": true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"key": "footer",
|
|
73
|
+
"name": "底部按钮是否显示",
|
|
74
|
+
"desc": "是否显示底部按钮区域",
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"default": true
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"key": "btnGroup",
|
|
80
|
+
"name": "按钮组",
|
|
81
|
+
"desc": "底部按钮区域的按钮组(参考按钮配置)",
|
|
82
|
+
"type": "_ActionSelector"
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"style": {},
|
|
86
|
+
"advance": {
|
|
87
|
+
"events": [
|
|
88
|
+
{
|
|
89
|
+
"key": "onMount",
|
|
90
|
+
"name": "组件首次渲染时",
|
|
91
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
92
|
+
"func": "(params)=>{\n\t\n}"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "onUnmount",
|
|
96
|
+
"name": "组件卸载时",
|
|
97
|
+
"desc": "在组件卸载时,执行方法。",
|
|
98
|
+
"func": "(params)=>{\n\t\n}"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"key": "onOpen",
|
|
102
|
+
"name": "对话框打开时",
|
|
103
|
+
"desc": "在对话框打开时,执行方法",
|
|
104
|
+
"func": "(params)=>{\n\t\n}"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"key": "onClose",
|
|
108
|
+
"name": "对话框关闭时",
|
|
109
|
+
"desc": "在对话框打开时,执行方法,promise反馈false无法截断关闭",
|
|
110
|
+
"func": "(params)=>{\n\t\n}"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"key": "onButtonClick",
|
|
114
|
+
"name": "按钮组点击",
|
|
115
|
+
"desc": "点击按钮组某个按钮时,执行方法",
|
|
116
|
+
"func": "(buttonKey,params)=>{\n\t\n}"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Section",
|
|
3
|
+
"name": "分组",
|
|
4
|
+
"icon": "icon-section",
|
|
5
|
+
"group": "container",
|
|
6
|
+
"groupName": "布局",
|
|
7
|
+
"desc": "分组组件用于将相关组件或内容进行分组和组织。使用户能够轻松创建具有分组效果的界面,并根据需要进行定制。s",
|
|
8
|
+
"props": [
|
|
9
|
+
{
|
|
10
|
+
"key": "fieldId",
|
|
11
|
+
"name": "唯一标识",
|
|
12
|
+
"desc": "组件的唯一标识符,不能够与其它组件重名,不能够为空,且只能够使用以字母开头的,下划线以及数字的组合",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"disabled": true
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"key": "collapse",
|
|
18
|
+
"name": "折叠",
|
|
19
|
+
"desc": "是否采用折叠分组",
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"default": true
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "showHeader",
|
|
25
|
+
"name": "显示头部",
|
|
26
|
+
"desc": "表示是否分组显示头部(仅在非折叠情况下有效)",
|
|
27
|
+
"type": "boolean",
|
|
28
|
+
"default": true
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"key": "title",
|
|
32
|
+
"name": "分组标题",
|
|
33
|
+
"desc": "表示分组标题的名称",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"default": "分组"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "icon",
|
|
39
|
+
"name": "图标",
|
|
40
|
+
"desc": "用于设置分组标题前面的图标",
|
|
41
|
+
"type": "Icon"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"key": "tooltip",
|
|
45
|
+
"name": "用户提示",
|
|
46
|
+
"desc": "用于设置分组的用户提示",
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "subtitle",
|
|
51
|
+
"name": "副标题插槽",
|
|
52
|
+
"desc": "分组副标题的插槽内容",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "extra",
|
|
57
|
+
"name": "扩展区域插槽",
|
|
58
|
+
"desc": "分组扩展区域的插槽内容",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"key": "showHeaderDivider",
|
|
63
|
+
"name": "头部分割线",
|
|
64
|
+
"desc": "是否展示头部分割线(仅在非折叠情况下有效)",
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"default": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"key": "showBorder",
|
|
70
|
+
"name": "显示边框",
|
|
71
|
+
"desc": "是否展示分组边框(仅在非折叠情况下有效)",
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"default": false
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"key": "withMargin",
|
|
77
|
+
"name": "外边距",
|
|
78
|
+
"desc": "是否展示外边距",
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"default": false
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "withPadding",
|
|
84
|
+
"name": "内边距",
|
|
85
|
+
"desc": "是否展示内边距",
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"default": true
|
|
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
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Split",
|
|
3
|
+
"name": "分割面板容器",
|
|
4
|
+
"icon": "icon-split",
|
|
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": "display",
|
|
18
|
+
"name": "展现形式",
|
|
19
|
+
"desc": "表示分割面板容器的展现形式",
|
|
20
|
+
"type": "_SplitDisplay",
|
|
21
|
+
"default": "normal"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "split",
|
|
25
|
+
"name": "分割方向",
|
|
26
|
+
"desc": "分割面板容器的分割方向(仅display为normal时有效)",
|
|
27
|
+
"type": "radio",
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"label": "垂直",
|
|
31
|
+
"value": "vertical"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "水平",
|
|
35
|
+
"value": "horizontal"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"default": "vertical"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"key": "ratio",
|
|
42
|
+
"name": "比率",
|
|
43
|
+
"desc": "表示分割面板容器所占比例的比率(仅display为normal时有效)",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"default": "1:3"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"style": {},
|
|
49
|
+
"advance": {
|
|
50
|
+
"events": [
|
|
51
|
+
{
|
|
52
|
+
"key": "onMount",
|
|
53
|
+
"name": "组件首次渲染时",
|
|
54
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
55
|
+
"func": "(params)=>{\n\t\n}"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "onUnmount",
|
|
59
|
+
"name": "组件卸载时",
|
|
60
|
+
"desc": "在组件卸载时,执行方法。",
|
|
61
|
+
"func": "(params)=>{\n\t\n}"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"key": "onChange",
|
|
65
|
+
"name": "尺寸变化事件",
|
|
66
|
+
"desc": "在面板尺寸发生变化时,执行方法",
|
|
67
|
+
"func": "(value)=>{\n\t\n}"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Table",
|
|
3
|
+
"name": "表格",
|
|
4
|
+
"desc": "用于展示和管理数据,实现数据的可视化和交互。用户可以根据配置数据集和表格属性,快速构建表格。",
|
|
5
|
+
"icon": "icon-table",
|
|
6
|
+
"group": "advance",
|
|
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": "autoLoad",
|
|
23
|
+
"name": "首次数据自动加载",
|
|
24
|
+
"desc": "首次数据是否自动加载,若存在必须带搜索条件再加载的情况,需要关闭",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": true
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "readOnly",
|
|
30
|
+
"name": "是否只读",
|
|
31
|
+
"desc": "卡片列表是否只读",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "isFlow",
|
|
37
|
+
"name": "是否流式",
|
|
38
|
+
"desc": "是否流式(不分页)",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "defaultPageSize",
|
|
44
|
+
"name": "默认分页数",
|
|
45
|
+
"desc": "isFlow为false时设置,默认单页分页数",
|
|
46
|
+
"type": "number",
|
|
47
|
+
"default": 30
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "batchOperations",
|
|
51
|
+
"name": "批量操作",
|
|
52
|
+
"desc": "批量操作配置",
|
|
53
|
+
"type": "_CardListActionSelector"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"key": "actionTitle",
|
|
57
|
+
"name": "操作列标题",
|
|
58
|
+
"desc": "操作列的标题",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"default": "操作列"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"key": "actionWidth",
|
|
64
|
+
"name": "操作列宽度",
|
|
65
|
+
"desc": "操作列宽度设置",
|
|
66
|
+
"type": "number",
|
|
67
|
+
"default": 100
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"key": "actionHidden",
|
|
71
|
+
"name": "操作列是否隐藏",
|
|
72
|
+
"desc": "操作列是否隐藏",
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"key": "maxWebShownActionCount",
|
|
78
|
+
"name": "操作列最大展示数",
|
|
79
|
+
"desc": "操作列最大展示数,超出最大数变为最大展示数-1+更多",
|
|
80
|
+
"type": "number",
|
|
81
|
+
"default": 2
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"key": "actions",
|
|
85
|
+
"name": "操作项",
|
|
86
|
+
"desc": "单行操作项",
|
|
87
|
+
"type": "_ActionSelector"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "batchActions",
|
|
91
|
+
"name": "批量操作项",
|
|
92
|
+
"desc": "批量操作项",
|
|
93
|
+
"type": "_ActionSelector"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"key": "rowStyle",
|
|
97
|
+
"name": "行样式",
|
|
98
|
+
"desc": "向行添加 CSS 样式",
|
|
99
|
+
"type": "_CSSEditor"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "cellStyle",
|
|
103
|
+
"name": "行样式",
|
|
104
|
+
"desc": "向行添加 CSS 样式",
|
|
105
|
+
"type": "_CSSEditor"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"style": {},
|
|
109
|
+
"advance": {
|
|
110
|
+
"events": [
|
|
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": "onBatchOperationsClick",
|
|
125
|
+
"name": "批量操作点击",
|
|
126
|
+
"desc": "点击操作的回调函数",
|
|
127
|
+
"func": "(key, selectedRows)=>{\n\t\n}"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"key": "onActionClick",
|
|
131
|
+
"name": "操作列点击",
|
|
132
|
+
"desc": "点击操作的回调函数",
|
|
133
|
+
"func": "(itemData)=>{\n\t\n}"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"key": "actionRender",
|
|
137
|
+
"name": "操作列定制渲染",
|
|
138
|
+
"desc": "返回为false时,该操作不可见",
|
|
139
|
+
"func": "(title, rowData)=>{\n\t\n}"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"key": "onRowClick",
|
|
143
|
+
"name": "行单击",
|
|
144
|
+
"desc": "单击表格行时,执行方法",
|
|
145
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"key": "onRowDoubleClick",
|
|
149
|
+
"name": "行双击",
|
|
150
|
+
"desc": "双击表格行时,执行方法",
|
|
151
|
+
"func": "(data, rowIndex, params)=>{\n\t\n}"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"key": "onCellRender",
|
|
155
|
+
"name": "单元格渲染",
|
|
156
|
+
"desc": "当单元格渲染时,执行方法",
|
|
157
|
+
"func": "(data,rowIndex,column,params)=>{\n\t\n}"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
}
|