@cloudbase/weda-ui 3.4.5 → 3.4.6
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/dist/configs/components/form/input.json +48 -2
- package/dist/configs/components/form/richText.json +2 -1
- package/dist/configs/components/form/uploader.json +62 -14
- package/dist/configs/components/grid/col.js +4 -1
- package/dist/configs/components/grid/grid.js +8 -3
- package/dist/configs/components/grid/row.js +51 -3
- package/dist/configs/components/repeater.js +4 -1
- package/dist/configs/components/table.json +1 -0
- package/dist/configs/components/wd-bubble.js +6 -0
- package/dist/configs/components/wd-button.js +6 -0
- package/dist/configs/components/wd-divider.js +7 -18
- package/dist/configs/components/wd-icon.js +7 -0
- package/dist/configs/components/wd-image.js +7 -0
- package/dist/configs/components/wd-link.js +7 -2
- package/dist/configs/components/wd-text.js +14 -6
- package/dist/configs/index.js +0 -2
- package/dist/docs/common/componentList.js +1 -1
- package/dist/web/actions/showModal/index.js +1 -1
- package/dist/web/components/calendar/index.js +2 -2
- package/dist/web/components/flow/components/index.js +0 -4
- package/dist/web/components/flow/frame/index.js +4 -3
- package/dist/web/components/flow/frame/types.js +11 -5
- package/dist/web/components/flow/frame/utils.js +60 -1
- package/dist/web/components/flow/modules/chart/Chart.js +2 -3
- package/dist/web/components/flow/modules/combination/index.js +1 -1
- package/dist/web/components/flow/modules/operations/components/button/index.js +11 -0
- package/dist/web/components/flow/modules/operations/components/button/style.css +5 -0
- package/dist/web/components/flow/modules/operations/components/index.js +6 -0
- package/dist/web/components/flow/modules/operations/components/popup/index.js +100 -0
- package/dist/web/components/flow/modules/operations/components/popup/style.css +154 -0
- package/dist/web/components/flow/modules/operations/components/popup/types.js +1 -0
- package/dist/web/components/flow/modules/operations/components/user-select/index.js +43 -0
- package/dist/web/components/flow/modules/operations/components/user-select/style.css +4 -0
- package/dist/web/components/flow/modules/operations/components/user-select/types.js +1 -0
- package/dist/web/components/flow/modules/operations/config/approval-form-config.js +140 -0
- package/dist/web/components/flow/modules/operations/config/control-config.js +218 -0
- package/dist/web/components/flow/modules/operations/config/index.js +2 -0
- package/dist/web/components/flow/modules/operations/config/types.js +1 -0
- package/dist/web/components/flow/modules/operations/control.js +26 -0
- package/dist/web/components/flow/modules/operations/controls-items/add-assignee-btn.js +33 -0
- package/dist/web/components/flow/modules/operations/controls-items/apply-cc-btn.js +12 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/comment/index.js +188 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/comment/style.css +51 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/index.js +64 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/types.js +1 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/drawer-form/view-model.js +83 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/field/index.js +16 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/field/style.css +56 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/index.js +47 -0
- package/dist/web/components/flow/modules/operations/controls-items/approval-drawer/style.css +60 -0
- package/dist/web/components/flow/modules/operations/controls-items/cancel-apply-btn.js +15 -0
- package/dist/web/components/flow/modules/operations/controls-items/check-list-popup/index.js +11 -0
- package/dist/web/components/flow/modules/operations/controls-items/check-list-popup/style.css +26 -0
- package/dist/web/components/flow/modules/operations/controls-items/flow-task-info-modal.js +98 -0
- package/dist/web/components/flow/modules/operations/controls-items/index.js +18 -0
- package/dist/web/components/flow/modules/operations/controls-items/initiation-btn.js +25 -0
- package/dist/web/components/flow/modules/operations/controls-items/revoke-modal/index.js +50 -0
- package/dist/web/components/flow/modules/operations/controls-items/revoke-modal/style.css +28 -0
- package/dist/web/components/flow/modules/operations/controls-items/roll-back-modal.js +104 -0
- package/dist/web/components/flow/modules/operations/controls-items/types.js +1 -0
- package/dist/web/components/flow/modules/operations/index.js +2 -0
- package/dist/web/components/flow/modules/operations/style.css +20 -0
- package/dist/web/components/flow/modules/operations/view-model.js +137 -0
- package/dist/web/components/flow/services/ideData/instance.js +2 -2
- package/dist/web/components/flow/services/ideData/pageDetail.js +1 -0
- package/dist/web/components/form/uploader/index.css +19 -0
- package/dist/web/components/form/uploader/index.js +21 -3
- package/dist/web/components/form/uploader/uploader.h5.js +14 -8
- package/dist/web/components/form/uploader/uploader.pc.js +29 -16
- package/dist/web/components/form/uploaderFile/index.css +5 -2
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +15 -12
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +11 -8
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +0 -1
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +1 -1
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +9 -5
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +4 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +2 -2
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +4 -2
- package/dist/web/components/grid/col.js +81 -18
- package/dist/web/components/grid/grid.js +1 -1
- package/dist/web/components/grid/row.js +4 -2
- package/dist/web/components/index.js +1 -1
- package/dist/web/components/listView/index.js +4 -3
- package/dist/web/components/lottery/index.js +122 -123
- package/dist/web/components/table/ExportFileModalByApi/index.js +1 -1
- package/dist/web/components/table/ImportFileModal/index.js +1 -1
- package/dist/web/components/table/ImportFileModalByApi/index.js +1 -1
- package/dist/web/components/wd-bubble/wd-bubble.js +11 -3
- package/dist/web/components/wd-button/wd-button.js +22 -13
- package/dist/web/components/wd-divider/wd-divider.js +10 -7
- package/dist/web/components/wd-icon/wd-icon.js +12 -3
- package/dist/web/components/wd-image/index.js +12 -5
- package/dist/web/components/wd-link/wd-link.js +11 -3
- package/dist/web/components/wd-text/wd-text.js +15 -3
- package/dist/web/utils/hooks/use-cloud-id-temp-url.js +7 -3
- package/dist/web/utils/platform.js +0 -1
- package/dist/web/utils/tool.js +11 -0
- package/dist/web/utils/widget-api/index.js +3 -0
- package/package.json +5 -3
- package/dist/configs/components/auth.json +0 -17
- package/dist/web/components/flow/components/FlowUserSelect/index.css +0 -116
- package/dist/web/components/flow/components/FlowUserSelect/index.js +0 -115
- package/dist/web/components/flow/components/HighlightTextarea/index.css +0 -42
- package/dist/web/components/flow/components/HighlightTextarea/index.js +0 -131
- package/dist/web/components/flow/components/UserSelectModel/UserSelect.js +0 -72
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.css +0 -8
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +0 -82
- package/dist/web/components/flow/components/UserSelectModel/index.js +0 -18
- package/dist/web/components/flow/components/WedaUserTransfer/index.css +0 -3
- package/dist/web/components/flow/components/WedaUserTransfer/index.js +0 -162
- package/dist/web/components/flow/modules/control/ApprovalDrawer.css +0 -144
- package/dist/web/components/flow/modules/control/ApprovalDrawer.js +0 -178
- package/dist/web/components/flow/modules/control/ApprovalPopup.css +0 -115
- package/dist/web/components/flow/modules/control/ApprovalPopup.js +0 -240
- package/dist/web/components/flow/modules/control/Control.css +0 -29
- package/dist/web/components/flow/modules/control/Control.js +0 -105
- package/dist/web/components/flow/modules/control/ControlMobile.css +0 -101
- package/dist/web/components/flow/modules/control/ControlMobile.js +0 -148
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.css +0 -3
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.js +0 -31
- package/dist/web/components/flow/modules/control/constants/index.js +0 -35
- package/dist/web/components/flow/modules/control/index.js +0 -15
- package/dist/web/components/flow/modules/control/provider/index.js +0 -17
- package/dist/web/components/flow/modules/control/provider/useControlModel.js +0 -252
- package/dist/web/components/flow/modules/control/provider/useMobileModel.js +0 -84
- package/dist/web/components/flow/modules/control/provider/useRevokeAndBackHook.js +0 -84
- package/dist/web/components/flow/modules/control/utils/ControlModelUtils.js +0 -57
- package/dist/web/components/flow/modules/control/utils/index.js +0 -3
- package/dist/web/components/flow/modules/control/utils/tools.js +0 -3
|
@@ -2,6 +2,50 @@
|
|
|
2
2
|
"$schema": "https://comp-public-1303824488.cos.ap-shanghai.myqcloud.com/schema/lcds_component.json",
|
|
3
3
|
"data": {
|
|
4
4
|
"properties": {
|
|
5
|
+
"isNickNameType": {
|
|
6
|
+
"type": "boolean",
|
|
7
|
+
"default": false,
|
|
8
|
+
"title": "小程序端获取微信昵称",
|
|
9
|
+
"x-group": "高级属性",
|
|
10
|
+
"x-index": 185,
|
|
11
|
+
"description": "开启后小程序用户可选择选择微信昵称",
|
|
12
|
+
"x-linkages": [
|
|
13
|
+
{
|
|
14
|
+
"type": "value:state",
|
|
15
|
+
"state": {
|
|
16
|
+
"value": "text",
|
|
17
|
+
"disabled": true
|
|
18
|
+
},
|
|
19
|
+
"target": "type",
|
|
20
|
+
"condition": "{{$self.value}}"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "value:state",
|
|
24
|
+
"state": {
|
|
25
|
+
"disabled": false
|
|
26
|
+
},
|
|
27
|
+
"target": "type",
|
|
28
|
+
"condition": "{{!$self.value}}"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"type": "value:state",
|
|
32
|
+
"state": {
|
|
33
|
+
"value": false,
|
|
34
|
+
"disabled": true
|
|
35
|
+
},
|
|
36
|
+
"target": "password",
|
|
37
|
+
"condition": "{{$self.value}}"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "value:state",
|
|
41
|
+
"state": {
|
|
42
|
+
"disabled": false
|
|
43
|
+
},
|
|
44
|
+
"target": "password",
|
|
45
|
+
"condition": "{{!$self.value}}"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
5
49
|
"label": {
|
|
6
50
|
"type": "string",
|
|
7
51
|
"default": "标题",
|
|
@@ -25,7 +69,8 @@
|
|
|
25
69
|
"password": {
|
|
26
70
|
"type": "boolean",
|
|
27
71
|
"default": false,
|
|
28
|
-
"title": "密码"
|
|
72
|
+
"title": "密码",
|
|
73
|
+
"x-group": "高级属性"
|
|
29
74
|
},
|
|
30
75
|
"placeholder": {
|
|
31
76
|
"type": "string",
|
|
@@ -54,7 +99,8 @@
|
|
|
54
99
|
"value": "digit"
|
|
55
100
|
}
|
|
56
101
|
],
|
|
57
|
-
"title": "输入类型"
|
|
102
|
+
"title": "输入类型",
|
|
103
|
+
"x-group": "高级属性"
|
|
58
104
|
},
|
|
59
105
|
"maxLength": {
|
|
60
106
|
"type": "number",
|
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
"type": "string",
|
|
7
7
|
"default": "上传图片",
|
|
8
8
|
"title": "标题",
|
|
9
|
-
"x-
|
|
9
|
+
"x-group": "基础属性",
|
|
10
10
|
"x-index": 1
|
|
11
11
|
},
|
|
12
12
|
"tips": {
|
|
13
13
|
"type": "string",
|
|
14
14
|
"default": "上传图片提示",
|
|
15
15
|
"title": "提示",
|
|
16
|
-
"x-
|
|
16
|
+
"x-group": "基础属性",
|
|
17
17
|
"x-index": 2
|
|
18
18
|
},
|
|
19
19
|
"btnTitle": {
|
|
20
20
|
"type": "string",
|
|
21
21
|
"default": "上传图片",
|
|
22
22
|
"title": "按钮名称",
|
|
23
|
-
"x-
|
|
23
|
+
"x-group": "基础属性",
|
|
24
24
|
"x-index": 3,
|
|
25
25
|
"x-platforms": ["PCWEB"]
|
|
26
26
|
},
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"type": "number",
|
|
29
29
|
"default": 9,
|
|
30
30
|
"title": "最大上传数",
|
|
31
|
-
"x-
|
|
31
|
+
"x-group": "基础属性",
|
|
32
32
|
"x-index": 4
|
|
33
33
|
},
|
|
34
34
|
"maxSize": {
|
|
35
35
|
"type": "number",
|
|
36
36
|
"default": 10,
|
|
37
37
|
"title": "单张大小(M)",
|
|
38
|
-
"x-
|
|
38
|
+
"x-group": "基础属性",
|
|
39
39
|
"x-index": 5
|
|
40
40
|
},
|
|
41
41
|
"acceptTypes": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"title": "图片类型",
|
|
44
44
|
"x-component": "checkbox",
|
|
45
45
|
"default": ["image/*"],
|
|
46
|
-
"x-
|
|
46
|
+
"x-group": "基础属性",
|
|
47
47
|
"x-index": 6,
|
|
48
48
|
"x-platforms": ["WEB"],
|
|
49
49
|
"enum": [
|
|
@@ -77,12 +77,60 @@
|
|
|
77
77
|
}
|
|
78
78
|
]
|
|
79
79
|
},
|
|
80
|
+
"isChooseAvatar": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": false,
|
|
83
|
+
"title": "小程序端获取微信头像",
|
|
84
|
+
"x-group": "高级属性",
|
|
85
|
+
"x-index": 185,
|
|
86
|
+
"description": "开启后小程序用户可选择直接上传微信头像",
|
|
87
|
+
"x-linkages": [
|
|
88
|
+
{
|
|
89
|
+
"type": "value:state",
|
|
90
|
+
"state": {
|
|
91
|
+
"value": true,
|
|
92
|
+
"disabled": true
|
|
93
|
+
},
|
|
94
|
+
"target": "single",
|
|
95
|
+
"condition": "{{$self.value}}"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"type": "value:state",
|
|
99
|
+
"state": {
|
|
100
|
+
"disabled": false
|
|
101
|
+
},
|
|
102
|
+
"target": "single",
|
|
103
|
+
"condition": "{{!$self.value}}"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"showShape": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"title": "图片显示形状",
|
|
110
|
+
"default": "ectangle",
|
|
111
|
+
"x-group": "高级属性",
|
|
112
|
+
"x-index": 188,
|
|
113
|
+
"enum": [
|
|
114
|
+
{
|
|
115
|
+
"label": "直角矩形",
|
|
116
|
+
"value": "ectangle"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"label": "圆角矩形",
|
|
120
|
+
"value": "roundedTectangle"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"label": "圆形",
|
|
124
|
+
"value": "circular"
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
80
128
|
"required": {
|
|
81
129
|
"type": "boolean",
|
|
82
130
|
"title": "是否必填",
|
|
83
131
|
"default": false,
|
|
84
132
|
"x-index": 190,
|
|
85
|
-
"x-
|
|
133
|
+
"x-group": "高级属性",
|
|
86
134
|
"x-linkages": [
|
|
87
135
|
{
|
|
88
136
|
"type": "value:visible",
|
|
@@ -96,20 +144,20 @@
|
|
|
96
144
|
"title": "校验错误提示",
|
|
97
145
|
"default": "该项为必填项",
|
|
98
146
|
"x-index": 191,
|
|
99
|
-
"x-
|
|
147
|
+
"x-group": "高级属性"
|
|
100
148
|
},
|
|
101
149
|
"requiredFlag": {
|
|
102
150
|
"type": "boolean",
|
|
103
151
|
"title": "显示必填标记",
|
|
104
152
|
"default": false,
|
|
105
153
|
"x-index": 192,
|
|
106
|
-
"x-
|
|
154
|
+
"x-group": "高级属性"
|
|
107
155
|
},
|
|
108
156
|
"layout": {
|
|
109
157
|
"title": "布局方式",
|
|
110
158
|
"type": "string",
|
|
111
159
|
"default": "horizontal",
|
|
112
|
-
"x-
|
|
160
|
+
"x-group": "基础属性",
|
|
113
161
|
"enum": [
|
|
114
162
|
{
|
|
115
163
|
"label": "水平",
|
|
@@ -125,21 +173,21 @@
|
|
|
125
173
|
"type": "boolean",
|
|
126
174
|
"default": false,
|
|
127
175
|
"title": "是否禁用",
|
|
128
|
-
"x-
|
|
176
|
+
"x-group": "基础属性"
|
|
129
177
|
},
|
|
130
178
|
"labelVisible": {
|
|
131
179
|
"type": "boolean",
|
|
132
180
|
"default": true,
|
|
133
181
|
"title": "显示标题",
|
|
134
|
-
"x-
|
|
182
|
+
"x-group": "基础属性"
|
|
135
183
|
},
|
|
136
184
|
"single": {
|
|
137
185
|
"type": "boolean",
|
|
138
186
|
"title": "是否返回单张图片",
|
|
139
|
-
"x-
|
|
187
|
+
"x-group": "基础属性"
|
|
140
188
|
},
|
|
141
189
|
"defaultValue": {
|
|
142
|
-
"x-
|
|
190
|
+
"x-group": "基础属性",
|
|
143
191
|
"title": "初始默认值",
|
|
144
192
|
"type": "array",
|
|
145
193
|
"items": {
|
|
@@ -89,7 +89,7 @@ export default defineConfig({
|
|
|
89
89
|
meta: {
|
|
90
90
|
title: '列',
|
|
91
91
|
category: '布局容器',
|
|
92
|
-
description: '
|
|
92
|
+
description: '网格布局组件的最小单元格,可分别设置移动和桌面端列宽',
|
|
93
93
|
componentOrder: 1000,
|
|
94
94
|
visible: [],
|
|
95
95
|
icon: '../../icons/Container.svg',
|
|
@@ -122,4 +122,7 @@ export default defineConfig({
|
|
|
122
122
|
props: ['widthType', 'lgWidthType', 'alignSelf'],
|
|
123
123
|
},
|
|
124
124
|
},
|
|
125
|
+
configMeta: {
|
|
126
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/Grid',
|
|
127
|
+
},
|
|
125
128
|
});
|
|
@@ -11,6 +11,7 @@ component = 'Col'
|
|
|
11
11
|
`;
|
|
12
12
|
const gutterEnum = [
|
|
13
13
|
{ label: '0px(无)', value: 0 },
|
|
14
|
+
{ label: '8px(超小)', value: 2 },
|
|
14
15
|
{
|
|
15
16
|
label: '16px(超小)',
|
|
16
17
|
value: 3,
|
|
@@ -74,14 +75,15 @@ const data = Type.Object({
|
|
|
74
75
|
// 8 16 24 对应 scss中的 gutters map
|
|
75
76
|
gutterX: Type.NumberEnum({
|
|
76
77
|
title: '列间距',
|
|
77
|
-
default:
|
|
78
|
+
default: 2,
|
|
78
79
|
'x-component': 'string',
|
|
79
80
|
enum: Tuple(gutterEnum),
|
|
80
81
|
'x-index': 30,
|
|
82
|
+
'x-helper-text': '默认对所有列生效,若某行单独配置了列间距,此属性将被覆盖。',
|
|
81
83
|
}),
|
|
82
84
|
gutterY: Type.NumberEnum({
|
|
83
85
|
title: '行间距',
|
|
84
|
-
default:
|
|
86
|
+
default: 2,
|
|
85
87
|
'x-component': 'string',
|
|
86
88
|
'x-index': 40,
|
|
87
89
|
enum: Tuple(gutterEnum),
|
|
@@ -104,7 +106,7 @@ const config = defineConfig({
|
|
|
104
106
|
meta: {
|
|
105
107
|
title: '网格布局',
|
|
106
108
|
category: '布局',
|
|
107
|
-
description: '
|
|
109
|
+
description: '将页面划分为多行、多列的网格,可分别设置移动端和桌面端列宽',
|
|
108
110
|
componentOrder: 60,
|
|
109
111
|
icon: '../../icons/Grid.svg',
|
|
110
112
|
positionConstraint: {
|
|
@@ -126,6 +128,9 @@ const config = defineConfig({
|
|
|
126
128
|
},
|
|
127
129
|
configMeta: {
|
|
128
130
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/Grid',
|
|
131
|
+
shortcut: {
|
|
132
|
+
props: ['gutterX', 'gutterY'],
|
|
133
|
+
},
|
|
129
134
|
},
|
|
130
135
|
});
|
|
131
136
|
export default config;
|
|
@@ -1,4 +1,41 @@
|
|
|
1
1
|
import { defineConfig, Tuple, Type, } from '../../type-utils';
|
|
2
|
+
const gutterEnum = [
|
|
3
|
+
{ label: '默认继承网格布局', value: -1 },
|
|
4
|
+
{ label: '0px(无)', value: 0 },
|
|
5
|
+
{ label: '8px(超小)', value: 2 },
|
|
6
|
+
{
|
|
7
|
+
label: '16px(超小)',
|
|
8
|
+
value: 3,
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
label: '24px(小)',
|
|
12
|
+
value: 4,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: '32px(中)',
|
|
16
|
+
value: 5,
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
label: '48px(大)',
|
|
20
|
+
value: 6,
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: '60px(超大)',
|
|
24
|
+
value: 7,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: '80px(超大)',
|
|
28
|
+
value: 9,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: '100px(超大)',
|
|
32
|
+
value: 9,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
label: '128px(超大)',
|
|
36
|
+
value: 10,
|
|
37
|
+
},
|
|
38
|
+
];
|
|
2
39
|
const data = Type.Object({
|
|
3
40
|
addRowCol: Type.Never({
|
|
4
41
|
title: '添加行',
|
|
@@ -24,6 +61,14 @@ const data = Type.Object({
|
|
|
24
61
|
})),
|
|
25
62
|
},
|
|
26
63
|
}),
|
|
64
|
+
gutterX: Type.NumberEnum({
|
|
65
|
+
title: '列间距',
|
|
66
|
+
default: -1,
|
|
67
|
+
'x-component': 'string',
|
|
68
|
+
enum: Tuple(gutterEnum),
|
|
69
|
+
'x-index': 30,
|
|
70
|
+
description: '对当前行的所有列生效。配置后,将会覆盖父层网格布局的属性。',
|
|
71
|
+
}),
|
|
27
72
|
// // flex-start | flex-end | center | space-between | space-around
|
|
28
73
|
// justifyContent: Type.StringEnum({
|
|
29
74
|
// title: '水平对齐',
|
|
@@ -63,9 +108,9 @@ const data = Type.Object({
|
|
|
63
108
|
'x-component-props': {
|
|
64
109
|
direction: 'crossAxis',
|
|
65
110
|
},
|
|
66
|
-
'x-index':
|
|
111
|
+
'x-index': 40,
|
|
67
112
|
default: 'stretch',
|
|
68
|
-
|
|
113
|
+
'x-helper-text': '当所有列高度完全一致时,该属性不生效',
|
|
69
114
|
enum: Tuple([
|
|
70
115
|
{
|
|
71
116
|
label: 'flex-start',
|
|
@@ -107,7 +152,7 @@ const config = defineConfig({
|
|
|
107
152
|
meta: {
|
|
108
153
|
title: '行',
|
|
109
154
|
category: '布局容器',
|
|
110
|
-
description: '
|
|
155
|
+
description: '水平的行,宽度超出屏幕会自动换行',
|
|
111
156
|
componentOrder: 1000,
|
|
112
157
|
visible: [],
|
|
113
158
|
icon: '../../icons/Container.svg',
|
|
@@ -139,5 +184,8 @@ const config = defineConfig({
|
|
|
139
184
|
props: ['colCount'],
|
|
140
185
|
},
|
|
141
186
|
},
|
|
187
|
+
configMeta: {
|
|
188
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/grid/Grid',
|
|
189
|
+
},
|
|
142
190
|
});
|
|
143
191
|
export default config;
|
|
@@ -91,7 +91,7 @@ export default defineConfig({
|
|
|
91
91
|
{
|
|
92
92
|
to: '$children',
|
|
93
93
|
body: `
|
|
94
|
-
{{#with
|
|
94
|
+
{{#with $self.id as |repeater_suffix|}}
|
|
95
95
|
[attributes]
|
|
96
96
|
':data' = "[{name: '文本内容1'}, {name: '文本内容2'}]"
|
|
97
97
|
suffix = '{{repeater_suffix}}'
|
|
@@ -109,6 +109,9 @@ export default defineConfig({
|
|
|
109
109
|
],
|
|
110
110
|
visible: ['APP', 'COMPONENT'],
|
|
111
111
|
},
|
|
112
|
+
configMeta: {
|
|
113
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/Repeater',
|
|
114
|
+
},
|
|
112
115
|
properties: {
|
|
113
116
|
type: 'object',
|
|
114
117
|
properties: {
|
|
@@ -184,6 +184,7 @@ const config = defineConfig({
|
|
|
184
184
|
// 组件元信息
|
|
185
185
|
meta: {
|
|
186
186
|
name: 'WdBubble',
|
|
187
|
+
componentName: 'Bubble',
|
|
187
188
|
title: '气泡提示',
|
|
188
189
|
description: '用于显示气泡的提示。',
|
|
189
190
|
icon: '../../icons/Bubble.svg',
|
|
@@ -192,6 +193,11 @@ const config = defineConfig({
|
|
|
192
193
|
componentOrder: 1,
|
|
193
194
|
platform: ['MOBILEWEB', 'PCWEB'],
|
|
194
195
|
visible: ['APP'],
|
|
196
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdBubble',
|
|
197
|
+
// 快捷编辑时展示在编辑区的属性
|
|
198
|
+
shortcut: {
|
|
199
|
+
props: ['trigger', 'placement'],
|
|
200
|
+
},
|
|
195
201
|
},
|
|
196
202
|
configMeta: {
|
|
197
203
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdBubble',
|
|
@@ -398,6 +398,7 @@ const config = defineConfig({
|
|
|
398
398
|
// 组件元信息
|
|
399
399
|
meta: {
|
|
400
400
|
name: 'WdButton',
|
|
401
|
+
componentName: 'Button',
|
|
401
402
|
title: '按钮',
|
|
402
403
|
description: '当操作命令需要用户点击,用以触发特定事件的发生,如点击事件、信息提交等',
|
|
403
404
|
icon: '../../icons/Button.svg',
|
|
@@ -405,6 +406,11 @@ const config = defineConfig({
|
|
|
405
406
|
categoryOrder: 400,
|
|
406
407
|
componentOrder: 240,
|
|
407
408
|
visible: ['APP'],
|
|
409
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdButton',
|
|
410
|
+
// 快捷编辑时展示在编辑区的属性
|
|
411
|
+
shortcut: {
|
|
412
|
+
props: ['text', 'theme', 'size'],
|
|
413
|
+
},
|
|
408
414
|
},
|
|
409
415
|
configMeta: {
|
|
410
416
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdButton',
|
|
@@ -10,24 +10,6 @@ const data = Type.Object({
|
|
|
10
10
|
enum: Tuple(WD_DIVIDER_TYPE),
|
|
11
11
|
'x-category': '基础属性',
|
|
12
12
|
}),
|
|
13
|
-
// 规范化新增
|
|
14
|
-
// diriction: Type.StringEnum({
|
|
15
|
-
// title: '方向',
|
|
16
|
-
// type: 'string',
|
|
17
|
-
// 'x-index': 30,
|
|
18
|
-
// default: 'horizontal',
|
|
19
|
-
// enum: Tuple([
|
|
20
|
-
// {
|
|
21
|
-
// label: '水平',
|
|
22
|
-
// value: 'horizontal',
|
|
23
|
-
// },
|
|
24
|
-
// {
|
|
25
|
-
// label: '垂直',
|
|
26
|
-
// value: 'vertical',
|
|
27
|
-
// },
|
|
28
|
-
// ] as const),
|
|
29
|
-
// 'x-category': '基础属性',
|
|
30
|
-
// }),
|
|
31
13
|
});
|
|
32
14
|
// 组件对外暴露的只读属性
|
|
33
15
|
// 未来可通过 widget API 开放,应用可以获取到组件的实例属性
|
|
@@ -70,6 +52,8 @@ const config = defineConfig({
|
|
|
70
52
|
// 组件元信息
|
|
71
53
|
meta: {
|
|
72
54
|
name: 'WdDivider',
|
|
55
|
+
// 组件别名,用于生成组件 id,例如 Icon1
|
|
56
|
+
componentName: 'Divider',
|
|
73
57
|
title: '分割线',
|
|
74
58
|
description: '用于显示分割线。',
|
|
75
59
|
icon: '../../icons/Divider.svg',
|
|
@@ -77,6 +61,11 @@ const config = defineConfig({
|
|
|
77
61
|
categoryOrder: 1,
|
|
78
62
|
componentOrder: 1,
|
|
79
63
|
visible: ['APP'],
|
|
64
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdDivider',
|
|
65
|
+
// 快捷编辑时展示在编辑区的属性
|
|
66
|
+
shortcut: {
|
|
67
|
+
props: ['type'],
|
|
68
|
+
},
|
|
80
69
|
},
|
|
81
70
|
configMeta: {
|
|
82
71
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdDivider',
|
|
@@ -107,6 +107,8 @@ const config = defineConfig({
|
|
|
107
107
|
// 组件元信息
|
|
108
108
|
meta: {
|
|
109
109
|
name: 'WdIcon',
|
|
110
|
+
// 组件别名,用于生成组件 id,例如 Icon1
|
|
111
|
+
componentName: 'Icon',
|
|
110
112
|
title: '图标',
|
|
111
113
|
description: '可以通过在图标组件的配置区中选择微搭提供的预置图标实现图标的展示效果并调整图标颜色等参数,同时图标组件也支持用户对图标进行自定义的上传。',
|
|
112
114
|
icon: '../../icons/Icon.svg',
|
|
@@ -114,6 +116,11 @@ const config = defineConfig({
|
|
|
114
116
|
categoryOrder: 400,
|
|
115
117
|
componentOrder: 100,
|
|
116
118
|
visible: ['APP'],
|
|
119
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdIcon',
|
|
120
|
+
// 快捷编辑时展示在编辑区的属性
|
|
121
|
+
shortcut: {
|
|
122
|
+
props: ['type', 'name', 'src', 'size'],
|
|
123
|
+
},
|
|
117
124
|
},
|
|
118
125
|
configMeta: {
|
|
119
126
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdIcon',
|
|
@@ -146,6 +146,9 @@ const config = defineConfig({
|
|
|
146
146
|
},
|
|
147
147
|
],
|
|
148
148
|
meta: {
|
|
149
|
+
name: 'WdImage',
|
|
150
|
+
// 组件别名,用于生成组件 id,例如 Icon1
|
|
151
|
+
componentName: 'Image',
|
|
149
152
|
title: '图片',
|
|
150
153
|
description: '用于在页面进行图片的展示。',
|
|
151
154
|
category: '展示',
|
|
@@ -153,6 +156,10 @@ const config = defineConfig({
|
|
|
153
156
|
categoryOrder: 400,
|
|
154
157
|
componentOrder: 230,
|
|
155
158
|
visible: ['APP'],
|
|
159
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdImage',
|
|
160
|
+
shortcut: {
|
|
161
|
+
props: ['src'],
|
|
162
|
+
},
|
|
156
163
|
},
|
|
157
164
|
configMeta: {
|
|
158
165
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdImage',
|
|
@@ -142,8 +142,6 @@ const data = Type.Object({
|
|
|
142
142
|
contentSlot: Type.Optional(Type.Slot()),
|
|
143
143
|
});
|
|
144
144
|
// 组件对外暴露的只读属性
|
|
145
|
-
// 未来可通过 widget API 开放,应用可以获取到组件的实例属性
|
|
146
|
-
// 组件对外先规范定义,暂时不对外开放
|
|
147
145
|
const properties = Type.Pick(data, ['content', 'url', 'disabled']);
|
|
148
146
|
// export default
|
|
149
147
|
const config = defineConfig({
|
|
@@ -208,6 +206,8 @@ const config = defineConfig({
|
|
|
208
206
|
// 组件元信息
|
|
209
207
|
meta: {
|
|
210
208
|
name: 'WdLink',
|
|
209
|
+
// 组件别名,用于生成组件 id,例如 Icon1
|
|
210
|
+
componentName: 'Link',
|
|
211
211
|
title: '链接',
|
|
212
212
|
description: '当操作命令需要用户点击,用以触发特定事件的发生,如点击事件、信息提交等。',
|
|
213
213
|
icon: '../../icons/Link.svg',
|
|
@@ -222,6 +222,11 @@ const config = defineConfig({
|
|
|
222
222
|
body: btnTemplate,
|
|
223
223
|
},
|
|
224
224
|
],
|
|
225
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdLink',
|
|
226
|
+
// 快捷编辑时展示在编辑区的属性
|
|
227
|
+
shortcut: {
|
|
228
|
+
props: ['content', 'url'],
|
|
229
|
+
},
|
|
225
230
|
},
|
|
226
231
|
configMeta: {
|
|
227
232
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdLink',
|
|
@@ -15,7 +15,7 @@ const data = Type.Object({
|
|
|
15
15
|
type: 'string',
|
|
16
16
|
default: 'body-default',
|
|
17
17
|
enum: Tuple(WD_TEXT_LEVEL),
|
|
18
|
-
description: '设置文本格式,支持正文(
|
|
18
|
+
description: '设置文本格式,支持正文(小、中、大)和标题(H1-H6)',
|
|
19
19
|
'x-category': '基础属性',
|
|
20
20
|
'x-index': 20,
|
|
21
21
|
})),
|
|
@@ -31,7 +31,7 @@ const data = Type.Object({
|
|
|
31
31
|
},
|
|
32
32
|
],
|
|
33
33
|
'x-category': '高级属性',
|
|
34
|
-
description: '
|
|
34
|
+
description: '文本长度超过最大行数用省略展示,开启后,会添加display:-webkit-box !import 样式,可能会导致文本布局失效',
|
|
35
35
|
'x-index': 30,
|
|
36
36
|
})),
|
|
37
37
|
maxLines: Type.Optional(Type.StringEnum({
|
|
@@ -47,7 +47,7 @@ const data = Type.Object({
|
|
|
47
47
|
tips: Type.Optional(Type.Boolean({
|
|
48
48
|
title: '展示文本气泡',
|
|
49
49
|
type: 'boolean',
|
|
50
|
-
description: '
|
|
50
|
+
description: '开启后鼠标悬停在文本组件上会展示文本气泡,仅PC端有效',
|
|
51
51
|
default: true,
|
|
52
52
|
'x-category': '高级属性',
|
|
53
53
|
'x-index': 50,
|
|
@@ -55,9 +55,10 @@ const data = Type.Object({
|
|
|
55
55
|
space: Type.Optional(Type.Boolean({
|
|
56
56
|
title: '连续空格',
|
|
57
57
|
type: 'boolean',
|
|
58
|
-
default:
|
|
58
|
+
default: true,
|
|
59
59
|
'x-category': '高级属性',
|
|
60
|
-
description: '
|
|
60
|
+
description: '关闭时文本内容的换行以空格展示,换行不生效,多个空格会自动转换成单个空格;开启时换行生效,支持识别多个空格',
|
|
61
|
+
'x-helper-text': '关闭时文本内容的换行以空格展示,换行不生效,多个空格会自动转换成单个空格;开启时换行生效,支持识别多个空格',
|
|
61
62
|
'x-index': 60,
|
|
62
63
|
})),
|
|
63
64
|
userSelect: Type.Optional(Type.Boolean({
|
|
@@ -66,7 +67,7 @@ const data = Type.Object({
|
|
|
66
67
|
default: true,
|
|
67
68
|
'x-index': 70,
|
|
68
69
|
'x-category': '高级属性',
|
|
69
|
-
description: '
|
|
70
|
+
description: '是否可选中文本,关闭后文本将不支持进行选中,无法进行复制等常见文本操作',
|
|
70
71
|
})),
|
|
71
72
|
});
|
|
72
73
|
// 组件对外暴露的只读属性
|
|
@@ -123,6 +124,8 @@ const config = defineConfig({
|
|
|
123
124
|
// 组件元信息
|
|
124
125
|
meta: {
|
|
125
126
|
name: 'WdText',
|
|
127
|
+
// 组件别名,用于生成组件 id,例如 Icon1
|
|
128
|
+
componentName: 'Text',
|
|
126
129
|
title: '文本',
|
|
127
130
|
description: '用于展示页面中的文本/标题内容。',
|
|
128
131
|
icon: '../../icons/Text.svg',
|
|
@@ -130,6 +133,11 @@ const config = defineConfig({
|
|
|
130
133
|
categoryOrder: 1,
|
|
131
134
|
componentOrder: 1,
|
|
132
135
|
visible: ['APP'],
|
|
136
|
+
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdText',
|
|
137
|
+
// 快捷编辑时展示在编辑区的属性
|
|
138
|
+
shortcut: {
|
|
139
|
+
props: ['text', 'level'],
|
|
140
|
+
},
|
|
133
141
|
},
|
|
134
142
|
configMeta: {
|
|
135
143
|
docsUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/show/WdText',
|
package/dist/configs/index.js
CHANGED
|
@@ -14,7 +14,6 @@ import Checkbox from './components/form/checkbox.json';
|
|
|
14
14
|
import Switch from './components/form/switch.json';
|
|
15
15
|
import Form from './components/form/form.json';
|
|
16
16
|
import Select from './components/form/select.json';
|
|
17
|
-
import Auth from './components/auth.json';
|
|
18
17
|
import Slot from './components/slot.json';
|
|
19
18
|
import Uploader from './components/form/uploader.json';
|
|
20
19
|
import UploaderFile from './components/form/uploaderFile.json';
|
|
@@ -93,7 +92,6 @@ export const components = {
|
|
|
93
92
|
WedaVideo,
|
|
94
93
|
// Cells,
|
|
95
94
|
Select,
|
|
96
|
-
Auth,
|
|
97
95
|
Slot,
|
|
98
96
|
Uploader,
|
|
99
97
|
UploaderFile,
|