@cloudbase/weda-ui 2.0.10 → 2.0.26
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 +47 -36
- 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 +14 -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 +44 -45
- 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 +68 -68
- 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 +89 -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/mp/components/button/index.js +1 -1
- package/src/mp/components/button/index.wxml +19 -19
- package/src/mp/components/calendar/index.js +68 -38
- package/src/mp/components/calendar/index.json +3 -2
- package/src/mp/components/calendar/index.wxml +5 -7
- package/src/mp/components/calendar/index.wxss +17 -16
- 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/chart/statisticsCard/index.wxss +7 -10
- package/src/mp/components/dataView/index.wxml +2 -14
- package/src/mp/components/form/checkbox/index.js +15 -7
- 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 +4 -4
- 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 +14 -6
- package/src/mp/components/form/radio/index.wxml +12 -24
- package/src/mp/components/form/select/index.js +157 -98
- package/src/mp/components/form/select/index.wxml +11 -39
- package/src/mp/components/form/select/index.wxss +10 -1
- 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.js +6 -0
- 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/graphicCard/index.wxss +6 -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/listView/index.wxss +2 -2
- 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/navLayout/index.wxss +10 -10
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +43 -51
- 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/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/tabs/index.wxss +1 -2
- 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 +24 -9
- 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 +99 -65
- 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/chart/statisticsCard/index.css +9 -8
- 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 +11 -18
- package/src/web/components/form/formcell/index.tsx +3 -7
- package/src/web/components/form/input/index.css +8 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/mapChoose.css +13 -11
- 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 +19 -20
- 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 +155 -104
- package/src/web/components/form/select/index.css +9 -3
- package/src/web/components/form/select/index.tsx +76 -49
- 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 +39 -26
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/index.css +10 -0
- package/src/web/components/form/uploader/uploader.h5.tsx +29 -26
- 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/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +24 -15
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +21 -13
- package/src/web/components/graphicCard/index.css +6 -6
- 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/listView/index.css +8 -8
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +3 -3
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.css +25 -25
- package/src/web/components/navLayout/index.tsx +1 -1
- package/src/web/components/navigationBar/index.css +26 -26
- 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.css +7 -3
- 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 +2 -3
- 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 +208 -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/platform.js +13 -0
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +23 -8
- package/src/docs/common/format.tsx +0 -112
- package/src/docs/common/tableView.css +0 -164
- package/src/docs/common/tableView.tsx +0 -273
- 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 -36
- 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 -32
- package/src/docs/compsdocs/grid/Container.mdx +0 -42
- package/src/docs/compsdocs/grid/Footer.mdx +0 -31
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -32
- 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 -58
- 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 -20
- package/src/docs/compsdocs/model/ModelDetail.mdx +0 -20
- package/src/docs/compsdocs/model/ModelTable.mdx +0 -24
- package/src/docs/compsdocs/model/ModelUpdate.mdx +0 -21
- 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 -38
- package/src/docs/compsdocs/navmenu/NavBar.mdx +0 -43
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -30
- 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 -48
- package/src/docs/compsdocs/senior/Modal.mdx +0 -58
- package/src/docs/compsdocs/senior/SlotMachine.mdx +0 -52
- 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 -30
- package/src/docs/compsdocs/show/Item.mdx +0 -32
- package/src/docs/compsdocs/show/ItemList.mdx +0 -47
- 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 -38
- 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 -36
- package/src/docs/compsdocs/text/Text.mdx +0 -31
- package/src/docs/compsdocs/text/Title.mdx +0 -32
- package/src/docs/compsdocs/text/_category_.json +0 -1
- package/src/docs/compsdocs/wxOpen/Phone.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -46
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +0 -60
- package/src/docs/compsdocs/wxOpen/_category_.json +0 -4
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/* weda_calendar */
|
|
2
|
+
|
|
3
|
+
.weda-calendar {
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
}
|
|
2
6
|
|
|
3
7
|
/* pc 日历样式 start */
|
|
4
8
|
.weda-calendar.weda-calendar-pc {
|
|
5
|
-
background: #
|
|
6
|
-
border: 0.5px solid #
|
|
9
|
+
background: #ffffff;
|
|
10
|
+
border: 0.5px solid #dcdcdc;
|
|
7
11
|
box-sizing: border-box;
|
|
8
|
-
box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.05),
|
|
12
|
+
box-shadow: 0px 3px 14px 2px rgba(0, 0, 0, 0.05),
|
|
13
|
+
0px 8px 10px 1px rgba(0, 0, 0, 0.06), 0px 5px 5px -3px rgba(0, 0, 0, 0.1);
|
|
9
14
|
border-radius: 3px;
|
|
10
15
|
min-width: 560px;
|
|
11
16
|
}
|
|
@@ -45,31 +50,22 @@
|
|
|
45
50
|
margin-right: 0;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
|
-
.weda-calendar-pc
|
|
53
|
+
.weda-calendar-pc
|
|
54
|
+
.weda-calendar__control-section
|
|
55
|
+
.weda-calendar__control-section-cell {
|
|
49
56
|
height: 100%;
|
|
50
57
|
margin-right: 8px;
|
|
51
58
|
}
|
|
52
59
|
|
|
53
|
-
.weda-calendar-pc
|
|
60
|
+
.weda-calendar-pc
|
|
61
|
+
.weda-calendar__control-section
|
|
62
|
+
.weda-calendar__control-section-cell:last-child {
|
|
54
63
|
margin-right: 0;
|
|
55
64
|
}
|
|
56
65
|
|
|
57
|
-
.weda-calendar-pc .weda-calendar__control-section .tea-dropdown .tea-dropdown__header {
|
|
58
|
-
background: #E7E7E7;
|
|
59
|
-
border-radius: 3px;
|
|
60
|
-
padding: 5px 32px 5px 12px;
|
|
61
|
-
height: 32px;
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.weda-calendar-pc .weda-calendar__control-section .tea-dropdown .tea-dropdown__value {
|
|
66
|
-
font-size: 14px;
|
|
67
|
-
line-height: 22px;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
66
|
.weda-calendar-pc .weda-calendar__control_pc .weda-calendar__current-date {
|
|
71
|
-
font-size:
|
|
72
|
-
line-height:
|
|
67
|
+
font-size: 1em;
|
|
68
|
+
line-height: 1.57142em;
|
|
73
69
|
color: rgba(0, 0, 0, 0.9);
|
|
74
70
|
}
|
|
75
71
|
|
|
@@ -81,6 +77,7 @@
|
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
.weda-calendar .weda-calendar__table {
|
|
80
|
+
font-size: inherit;
|
|
84
81
|
border-collapse: collapse;
|
|
85
82
|
border-spacing: 0;
|
|
86
83
|
width: 100%;
|
|
@@ -116,15 +113,17 @@
|
|
|
116
113
|
justify-content: flex-end;
|
|
117
114
|
height: 100%;
|
|
118
115
|
padding: 0;
|
|
119
|
-
font-size:
|
|
120
|
-
line-height:
|
|
116
|
+
font-size: 1em;
|
|
117
|
+
line-height: 1.57142em;
|
|
121
118
|
color: rgba(0, 0, 0, 0.6);
|
|
122
119
|
margin-right: 12px;
|
|
123
120
|
position: relative;
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
.weda-calendar .weda-calendar__table .weda-calendar__table-head-cell:last-child,
|
|
127
|
-
.weda-calendar
|
|
124
|
+
.weda-calendar
|
|
125
|
+
.weda-calendar__table
|
|
126
|
+
.weda-calendar__table-body-cell:last-child {
|
|
128
127
|
margin-right: 0;
|
|
129
128
|
}
|
|
130
129
|
|
|
@@ -136,7 +135,7 @@
|
|
|
136
135
|
flex: 1;
|
|
137
136
|
-webkit-box-flex: 1;
|
|
138
137
|
-ms-flex: 1;
|
|
139
|
-
border-top: 1px solid #
|
|
138
|
+
border-top: 1px solid #e7e7e7;
|
|
140
139
|
padding: 0;
|
|
141
140
|
height: 87.4px;
|
|
142
141
|
display: flex;
|
|
@@ -156,34 +155,46 @@
|
|
|
156
155
|
color: rgba(0, 0, 0, 0.26);
|
|
157
156
|
}
|
|
158
157
|
|
|
159
|
-
.weda-calendar
|
|
160
|
-
.weda-
|
|
158
|
+
.weda-calendar
|
|
159
|
+
.weda-calendar__table
|
|
160
|
+
.weda-calendar__table-body-cell.is-disabled,
|
|
161
|
+
.weda-calendar
|
|
162
|
+
.weda-calendar__table
|
|
163
|
+
.weda-calendar__table-body-cell.is-invalid {
|
|
161
164
|
cursor: not-allowed;
|
|
162
165
|
}
|
|
163
166
|
|
|
164
|
-
.weda-calendar
|
|
165
|
-
|
|
167
|
+
.weda-calendar
|
|
168
|
+
.weda-calendar__table
|
|
169
|
+
.weda-calendar__table-body-cell.is-invalid {
|
|
170
|
+
background: #f3f3f3;
|
|
166
171
|
}
|
|
167
172
|
|
|
168
173
|
.weda-calendar .weda-calendar__table .weda-calendar__table-body-cell.is-now {
|
|
169
|
-
border-top-color: #
|
|
170
|
-
background: #
|
|
174
|
+
border-top-color: #0052d9;
|
|
175
|
+
background: #ecf2fe;
|
|
171
176
|
}
|
|
172
177
|
|
|
173
178
|
.weda-calendar .weda-calendar__table .weda-calendar__table-body-cell-value {
|
|
174
|
-
font-size:
|
|
179
|
+
font-size: 1em;
|
|
175
180
|
font-weight: 400;
|
|
176
|
-
line-height:
|
|
181
|
+
line-height: 1.57142em;
|
|
177
182
|
color: rgba(0, 0, 0, 0.9);
|
|
178
183
|
margin-top: 3px;
|
|
179
184
|
position: relative;
|
|
180
185
|
}
|
|
181
186
|
|
|
182
|
-
.weda-calendar
|
|
187
|
+
.weda-calendar
|
|
188
|
+
.weda-calendar__table
|
|
189
|
+
.weda-calendar__table-body-cell.is-disabled
|
|
190
|
+
.weda-calendar__table-body-cell-value {
|
|
183
191
|
color: rgba(0, 0, 0, 0.26);
|
|
184
192
|
}
|
|
185
193
|
|
|
186
|
-
.weda-calendar
|
|
194
|
+
.weda-calendar
|
|
195
|
+
.weda-calendar__table
|
|
196
|
+
.weda-calendar__table-body-cell
|
|
197
|
+
.weda-calendar__table-body-cell-marked {
|
|
187
198
|
position: absolute;
|
|
188
199
|
width: 6px;
|
|
189
200
|
height: 6px;
|
|
@@ -198,7 +209,7 @@
|
|
|
198
209
|
/* h5 日历样式 start */
|
|
199
210
|
|
|
200
211
|
.weda-calendar.weda-calendar-h5 {
|
|
201
|
-
background: #
|
|
212
|
+
background: #ffffff;
|
|
202
213
|
width: 100%;
|
|
203
214
|
opacity: 0.9;
|
|
204
215
|
}
|
|
@@ -222,29 +233,33 @@
|
|
|
222
233
|
background-position: center;
|
|
223
234
|
}
|
|
224
235
|
|
|
225
|
-
.weda-calendar__control_h5
|
|
226
|
-
.weda-
|
|
236
|
+
.weda-calendar__control_h5
|
|
237
|
+
.weda-calendar_prevMonth.wedatea2td-icon-arrowleft--line,
|
|
238
|
+
.weda-calendar__control_h5
|
|
239
|
+
.weda-calendar_nextMonth.wedatea2td-icon-arrowright--line {
|
|
227
240
|
position: absolute;
|
|
228
241
|
top: 17px;
|
|
229
|
-
width:
|
|
230
|
-
height:
|
|
242
|
+
width: 1.42857em;
|
|
243
|
+
height: 1.42857em;
|
|
231
244
|
}
|
|
232
245
|
|
|
233
|
-
.weda-calendar__control_h5
|
|
246
|
+
.weda-calendar__control_h5
|
|
247
|
+
.weda-calendar_prevMonth.wedatea2td-icon-arrowleft--line {
|
|
234
248
|
left: 16px;
|
|
235
249
|
}
|
|
236
|
-
.weda-calendar__control_h5
|
|
250
|
+
.weda-calendar__control_h5
|
|
251
|
+
.weda-calendar_nextMonth.wedatea2td-icon-arrowright--line {
|
|
237
252
|
right: 16px;
|
|
238
253
|
}
|
|
239
254
|
|
|
240
255
|
.weda-calendar__control_h5 .weda-calendar__current-date {
|
|
241
|
-
font-size:
|
|
242
|
-
line-height:
|
|
256
|
+
font-size: 1em;
|
|
257
|
+
line-height: 1.57142em;
|
|
243
258
|
font-weight: bold;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
261
|
.weda-calendar-h5 .weda-calendar__panel {
|
|
247
|
-
height:
|
|
262
|
+
height: 21.85714em;
|
|
248
263
|
padding: 20px 16px 16px 16px;
|
|
249
264
|
width: 100%;
|
|
250
265
|
box-sizing: border-box;
|
|
@@ -271,7 +286,7 @@
|
|
|
271
286
|
}
|
|
272
287
|
|
|
273
288
|
.weda-calendar-h5 .weda-calendar__table .weda-calendar__table-head-cell {
|
|
274
|
-
font-size:
|
|
289
|
+
font-size: 0.85714em;
|
|
275
290
|
line-height: 20px;
|
|
276
291
|
width: 100%;
|
|
277
292
|
height: 100%;
|
|
@@ -279,8 +294,8 @@
|
|
|
279
294
|
-webkit-box-pack: center;
|
|
280
295
|
-ms-flex-pack: center;
|
|
281
296
|
justify-content: center;
|
|
282
|
-
font-size:
|
|
283
|
-
line-height:
|
|
297
|
+
font-size: 0.85714em;
|
|
298
|
+
line-height: 1.428571em;
|
|
284
299
|
-webkit-box-sizing: border-box;
|
|
285
300
|
box-sizing: border-box;
|
|
286
301
|
}
|
|
@@ -318,8 +333,8 @@
|
|
|
318
333
|
-webkit-box-pack: center;
|
|
319
334
|
-ms-flex-pack: center;
|
|
320
335
|
justify-content: center;
|
|
321
|
-
font-size:
|
|
322
|
-
line-height:
|
|
336
|
+
font-size: 0.85714em;
|
|
337
|
+
line-height: 1.42857em;
|
|
323
338
|
-webkit-box-sizing: border-box;
|
|
324
339
|
box-sizing: border-box;
|
|
325
340
|
-webkit-box-pack: center;
|
|
@@ -336,47 +351,66 @@
|
|
|
336
351
|
background: transparent;
|
|
337
352
|
}
|
|
338
353
|
|
|
339
|
-
.weda-calendar-h5
|
|
340
|
-
|
|
354
|
+
.weda-calendar-h5
|
|
355
|
+
.weda-calendar__table-body
|
|
356
|
+
.weda-calendar__table-body-cell-value {
|
|
357
|
+
font-size: 1em;
|
|
341
358
|
text-align: center;
|
|
342
359
|
border-radius: 50%;
|
|
343
360
|
width: 40px;
|
|
344
|
-
line-height:
|
|
361
|
+
line-height: 2.85714em;
|
|
345
362
|
margin: 0;
|
|
346
363
|
box-sizing: border-box;
|
|
347
364
|
}
|
|
348
365
|
|
|
349
|
-
.weda-calendar-h5
|
|
366
|
+
.weda-calendar-h5
|
|
367
|
+
.weda-calendar__table
|
|
368
|
+
.weda-calendar__table-body-cell.is-now
|
|
369
|
+
.weda-calendar__table-body-cell-value {
|
|
350
370
|
color: #fff;
|
|
351
371
|
}
|
|
352
372
|
|
|
353
|
-
.weda-calendar-h5
|
|
373
|
+
.weda-calendar-h5
|
|
374
|
+
.weda-calendar__table
|
|
375
|
+
.weda-calendar__table-body-cell.is-now
|
|
376
|
+
.weda-calendar__table-body-cell-bg {
|
|
354
377
|
position: absolute;
|
|
355
|
-
width:
|
|
356
|
-
height:
|
|
357
|
-
background: #
|
|
378
|
+
width: 1.714285em;
|
|
379
|
+
height: 1.714285em;
|
|
380
|
+
background: #0052d9;
|
|
358
381
|
border-radius: 100%;
|
|
359
|
-
left: calc(50% -
|
|
360
|
-
top: calc(50% -
|
|
382
|
+
left: calc(50% - 0.85714em);
|
|
383
|
+
top: calc(50% - 0.85714em);
|
|
361
384
|
z-index: -1;
|
|
362
385
|
}
|
|
363
386
|
|
|
364
|
-
.weda-calendar-h5
|
|
387
|
+
.weda-calendar-h5
|
|
388
|
+
.weda-calendar__table
|
|
389
|
+
.weda-calendar__table-body-cell
|
|
390
|
+
.weda-calendar__table-body-cell-marked {
|
|
365
391
|
width: 4px;
|
|
366
392
|
height: 4px;
|
|
367
393
|
top: calc(50% + 14px);
|
|
368
394
|
}
|
|
369
395
|
|
|
370
|
-
.weda-calendar-h5
|
|
396
|
+
.weda-calendar-h5
|
|
397
|
+
.weda-calendar__table
|
|
398
|
+
.weda-calendar__table-body-cell.is-disabled
|
|
399
|
+
.weda-calendar__table-body-cell-value {
|
|
371
400
|
color: rgba(0, 0, 0, 0.6);
|
|
372
401
|
}
|
|
373
402
|
|
|
374
|
-
.weda-calendar-h5
|
|
403
|
+
.weda-calendar-h5
|
|
404
|
+
.weda-calendar__table
|
|
405
|
+
.weda-calendar__table-body-cell.is-invalid {
|
|
375
406
|
background: transparent;
|
|
376
407
|
}
|
|
377
408
|
|
|
378
|
-
.weda-calendar-h5
|
|
409
|
+
.weda-calendar-h5
|
|
410
|
+
.weda-calendar__table
|
|
411
|
+
.weda-calendar__table-body-cell.is-invalid
|
|
412
|
+
.weda-calendar__table-body-cell-value {
|
|
379
413
|
color: #c5c5c5;
|
|
380
414
|
}
|
|
381
415
|
|
|
382
|
-
/* h5 日历样式 end */
|
|
416
|
+
/* h5 日历样式 end */
|
|
@@ -19,7 +19,7 @@ class EchartBar extends EchartBase {
|
|
|
19
19
|
groupKey,
|
|
20
20
|
groupKeyTimeSpan,
|
|
21
21
|
yField,
|
|
22
|
-
isPile
|
|
22
|
+
isPile,
|
|
23
23
|
}) {
|
|
24
24
|
const { name = '', type = '', methodName = '' } = dataSource;
|
|
25
25
|
if (name !== '') {
|
|
@@ -36,7 +36,7 @@ class EchartBar extends EchartBase {
|
|
|
36
36
|
name,
|
|
37
37
|
methodName,
|
|
38
38
|
type,
|
|
39
|
-
params
|
|
39
|
+
params
|
|
40
40
|
);
|
|
41
41
|
// 获取 x 轴数据
|
|
42
42
|
const sortedXAxisData = this.sortXAxisData(arrSourData, xField.format);
|
|
@@ -57,12 +57,18 @@ class EchartBar extends EchartBase {
|
|
|
57
57
|
},
|
|
58
58
|
data: [],
|
|
59
59
|
};
|
|
60
|
-
sortedXAxisData.forEach((itemSource,index) => {
|
|
60
|
+
sortedXAxisData.forEach((itemSource, index) => {
|
|
61
61
|
this.config.series[j].name = itemSource.YLabels[j].Cn_Name;
|
|
62
|
-
if (
|
|
62
|
+
if (
|
|
63
|
+
(itemSource.YLabels[j].Value === undefined ||
|
|
64
|
+
itemSource.YLabels[j].Value === null) &&
|
|
65
|
+
!xIsCountEmpty
|
|
66
|
+
) {
|
|
63
67
|
arrXisCountEmptyIndex.push(index);
|
|
64
68
|
} else {
|
|
65
|
-
const value = itemSource.YLabels[j].Value
|
|
69
|
+
const value = itemSource.YLabels[j].Value
|
|
70
|
+
? itemSource.YLabels[j].Value
|
|
71
|
+
: 0;
|
|
66
72
|
this.config.series[j].data.push(value);
|
|
67
73
|
}
|
|
68
74
|
});
|
|
@@ -87,7 +93,6 @@ class EchartBar extends EchartBase {
|
|
|
87
93
|
});
|
|
88
94
|
});
|
|
89
95
|
|
|
90
|
-
|
|
91
96
|
// 组装图表需要的数据
|
|
92
97
|
const arrGroupKey = Object.keys(objGroupKey);
|
|
93
98
|
this.config.series = arrGroupKey.map((groupKey) => {
|
|
@@ -102,23 +107,13 @@ class EchartBar extends EchartBase {
|
|
|
102
107
|
label: {
|
|
103
108
|
show: true,
|
|
104
109
|
},
|
|
105
|
-
data: this.getSeriesDataGroup(
|
|
106
|
-
arrXaxisData,
|
|
107
|
-
objGroupKey[groupKey],
|
|
108
|
-
),
|
|
110
|
+
data: this.getSeriesDataGroup(arrXaxisData, objGroupKey[groupKey]),
|
|
109
111
|
stack: isPile ? 'pile' : null,
|
|
110
112
|
};
|
|
111
113
|
return serie;
|
|
112
114
|
});
|
|
113
|
-
this.config.tooltip.formatter = params =>
|
|
114
|
-
`${params.data.dimensionality
|
|
115
|
-
}\r\n${
|
|
116
|
-
params.data.name
|
|
117
|
-
}\r\n${
|
|
118
|
-
params.seriesName
|
|
119
|
-
}:${
|
|
120
|
-
params.value}`
|
|
121
|
-
);
|
|
115
|
+
this.config.tooltip.formatter = (params) =>
|
|
116
|
+
`${params.data.dimensionality}\r\n${params.data.name}\r\n${params.seriesName}:${params.value}`;
|
|
122
117
|
}
|
|
123
118
|
}
|
|
124
119
|
}
|
|
@@ -138,19 +133,17 @@ class EchartBar extends EchartBase {
|
|
|
138
133
|
isUnit,
|
|
139
134
|
unit,
|
|
140
135
|
decimalDigits,
|
|
141
|
-
suffix
|
|
136
|
+
suffix,
|
|
142
137
|
}) {
|
|
143
138
|
decimalDigits = Math.max(0, decimalDigits);
|
|
144
|
-
this.config.series.length > 0
|
|
145
|
-
|
|
139
|
+
this.config.series.length > 0 &&
|
|
140
|
+
this.config.series.forEach((itemSeries) => {
|
|
146
141
|
itemSeries.showSymbol = isSeriesShowSymbol;
|
|
147
142
|
itemSeries.label.show = isSeriesShowSymbol;
|
|
148
143
|
if (isUnit) {
|
|
149
144
|
itemSeries.label.formatter = (params) => {
|
|
150
145
|
const objNewValue = this.getValueByUnit(params.value, unit);
|
|
151
|
-
return (
|
|
152
|
-
`${objNewValue.toFixed(decimalDigits)}${suffix}`
|
|
153
|
-
);
|
|
146
|
+
return `${objNewValue.toFixed(decimalDigits)}${suffix}`;
|
|
154
147
|
};
|
|
155
148
|
}
|
|
156
149
|
});
|
|
@@ -165,17 +158,18 @@ class EchartBar extends EchartBase {
|
|
|
165
158
|
}
|
|
166
159
|
|
|
167
160
|
// 设置柱状图X,Y倒转
|
|
168
|
-
setDirectionType({directionType}) {
|
|
161
|
+
setDirectionType({ directionType }) {
|
|
169
162
|
let temAxis = {};
|
|
170
|
-
if (directionType === 'crosswise') {
|
|
163
|
+
if (directionType === 'crosswise') {
|
|
164
|
+
// 横向
|
|
171
165
|
temAxis = this.config.xAxis;
|
|
172
166
|
// @ts-ignore
|
|
173
167
|
this.config.xAxis = this.config.yAxis;
|
|
174
168
|
// @ts-ignore
|
|
175
169
|
this.config.yAxis = temAxis;
|
|
176
|
-
this.config.yAxis.inverse =
|
|
177
|
-
|
|
178
|
-
|
|
170
|
+
this.config.yAxis.inverse = true;
|
|
171
|
+
} else {
|
|
172
|
+
// 纵向
|
|
179
173
|
if (this.config.yAxis.inverse) {
|
|
180
174
|
temAxis = this.config.yAxis;
|
|
181
175
|
// @ts-ignore
|
|
@@ -220,7 +214,7 @@ class EchartBar extends EchartBase {
|
|
|
220
214
|
isUnit,
|
|
221
215
|
unit,
|
|
222
216
|
decimalDigits,
|
|
223
|
-
suffix
|
|
217
|
+
suffix,
|
|
224
218
|
}) {
|
|
225
219
|
legend = document.body.clientWidth < 1024 ? legend : legend2;
|
|
226
220
|
if (dataSource) {
|
|
@@ -233,7 +227,7 @@ class EchartBar extends EchartBase {
|
|
|
233
227
|
groupKey,
|
|
234
228
|
groupKeyTimeSpan,
|
|
235
229
|
yField,
|
|
236
|
-
isPile
|
|
230
|
+
isPile,
|
|
237
231
|
});
|
|
238
232
|
}
|
|
239
233
|
this.setColor({ setColor });
|
|
@@ -255,9 +249,9 @@ class EchartBar extends EchartBase {
|
|
|
255
249
|
isUnit,
|
|
256
250
|
unit,
|
|
257
251
|
decimalDigits,
|
|
258
|
-
suffix
|
|
252
|
+
suffix,
|
|
259
253
|
});
|
|
260
|
-
this.setDirectionType({directionType});
|
|
254
|
+
this.setDirectionType({ directionType });
|
|
261
255
|
return this.config;
|
|
262
256
|
}
|
|
263
257
|
}
|