@cloudbase/weda-ui 2.0.9 → 2.0.12
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/README.md +1 -0
- package/package.json +13 -5
- package/src/configs/components/button.json +60 -13
- package/src/configs/components/calendar.json +3 -3
- package/src/configs/components/carousel.json +57 -47
- package/src/configs/components/chart/bar.json +4 -13
- package/src/configs/components/chart/line.json +4 -13
- package/src/configs/components/chart/pie.json +3 -10
- package/src/configs/components/chart/statisticsCard.json +1 -4
- package/src/configs/components/container.json +1 -3
- package/src/configs/components/dataView.json +7 -15
- package/src/configs/components/drawer.json +24 -6
- package/src/configs/components/form/form.json +19 -0
- package/src/configs/components/form/input.json +20 -5
- package/src/configs/components/form/location.json +51 -48
- package/src/configs/components/form/radio.json +1 -3
- package/src/configs/components/form/richText.json +14 -14
- package/src/configs/components/form/select.json +62 -82
- package/src/configs/components/form/textarea.json +6 -1
- package/src/configs/components/form/uploader.json +64 -64
- package/src/configs/components/form/uploaderFile.json +1 -2
- package/src/configs/components/graphicCard.json +43 -44
- package/src/configs/components/image.json +44 -40
- package/src/configs/components/link.json +5 -10
- package/src/configs/components/listView.json +2 -8
- package/src/configs/components/lottery.json +7 -3
- package/src/configs/components/modal.json +26 -21
- package/src/configs/components/navLayout.json +66 -67
- package/src/configs/components/navigationBar.json +4 -1
- package/src/configs/components/richtextview.json +1 -1
- package/src/configs/components/scrollVeiw.json +14 -42
- package/src/configs/components/swiper.json +9 -9
- package/src/configs/components/wedaVideo.json +86 -0
- package/src/configs/components/wxOpenApi/phone.json +7 -21
- package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
- package/src/configs/components/wxOpenApi/share.json +14 -24
- package/src/configs/components/wxOpenApi/userInfo.json +9 -27
- package/src/configs/index.js +2 -0
- package/src/docs/common/format.tsx +4 -1
- package/src/docs/common/tableView.css +3 -3
- package/src/docs/common/tableView.tsx +18 -8
- package/src/docs/compsdocs/form/FormLocation.mdx +1 -1
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -1
- package/src/docs/compsdocs/grid/Container.mdx +0 -1
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -1
- package/src/docs/compsdocs/grid/ScrollView.mdx +2 -2
- package/src/docs/compsdocs/grid/Swiper.mdx +1 -2
- package/src/docs/compsdocs/media/Icon.mdx +1 -1
- package/src/docs/compsdocs/media/Image.mdx +6 -6
- package/src/docs/compsdocs/model/ModelCreate.mdx +24 -0
- package/src/docs/compsdocs/model/ModelDetail.mdx +24 -0
- package/src/docs/compsdocs/model/ModelTable.mdx +133 -1
- package/src/docs/compsdocs/model/ModelUpdate.mdx +24 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +2 -3
- package/src/docs/compsdocs/navmenu/NavBar.mdx +14 -5
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -1
- package/src/docs/compsdocs/navmenu/TabBar.mdx +3 -3
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +1 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +3 -6
- package/src/docs/compsdocs/senior/Modal.mdx +2 -3
- package/src/docs/compsdocs/senior/SlotMachine.mdx +2 -5
- package/src/docs/compsdocs/senior/_category_.json +1 -1
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -1
- package/src/docs/compsdocs/show/Item.mdx +0 -1
- package/src/docs/compsdocs/show/ItemList.mdx +1 -0
- package/src/docs/compsdocs/show/Tabs.mdx +2 -3
- package/src/docs/compsdocs/text/Link.mdx +1 -1
- package/src/docs/compsdocs/text/RichTextView.mdx +1 -2
- package/src/docs/compsdocs/text/Text.mdx +1 -1
- package/src/docs/compsdocs/text/Title.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Phone.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -1
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +1 -2
- package/src/mp/components/button/index.js +1 -1
- package/src/mp/components/button/index.wxml +19 -19
- package/src/mp/components/calendar/index.js +64 -37
- package/src/mp/components/calendar/index.json +1 -1
- package/src/mp/components/calendar/index.wxml +4 -6
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +2 -2
- package/src/mp/components/chart/bar/index.js +1 -2
- package/src/mp/components/chart/bar/index.wxml +1 -1
- package/src/mp/components/chart/common/config/bar.js +1 -1
- package/src/mp/components/chart/common/core/eChartBar.js +29 -34
- package/src/mp/components/chart/common/core/eChartBase.js +46 -32
- package/src/mp/components/chart/common/core/eChartLine.js +34 -40
- package/src/mp/components/chart/common/core/eChartPie.js +12 -9
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +24 -22
- package/src/mp/components/chart/line/index.js +2 -2
- package/src/mp/components/chart/line/index.wxml +1 -1
- package/src/mp/components/chart/pie/index.js +1 -1
- package/src/mp/components/chart/pie/index.wxml +1 -2
- package/src/mp/components/dataView/index.wxml +2 -14
- package/src/mp/components/form/checkbox/index.js +10 -6
- package/src/mp/components/form/checkbox/index.wxml +13 -25
- package/src/mp/components/form/form/index.wxml +3 -3
- package/src/mp/components/form/formcell/index.wxml +9 -9
- package/src/mp/components/form/formcell/index.wxss +6 -1
- package/src/mp/components/form/input/index.js +3 -3
- package/src/mp/components/form/input/index.wxml +24 -31
- package/src/mp/components/form/input/index.wxss +9 -3
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +6 -6
- package/src/mp/components/form/location/index.js +7 -1
- package/src/mp/components/form/location/index.json +1 -1
- package/src/mp/components/form/location/index.wxml +6 -10
- package/src/mp/components/form/radio/index.js +9 -5
- package/src/mp/components/form/radio/index.wxml +12 -24
- package/src/mp/components/form/select/index.js +156 -97
- package/src/mp/components/form/select/index.wxml +11 -39
- package/src/mp/components/form/select/index.wxss +14 -3
- package/src/mp/components/form/select/region/index.js +18 -12
- package/src/mp/components/form/switch/index.wxml +11 -18
- package/src/mp/components/form/textarea/index.wxml +2 -17
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/tips/index.wxml +1 -3
- package/src/mp/components/form/uploader/index.js +1 -1
- package/src/mp/components/form/uploader/index.wxml +3 -20
- package/src/mp/components/form/uploader/weui-uploader.js +210 -200
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +38 -38
- package/src/mp/components/form/uploaderFile/index.js +5 -4
- package/src/mp/components/form/uploaderFile/index.wxml +40 -41
- package/src/mp/components/graphicCard/index.js +35 -35
- package/src/mp/components/graphicCard/index.wxml +2 -6
- package/src/mp/components/image/index.wxml +9 -20
- package/src/mp/components/image/index.wxss +3 -1
- package/src/mp/components/listView/index.wxml +5 -7
- package/src/mp/components/lottery/index.wxml +1 -3
- package/src/mp/components/lottery/index.wxss +31 -25
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +2 -4
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +43 -51
- package/src/mp/components/swiper/index.wxml +1 -9
- package/src/mp/components/tabs/index.js +14 -10
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -21
- package/src/mp/components/text/index.wxml +1 -6
- package/src/mp/components/text/index.wxss +1 -1
- package/src/mp/components/wedaVideo/index.js +86 -0
- package/src/mp/components/wedaVideo/index.json +4 -0
- package/src/mp/components/wedaVideo/index.wxml +4 -0
- package/src/mp/components/wedaVideo/index.wxss +20 -0
- package/src/mp/components/wxOpenApi/phone/index.js +1 -9
- package/src/mp/components/wxOpenApi/phone/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/share/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +3 -13
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +20 -7
- package/src/mp/utils/deepEqual.js +37 -37
- package/src/mp/utils/destr.js +41 -40
- package/src/mp/utils/dr_square_point.js +10 -6
- package/src/setupTests.js +13 -13
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/button/index.tsx +44 -40
- package/src/web/components/calendar/index.css +81 -34
- package/src/web/components/carousel/index.tsx +1 -1
- package/src/web/components/chart/common/config/bar.js +1 -1
- package/src/web/components/chart/common/core/eChartBar.js +28 -34
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- package/src/web/components/chart/common/core/eChartLine.js +34 -40
- package/src/web/components/chart/common/core/eChartPie.js +12 -9
- package/src/web/components/chart/common/core/type.ts +23 -23
- package/src/web/components/chart/common/echart.css +12 -12
- package/src/web/components/chart/common/echarts.ts +3 -5
- package/src/web/components/chart/common/useChart.tsx +34 -16
- package/src/web/components/container/index.tsx +3 -4
- package/src/web/components/drawer/index.tsx +15 -4
- package/src/web/components/form/checkbox/index.tsx +32 -31
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
- package/src/web/components/form/form/index.css +3 -6
- package/src/web/components/form/form/index.tsx +7 -6
- package/src/web/components/form/formcell/index.css +10 -4
- package/src/web/components/form/formcell/index.tsx +3 -7
- package/src/web/components/form/input/index.css +4 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/selectModal.jsx +2 -11
- package/src/web/components/form/location/common/useLocationInfo.js +4 -0
- package/src/web/components/form/location/components/LocationH5/index.css +0 -1
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
- package/src/web/components/form/radio/index.tsx +32 -26
- package/src/web/components/form/renderDecorator.tsx +23 -26
- package/src/web/components/form/select/h5.tsx +154 -103
- package/src/web/components/form/select/index.css +9 -3
- package/src/web/components/form/select/index.tsx +75 -48
- package/src/web/components/form/select/region/index.ts +101 -80
- package/src/web/components/form/select/year.tsx +2 -0
- package/src/web/components/form/switch/index.tsx +40 -40
- package/src/web/components/form/textarea/index.css +4 -0
- package/src/web/components/form/textarea/index.tsx +27 -26
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/uploader.h5.tsx +26 -20
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +15 -11
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +14 -9
- package/src/web/components/image/image.tsx +2 -2
- package/src/web/components/image/index.css +9 -7
- package/src/web/components/image/index.tsx +29 -12
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +13 -13
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +2 -2
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.tsx +1 -1
- package/src/web/components/navigationBar/index.tsx +2 -2
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/picker/timePicker.tsx +1 -1
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.tsx +4 -6
- package/src/web/components/scrollView/index.tsx +2 -2
- package/src/web/components/slot/index.tsx +3 -4
- package/src/web/components/swiper/index.css +1 -1
- package/src/web/components/swiper/index.tsx +33 -15
- package/src/web/components/tabs/index.css +1 -1
- package/src/web/components/tabs/index.tsx +6 -6
- package/src/web/components/tabs/tabs.h5.tsx +17 -12
- package/src/web/components/tabs/tabs.pc.tsx +45 -34
- package/src/web/components/text/index.css +1 -1
- package/src/web/components/text/index.tsx +13 -14
- package/src/web/components/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +198 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/isObjectEqual.js +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +17 -0
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.12",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"module": "./src/index",
|
|
6
6
|
"miniprogram": "mpdist",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"@cloudbase/ui-react": "^1.0.4",
|
|
60
60
|
"@loadable/component": "^5.15.2",
|
|
61
61
|
"@react-hookz/web": "^12.3.0",
|
|
62
|
-
"@tcwd/style-wedatheme": "^1.0.
|
|
62
|
+
"@tcwd/style-wedatheme": "^1.0.3",
|
|
63
63
|
"@use-gesture/react": "^10.2.4",
|
|
64
64
|
"braft-editor": "^2.3.9",
|
|
65
65
|
"braft-utils": "^3.0.12",
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
"tdesign-icons-react": "0.0.8",
|
|
75
75
|
"tea-component": "^2.7.3",
|
|
76
76
|
"uuid": "8.3.2",
|
|
77
|
+
"video.js": "^7.18.1",
|
|
77
78
|
"weui": "^2.4.4",
|
|
78
79
|
"weui.js": "1.2.2"
|
|
79
80
|
},
|
|
@@ -108,23 +109,26 @@
|
|
|
108
109
|
"babel-jest": "^27.4.5",
|
|
109
110
|
"babel-loader": "^8.2.3",
|
|
110
111
|
"babel-plugin-istanbul": "^6.1.1",
|
|
111
|
-
"canvas": "^2.9.0",
|
|
112
112
|
"cross-env": "^7.0.3",
|
|
113
113
|
"cypress": "~9.5.1",
|
|
114
114
|
"eslint": "^8.9.0",
|
|
115
|
+
"eslint-config-prettier": "^8.5.0",
|
|
115
116
|
"eslint-config-tencent": "^1.0.3",
|
|
116
117
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
117
118
|
"eslint-plugin-cypress": "^2.12.1",
|
|
118
119
|
"eslint-plugin-import": "^2.26.0",
|
|
119
120
|
"eslint-plugin-jest": "^26.1.2",
|
|
121
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
120
122
|
"eslint-plugin-react": "^7.28.0",
|
|
121
123
|
"eslint-plugin-rulesdir": "^0.2.1",
|
|
122
124
|
"husky": "^7.0.4",
|
|
123
125
|
"identity-obj-proxy": "^3.0.0",
|
|
124
126
|
"jest": "^27.5.1",
|
|
127
|
+
"jest-canvas-mock": "^2.4.0",
|
|
125
128
|
"less": "^4.1.2",
|
|
126
129
|
"miniprogram-simulate": "^1.4.3",
|
|
127
130
|
"nano-staged": "^0.5.0",
|
|
131
|
+
"prettier": "^2.6.2",
|
|
128
132
|
"react": "^17.0.2",
|
|
129
133
|
"react-dom": "^17.0.2",
|
|
130
134
|
"react-scripts": "^4.0.3",
|
|
@@ -142,14 +146,18 @@
|
|
|
142
146
|
},
|
|
143
147
|
"nano-staged": {
|
|
144
148
|
"*.{js,jsx,ts,tsx}": [
|
|
145
|
-
"eslint --fix"
|
|
149
|
+
"eslint --fix",
|
|
150
|
+
"prettier --write"
|
|
151
|
+
],
|
|
152
|
+
"*.{json,html,wxml,wxss}": [
|
|
153
|
+
"prettier -w"
|
|
146
154
|
]
|
|
147
155
|
},
|
|
148
156
|
"size-limit": [
|
|
149
157
|
{
|
|
150
158
|
"path": ".temp/dist/*.main.*",
|
|
151
159
|
"webpack": false,
|
|
152
|
-
"limit": "
|
|
160
|
+
"limit": "1300 KB"
|
|
153
161
|
}
|
|
154
162
|
],
|
|
155
163
|
"nyc": {
|
|
@@ -102,12 +102,30 @@
|
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
"enum": [
|
|
105
|
-
{
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
{
|
|
110
|
-
|
|
105
|
+
{
|
|
106
|
+
"label": "无",
|
|
107
|
+
"value": ""
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"label": "打开客服会话",
|
|
111
|
+
"value": "contact"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"label": "转发",
|
|
115
|
+
"value": "share"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"label": "打开App",
|
|
119
|
+
"value": "launchApp"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"label": "打开授权设置",
|
|
123
|
+
"value": "openSetting"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"label": "打开意见反馈",
|
|
127
|
+
"value": "feedback"
|
|
128
|
+
}
|
|
111
129
|
],
|
|
112
130
|
"x-platforms": ["MP"],
|
|
113
131
|
"x-category": "高级属性"
|
|
@@ -151,7 +169,13 @@
|
|
|
151
169
|
"sendMessageImg": {
|
|
152
170
|
"title": "会话内消息卡片图片",
|
|
153
171
|
"type": "string",
|
|
154
|
-
"x-
|
|
172
|
+
"x-component": "image",
|
|
173
|
+
"x-rules": [
|
|
174
|
+
{
|
|
175
|
+
"message": "请输入合法的图片地址",
|
|
176
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
155
179
|
"default": "",
|
|
156
180
|
"x-platforms": ["MP"],
|
|
157
181
|
"x-category": "高级属性"
|
|
@@ -173,12 +197,35 @@
|
|
|
173
197
|
}
|
|
174
198
|
},
|
|
175
199
|
"events": [
|
|
176
|
-
{
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
{
|
|
181
|
-
|
|
200
|
+
{
|
|
201
|
+
"title": "点击",
|
|
202
|
+
"name": "tap"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"title": "获取手机号",
|
|
206
|
+
"name": "getPhoneNumber",
|
|
207
|
+
"x-platforms": ["MP"]
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"title": "打开客服会话",
|
|
211
|
+
"name": "contact",
|
|
212
|
+
"x-platforms": ["MP"]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"title": "获取用户信息",
|
|
216
|
+
"name": "getUserInfo",
|
|
217
|
+
"x-platforms": ["MP"]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"title": "打开App",
|
|
221
|
+
"name": "launchApp",
|
|
222
|
+
"x-platforms": ["MP"]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"title": "打开授权设置",
|
|
226
|
+
"name": "openSetting",
|
|
227
|
+
"x-platforms": ["MP"]
|
|
228
|
+
}
|
|
182
229
|
],
|
|
183
230
|
"meta": {
|
|
184
231
|
"name": "Button",
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
"title": "日历展示时间",
|
|
8
8
|
"x-category": "基础属性",
|
|
9
9
|
"x-index": 1,
|
|
10
|
-
"remarks":"已选中效果展示的日期"
|
|
10
|
+
"remarks": "已选中效果展示的日期"
|
|
11
11
|
},
|
|
12
12
|
"configData": {
|
|
13
13
|
"type": "array",
|
|
14
14
|
"title": "展示配置",
|
|
15
15
|
"x-category": "基础属性",
|
|
16
|
-
"remarks":"可设置多个不同日期的特殊显示效果",
|
|
16
|
+
"remarks": "可设置多个不同日期的特殊显示效果",
|
|
17
17
|
"x-index": 2,
|
|
18
18
|
"items": {
|
|
19
19
|
"type": "object",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"title": "时间控制器",
|
|
65
65
|
"x-category": "基础属性",
|
|
66
66
|
"x-index": 3,
|
|
67
|
-
"remarks":"显示切换年月的操作按钮"
|
|
67
|
+
"remarks": "显示切换年月的操作按钮"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
},
|
|
@@ -7,49 +7,49 @@
|
|
|
7
7
|
"default": true,
|
|
8
8
|
"type": "boolean",
|
|
9
9
|
"x-category": "基础属性",
|
|
10
|
-
"remarks":"开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
|
|
10
|
+
"remarks": "开启后,轮播图将会自动根据配置的时间间隔进行自动滚动,关闭后则轮播图仅支持通过点击锚点的方式进行切换"
|
|
11
11
|
},
|
|
12
12
|
"indicatorDots": {
|
|
13
13
|
"title": "导航锚点",
|
|
14
14
|
"default": true,
|
|
15
15
|
"type": "boolean",
|
|
16
16
|
"x-category": "高级属性",
|
|
17
|
-
"remarks":"开启/关闭轮播图锚点"
|
|
17
|
+
"remarks": "开启/关闭轮播图锚点"
|
|
18
18
|
},
|
|
19
19
|
"current": {
|
|
20
20
|
"title": "当前所在滑块的 index",
|
|
21
21
|
"default": 0,
|
|
22
22
|
"type": "number",
|
|
23
23
|
"x-category": "高级属性",
|
|
24
|
-
"remarks":"更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
|
|
24
|
+
"remarks": "更改轮播图的默认展示位置,0为默认展示第一张轮播图,以此类推"
|
|
25
25
|
},
|
|
26
26
|
"interval": {
|
|
27
27
|
"title": "自动切换时间间隔",
|
|
28
28
|
"default": 5000,
|
|
29
29
|
"type": "number",
|
|
30
30
|
"x-category": "基础属性",
|
|
31
|
-
"remarks":"配置轮播图滚动的时间间隔,时间单位为ms"
|
|
31
|
+
"remarks": "配置轮播图滚动的时间间隔,时间单位为ms"
|
|
32
32
|
},
|
|
33
33
|
"duration": {
|
|
34
34
|
"title": "滑动动画时长",
|
|
35
35
|
"default": 500,
|
|
36
36
|
"type": "number",
|
|
37
37
|
"x-category": "高级属性",
|
|
38
|
-
"remarks":"更改轮播图切换时的滑动动画时长"
|
|
38
|
+
"remarks": "更改轮播图切换时的滑动动画时长"
|
|
39
39
|
},
|
|
40
40
|
"circular": {
|
|
41
41
|
"title": "衔接滑动",
|
|
42
42
|
"default": true,
|
|
43
43
|
"type": "boolean",
|
|
44
44
|
"x-category": "高级属性",
|
|
45
|
-
"remarks":"更改轮播图切换时动画的滑动方式"
|
|
45
|
+
"remarks": "更改轮播图切换时动画的滑动方式"
|
|
46
46
|
},
|
|
47
47
|
"vertical": {
|
|
48
48
|
"title": "纵向轮播",
|
|
49
49
|
"default": false,
|
|
50
50
|
"type": "boolean",
|
|
51
51
|
"x-category": "基础属性",
|
|
52
|
-
"remarks":"开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
|
|
52
|
+
"remarks": "开启后,轮播的滚动方式将会由横向滚动变更为纵向滚动"
|
|
53
53
|
},
|
|
54
54
|
"indicatorColor": {
|
|
55
55
|
"title": "锚点颜色",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"x-component": "color",
|
|
58
58
|
"default": "rgba(200, 200, 200, 0.9)",
|
|
59
59
|
"x-category": "高级属性",
|
|
60
|
-
"remarks":"更改锚点普通状态下的颜色"
|
|
60
|
+
"remarks": "更改锚点普通状态下的颜色"
|
|
61
61
|
},
|
|
62
62
|
"indicatorActiveColor": {
|
|
63
63
|
"title": "锚点激活色",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"x-component": "color",
|
|
66
66
|
"default": "rgba(0, 0, 0, 0.9)",
|
|
67
67
|
"x-category": "高级属性",
|
|
68
|
-
"remarks":"更改锚点选中时的颜色"
|
|
68
|
+
"remarks": "更改锚点选中时的颜色"
|
|
69
69
|
},
|
|
70
70
|
"images": {
|
|
71
71
|
"type": "array",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"title": "图片1",
|
|
78
78
|
"height": "160px",
|
|
79
79
|
"width": "100%",
|
|
80
|
-
"tapMode":"tap",
|
|
81
|
-
"fit":"cover"
|
|
80
|
+
"tapMode": "tap",
|
|
81
|
+
"fit": "cover"
|
|
82
82
|
},
|
|
83
83
|
"properties": {
|
|
84
84
|
"title": {
|
|
@@ -89,6 +89,12 @@
|
|
|
89
89
|
},
|
|
90
90
|
"image": {
|
|
91
91
|
"type": "image",
|
|
92
|
+
"x-rules": [
|
|
93
|
+
{
|
|
94
|
+
"message": "请输入合法的图片地址",
|
|
95
|
+
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
96
|
+
}
|
|
97
|
+
],
|
|
92
98
|
"title": "图片1",
|
|
93
99
|
"default": "https://main.qcloudimg.com/raw/828ee6644f137d166b063ad7f5dda842.png",
|
|
94
100
|
"x-index": 30
|
|
@@ -145,13 +151,17 @@
|
|
|
145
151
|
"value": "outer",
|
|
146
152
|
"label": "外部链接",
|
|
147
153
|
"icon": "weda-editor-icon-link",
|
|
148
|
-
"tooltip":[
|
|
149
|
-
|
|
150
|
-
"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
"tooltip": [
|
|
155
|
+
{
|
|
156
|
+
"platform": ["ALL", "MP"],
|
|
157
|
+
"text": "小程序平台不支持跳转外部链接"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"disabled": [
|
|
161
|
+
{
|
|
162
|
+
"platform": ["MP"]
|
|
163
|
+
}
|
|
164
|
+
]
|
|
155
165
|
}
|
|
156
166
|
],
|
|
157
167
|
"x-component": "icon-text-radio",
|
|
@@ -188,17 +198,17 @@
|
|
|
188
198
|
"x-index": 120,
|
|
189
199
|
"x-component-props": {
|
|
190
200
|
"hideAddPlatform": ["MP"],
|
|
191
|
-
"addHidden":true
|
|
201
|
+
"addHidden": true
|
|
192
202
|
},
|
|
193
203
|
"x-linkages": [
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}
|
|
204
|
+
{
|
|
205
|
+
"type": "value:state",
|
|
206
|
+
"target": "*(dataForm.params)",
|
|
207
|
+
"condition": "{{$self.value && $self.value.length>0}}",
|
|
208
|
+
"state": {
|
|
209
|
+
"pageId": "{{$self.value}}"
|
|
201
210
|
}
|
|
211
|
+
}
|
|
202
212
|
]
|
|
203
213
|
},
|
|
204
214
|
"outerUrl": {
|
|
@@ -206,7 +216,7 @@
|
|
|
206
216
|
"default": "",
|
|
207
217
|
"type": "string",
|
|
208
218
|
"placeholder": "外部链接请以http://或https://开头",
|
|
209
|
-
"description":"当前页面打开只支持https"
|
|
219
|
+
"description": "当前页面打开只支持https"
|
|
210
220
|
},
|
|
211
221
|
"newPage": {
|
|
212
222
|
"title": "打开新页面",
|
|
@@ -218,19 +228,19 @@
|
|
|
218
228
|
"default": false,
|
|
219
229
|
"type": "boolean",
|
|
220
230
|
"x-linkages": [
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
231
|
+
{
|
|
232
|
+
"type": "value:visible",
|
|
233
|
+
"target": "*(dataForm.params)",
|
|
234
|
+
"condition": "{{$self.value==true}}"
|
|
235
|
+
}
|
|
226
236
|
]
|
|
227
237
|
},
|
|
228
238
|
"params": {
|
|
229
239
|
"type": "array",
|
|
230
240
|
"title": "参数",
|
|
231
|
-
"pageId":"",
|
|
232
|
-
"default":[],
|
|
233
|
-
"x-component":"page-params"
|
|
241
|
+
"pageId": "",
|
|
242
|
+
"default": [],
|
|
243
|
+
"x-component": "page-params"
|
|
234
244
|
}
|
|
235
245
|
}
|
|
236
246
|
},
|
|
@@ -239,26 +249,26 @@
|
|
|
239
249
|
{
|
|
240
250
|
"image": "https://main.qcloudimg.com/raw/828ee6644f137d166b063ad7f5dda842.png",
|
|
241
251
|
"title": "图片1",
|
|
242
|
-
"fit":"cover",
|
|
243
|
-
"tapMode":"tap",
|
|
244
|
-
"height":"160px",
|
|
245
|
-
"width":"100%"
|
|
252
|
+
"fit": "cover",
|
|
253
|
+
"tapMode": "tap",
|
|
254
|
+
"height": "160px",
|
|
255
|
+
"width": "100%"
|
|
246
256
|
},
|
|
247
257
|
{
|
|
248
258
|
"image": "https://main.qcloudimg.com/raw/880b5277dc7d8f62fd6b5f964bee3af4.png",
|
|
249
259
|
"title": "图片2",
|
|
250
|
-
"fit":"cover",
|
|
251
|
-
"tapMode":"tap",
|
|
252
|
-
"height":"160px",
|
|
253
|
-
"width":"100%"
|
|
260
|
+
"fit": "cover",
|
|
261
|
+
"tapMode": "tap",
|
|
262
|
+
"height": "160px",
|
|
263
|
+
"width": "100%"
|
|
254
264
|
},
|
|
255
265
|
{
|
|
256
266
|
"image": "https://main.qcloudimg.com/raw/af8d7dff73fea17aa099876bc3a811fa.png",
|
|
257
267
|
"title": "图片3",
|
|
258
|
-
"fit":"cover",
|
|
259
|
-
"tapMode":"tap",
|
|
260
|
-
"height":"160px",
|
|
261
|
-
"width":"100%"
|
|
268
|
+
"fit": "cover",
|
|
269
|
+
"tapMode": "tap",
|
|
270
|
+
"height": "160px",
|
|
271
|
+
"width": "100%"
|
|
262
272
|
}
|
|
263
273
|
],
|
|
264
274
|
"x-component": "list"
|
|
@@ -272,9 +272,7 @@
|
|
|
272
272
|
"x-component-props": {
|
|
273
273
|
"dataSourceNamePropKey": "dataSource",
|
|
274
274
|
"isMethod": true,
|
|
275
|
-
"disabledTypes": [
|
|
276
|
-
"time"
|
|
277
|
-
]
|
|
275
|
+
"disabledTypes": ["time"]
|
|
278
276
|
},
|
|
279
277
|
"x-linkages": [
|
|
280
278
|
{
|
|
@@ -417,9 +415,7 @@
|
|
|
417
415
|
"default": "bottom",
|
|
418
416
|
"x-category": "基础属性",
|
|
419
417
|
"x-index": 160,
|
|
420
|
-
"x-platforms": [
|
|
421
|
-
"PCWEB"
|
|
422
|
-
],
|
|
418
|
+
"x-platforms": ["PCWEB"],
|
|
423
419
|
"enum": [
|
|
424
420
|
{
|
|
425
421
|
"value": "top",
|
|
@@ -445,10 +441,7 @@
|
|
|
445
441
|
"default": "bottom",
|
|
446
442
|
"x-category": "基础属性",
|
|
447
443
|
"x-index": 170,
|
|
448
|
-
"x-platforms": [
|
|
449
|
-
"MOBILEWEB",
|
|
450
|
-
"MP"
|
|
451
|
-
],
|
|
444
|
+
"x-platforms": ["MOBILEWEB", "MP"],
|
|
452
445
|
"enum": [
|
|
453
446
|
{
|
|
454
447
|
"value": "top",
|
|
@@ -720,9 +713,7 @@
|
|
|
720
713
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/Histogram.svg",
|
|
721
714
|
"category": "图表组件",
|
|
722
715
|
"componentOrder": 1,
|
|
723
|
-
"visible": [
|
|
724
|
-
"APP"
|
|
725
|
-
]
|
|
716
|
+
"visible": ["APP"]
|
|
726
717
|
},
|
|
727
718
|
"configMeta": {
|
|
728
719
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Bar"
|
|
@@ -215,9 +215,7 @@
|
|
|
215
215
|
"x-component-props": {
|
|
216
216
|
"dataSourceNamePropKey": "dataSource",
|
|
217
217
|
"isMethod": true,
|
|
218
|
-
"disabledTypes": [
|
|
219
|
-
"time"
|
|
220
|
-
]
|
|
218
|
+
"disabledTypes": ["time"]
|
|
221
219
|
},
|
|
222
220
|
"x-linkages": [
|
|
223
221
|
{
|
|
@@ -359,9 +357,7 @@
|
|
|
359
357
|
"default": "bottom",
|
|
360
358
|
"x-category": "基础属性",
|
|
361
359
|
"x-index": 150,
|
|
362
|
-
"x-platforms": [
|
|
363
|
-
"PCWEB"
|
|
364
|
-
],
|
|
360
|
+
"x-platforms": ["PCWEB"],
|
|
365
361
|
"enum": [
|
|
366
362
|
{
|
|
367
363
|
"value": "top",
|
|
@@ -388,10 +384,7 @@
|
|
|
388
384
|
"default": "bottom",
|
|
389
385
|
"x-category": "基础属性",
|
|
390
386
|
"x-index": 160,
|
|
391
|
-
"x-platforms": [
|
|
392
|
-
"MOBILEWEB",
|
|
393
|
-
"MP"
|
|
394
|
-
],
|
|
387
|
+
"x-platforms": ["MOBILEWEB", "MP"],
|
|
395
388
|
"enum": [
|
|
396
389
|
{
|
|
397
390
|
"value": "top",
|
|
@@ -673,9 +666,7 @@
|
|
|
673
666
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/LineChart.svg",
|
|
674
667
|
"category": "图表组件",
|
|
675
668
|
"componentOrder": 1,
|
|
676
|
-
"visible": [
|
|
677
|
-
"APP"
|
|
678
|
-
]
|
|
669
|
+
"visible": ["APP"]
|
|
679
670
|
},
|
|
680
671
|
"configMeta": {
|
|
681
672
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Line"
|
|
@@ -304,9 +304,7 @@
|
|
|
304
304
|
"default": "bottom",
|
|
305
305
|
"x-category": "基础属性",
|
|
306
306
|
"x-index": 140,
|
|
307
|
-
"x-platforms": [
|
|
308
|
-
"PCWEB"
|
|
309
|
-
],
|
|
307
|
+
"x-platforms": ["PCWEB"],
|
|
310
308
|
"enum": [
|
|
311
309
|
{
|
|
312
310
|
"value": "top",
|
|
@@ -332,10 +330,7 @@
|
|
|
332
330
|
"default": "bottom",
|
|
333
331
|
"x-category": "基础属性",
|
|
334
332
|
"x-index": 150,
|
|
335
|
-
"x-platforms": [
|
|
336
|
-
"MOBILEWEB",
|
|
337
|
-
"MP"
|
|
338
|
-
],
|
|
333
|
+
"x-platforms": ["MOBILEWEB", "MP"],
|
|
339
334
|
"enum": [
|
|
340
335
|
{
|
|
341
336
|
"value": "top",
|
|
@@ -491,9 +486,7 @@
|
|
|
491
486
|
"icon": "//imgcache.qq.com/qcloud/lowcode/static/ide/left-material-icon/PieChart.svg",
|
|
492
487
|
"category": "图表组件",
|
|
493
488
|
"componentOrder": 1,
|
|
494
|
-
"visible": [
|
|
495
|
-
"APP"
|
|
496
|
-
]
|
|
489
|
+
"visible": ["APP"]
|
|
497
490
|
},
|
|
498
491
|
"configMeta": {
|
|
499
492
|
"docsUrl": "https://docs.cloudbase.net/lowcode/components/wedaUI/src/docs/compsdocs/chart/Pie"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
|
-
"remarks":"展示数据的数据来源"
|
|
54
|
+
"remarks": "展示数据的数据来源"
|
|
55
55
|
},
|
|
56
56
|
"where": {
|
|
57
57
|
"x-index": 20,
|
|
@@ -69,16 +69,8 @@
|
|
|
69
69
|
}
|
|
70
70
|
],
|
|
71
71
|
"blackListConfig": {
|
|
72
|
-
"format": [
|
|
73
|
-
|
|
74
|
-
"father-son",
|
|
75
|
-
"x-file",
|
|
76
|
-
"x-image"
|
|
77
|
-
],
|
|
78
|
-
"type": [
|
|
79
|
-
"object",
|
|
80
|
-
"array"
|
|
81
|
-
]
|
|
72
|
+
"format": ["related", "father-son", "x-file", "x-image"],
|
|
73
|
+
"type": ["object", "array"]
|
|
82
74
|
},
|
|
83
75
|
"customRelOptions": {
|
|
84
76
|
"number": [
|
|
@@ -120,7 +112,7 @@
|
|
|
120
112
|
"data-hideBindValue": true,
|
|
121
113
|
"data-withBindMeta": true
|
|
122
114
|
},
|
|
123
|
-
"remarks":"对数据进行筛选过滤"
|
|
115
|
+
"remarks": "对数据进行筛选过滤"
|
|
124
116
|
}
|
|
125
117
|
}
|
|
126
118
|
},
|
|
@@ -128,17 +120,17 @@
|
|
|
128
120
|
{
|
|
129
121
|
"name": "queryEmpty",
|
|
130
122
|
"title": "查询为空",
|
|
131
|
-
"remarks":"数据查询为空时触发"
|
|
123
|
+
"remarks": "数据查询为空时触发"
|
|
132
124
|
},
|
|
133
125
|
{
|
|
134
126
|
"name": "querySuccess",
|
|
135
127
|
"title": "查询成功",
|
|
136
|
-
"remarks":"数据查询成功时触发"
|
|
128
|
+
"remarks": "数据查询成功时触发"
|
|
137
129
|
},
|
|
138
130
|
{
|
|
139
131
|
"name": "queryFail",
|
|
140
132
|
"title": "查询失败",
|
|
141
|
-
"remarks":"数据查询失败时触发"
|
|
133
|
+
"remarks": "数据查询失败时触发"
|
|
142
134
|
}
|
|
143
135
|
],
|
|
144
136
|
"compConfig": {
|