@cloudbase/weda-ui 2.0.12 → 2.0.28
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/package.json +36 -33
- package/src/configs/components/form/textarea.json +8 -0
- package/src/configs/components/graphicCard.json +1 -1
- package/src/configs/components/navLayout.json +2 -1
- package/src/configs/components/wedaVideo.json +12 -9
- package/src/mp/components/calendar/index.js +4 -1
- package/src/mp/components/calendar/index.json +2 -1
- package/src/mp/components/calendar/index.wxml +1 -1
- package/src/mp/components/calendar/index.wxss +17 -16
- package/src/mp/components/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/form/checkbox/index.js +5 -1
- package/src/mp/components/form/input/index.js +1 -1
- package/src/mp/components/form/radio/index.js +5 -1
- package/src/mp/components/form/select/index.js +7 -7
- package/src/mp/components/form/textarea/index.js +6 -0
- package/src/mp/components/form/textarea/index.wxml +1 -1
- package/src/mp/components/graphicCard/index.wxss +6 -6
- package/src/mp/components/listView/index.wxss +2 -2
- package/src/mp/components/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.js +15 -4
- package/src/mp/components/navigationBar/index.wxss +10 -10
- package/src/mp/components/richText/index.wxml +1 -1
- package/src/mp/components/richText/index.wxss +7 -5
- package/src/mp/components/tabs/index.wxss +1 -2
- package/src/mp/style/weda-ui.wxss +4 -2
- package/src/mp/utils/tcb.js +14 -0
- package/src/web/components/calendar/index.css +27 -40
- package/src/web/components/chart/statisticsCard/index.css +9 -8
- package/src/web/components/form/formcell/index.css +1 -14
- package/src/web/components/form/input/index.css +4 -0
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- package/src/web/components/form/location/components/LocationH5/index.css +19 -19
- package/src/web/components/form/select/h5.tsx +1 -1
- package/src/web/components/form/select/index.tsx +1 -1
- package/src/web/components/form/textarea/index.tsx +12 -0
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +3 -6
- package/src/web/components/form/uploader/uploader.pc.tsx +3 -6
- package/src/web/components/form/uploaderFile/index.css +24 -23
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +9 -4
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +7 -4
- package/src/web/components/graphicCard/index.css +6 -6
- package/src/web/components/listView/index.css +8 -8
- package/src/web/components/lottery/index.tsx +1 -1
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navigationBar/common.tsx +11 -6
- package/src/web/components/navigationBar/h5Menu.tsx +1 -1
- package/src/web/components/navigationBar/horizontalMenu.tsx +3 -2
- package/src/web/components/navigationBar/index.css +26 -26
- package/src/web/components/navigationBar/index.tsx +1 -0
- package/src/web/components/navigationBar/type.d.ts +8 -1
- package/src/web/components/navigationBar/verticalMenu.tsx +1 -1
- package/src/web/components/richTextView/index.css +7 -3
- package/src/web/components/tabs/index.css +1 -2
- package/src/web/components/wedaVideo/index.tsx +14 -4
- package/src/web/utils/platform.js +27 -0
- package/src/web/weda-ui.css +11 -9
- package/src/docs/common/format.tsx +0 -115
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -283
- package/src/docs/compsdocs/chart/Bar.mdx +0 -159
- package/src/docs/compsdocs/chart/Line.mdx +0 -100
- package/src/docs/compsdocs/chart/Pie.mdx +0 -83
- package/src/docs/compsdocs/chart/_category_.json +0 -1
- package/src/docs/compsdocs/chart/statisticsCard.mdx +0 -51
- package/src/docs/compsdocs/database/DataView.mdx +0 -33
- package/src/docs/compsdocs/database/ListView.mdx +0 -33
- package/src/docs/compsdocs/database/_category_.json +0 -1
- package/src/docs/compsdocs/form/Form.mdx +0 -35
- package/src/docs/compsdocs/form/FormCheckbox.mdx +0 -35
- package/src/docs/compsdocs/form/FormDate.mdx +0 -30
- package/src/docs/compsdocs/form/FormEmail.mdx +0 -30
- package/src/docs/compsdocs/form/FormImageUploader.mdx +0 -31
- package/src/docs/compsdocs/form/FormInput.mdx +0 -30
- package/src/docs/compsdocs/form/FormLocation.mdx +0 -64
- package/src/docs/compsdocs/form/FormPhone.mdx +0 -30
- package/src/docs/compsdocs/form/FormRadio.mdx +0 -35
- package/src/docs/compsdocs/form/FormRegion.mdx +0 -30
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -35
- package/src/docs/compsdocs/form/FormSwitch.mdx +0 -30
- package/src/docs/compsdocs/form/FormTextarea.mdx +0 -30
- package/src/docs/compsdocs/form/FormTime.mdx +0 -30
- package/src/docs/compsdocs/form/FormUploadFile.mdx +0 -30
- package/src/docs/compsdocs/form/FormUrl.mdx +0 -30
- package/src/docs/compsdocs/form/_category_.json +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -31
- package/src/docs/compsdocs/grid/Container.mdx +0 -41
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -31
- package/src/docs/compsdocs/grid/Header.mdx +0 -31
- package/src/docs/compsdocs/grid/Layout.mdx +0 -25
- package/src/docs/compsdocs/grid/List.mdx +0 -31
- package/src/docs/compsdocs/grid/ScrollView.mdx +0 -37
- package/src/docs/compsdocs/grid/Swiper.mdx +0 -57
- package/src/docs/compsdocs/grid/_category_.json +0 -1
- package/src/docs/compsdocs/media/Icon.mdx +0 -31
- package/src/docs/compsdocs/media/Image.mdx +0 -55
- package/src/docs/compsdocs/media/_category_.json +0 -1
- package/src/docs/compsdocs/model/ModelCreate.mdx +0 -44
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -44
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -156
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -44
- package/src/docs/compsdocs/model/PageLayout.mdx +0 -21
- package/src/docs/compsdocs/model/_category_.json +0 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +0 -37
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -52
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -29
- package/src/docs/compsdocs/navmenu/TabBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +0 -29
- package/src/docs/compsdocs/navmenu/_category_.json +0 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +0 -45
- package/src/docs/compsdocs/senior/Modal.mdx +0 -57
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -49
- package/src/docs/compsdocs/senior/_category_.json +0 -1
- package/src/docs/compsdocs/show/Calendar.mdx +0 -29
- package/src/docs/compsdocs/show/Divider.mdx +0 -31
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -29
- package/src/docs/compsdocs/show/Item.mdx +0 -31
- package/src/docs/compsdocs/show/ItemList.mdx +0 -48
- package/src/docs/compsdocs/show/Media.mdx +0 -25
- package/src/docs/compsdocs/show/StatusTip.mdx +0 -25
- package/src/docs/compsdocs/show/Swiper.mdx +0 -33
- package/src/docs/compsdocs/show/Tabs.mdx +0 -37
- package/src/docs/compsdocs/show/_category_.json +0 -1
- package/src/docs/compsdocs/show/button.mdx +0 -25
- package/src/docs/compsdocs/text/Link.mdx +0 -43
- package/src/docs/compsdocs/text/RichTextView.mdx +0 -35
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -31
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -45
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -59
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudbase/weda-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.28",
|
|
4
4
|
"main": "./src/index.js",
|
|
5
5
|
"module": "./src/index",
|
|
6
6
|
"miniprogram": "mpdist",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"src",
|
|
12
|
+
"!src/docs",
|
|
12
13
|
"!src/test",
|
|
13
14
|
"!src/stories",
|
|
14
15
|
"!src/web/wedatheme/postcss.config.js",
|
|
@@ -22,8 +23,8 @@
|
|
|
22
23
|
"dev": "tcb lowcode debug",
|
|
23
24
|
"build:cli": "tcb lowcode build",
|
|
24
25
|
"build:analyze": "cross-env ANALYZER=1 tcb lowcode build",
|
|
25
|
-
"test": "
|
|
26
|
-
"test:jest": "jest test --env=jsdom
|
|
26
|
+
"test": "npm run test:jest",
|
|
27
|
+
"test:jest": "jest test --env=jsdom",
|
|
27
28
|
"test:watch": "jest test --env=jsdom --watch",
|
|
28
29
|
"test:e2e": "npx cypress run-ct",
|
|
29
30
|
"test:all": "npm run test && npm run test:e2e",
|
|
@@ -58,9 +59,9 @@
|
|
|
58
59
|
"dependencies": {
|
|
59
60
|
"@cloudbase/ui-react": "^1.0.4",
|
|
60
61
|
"@loadable/component": "^5.15.2",
|
|
61
|
-
"@react-hookz/web": "^
|
|
62
|
-
"@tcwd/style-wedatheme": "^1.0.
|
|
63
|
-
"@use-gesture/react": "^10.2.
|
|
62
|
+
"@react-hookz/web": "^14.2.2",
|
|
63
|
+
"@tcwd/style-wedatheme": "^1.0.4",
|
|
64
|
+
"@use-gesture/react": "^10.2.14",
|
|
64
65
|
"braft-editor": "^2.3.9",
|
|
65
66
|
"braft-utils": "^3.0.12",
|
|
66
67
|
"dayjs": "^1.10.7",
|
|
@@ -82,52 +83,53 @@
|
|
|
82
83
|
"react": ">=16.8.0"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
|
-
"@babel/preset-env": "^7.
|
|
86
|
-
"@babel/preset-react": "^7.
|
|
87
|
-
"@babel/preset-typescript": "^7.
|
|
88
|
-
"@cloudbase/cli": "^1.12.4",
|
|
86
|
+
"@babel/preset-env": "^7.17.2",
|
|
87
|
+
"@babel/preset-react": "^7.17.2",
|
|
88
|
+
"@babel/preset-typescript": "^7.17.2",
|
|
89
89
|
"@cloudbase/lowcode-build-dependence": "^0.9.0",
|
|
90
90
|
"@commitlint/cli": "^16.0.2",
|
|
91
|
-
"@commitlint/config-conventional": "^
|
|
91
|
+
"@commitlint/config-conventional": "^17.0.0",
|
|
92
|
+
"@craco/craco": "^6.4.3",
|
|
92
93
|
"@cypress/code-coverage": "^3.9.12",
|
|
93
|
-
"@cypress/react": "^5.12.
|
|
94
|
-
"@cypress/webpack-dev-server": "~1.8.
|
|
94
|
+
"@cypress/react": "^5.12.5",
|
|
95
|
+
"@cypress/webpack-dev-server": "~1.8.4",
|
|
95
96
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
96
|
-
"@size-limit/preset-big-lib": "^7.0.
|
|
97
|
+
"@size-limit/preset-big-lib": "^7.0.8",
|
|
97
98
|
"@storybook/addon-actions": "^6.4.9",
|
|
98
99
|
"@storybook/addon-essentials": "^6.4.9",
|
|
99
100
|
"@storybook/addon-links": "^6.4.9",
|
|
100
101
|
"@storybook/addon-storyshots": "^6.4.9",
|
|
101
102
|
"@storybook/react": "^6.4.9",
|
|
103
|
+
"@swc-node/jest": "^1.5.2",
|
|
102
104
|
"@testing-library/jest-dom": "^5.16.1",
|
|
103
105
|
"@testing-library/react": "^12.1.2",
|
|
104
106
|
"@testing-library/react-hooks": "^7.0.2",
|
|
105
|
-
"@types/jest": "^27.
|
|
106
|
-
"@types/resize-observer-browser": "^0.1.
|
|
107
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
108
|
-
"@typescript-eslint/parser": "^5.
|
|
109
|
-
"babel-
|
|
110
|
-
"babel-loader": "^8.2.3",
|
|
107
|
+
"@types/jest": "^27.5.1",
|
|
108
|
+
"@types/resize-observer-browser": "^0.1.7",
|
|
109
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
110
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
111
|
+
"babel-loader": "^8.2.5",
|
|
111
112
|
"babel-plugin-istanbul": "^6.1.1",
|
|
112
113
|
"cross-env": "^7.0.3",
|
|
113
|
-
"cypress": "~9.
|
|
114
|
-
"eslint": "^8.
|
|
114
|
+
"cypress": "~9.6.1",
|
|
115
|
+
"eslint": "^8.15.0",
|
|
115
116
|
"eslint-config-prettier": "^8.5.0",
|
|
116
|
-
"eslint-config-tencent": "^1.0.
|
|
117
|
+
"eslint-config-tencent": "^1.0.4",
|
|
117
118
|
"eslint-import-resolver-typescript": "^2.7.1",
|
|
118
119
|
"eslint-plugin-cypress": "^2.12.1",
|
|
119
120
|
"eslint-plugin-import": "^2.26.0",
|
|
120
|
-
"eslint-plugin-jest": "^26.
|
|
121
|
+
"eslint-plugin-jest": "^26.2.2",
|
|
121
122
|
"eslint-plugin-prettier": "^4.0.0",
|
|
122
|
-
"eslint-plugin-react": "^7.
|
|
123
|
+
"eslint-plugin-react": "^7.30.0",
|
|
123
124
|
"eslint-plugin-rulesdir": "^0.2.1",
|
|
124
|
-
"husky": "^
|
|
125
|
+
"husky": "^8.0.1",
|
|
125
126
|
"identity-obj-proxy": "^3.0.0",
|
|
126
127
|
"jest": "^27.5.1",
|
|
127
128
|
"jest-canvas-mock": "^2.4.0",
|
|
129
|
+
"jest-environment-jsdom": "^27",
|
|
128
130
|
"less": "^4.1.2",
|
|
129
|
-
"miniprogram-simulate": "^1.
|
|
130
|
-
"nano-staged": "^0.
|
|
131
|
+
"miniprogram-simulate": "^1.5.7",
|
|
132
|
+
"nano-staged": "^0.8.0",
|
|
131
133
|
"prettier": "^2.6.2",
|
|
132
134
|
"react": "^17.0.2",
|
|
133
135
|
"react-dom": "^17.0.2",
|
|
@@ -135,13 +137,14 @@
|
|
|
135
137
|
"react-test-renderer": "^17.0.2",
|
|
136
138
|
"regenerator-runtime": "^0.13.9",
|
|
137
139
|
"rimraf": "^3.0.2",
|
|
138
|
-
"size-limit": "^7.0.
|
|
139
|
-
"
|
|
140
|
+
"size-limit": "^7.0.8",
|
|
141
|
+
"swc-loader": "0.1.15",
|
|
142
|
+
"swc-plugin-coverage-instrument": "^0.0.6",
|
|
140
143
|
"ts-loader": "^8.2.0",
|
|
141
|
-
"typescript": "^4.
|
|
144
|
+
"typescript": "^4.6.4",
|
|
142
145
|
"webpack": "4.44.2",
|
|
143
|
-
"webpack-cli": "^4.9.
|
|
144
|
-
"webpack-dev-server": "^4.
|
|
146
|
+
"webpack-cli": "^4.9.2",
|
|
147
|
+
"webpack-dev-server": "^4.9.0",
|
|
145
148
|
"zx": "^5.2.0"
|
|
146
149
|
},
|
|
147
150
|
"nano-staged": {
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
],
|
|
181
181
|
"x-index": 1,
|
|
182
182
|
"x-component": "list",
|
|
183
|
-
"remarks": "
|
|
183
|
+
"remarks": "配置图文卡片的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
|
|
184
184
|
},
|
|
185
185
|
"textAlign": {
|
|
186
186
|
"title": "对齐",
|
|
@@ -227,7 +227,8 @@
|
|
|
227
227
|
}
|
|
228
228
|
],
|
|
229
229
|
"x-index": 1,
|
|
230
|
-
"x-component": "list"
|
|
230
|
+
"x-component": "list",
|
|
231
|
+
"remarks": "配置宫格导航的详细内容。属性变量可hover到属性标题进行查看。补充属性说明:点击时(tapsSatus):无行为(tap)/打开页面(inside)/外部链接(outer);参数(params):[{key:***,value:***}]"
|
|
231
232
|
},
|
|
232
233
|
"fontWeight": {
|
|
233
234
|
"type": "string",
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"message": "请输入合法的视频资源",
|
|
14
14
|
"pattern": "^(((https?)://)|/resources/)[^\\s]+$"
|
|
15
15
|
}
|
|
16
|
-
]
|
|
16
|
+
],
|
|
17
|
+
"remarks": "能够播放的视频资源地址,支持云文件id"
|
|
17
18
|
},
|
|
18
19
|
"posterImage": {
|
|
19
20
|
"title": "封面图片",
|
|
@@ -34,7 +35,8 @@
|
|
|
34
35
|
"default": false,
|
|
35
36
|
"type": "boolean",
|
|
36
37
|
"x-category": "基础属性",
|
|
37
|
-
"x-index": 30
|
|
38
|
+
"x-index": 30,
|
|
39
|
+
"remarks": "部分浏览器会阻止默认自动播放行为"
|
|
38
40
|
},
|
|
39
41
|
"loopPlay": {
|
|
40
42
|
"title": "循环播放",
|
|
@@ -55,32 +57,33 @@
|
|
|
55
57
|
"default": true,
|
|
56
58
|
"type": "boolean",
|
|
57
59
|
"x-category": "基础属性",
|
|
58
|
-
"x-index": 60
|
|
60
|
+
"x-index": 60,
|
|
61
|
+
"remarks": "控制视频播放、暂停、静音、全屏等功能,关闭后相当于只能观看视频不能交互"
|
|
59
62
|
},
|
|
60
63
|
"startTime": {
|
|
61
64
|
"title": "初始播放时间(秒)",
|
|
62
65
|
"default": 0,
|
|
63
66
|
"type": "number",
|
|
64
67
|
"x-category": "高级属性",
|
|
65
|
-
"x-index": 70
|
|
68
|
+
"x-index": 70,
|
|
69
|
+
"remarks": "小于0不生效,超出视频时长取值为视频最大时长"
|
|
66
70
|
},
|
|
67
71
|
"endTime": {
|
|
68
72
|
"title": "指定视频时长(秒)",
|
|
69
73
|
"default": 0,
|
|
70
74
|
"type": "number",
|
|
71
75
|
"x-category": "高级属性",
|
|
72
|
-
"x-index": 80
|
|
76
|
+
"x-index": 80,
|
|
77
|
+
"remarks": "小于0不生效;超出视频时长取值为视频最大时长;h5端不会改变进度条显示长度,小程序端会改变"
|
|
73
78
|
}
|
|
74
79
|
}
|
|
75
80
|
},
|
|
76
81
|
"meta": {
|
|
77
82
|
"name": "wedaVideo",
|
|
78
83
|
"title": "视频播放",
|
|
79
|
-
"description": "
|
|
84
|
+
"description": "用于视频播放",
|
|
80
85
|
"icon": "https://qcloudimg.tencent-cloud.cn/raw/c622c16cc4841ef7e99cfe3c05c76f2f.svg",
|
|
81
|
-
"category": "
|
|
82
|
-
"categoryOrder": 1,
|
|
83
|
-
"componentOrder": 1,
|
|
86
|
+
"category": "多媒体",
|
|
84
87
|
"visible": ["APP"]
|
|
85
88
|
}
|
|
86
89
|
}
|
|
@@ -3,6 +3,9 @@ import dayjs from '../../utils/dayjs.min.js';
|
|
|
3
3
|
// import dayjs from 'dayjs'
|
|
4
4
|
Component({
|
|
5
5
|
externalClasses: ['ext-class'],
|
|
6
|
+
options: {
|
|
7
|
+
virtualHost: true,
|
|
8
|
+
},
|
|
6
9
|
/** 传入的props */
|
|
7
10
|
properties: {
|
|
8
11
|
className: {
|
|
@@ -10,7 +13,7 @@ Component({
|
|
|
10
13
|
value: '',
|
|
11
14
|
},
|
|
12
15
|
style: {
|
|
13
|
-
type:
|
|
16
|
+
type: String,
|
|
14
17
|
value: {},
|
|
15
18
|
},
|
|
16
19
|
// 控制器显示隐藏
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<view class="{{className}} weda-calendar
|
|
1
|
+
<view class="{{className}} weda-calendar" style="{{style}}">
|
|
2
2
|
<view class="weda-calendar__control">
|
|
3
3
|
<view class="weda-calendar__prevMonth" wx:if="{{visible}}" bindtap="handlePrevMonth">
|
|
4
4
|
<image class="weda-calendar__prevMonth-icon" src="arrowright--line.svg" />
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
background: rgb(255, 255, 255);
|
|
6
6
|
width: 100%;
|
|
7
7
|
opacity: 0.9;
|
|
8
|
+
font-size: 28rpx;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.weda-calendar .weda-calendar__control {
|
|
@@ -17,15 +18,15 @@
|
|
|
17
18
|
|
|
18
19
|
.weda-calendar .weda-calendar__current-date {
|
|
19
20
|
font-weight: bold;
|
|
20
|
-
font-size:
|
|
21
|
-
line-height:
|
|
21
|
+
font-size: inherit;
|
|
22
|
+
line-height: 1.57142em;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.weda-calendar .weda-calendar__prevMonth,
|
|
25
26
|
.weda-calendar .weda-calendar__nextMonth {
|
|
26
27
|
position: absolute;
|
|
27
|
-
width:
|
|
28
|
-
height:
|
|
28
|
+
width: 1.14285em;
|
|
29
|
+
height: 1.14285em;
|
|
29
30
|
vertical-align: middle;
|
|
30
31
|
top: 34rpx;
|
|
31
32
|
display: flex;
|
|
@@ -49,7 +50,7 @@
|
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.weda-calendar .weda-calendar__panel {
|
|
52
|
-
height:
|
|
53
|
+
height: 21.85714em;
|
|
53
54
|
padding: 40rpx 32rpx 32rpx 32rpx;
|
|
54
55
|
width: 100%;
|
|
55
56
|
box-sizing: border-box;
|
|
@@ -62,6 +63,7 @@
|
|
|
62
63
|
flex-direction: column;
|
|
63
64
|
justify-self: start;
|
|
64
65
|
align-items: flex-start;
|
|
66
|
+
font-size: inherit;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
.weda-calendar .weda-calendar__table-head {
|
|
@@ -84,8 +86,8 @@
|
|
|
84
86
|
width: 100%;
|
|
85
87
|
height: 100%;
|
|
86
88
|
justify-content: center;
|
|
87
|
-
font-size:
|
|
88
|
-
line-height:
|
|
89
|
+
font-size: 1em;
|
|
90
|
+
line-height: 1.42857em;
|
|
89
91
|
box-sizing: border-box;
|
|
90
92
|
}
|
|
91
93
|
|
|
@@ -109,8 +111,8 @@
|
|
|
109
111
|
position: relative;
|
|
110
112
|
width: 100%;
|
|
111
113
|
height: 100%;
|
|
112
|
-
font-size:
|
|
113
|
-
line-height:
|
|
114
|
+
font-size: 1em;
|
|
115
|
+
line-height: 1.42857em;
|
|
114
116
|
box-sizing: border-box;
|
|
115
117
|
justify-content: center;
|
|
116
118
|
display: flex;
|
|
@@ -119,13 +121,12 @@
|
|
|
119
121
|
}
|
|
120
122
|
|
|
121
123
|
.weda-calendar .weda-calendar__table-body-cell-value {
|
|
122
|
-
font-size:
|
|
124
|
+
font-size: 1em;
|
|
123
125
|
text-align: center;
|
|
124
126
|
border-radius: 50%;
|
|
125
127
|
width: 80rpx;
|
|
126
|
-
line-height:
|
|
128
|
+
line-height: 2.85714em;
|
|
127
129
|
box-sizing: border-box;
|
|
128
|
-
font-weight: 400;
|
|
129
130
|
color: rgba(0, 0, 0, 0.9);
|
|
130
131
|
position: relative;
|
|
131
132
|
}
|
|
@@ -157,12 +158,12 @@
|
|
|
157
158
|
.weda-calendar__table-body-cell.is-now
|
|
158
159
|
.weda-calendar__table-body-cell-bg {
|
|
159
160
|
position: absolute;
|
|
160
|
-
width:
|
|
161
|
-
height:
|
|
161
|
+
width: 1.714285em;
|
|
162
|
+
height: 1.714285em;
|
|
162
163
|
background: #0052d9;
|
|
163
164
|
border-radius: 100%;
|
|
164
|
-
left: calc(50% -
|
|
165
|
-
top: calc(50% -
|
|
165
|
+
left: calc(50% - 0.85714em);
|
|
166
|
+
top: calc(50% - 0.85714em);
|
|
166
167
|
z-index: -1;
|
|
167
168
|
}
|
|
168
169
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
max-width: 100%;
|
|
9
9
|
min-height: 140px;
|
|
10
|
+
font-size: 28rpx;
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
.weda-statistics-card .weda-statistics-card__wrapper {
|
|
@@ -16,29 +17,25 @@
|
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.weda-statistics-card .weda-statistics-card__title {
|
|
19
|
-
font-size:
|
|
20
|
-
line-height:
|
|
20
|
+
font-size: 1em;
|
|
21
|
+
line-height: 1.57142em;
|
|
21
22
|
color: rgba(0, 0, 0, 0.6);
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
.weda-statistics-card .weda-statistics-card__detail {
|
|
25
26
|
margin-top: 4px;
|
|
26
|
-
font-size: 28px;
|
|
27
|
-
line-height: 34px;
|
|
28
|
-
color: rgba(0, 0, 0, 0.9);
|
|
29
|
-
word-break: break-all;
|
|
30
27
|
}
|
|
31
28
|
|
|
32
29
|
.weda-statistics-card .weda-statistics-card__count {
|
|
33
|
-
font-size:
|
|
34
|
-
line-height:
|
|
30
|
+
font-size: 2em;
|
|
31
|
+
line-height: 2.42857em;
|
|
35
32
|
color: rgba(0, 0, 0, 0.9);
|
|
36
33
|
word-break: break-all;
|
|
37
34
|
}
|
|
38
35
|
|
|
39
36
|
.weda-statistics-card .weda-statistics-card__unit {
|
|
40
|
-
font-size:
|
|
41
|
-
line-height:
|
|
37
|
+
font-size: 2em;
|
|
38
|
+
line-height: 2.42857em;
|
|
42
39
|
color: rgba(0, 0, 0, 0.4);
|
|
43
40
|
margin-left: 4px;
|
|
44
41
|
vertical-align: middle;
|
|
@@ -2,6 +2,7 @@ import classNames from '../../../utils/classnames';
|
|
|
2
2
|
import destr from '../../../utils/destr';
|
|
3
3
|
import handleEvents from '../../../utils/handleEvents';
|
|
4
4
|
import { callWedaApi } from '../../../utils/tcb';
|
|
5
|
+
import deepEqual from '../../../utils/deepEqual';
|
|
5
6
|
|
|
6
7
|
Component({
|
|
7
8
|
options: {
|
|
@@ -107,7 +108,10 @@ Component({
|
|
|
107
108
|
},
|
|
108
109
|
observers: {
|
|
109
110
|
range: function (range) {
|
|
110
|
-
if (
|
|
111
|
+
if (
|
|
112
|
+
this.properties.format !== 'x-enum' &&
|
|
113
|
+
!deepEqual(range, this.data.defaultRange)
|
|
114
|
+
) {
|
|
111
115
|
this.setData({ defaultRange: range });
|
|
112
116
|
}
|
|
113
117
|
},
|
|
@@ -2,6 +2,7 @@ import classNames from '../../../utils/classnames';
|
|
|
2
2
|
import destr from '../../../utils/destr';
|
|
3
3
|
import handleEvents from '../../../utils/handleEvents';
|
|
4
4
|
import { callWedaApi } from '../../../utils/tcb';
|
|
5
|
+
import deepEqual from '../../../utils/deepEqual';
|
|
5
6
|
|
|
6
7
|
Component({
|
|
7
8
|
options: {
|
|
@@ -107,7 +108,10 @@ Component({
|
|
|
107
108
|
},
|
|
108
109
|
observers: {
|
|
109
110
|
range: function (range) {
|
|
110
|
-
if (
|
|
111
|
+
if (
|
|
112
|
+
this.properties.format !== 'x-enum' &&
|
|
113
|
+
!deepEqual(range, this.data.defaultRange)
|
|
114
|
+
) {
|
|
111
115
|
this.setData({ defaultRange: range });
|
|
112
116
|
}
|
|
113
117
|
},
|
|
@@ -374,9 +374,9 @@ Component({
|
|
|
374
374
|
if (records && records.length !== 0 && primaryField) {
|
|
375
375
|
const option = records.map((item) => {
|
|
376
376
|
return {
|
|
377
|
-
label: item[primaryField],
|
|
377
|
+
label: item[primaryField] || item._id,
|
|
378
378
|
value: item._id,
|
|
379
|
-
name: item[primaryField],
|
|
379
|
+
name: item[primaryField] || item._id,
|
|
380
380
|
};
|
|
381
381
|
});
|
|
382
382
|
this.setData({ selectRange: option.map((item) => item.label), option });
|
|
@@ -426,7 +426,7 @@ Component({
|
|
|
426
426
|
return { value: item.Value, code: item.Code };
|
|
427
427
|
}); //保存省级名称
|
|
428
428
|
this.setData({
|
|
429
|
-
multiArray:
|
|
429
|
+
multiArray: [destr(JSON.stringify(provinceArr))],
|
|
430
430
|
provinceList, //保存省级原始数据
|
|
431
431
|
provinceArr, //省级所有的名称
|
|
432
432
|
});
|
|
@@ -460,7 +460,7 @@ Component({
|
|
|
460
460
|
if (regionType == 'levelTwo') {
|
|
461
461
|
const cityData = [this.data.provinceArr, cityArr];
|
|
462
462
|
this.setData({
|
|
463
|
-
multiArray:
|
|
463
|
+
multiArray: destr(JSON.stringify(cityData)),
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
466
|
var defaultCode = cityList[0]?.Code;
|
|
@@ -493,7 +493,7 @@ Component({
|
|
|
493
493
|
});
|
|
494
494
|
const threeRegion = [this.data.provinceArr, this.data.cityArr, regionArr];
|
|
495
495
|
this.setData({
|
|
496
|
-
multiArray:
|
|
496
|
+
multiArray: destr(JSON.stringify(threeRegion)),
|
|
497
497
|
regionList,
|
|
498
498
|
regionArr,
|
|
499
499
|
});
|
|
@@ -507,8 +507,8 @@ Component({
|
|
|
507
507
|
const { regionType } = this.properties;
|
|
508
508
|
var column = e.detail.column; // 当前改变的列
|
|
509
509
|
var data = {
|
|
510
|
-
multiIndex:
|
|
511
|
-
multiArray:
|
|
510
|
+
multiIndex: destr(JSON.stringify(this.data.multiIndex)),
|
|
511
|
+
multiArray: destr(JSON.stringify(this.data.multiArray)),
|
|
512
512
|
};
|
|
513
513
|
data.multiIndex[column] = e.detail.value; // 第几列改变了就是对应multiIndex的第几个,更新它
|
|
514
514
|
switch (
|
|
@@ -80,5 +80,11 @@ Component({
|
|
|
80
80
|
this.setData({ value: e.detail.value });
|
|
81
81
|
this.triggerEvent('change', e.detail);
|
|
82
82
|
},
|
|
83
|
+
handleFocus: function (e) {
|
|
84
|
+
this.triggerEvent('focus', e.detail);
|
|
85
|
+
},
|
|
86
|
+
handleBlur: function (e) {
|
|
87
|
+
this.triggerEvent('blur', e.detail);
|
|
88
|
+
},
|
|
83
89
|
},
|
|
84
90
|
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<formcell className="{{cls}}" style="{{style}}" label="{{labelVisible ? label : null}}" layout="{{layout}}" multiCell="{{true}}" requiredFlag="{{requiredFlag}}">
|
|
2
2
|
<view class="weui-cell weui-cell_active weui-cell_form}} {{disabled ? 'weui-cell_disabled' : ''}}">
|
|
3
3
|
<view class="weui-cell__bd">
|
|
4
|
-
<textarea class="weui-textarea" placeholder="{{placeholder}}" placeholder-class="weui-input__placeholder" bindinput="handleChange" value="{{value}}" disable="{{disabled}}" maxlength="{{maxLength}}"></textarea>
|
|
4
|
+
<textarea class="weui-textarea" placeholder="{{placeholder}}" placeholder-class="weui-input__placeholder" bindinput="handleChange" value="{{value}}" disable="{{disabled}}" maxlength="{{maxLength}}" bindfocus="handleFocus" bindblur="handleBlur"></textarea>
|
|
5
5
|
<view wx:if="{{counterVisible}}" class="weui-textarea-counter"><span>{{!!value ? value.length : 0}}</span>/{{maxLength}}</view>
|
|
6
6
|
</view>
|
|
7
7
|
</view>
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__title {
|
|
77
|
-
font-size:
|
|
78
|
-
line-height:
|
|
77
|
+
font-size: 1.1428em;
|
|
78
|
+
line-height: 1.71428em;
|
|
79
79
|
text-align: center;
|
|
80
80
|
color: rgba(0, 0, 0, 0.9);
|
|
81
81
|
display: -webkit-box;
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__desc {
|
|
89
|
-
font-size:
|
|
90
|
-
line-height:
|
|
89
|
+
font-size: 1em;
|
|
90
|
+
line-height: 1.5714em;
|
|
91
91
|
color: rgba(0, 0, 0, 0.4);
|
|
92
92
|
text-align: center;
|
|
93
93
|
display: -webkit-box;
|
|
@@ -132,8 +132,8 @@ button:not([size='mini']) {
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.weda-graphic-card .weda-graphic-card__col .weda-graphic-card__btn--text {
|
|
135
|
-
font-size:
|
|
136
|
-
line-height:
|
|
135
|
+
font-size: 1em;
|
|
136
|
+
line-height: 1.5714em;
|
|
137
137
|
color: #0052d9;
|
|
138
138
|
margin-right: 16rpx;
|
|
139
139
|
}
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
.weda-list-view__containor .weda-list-view__more .weda-list-view__more-text {
|
|
23
23
|
padding-top: 20rpx;
|
|
24
24
|
padding-bottom: 28rpx;
|
|
25
|
-
font-size:
|
|
26
|
-
line-height:
|
|
25
|
+
font-size: 0.85714em;
|
|
26
|
+
line-height: 0.85714em;
|
|
27
27
|
color: rgba(0, 0, 0, 0.4);
|
|
28
28
|
text-align: center;
|
|
29
29
|
box-sizing: border-box;
|
|
@@ -1131,8 +1131,8 @@
|
|
|
1131
1131
|
.weda-grid-navigation
|
|
1132
1132
|
.weda-grid-navigation__col--medium
|
|
1133
1133
|
.weda-grid-navigation__img {
|
|
1134
|
-
width:
|
|
1135
|
-
height:
|
|
1134
|
+
width: 2.57142em;
|
|
1135
|
+
height: 2.57142em;
|
|
1136
1136
|
}
|
|
1137
1137
|
.weda-grid-navigation .weda-grid-navigation__icon .lcap-icon-padding {
|
|
1138
1138
|
padding: 2px 0;
|
|
@@ -1141,31 +1141,31 @@
|
|
|
1141
1141
|
.weda-grid-navigation__col--medium
|
|
1142
1142
|
.weda-grid-navigation__icon
|
|
1143
1143
|
.weda-icon {
|
|
1144
|
-
font-size:
|
|
1144
|
+
font-size: 2.57142em;
|
|
1145
1145
|
}
|
|
1146
1146
|
.weda-grid-navigation
|
|
1147
1147
|
.weda-grid-navigation__col--small
|
|
1148
1148
|
.weda-grid-navigation__img {
|
|
1149
|
-
width:
|
|
1149
|
+
width: 2.2857em;
|
|
1150
1150
|
}
|
|
1151
1151
|
.weda-grid-navigation
|
|
1152
1152
|
.weda-grid-navigation__col--small
|
|
1153
1153
|
.weda-grid-navigation__icon
|
|
1154
1154
|
.weda-icon {
|
|
1155
|
-
font-size:
|
|
1155
|
+
font-size: 2.2857em;
|
|
1156
1156
|
}
|
|
1157
1157
|
.weda-grid-navigation
|
|
1158
1158
|
.weda-grid-navigation__col--big
|
|
1159
1159
|
.weda-grid-navigation__img {
|
|
1160
|
-
width:
|
|
1161
|
-
height:
|
|
1160
|
+
width: 2.85714em;
|
|
1161
|
+
height: 2.85714em;
|
|
1162
1162
|
}
|
|
1163
1163
|
|
|
1164
1164
|
.weda-grid-navigation
|
|
1165
1165
|
.weda-grid-navigation__col--big
|
|
1166
1166
|
.weda-grid-navigation__icon
|
|
1167
1167
|
.weda-icon {
|
|
1168
|
-
font-size:
|
|
1168
|
+
font-size: 2.85714em;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
1171
|
.weda-grid-navigation .weda-grid-navigation__icon .weda-grid-navigation__img {
|
|
@@ -1174,8 +1174,8 @@
|
|
|
1174
1174
|
}
|
|
1175
1175
|
|
|
1176
1176
|
.weda-grid-navigation .weda-grid-navigation__col .weda-grid-navigation__text {
|
|
1177
|
-
font-size:
|
|
1178
|
-
line-height:
|
|
1177
|
+
font-size: 0.85714em;
|
|
1178
|
+
line-height: 1.42857em;
|
|
1179
1179
|
text-align: center;
|
|
1180
1180
|
color: rgba(0, 0, 0, 0.6);
|
|
1181
1181
|
display: -webkit-box;
|