@cloudbase/weda-ui 3.4.4 → 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/chart/bar.json +113 -8
- package/dist/configs/components/chart/line.js +113 -8
- package/dist/configs/components/chart/pie.json +113 -8
- package/dist/configs/components/chart/statisticsCard.json +57 -0
- package/dist/configs/components/dataView.js +7 -7
- 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/graphicCard.json +1 -1
- 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/listView.js +113 -9
- package/dist/configs/components/navLayout.json +1 -1
- package/dist/configs/components/repeater.js +4 -1
- package/dist/configs/components/table.json +125 -9
- 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/style/index.scss +1 -1
- package/dist/web/actions/showModal/index.js +1 -1
- package/dist/web/components/calendar/index.js +2 -2
- package/dist/web/components/chart/common/data-transform.js +1 -1
- package/dist/web/components/chart/statisticsCard/index.js +1 -1
- 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/chart/index.css +0 -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/select/dropdown-select/h5.js +1 -1
- package/dist/web/components/form/select/dropdown-select/index.css +7 -0
- package/dist/web/components/form/select/index.js +2 -7
- package/dist/web/components/form/textarea/index.js +1 -1
- 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 +9 -5
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +23 -21
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +14 -10
- 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 +43 -22
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +15 -4
- 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 +98 -100
- package/dist/web/components/lottery/index.js +122 -123
- package/dist/web/components/richTextView/index.css +2 -0
- package/dist/web/components/swiper/index.js +14 -8
- package/dist/web/components/table/BaseTable.js +3 -3
- 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 -2
- package/dist/web/utils/platform.js +9 -2
- package/dist/web/utils/tool.js +11 -0
- package/dist/web/utils/widget-api/index.js +3 -0
- package/package.json +7 -5
- 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 -74
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.css +0 -8
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +0 -86
- 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 -241
- package/dist/web/components/flow/modules/control/Control.css +0 -29
- package/dist/web/components/flow/modules/control/Control.js +0 -93
- package/dist/web/components/flow/modules/control/ControlMobile.css +0 -69
- package/dist/web/components/flow/modules/control/ControlMobile.js +0 -133
- 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 -256
- package/dist/web/components/flow/modules/control/provider/useMobileModel.js +0 -86
- package/dist/web/components/flow/modules/control/provider/useRevokeAndBackHook.js +0 -82
- package/dist/web/components/flow/modules/control/utils/ControlModelUtils.js +0 -57
- package/dist/web/components/flow/modules/control/utils/index.js +0 -2
|
@@ -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": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
],
|
|
181
181
|
"x-index": 1,
|
|
182
182
|
"x-component": "list",
|
|
183
|
-
"remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(
|
|
183
|
+
"remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapStatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
|
|
184
184
|
},
|
|
185
185
|
"textAlign": {
|
|
186
186
|
"title": "对齐",
|
|
@@ -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;
|
|
@@ -470,7 +470,7 @@ export default {
|
|
|
470
470
|
value: 'data-model',
|
|
471
471
|
},
|
|
472
472
|
{
|
|
473
|
-
label: '
|
|
473
|
+
label: 'APIs',
|
|
474
474
|
value: 'custom-connector',
|
|
475
475
|
},
|
|
476
476
|
],
|
|
@@ -508,7 +508,9 @@ export default {
|
|
|
508
508
|
type: 'value:schema',
|
|
509
509
|
target: 'connectorMethod',
|
|
510
510
|
schema: {
|
|
511
|
-
'x-component-props':
|
|
511
|
+
'x-component-props': {
|
|
512
|
+
connector: '{{$self.value}}',
|
|
513
|
+
},
|
|
512
514
|
},
|
|
513
515
|
},
|
|
514
516
|
],
|
|
@@ -525,8 +527,8 @@ export default {
|
|
|
525
527
|
},
|
|
526
528
|
{
|
|
527
529
|
value: 'custom-connector',
|
|
528
|
-
text: '
|
|
529
|
-
label: '
|
|
530
|
+
text: 'APIs',
|
|
531
|
+
label: 'APIs',
|
|
530
532
|
icon: 'custom-connector',
|
|
531
533
|
isShow: true,
|
|
532
534
|
},
|
|
@@ -622,7 +624,7 @@ export default {
|
|
|
622
624
|
remarks: '展示模型数据的数据来源',
|
|
623
625
|
},
|
|
624
626
|
bindConnectMetadata: {
|
|
625
|
-
title: '
|
|
627
|
+
title: 'APIs',
|
|
626
628
|
type: 'object',
|
|
627
629
|
'x-component': 'connector-select',
|
|
628
630
|
'x-index': 12,
|
|
@@ -633,14 +635,16 @@ export default {
|
|
|
633
635
|
type: 'value:schema',
|
|
634
636
|
target: 'connectorMethod',
|
|
635
637
|
schema: {
|
|
636
|
-
'x-component-props':
|
|
638
|
+
'x-component-props': {
|
|
639
|
+
value: '{{$self.value}}',
|
|
640
|
+
},
|
|
637
641
|
},
|
|
638
642
|
},
|
|
639
643
|
],
|
|
640
644
|
'x-props': {
|
|
641
645
|
'data-hidebind': true,
|
|
642
646
|
},
|
|
643
|
-
remarks: '
|
|
647
|
+
remarks: '展示数据的APIs来源选择',
|
|
644
648
|
},
|
|
645
649
|
connectorMethod: {
|
|
646
650
|
title: '调用方法',
|
|
@@ -649,17 +653,117 @@ export default {
|
|
|
649
653
|
'x-index': 16,
|
|
650
654
|
'x-category': '基础属性',
|
|
651
655
|
required: true,
|
|
656
|
+
'x-component-props': {
|
|
657
|
+
paramsSchema: {
|
|
658
|
+
type: 'object',
|
|
659
|
+
properties: {
|
|
660
|
+
inParams: {
|
|
661
|
+
type: 'object',
|
|
662
|
+
properties: {
|
|
663
|
+
properties: {
|
|
664
|
+
type: 'object',
|
|
665
|
+
properties: {
|
|
666
|
+
pageNo: {
|
|
667
|
+
type: 'object',
|
|
668
|
+
properties: {
|
|
669
|
+
type: { const: 'number' },
|
|
670
|
+
},
|
|
671
|
+
required: ['type'],
|
|
672
|
+
},
|
|
673
|
+
pageSize: {
|
|
674
|
+
type: 'object',
|
|
675
|
+
properties: {
|
|
676
|
+
type: { const: 'number' },
|
|
677
|
+
},
|
|
678
|
+
required: ['type'],
|
|
679
|
+
},
|
|
680
|
+
orderBy: {
|
|
681
|
+
type: 'object',
|
|
682
|
+
properties: {
|
|
683
|
+
type: { const: 'string' },
|
|
684
|
+
},
|
|
685
|
+
},
|
|
686
|
+
orderType: {
|
|
687
|
+
type: 'object',
|
|
688
|
+
properties: {
|
|
689
|
+
type: { const: 'string' },
|
|
690
|
+
},
|
|
691
|
+
},
|
|
692
|
+
},
|
|
693
|
+
required: ['pageNo', 'pageSize'],
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
},
|
|
697
|
+
outParams: {
|
|
698
|
+
type: 'object',
|
|
699
|
+
properties: {
|
|
700
|
+
properties: {
|
|
701
|
+
type: 'object',
|
|
702
|
+
properties: {
|
|
703
|
+
total: {
|
|
704
|
+
type: 'object',
|
|
705
|
+
properties: {
|
|
706
|
+
type: { const: 'number' },
|
|
707
|
+
},
|
|
708
|
+
},
|
|
709
|
+
records: {
|
|
710
|
+
type: 'object',
|
|
711
|
+
properties: {
|
|
712
|
+
type: { const: 'array' },
|
|
713
|
+
items: {
|
|
714
|
+
type: 'object',
|
|
715
|
+
properties: {
|
|
716
|
+
type: {
|
|
717
|
+
const: 'object',
|
|
718
|
+
},
|
|
719
|
+
properties: {
|
|
720
|
+
type: 'object',
|
|
721
|
+
properties: {
|
|
722
|
+
_id: {
|
|
723
|
+
type: 'object',
|
|
724
|
+
properties: {
|
|
725
|
+
type: {
|
|
726
|
+
const: 'string',
|
|
727
|
+
},
|
|
728
|
+
},
|
|
729
|
+
},
|
|
730
|
+
},
|
|
731
|
+
},
|
|
732
|
+
},
|
|
733
|
+
},
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
},
|
|
737
|
+
required: ['total', 'records'],
|
|
738
|
+
},
|
|
739
|
+
},
|
|
740
|
+
},
|
|
741
|
+
},
|
|
742
|
+
},
|
|
743
|
+
docUrl: 'https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82',
|
|
744
|
+
},
|
|
652
745
|
'x-props': {
|
|
653
746
|
'data-hidebind': true,
|
|
654
747
|
},
|
|
655
|
-
|
|
748
|
+
'x-helper-text': '方法的出入参需满足组件要求,[查看文档](https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/database/ListView#%E8%B0%83%E7%94%A8-apis-%E7%9A%84%E5%8F%82%E6%95%B0%E8%A6%81%E6%B1%82)',
|
|
749
|
+
'x-helper-text-color': '#E37318',
|
|
750
|
+
remarks: '展示数据的APIs调用方法选择',
|
|
656
751
|
},
|
|
657
752
|
connectorParams: {
|
|
658
753
|
title: '查询入参',
|
|
659
754
|
type: 'string',
|
|
660
755
|
'x-index': 18,
|
|
661
756
|
'x-category': '基础属性',
|
|
662
|
-
remarks: "
|
|
757
|
+
remarks: "对APIs调用方法获取的数据进行筛选过滤。支持对象类型,例如 {name:'',value:''}",
|
|
758
|
+
'x-component': 'property-object-params-field',
|
|
759
|
+
'x-component-props': {
|
|
760
|
+
dataSourceKeyName: 'bindConnectMetadata',
|
|
761
|
+
dataSourceValuePath: 'datasource.name',
|
|
762
|
+
methodNameKeyName: 'connectorMethod',
|
|
763
|
+
methodValuePath: 'name',
|
|
764
|
+
paramsKeyName: 'connectorParams',
|
|
765
|
+
},
|
|
766
|
+
'x-helper-text': '当配置了「显示条数」属性后,pageSize参数将不会生效',
|
|
663
767
|
},
|
|
664
768
|
where: {
|
|
665
769
|
'x-index': 20,
|
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
],
|
|
229
229
|
"x-index": 1,
|
|
230
230
|
"x-component": "list",
|
|
231
|
-
"remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(
|
|
231
|
+
"remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapStatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
|
|
232
232
|
},
|
|
233
233
|
"fontWeight": {
|
|
234
234
|
"type": "string",
|
|
@@ -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: {
|