@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,140 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Tabs",
|
|
3
|
+
"name": "选项卡",
|
|
4
|
+
"icon": "icon-tabs",
|
|
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": "items",
|
|
18
|
+
"name": "标签项",
|
|
19
|
+
"desc": "表示标签项或选项卡的集合",
|
|
20
|
+
"type": "_TabsItems",
|
|
21
|
+
"default": []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"key": "shape",
|
|
25
|
+
"name": "形态",
|
|
26
|
+
"desc": "表示选项卡的形态或外观样式",
|
|
27
|
+
"type": "radio",
|
|
28
|
+
"options": [
|
|
29
|
+
{
|
|
30
|
+
"label": "普通型",
|
|
31
|
+
"value": "pure"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"label": "包裹型",
|
|
35
|
+
"value": "wrapped"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"label": "文本型",
|
|
39
|
+
"value": "text"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": "胶囊型",
|
|
43
|
+
"value": "capsule"
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"default": "pure"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"key": "size",
|
|
50
|
+
"name": "大小",
|
|
51
|
+
"desc": "表示选项卡的形态或外观样式",
|
|
52
|
+
"type": "radio",
|
|
53
|
+
"options": [
|
|
54
|
+
{
|
|
55
|
+
"label": "小",
|
|
56
|
+
"value": "small"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"label": "中",
|
|
60
|
+
"value": "default"
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"default": "default"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"key": "contentPadding",
|
|
67
|
+
"name": "内容间距",
|
|
68
|
+
"desc": "设定内容区的内间距,请输入合理的CSS padding值",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"default": "20px 20px"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"key": "excessMode",
|
|
74
|
+
"name": "选项卡过多时的滑动模式",
|
|
75
|
+
"desc": "表示选项卡过多时的滑动模式",
|
|
76
|
+
"type": "radio",
|
|
77
|
+
"options": [
|
|
78
|
+
{
|
|
79
|
+
"label": "滑动",
|
|
80
|
+
"value": "slide"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"label": "下拉",
|
|
84
|
+
"value": "dropdown"
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
"default": "slide"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "unmountInactiveTabs",
|
|
91
|
+
"name": "切换销毁",
|
|
92
|
+
"desc": "表示选项卡切换时是否销毁非活动选项卡的内容",
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": false
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"key": "lazyLoad",
|
|
98
|
+
"name": "延迟加载",
|
|
99
|
+
"desc": "表示选项卡的延迟加载行为",
|
|
100
|
+
"type": "boolean",
|
|
101
|
+
"default": false
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"key": "needBadge",
|
|
105
|
+
"name": "开启徽标",
|
|
106
|
+
"desc": "表示选项卡是否开启徽标",
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"default": false
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"style": {},
|
|
112
|
+
"advance": {
|
|
113
|
+
"events": [
|
|
114
|
+
{
|
|
115
|
+
"key": "onMount",
|
|
116
|
+
"name": "组件首次渲染时",
|
|
117
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
118
|
+
"func": "(params)=>{\n\t\n}"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"key": "onUnmount",
|
|
122
|
+
"name": "组件卸载时",
|
|
123
|
+
"desc": "在组件卸载时,执行方法。",
|
|
124
|
+
"func": "(params)=>{\n\t\n}"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"key": "renderBadge",
|
|
128
|
+
"name": "徽标渲染",
|
|
129
|
+
"desc": "当needBadge为true时可配置。徽标渲染方法",
|
|
130
|
+
"func": "(tabItem)=>{\n\t\n}"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"key": "onExtraRender",
|
|
134
|
+
"name": "渲染导航栏附加内容",
|
|
135
|
+
"desc": "渲染导航栏附加内容方法",
|
|
136
|
+
"func": "(activeTab)=>{\n\t\n}"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Text",
|
|
3
|
+
"name": "文本",
|
|
4
|
+
"icon": "icon-text",
|
|
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": "showTitle",
|
|
23
|
+
"name": "显示标题",
|
|
24
|
+
"desc": "是否显示标题",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "title",
|
|
30
|
+
"name": "自定义标题",
|
|
31
|
+
"desc": "显示标题时配置。自定义标题内容",
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"key": "maxLine",
|
|
36
|
+
"name": "最大行数",
|
|
37
|
+
"desc": "超出时自动省略号展示",
|
|
38
|
+
"type": "number",
|
|
39
|
+
"default": 0
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"style": {},
|
|
43
|
+
"advance": {
|
|
44
|
+
"events": [
|
|
45
|
+
{
|
|
46
|
+
"key": "onMount",
|
|
47
|
+
"name": "组件首次渲染时",
|
|
48
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
49
|
+
"func": "(params)=>{\n\t\n}"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"key": "onUnmount",
|
|
53
|
+
"name": "组件卸载时",
|
|
54
|
+
"desc": "在组件卸载时,执行方法。",
|
|
55
|
+
"func": "(params)=>{\n\t\n}"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "onClick",
|
|
59
|
+
"name": "点击事件",
|
|
60
|
+
"desc": "点击文本时,执行方法",
|
|
61
|
+
"func": "(e)=>{\n\t\n}"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"component": "Tree",
|
|
3
|
+
"name": "树",
|
|
4
|
+
"desc": "用于展示和管理具有层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能和配置选项,使用户能够轻松创建和管理树结构。",
|
|
5
|
+
"icon": "icon-tree",
|
|
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": "showLine",
|
|
23
|
+
"name": "显示线",
|
|
24
|
+
"desc": "是否显示树组件的连接线",
|
|
25
|
+
"type": "boolean",
|
|
26
|
+
"default": false
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"key": "lazyLoad",
|
|
30
|
+
"name": "懒加载",
|
|
31
|
+
"desc": "是否树形组件懒加载",
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"default": false
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"key": "editable",
|
|
37
|
+
"name": "支持编辑",
|
|
38
|
+
"desc": "是否支持编辑树",
|
|
39
|
+
"type": "boolean",
|
|
40
|
+
"default": false
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"key": "draggable",
|
|
44
|
+
"name": "支持拖拽",
|
|
45
|
+
"desc": "是否支持拖拽",
|
|
46
|
+
"type": "boolean",
|
|
47
|
+
"default": false
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"key": "defaultExpandDeep",
|
|
51
|
+
"name": "默认展开层级",
|
|
52
|
+
"desc": "默认展开多少层级",
|
|
53
|
+
"type": "select",
|
|
54
|
+
"options": [
|
|
55
|
+
{
|
|
56
|
+
"label": "1",
|
|
57
|
+
"value": "1"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"label": "2",
|
|
61
|
+
"value": "2"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"label": "3",
|
|
65
|
+
"value": "3"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"label": "4",
|
|
69
|
+
"value": "4"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"label": "5",
|
|
73
|
+
"value": "5"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"label": "全部",
|
|
77
|
+
"value": "all"
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"default": 1
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"key": "rowKey",
|
|
84
|
+
"name": "数据主键key",
|
|
85
|
+
"desc": "数据主键",
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"key": "actions",
|
|
90
|
+
"name": "操作项",
|
|
91
|
+
"desc": "单行操作项",
|
|
92
|
+
"type": "_ActionSelector"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"key": "doubleClick",
|
|
96
|
+
"name": "开启双击事件",
|
|
97
|
+
"desc": "是否开启双击事件(默认双击收缩节点)",
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"default": true
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"key": "multiple",
|
|
103
|
+
"name": "多选",
|
|
104
|
+
"desc": "是否支持多选",
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"default": false
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"style": {},
|
|
110
|
+
"advance": {
|
|
111
|
+
"events": [
|
|
112
|
+
{
|
|
113
|
+
"key": "onMount",
|
|
114
|
+
"name": "组件首次渲染时",
|
|
115
|
+
"desc": "在组件首次渲染时,执行方法",
|
|
116
|
+
"func": "(params)=>{\n\t\n}"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"key": "onUnmount",
|
|
120
|
+
"name": "组件卸载时",
|
|
121
|
+
"desc": "在组件卸载时,执行方法。",
|
|
122
|
+
"func": "(params)=>{\n\t\n}"
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"key": "processDataSource",
|
|
126
|
+
"name": "数据预处理",
|
|
127
|
+
"desc": "数据渲染前预处理",
|
|
128
|
+
"func": "(data)=>{\n\t\n}"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"key": "onTreeNodeRender",
|
|
132
|
+
"name": "定制渲染",
|
|
133
|
+
"desc": "单行树节点渲染",
|
|
134
|
+
"func": "(title, rowData)=>{\n\t\n}"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "unSelectableNodes",
|
|
138
|
+
"name": "失活节点",
|
|
139
|
+
"desc": "不可选择的节点",
|
|
140
|
+
"func": "(data)=>{\n\t\n}"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"key": "onRightMenus",
|
|
144
|
+
"name": "定制渲染",
|
|
145
|
+
"desc": "返回为false时,该操作不可见",
|
|
146
|
+
"func": "(title, rowData)=>{\n\t\n}"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"key": "onDoubleClick",
|
|
150
|
+
"name": "自定义双击事件",
|
|
151
|
+
"desc": "自定义双击事件,默认为收缩节点",
|
|
152
|
+
"func": "(rowData)=>{\n\t\n}"
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"group": "container",
|
|
4
|
+
"groupName": "布局",
|
|
5
|
+
"components": [
|
|
6
|
+
{
|
|
7
|
+
"component": "Layout",
|
|
8
|
+
"name": "布局容器",
|
|
9
|
+
"desc": "布局容器是一种提供列比例、列间距、行间距和样式等配置选项的元素,用于创建灵活的页面布局。它使用户能够轻松组织和排列组件,并实现各种复杂的布局需求。",
|
|
10
|
+
"icon": "icon-layout"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"component": "Section",
|
|
14
|
+
"name": "分组",
|
|
15
|
+
"desc": "分组组件用于将相关组件或内容进行分组和组织。使用户能够轻松创建具有分组效果的界面,并根据需要进行定制。s",
|
|
16
|
+
"icon": "icon-section"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"component": "Split",
|
|
20
|
+
"name": "分割面板容器",
|
|
21
|
+
"desc": "分割面板容器是一种可以通过拖拽分割线调整面板大小的容器组件,用于创建页面布局或需要调整可视区域的布局场景",
|
|
22
|
+
"icon": "icon-split"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"component": "Tabs",
|
|
26
|
+
"name": "选项卡",
|
|
27
|
+
"desc": "用于显示多个相关内容并提供切换功能。它包含了标签项、形态、大小等配置选项,使用户能够创建具有选项卡切换功能的界面,并根据需要自定义选项卡的外观和尺寸。",
|
|
28
|
+
"icon": "icon-tabs"
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"group": "basic",
|
|
34
|
+
"groupName": "基础",
|
|
35
|
+
"components": [
|
|
36
|
+
{
|
|
37
|
+
"component": "Button",
|
|
38
|
+
"name": "按钮",
|
|
39
|
+
"desc": "用于触发特定的操作或动作,以便用户可以轻松地创建具有自定义样式和行为的界面。",
|
|
40
|
+
"icon": "icon-button"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"component": "Drawer",
|
|
44
|
+
"name": "抽屉",
|
|
45
|
+
"desc": "抽屉从父窗体边缘滑入,覆盖住部分父窗体内容。用户在抽屉内操作时不必离开当前任务,操作完成后,可以平滑地回到原任务。",
|
|
46
|
+
"icon": "icon-drawer"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"component": "Form",
|
|
50
|
+
"name": "表单",
|
|
51
|
+
"desc": "表单组件是用于收集、验证和提交用户输入数据的重要组件。",
|
|
52
|
+
"icon": "icon-form"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"component": "Iframe",
|
|
56
|
+
"name": "Iframe",
|
|
57
|
+
"desc": "用于在当前文档中嵌入另一个独立的 HTML 文档、网页或其他类型的媒体内容。它提供了一种将外部内容嵌入到网页中的方法。",
|
|
58
|
+
"icon": "icon-iframe"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"component": "Image",
|
|
62
|
+
"name": "图片",
|
|
63
|
+
"desc": "用于显示图像或照片。以便用户可以轻松地创建具有自定义图片样式和布局的界面。",
|
|
64
|
+
"icon": "icon-image"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"component": "ImEx",
|
|
68
|
+
"name": "导入导出",
|
|
69
|
+
"desc": "支持导入导出数据的按钮组件。",
|
|
70
|
+
"icon": "icon-imex"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"component": "JSX",
|
|
74
|
+
"name": "jsx代码段",
|
|
75
|
+
"desc": "通过编写JSX代码实现React组件的动态渲染。",
|
|
76
|
+
"icon": "icon-jsx"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"component": "Link",
|
|
80
|
+
"name": "超链",
|
|
81
|
+
"desc": "用于创建可点击的链接,以便用户可以跳转到其他页面或访问相关内容。超链组件提供了简单而直观的方式来创建和管理链接。",
|
|
82
|
+
"icon": "icon-link"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"component": "Modal",
|
|
86
|
+
"name": "对话框",
|
|
87
|
+
"desc": "需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 Modal 在当前页面正中打开一个浮层,承载相应的操作。",
|
|
88
|
+
"icon": "icon-modal"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"component": "Text",
|
|
92
|
+
"name": "文本",
|
|
93
|
+
"desc": "文本组件用于显示文本内容。",
|
|
94
|
+
"icon": "icon-text"
|
|
95
|
+
}
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"group": "advance",
|
|
100
|
+
"groupName": "高级",
|
|
101
|
+
"components": [
|
|
102
|
+
{
|
|
103
|
+
"component": "CardList",
|
|
104
|
+
"name": "卡片列表",
|
|
105
|
+
"desc": "用于以卡片的形式展示相关的信息或内容列表。它提供了一种可视化的方式来呈现多个项目,每个项目通常由一个卡片表示,包含相关的文本、图像和其他元素。",
|
|
106
|
+
"icon": "icon-cardlist"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"component": "Table",
|
|
110
|
+
"name": "表格",
|
|
111
|
+
"desc": "用于展示和管理数据,实现数据的可视化和交互。用户可以根据配置数据集和表格属性,快速构建表格。",
|
|
112
|
+
"icon": "icon-table"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"component": "Tree",
|
|
116
|
+
"name": "树",
|
|
117
|
+
"desc": "用于展示和管理具有层级结构的数据。它提供了层级结构、节点展开/折叠、节点选择、节点操作和展示样式等功能和配置选项,使用户能够轻松创建和管理树结构。",
|
|
118
|
+
"icon": "icon-tree"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|