@nutui/nutui-react-taro 3.0.19-cpp.22-3 → 3.0.19-cpp.22-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
- package/dist/cjs/hooks/use-ref-state.js +3 -3
- package/dist/cjs/hooks/use-touch.js +2 -1
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +28 -16
- package/dist/cjs/packages/badge/badge.js +7 -4
- package/dist/cjs/packages/barrage/barrage.js +24 -14
- package/dist/cjs/packages/calendar/style/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style/style.css +21 -1
- package/dist/cjs/packages/calendar/style/style.harmony.css +21 -1
- package/dist/cjs/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/cjs/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/cjs/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/icon.js +9 -15
- package/dist/cjs/packages/calendarcard/style/calendarcard.scss +13 -0
- package/dist/cjs/packages/calendarcard/style/style.css +8 -0
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +8 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/calendarcard.scss +13 -0
- package/dist/cjs/packages/calendarcard/style-jmapp/style.css +8 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/calendarcard.scss +13 -0
- package/dist/cjs/packages/calendarcard/style-jrkf/style.css +8 -0
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/cascader/cascader.js +21 -12
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/collapseitem/collapseitem.js +7 -4
- package/dist/cjs/packages/configprovider/configprovider.js +7 -7
- package/dist/cjs/packages/configprovider/index.js +6 -6
- package/dist/cjs/packages/countdown/countdown.js +2 -1
- package/dist/cjs/packages/datepicker/utils.js +9 -9
- package/dist/cjs/packages/dialog/content.js +3 -3
- package/dist/cjs/packages/dialog/dialog.js +11 -8
- package/dist/cjs/packages/drag/drag.js +7 -4
- package/dist/cjs/packages/elevator/elevator.js +10 -7
- package/dist/cjs/packages/ellipsis/ellipsis.js +30 -17
- package/dist/cjs/packages/form/index.js +2 -0
- package/dist/cjs/packages/form/useform.js +57 -50
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +14 -8
- package/dist/cjs/packages/inputnumber/inputnumber.js +28 -16
- package/dist/cjs/packages/lottie/types.js +2 -0
- package/dist/cjs/packages/menuitem/menuitem.js +22 -24
- package/dist/cjs/packages/noticebar/noticebar.js +70 -74
- package/dist/cjs/packages/notify/notify.js +4 -4
- package/dist/cjs/packages/nutui.react.build.js +105 -105
- package/dist/cjs/packages/nutui.react.js +105 -105
- package/dist/cjs/packages/overlay/overlay.js +3 -3
- package/dist/cjs/packages/pickerview/pickerroller.js +7 -4
- package/dist/cjs/packages/pickerview/pickerview.js +2 -1
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/popover/popover.js +77 -75
- package/dist/cjs/packages/popup/popup.js +14 -8
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +56 -52
- package/dist/cjs/packages/radio/index.js +2 -0
- package/dist/cjs/packages/range/range.js +28 -16
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/sticky/sticky.js +7 -4
- package/dist/cjs/packages/swipe/swipe.js +14 -8
- package/dist/cjs/packages/swiper/index.js +1 -0
- package/dist/cjs/packages/switch/switch.js +7 -4
- package/dist/cjs/packages/toast/toast.js +4 -4
- package/dist/cjs/packages/uploader/uploader.js +51 -38
- package/dist/cjs/packages/virtuallist/utils.js +6 -6
- package/dist/cjs/packages/watermark/watermark.js +8 -4
- package/dist/cjs/types/spec/address/base.js +2 -0
- package/dist/cjs/utils/date.js +5 -5
- package/dist/cjs/utils/event-mocker.js +18 -10
- package/dist/cjs/utils/get-rect.js +4 -4
- package/dist/cjs/utils/get-scroll-parent.js +3 -3
- package/dist/cjs/utils/merge-props.js +3 -3
- package/dist/cjs/utils/merge.js +6 -6
- package/dist/cjs/utils/raf.js +3 -3
- package/dist/cjs/utils/render.js +9 -5
- package/dist/cjs/utils/rubberband.js +3 -3
- package/dist/cjs/utils/should-render-price-raw.js +3 -3
- package/dist/cjs/utils/taro/get-rect.js +24 -14
- package/dist/cjs/utils/taro/get-system-info.js +4 -4
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/packages/avatarcropper/avatarcropper.js +28 -16
- package/dist/es/packages/badge/badge.js +7 -4
- package/dist/es/packages/barrage/barrage.js +24 -14
- package/dist/es/packages/calendar/style/calendar.scss +32 -1
- package/dist/es/packages/calendar/style/style.css +21 -1
- package/dist/es/packages/calendar/style/style.harmony.css +21 -1
- package/dist/es/packages/calendar/style-jmapp/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jmapp/style.css +21 -1
- package/dist/es/packages/calendar/style-jrkf/calendar.scss +32 -1
- package/dist/es/packages/calendar/style-jrkf/style.css +21 -1
- package/dist/es/packages/calendarcard/icon.js +5 -11
- package/dist/es/packages/calendarcard/style/calendarcard.scss +13 -0
- package/dist/es/packages/calendarcard/style/style.css +8 -0
- package/dist/es/packages/calendarcard/style/style.harmony.css +8 -0
- package/dist/es/packages/calendarcard/style-jmapp/calendarcard.scss +13 -0
- package/dist/es/packages/calendarcard/style-jmapp/style.css +8 -0
- package/dist/es/packages/calendarcard/style-jrkf/calendarcard.scss +13 -0
- package/dist/es/packages/calendarcard/style-jrkf/style.css +8 -0
- package/dist/es/packages/cascader/cascader.js +21 -12
- package/dist/es/packages/collapseitem/collapseitem.js +7 -4
- package/dist/es/packages/countdown/countdown.js +2 -1
- package/dist/es/packages/dialog/dialog.js +7 -4
- package/dist/es/packages/drag/drag.js +7 -4
- package/dist/es/packages/elevator/elevator.js +7 -4
- package/dist/es/packages/ellipsis/ellipsis.js +30 -17
- package/dist/es/packages/form/index.js +1 -0
- package/dist/es/packages/form/useform.js +53 -46
- package/dist/es/packages/infiniteloading/infiniteloading.js +14 -8
- package/dist/es/packages/inputnumber/inputnumber.js +28 -16
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/menuitem/menuitem.js +22 -24
- package/dist/es/packages/noticebar/noticebar.js +70 -74
- package/dist/es/packages/pickerview/pickerroller.js +7 -4
- package/dist/es/packages/pickerview/pickerview.js +2 -1
- package/dist/es/packages/popover/popover.js +77 -75
- package/dist/es/packages/popup/popup.js +14 -8
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +56 -52
- package/dist/es/packages/radio/index.js +1 -0
- package/dist/es/packages/range/range.js +28 -16
- package/dist/es/packages/sticky/sticky.js +7 -4
- package/dist/es/packages/swipe/swipe.js +14 -8
- package/dist/es/packages/swiper/index.js +1 -0
- package/dist/es/packages/switch/switch.js +7 -4
- package/dist/es/packages/uploader/uploader.js +51 -38
- package/dist/es/packages/watermark/watermark.js +8 -4
- package/dist/es/types/spec/address/base.js +1 -1
- package/dist/es/utils/event-mocker.js +12 -4
- package/dist/es/utils/render.js +6 -2
- package/dist/es/utils/taro/get-rect.js +20 -10
- package/dist/nutui.react.umd.js +860 -656
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +41 -41
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +32 -32
- package/dist/style.css +1 -1
- package/dist/style.scss +34 -34
- package/package.json +1 -1
|
@@ -104,9 +104,17 @@
|
|
|
104
104
|
font-weight: var(--nutui-calendar-day-font-weight, var(--nutui-font-weight-bold));
|
|
105
105
|
margin-bottom: 4px;
|
|
106
106
|
}
|
|
107
|
+
.nut-calendar-day-day, .nut-calendar-day-info-curr {
|
|
108
|
+
color: var(--nutui-color-title);
|
|
109
|
+
}
|
|
107
110
|
.nut-calendar-day:nth-child(7n+0), .nut-calendar-day:nth-child(7n+1) {
|
|
108
111
|
color: var(--nutui-color-primary, #ff6666);
|
|
109
112
|
}
|
|
113
|
+
.nut-calendar-day:nth-child(7n+0) .nut-calendar-day-day,
|
|
114
|
+
.nut-calendar-day:nth-child(7n+0) .nut-calendar-day-info-curr, .nut-calendar-day:nth-child(7n+1) .nut-calendar-day-day,
|
|
115
|
+
.nut-calendar-day:nth-child(7n+1) .nut-calendar-day-info-curr {
|
|
116
|
+
color: var(--nutui-color-primary, #ff6666);
|
|
117
|
+
}
|
|
110
118
|
.nut-calendar-day-info, .nut-calendar-day-info-curr {
|
|
111
119
|
position: absolute;
|
|
112
120
|
bottom: 5px;
|
|
@@ -139,12 +147,18 @@
|
|
|
139
147
|
border-top-right-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
140
148
|
border-bottom-right-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
141
149
|
}
|
|
142
|
-
.nut-calendar-day-active .nut-calendar-day-info {
|
|
150
|
+
.nut-calendar-day-active.nut-calendar-day-active .nut-calendar-day-info {
|
|
151
|
+
color: var(--nutui-color-text-dark);
|
|
152
|
+
}
|
|
153
|
+
.nut-calendar-day-active.nut-calendar-day-active .nut-calendar-day-day, .nut-calendar-day-active.nut-calendar-day-active .nut-calendar-day-info-curr {
|
|
143
154
|
color: var(--nutui-color-text-dark);
|
|
144
155
|
}
|
|
145
156
|
.nut-calendar-day-disabled {
|
|
146
157
|
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled)) !important;
|
|
147
158
|
}
|
|
159
|
+
.nut-calendar-day-disabled.nut-calendar-day-disabled .nut-calendar-day-day, .nut-calendar-day-disabled.nut-calendar-day-disabled .nut-calendar-day-info-curr {
|
|
160
|
+
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled));
|
|
161
|
+
}
|
|
148
162
|
.nut-calendar-day-disabled .nut-calendar-day-info-curr {
|
|
149
163
|
display: none;
|
|
150
164
|
}
|
|
@@ -152,10 +166,16 @@
|
|
|
152
166
|
background-color: var(--nutui-calendar-choose-background-color, var(--nutui-color-primary-light, #ffe5e5));
|
|
153
167
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff6666));
|
|
154
168
|
}
|
|
169
|
+
.nut-calendar-day-choose.nut-calendar-day-choose .nut-calendar-day-day, .nut-calendar-day-choose.nut-calendar-day-choose .nut-calendar-day-info-curr {
|
|
170
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff6666));
|
|
171
|
+
}
|
|
155
172
|
.nut-calendar-day-choose-disabled {
|
|
156
173
|
background-color: var(--nutui-calendar-choose-disable-background-color, rgba(191, 191, 191, 0.09));
|
|
157
174
|
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled)) !important;
|
|
158
175
|
}
|
|
176
|
+
.nut-calendar-day-choose-disabled.nut-calendar-day-choose-disabled .nut-calendar-day-day, .nut-calendar-day-choose-disabled.nut-calendar-day-choose-disabled .nut-calendar-day-info-curr {
|
|
177
|
+
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled));
|
|
178
|
+
}
|
|
159
179
|
.nut-calendar-day-choose-disabled .nut-calendar-day-info-curr {
|
|
160
180
|
display: none;
|
|
161
181
|
}
|
|
@@ -5,29 +5,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
getCurrDate: function() {
|
|
13
13
|
return getCurrDate;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
isCurrDay: function() {
|
|
16
16
|
return isCurrDay;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
isEnd: function() {
|
|
19
19
|
return isEnd;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
isMultiple: function() {
|
|
22
22
|
return isMultiple;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
isStart: function() {
|
|
25
25
|
return isStart;
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
isStartAndEnd: function() {
|
|
28
28
|
return isStartAndEnd;
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
splitDate: function() {
|
|
31
31
|
return splitDate;
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -5,20 +5,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
ArrowLeft: function() {
|
|
13
13
|
return ArrowLeft;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
ArrowRight: function() {
|
|
16
16
|
return ArrowRight;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
DoubleLeft: function() {
|
|
19
19
|
return DoubleLeft;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
DoubleRight: function() {
|
|
22
22
|
return DoubleRight;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
@@ -38,19 +38,13 @@ if (process.env.TARO_ENV === 'jdharmony_cpp') {
|
|
|
38
38
|
var Icon = function Icon(param) {
|
|
39
39
|
var url = param.url;
|
|
40
40
|
var style = {
|
|
41
|
-
background: "url('".concat(url, "') no-repeat center"),
|
|
42
|
-
backgroundSize: '100% 100%',
|
|
43
41
|
width: 18,
|
|
44
42
|
height: 18
|
|
45
43
|
};
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
53
|
-
style: style
|
|
44
|
+
return /*#__PURE__*/ _react.default.createElement(_components.Image, {
|
|
45
|
+
src: url,
|
|
46
|
+
style: style,
|
|
47
|
+
mode: "aspectFit"
|
|
54
48
|
});
|
|
55
49
|
};
|
|
56
50
|
var ArrowLeft = function ArrowLeft() {
|
|
@@ -49,6 +49,13 @@
|
|
|
49
49
|
margin-bottom: 4px;
|
|
50
50
|
text-align: center;
|
|
51
51
|
|
|
52
|
+
// 部分 Taro 机型下子节点不会稳定继承父级 color,颜色直接落到最内层文案。
|
|
53
|
+
&-top,
|
|
54
|
+
&-inner,
|
|
55
|
+
&-bottom {
|
|
56
|
+
color: $color-title;
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
&.header {
|
|
53
60
|
cursor: auto;
|
|
54
61
|
}
|
|
@@ -66,6 +73,12 @@
|
|
|
66
73
|
|
|
67
74
|
&.weekend {
|
|
68
75
|
color: $calendar-choose-color;
|
|
76
|
+
|
|
77
|
+
.nut-calendarcard-day-top,
|
|
78
|
+
.nut-calendarcard-day-inner,
|
|
79
|
+
.nut-calendarcard-day-bottom {
|
|
80
|
+
color: $calendar-choose-color;
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
|
|
71
84
|
&.active {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
margin-bottom: 4px;
|
|
48
48
|
text-align: center;
|
|
49
49
|
}
|
|
50
|
+
.nut-calendarcard-day-top, .nut-calendarcard-day-inner, .nut-calendarcard-day-bottom {
|
|
51
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
52
|
+
}
|
|
50
53
|
.nut-calendarcard-day.header {
|
|
51
54
|
cursor: auto;
|
|
52
55
|
}
|
|
@@ -62,6 +65,11 @@
|
|
|
62
65
|
.nut-calendarcard-day.weekend {
|
|
63
66
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
64
67
|
}
|
|
68
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-top,
|
|
69
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-inner,
|
|
70
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-bottom {
|
|
71
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
72
|
+
}
|
|
65
73
|
.nut-calendarcard-day.active {
|
|
66
74
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary, #ff0f23));
|
|
67
75
|
border-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
margin-bottom: 4px;
|
|
48
48
|
text-align: center;
|
|
49
49
|
}
|
|
50
|
+
.nut-calendarcard-day-top, .nut-calendarcard-day-inner, .nut-calendarcard-day-bottom {
|
|
51
|
+
color: var(--nutui-color-title, #1a1a1a);
|
|
52
|
+
}
|
|
50
53
|
.nut-calendarcard-day.header {
|
|
51
54
|
cursor: auto;
|
|
52
55
|
}
|
|
@@ -62,6 +65,11 @@
|
|
|
62
65
|
.nut-calendarcard-day.weekend {
|
|
63
66
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
64
67
|
}
|
|
68
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-top,
|
|
69
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-inner,
|
|
70
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-bottom {
|
|
71
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
72
|
+
}
|
|
65
73
|
.nut-calendarcard-day.active {
|
|
66
74
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary, #ff0f23));
|
|
67
75
|
border-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
@@ -49,6 +49,13 @@
|
|
|
49
49
|
margin-bottom: 4px;
|
|
50
50
|
text-align: center;
|
|
51
51
|
|
|
52
|
+
// 部分 Taro 机型下子节点不会稳定继承父级 color,颜色直接落到最内层文案。
|
|
53
|
+
&-top,
|
|
54
|
+
&-inner,
|
|
55
|
+
&-bottom {
|
|
56
|
+
color: $color-title;
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
&.header {
|
|
53
60
|
cursor: auto;
|
|
54
61
|
}
|
|
@@ -66,6 +73,12 @@
|
|
|
66
73
|
|
|
67
74
|
&.weekend {
|
|
68
75
|
color: $calendar-choose-color;
|
|
76
|
+
|
|
77
|
+
.nut-calendarcard-day-top,
|
|
78
|
+
.nut-calendarcard-day-inner,
|
|
79
|
+
.nut-calendarcard-day-bottom {
|
|
80
|
+
color: $calendar-choose-color;
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
|
|
71
84
|
&.active {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
margin-bottom: 4px;
|
|
48
48
|
text-align: center;
|
|
49
49
|
}
|
|
50
|
+
.nut-calendarcard-day-top, .nut-calendarcard-day-inner, .nut-calendarcard-day-bottom {
|
|
51
|
+
color: var(--nutui-color-title);
|
|
52
|
+
}
|
|
50
53
|
.nut-calendarcard-day.header {
|
|
51
54
|
cursor: auto;
|
|
52
55
|
}
|
|
@@ -62,6 +65,11 @@
|
|
|
62
65
|
.nut-calendarcard-day.weekend {
|
|
63
66
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary));
|
|
64
67
|
}
|
|
68
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-top,
|
|
69
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-inner,
|
|
70
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-bottom {
|
|
71
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary));
|
|
72
|
+
}
|
|
65
73
|
.nut-calendarcard-day.active {
|
|
66
74
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary));
|
|
67
75
|
border-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
@@ -49,6 +49,13 @@
|
|
|
49
49
|
margin-bottom: 4px;
|
|
50
50
|
text-align: center;
|
|
51
51
|
|
|
52
|
+
// 部分 Taro 机型下子节点不会稳定继承父级 color,颜色直接落到最内层文案。
|
|
53
|
+
&-top,
|
|
54
|
+
&-inner,
|
|
55
|
+
&-bottom {
|
|
56
|
+
color: $color-title;
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
&.header {
|
|
53
60
|
cursor: auto;
|
|
54
61
|
}
|
|
@@ -66,6 +73,12 @@
|
|
|
66
73
|
|
|
67
74
|
&.weekend {
|
|
68
75
|
color: $calendar-choose-color;
|
|
76
|
+
|
|
77
|
+
.nut-calendarcard-day-top,
|
|
78
|
+
.nut-calendarcard-day-inner,
|
|
79
|
+
.nut-calendarcard-day-bottom {
|
|
80
|
+
color: $calendar-choose-color;
|
|
81
|
+
}
|
|
69
82
|
}
|
|
70
83
|
|
|
71
84
|
&.active {
|
|
@@ -47,6 +47,9 @@
|
|
|
47
47
|
margin-bottom: 4px;
|
|
48
48
|
text-align: center;
|
|
49
49
|
}
|
|
50
|
+
.nut-calendarcard-day-top, .nut-calendarcard-day-inner, .nut-calendarcard-day-bottom {
|
|
51
|
+
color: var(--nutui-color-title);
|
|
52
|
+
}
|
|
50
53
|
.nut-calendarcard-day.header {
|
|
51
54
|
cursor: auto;
|
|
52
55
|
}
|
|
@@ -62,6 +65,11 @@
|
|
|
62
65
|
.nut-calendarcard-day.weekend {
|
|
63
66
|
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff6666));
|
|
64
67
|
}
|
|
68
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-top,
|
|
69
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-inner,
|
|
70
|
+
.nut-calendarcard-day.weekend .nut-calendarcard-day-bottom {
|
|
71
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff6666));
|
|
72
|
+
}
|
|
65
73
|
.nut-calendarcard-day.active {
|
|
66
74
|
background-color: var(--nutui-calendar-active-background-color, var(--nutui-color-primary, #ff6666));
|
|
67
75
|
border-radius: var(--nutui-calendar-day-active-border-radius, 4px);
|
|
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
convertDateToDay: function() {
|
|
13
13
|
return convertDateToDay;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
convertDayToDate: function() {
|
|
16
16
|
return convertDayToDate;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
getCurrentMonthDays: function() {
|
|
19
19
|
return getCurrentMonthDays;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
getCurrentWeekDays: function() {
|
|
22
22
|
return getCurrentWeekDays;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
getPrevMonthDays: function() {
|
|
25
25
|
return getPrevMonthDays;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -186,8 +186,8 @@ var Cascader = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
186
186
|
outerOptions
|
|
187
187
|
]);
|
|
188
188
|
(0, _react.useEffect)(function() {
|
|
189
|
-
var load = function
|
|
190
|
-
|
|
189
|
+
var load = /*#__PURE__*/ function() {
|
|
190
|
+
var _ref = (0, _async_to_generator._)(function() {
|
|
191
191
|
var parent, error;
|
|
192
192
|
return (0, _ts_generator._)(this, function(_state) {
|
|
193
193
|
switch(_state.label){
|
|
@@ -205,8 +205,8 @@ var Cascader = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
205
205
|
]);
|
|
206
206
|
return [
|
|
207
207
|
4,
|
|
208
|
-
innerValue.reduce(function(
|
|
209
|
-
|
|
208
|
+
innerValue.reduce(/*#__PURE__*/ function() {
|
|
209
|
+
var _ref = (0, _async_to_generator._)(function(promise, val, key) {
|
|
210
210
|
var pane, parent, node;
|
|
211
211
|
return (0, _ts_generator._)(this, function(_state) {
|
|
212
212
|
switch(_state.label){
|
|
@@ -246,8 +246,11 @@ var Cascader = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
246
246
|
];
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
|
-
})
|
|
250
|
-
|
|
249
|
+
});
|
|
250
|
+
return function(promise, val, key) {
|
|
251
|
+
return _ref.apply(this, arguments);
|
|
252
|
+
};
|
|
253
|
+
}(), Promise.resolve(parent))
|
|
251
254
|
];
|
|
252
255
|
case 2:
|
|
253
256
|
_state.sent();
|
|
@@ -270,14 +273,17 @@ var Cascader = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
270
273
|
];
|
|
271
274
|
}
|
|
272
275
|
});
|
|
273
|
-
})
|
|
274
|
-
|
|
276
|
+
});
|
|
277
|
+
return function load() {
|
|
278
|
+
return _ref.apply(this, arguments);
|
|
279
|
+
};
|
|
280
|
+
}();
|
|
275
281
|
if (lazy) load();
|
|
276
282
|
}, [
|
|
277
283
|
lazy
|
|
278
284
|
]);
|
|
279
|
-
var chooseItem = function
|
|
280
|
-
|
|
285
|
+
var chooseItem = /*#__PURE__*/ function() {
|
|
286
|
+
var _ref = (0, _async_to_generator._)(function(pane, levelIndex) {
|
|
281
287
|
var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
|
|
282
288
|
return (0, _ts_generator._)(this, function(_state) {
|
|
283
289
|
switch(_state.label){
|
|
@@ -331,8 +337,11 @@ var Cascader = /*#__PURE__*/ (0, _react.forwardRef)(function(props, ref) {
|
|
|
331
337
|
];
|
|
332
338
|
}
|
|
333
339
|
});
|
|
334
|
-
})
|
|
335
|
-
|
|
340
|
+
});
|
|
341
|
+
return function chooseItem(pane, levelIndex) {
|
|
342
|
+
return _ref.apply(this, arguments);
|
|
343
|
+
};
|
|
344
|
+
}();
|
|
336
345
|
var renderCascaderItem = function renderCascaderItem(item, levelIndex) {
|
|
337
346
|
var _item_pane;
|
|
338
347
|
return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index) {
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
normalizeListOptions: function() {
|
|
13
13
|
return normalizeListOptions;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
normalizeOptions: function() {
|
|
16
16
|
return normalizeOptions;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -73,8 +73,8 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
73
73
|
var _useState = (0, _sliced_to_array._)((0, _react.useState)(0), 2), tran = _useState[0], setTran = _useState[1];
|
|
74
74
|
var _useRefState = (0, _sliced_to_array._)((0, _userefstate.useRefState)(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
|
|
75
75
|
var _useState1 = (0, _sliced_to_array._)((0, _react.useState)(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
|
|
76
|
-
var updateRectHeight = function
|
|
77
|
-
|
|
76
|
+
var updateRectHeight = /*#__PURE__*/ function() {
|
|
77
|
+
var _ref = (0, _async_to_generator._)(function() {
|
|
78
78
|
var res;
|
|
79
79
|
return (0, _ts_generator._)(this, function(_state) {
|
|
80
80
|
switch(_state.label){
|
|
@@ -97,8 +97,11 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
97
97
|
];
|
|
98
98
|
}
|
|
99
99
|
});
|
|
100
|
-
})
|
|
101
|
-
|
|
100
|
+
});
|
|
101
|
+
return function updateRectHeight() {
|
|
102
|
+
return _ref.apply(this, arguments);
|
|
103
|
+
};
|
|
104
|
+
}();
|
|
102
105
|
(0, _react.useEffect)(function() {
|
|
103
106
|
(0, _taro.nextTick)(function() {
|
|
104
107
|
updateRectHeight();
|
|
@@ -5,26 +5,26 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
ConfigProvider: function() {
|
|
13
13
|
return ConfigProvider;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
defaultConfigRef: function() {
|
|
16
16
|
return defaultConfigRef;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
getDefaultConfig: function() {
|
|
19
19
|
return getDefaultConfig;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
setDefaultConfig: function() {
|
|
22
22
|
return setDefaultConfig;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
useConfig: function() {
|
|
25
25
|
return useConfig;
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
useRtl: function() {
|
|
28
28
|
return useRtl;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -5,23 +5,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
default: function() {
|
|
13
13
|
return _default;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
getDefaultConfig: function() {
|
|
16
16
|
return _configprovider.getDefaultConfig;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
setDefaultConfig: function() {
|
|
19
19
|
return _configprovider.setDefaultConfig;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
useConfig: function() {
|
|
22
22
|
return _configprovider.useConfig;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
useRtl: function() {
|
|
25
25
|
return _configprovider.useRtl;
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -80,7 +80,8 @@ var InternalCountDown = function InternalCountDown(props, ref) {
|
|
|
80
80
|
} else {
|
|
81
81
|
stateRef.current.handleEndTime = endTime;
|
|
82
82
|
if ((0, _platform.web)()) {
|
|
83
|
-
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime)
|
|
83
|
+
stateRef.current.diffTime = Date.now() - getTimeStamp(startTime) // 时间差
|
|
84
|
+
;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
87
|
if (!stateRef.current.counting) stateRef.current.counting = true;
|
|
@@ -5,32 +5,32 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
calculateDateBoundary: function() {
|
|
13
13
|
return calculateDateBoundary;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
formatPickerOption: function() {
|
|
16
16
|
return formatPickerOption;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
formatValue: function() {
|
|
19
19
|
return formatValue;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
generateDatePickerRanges: function() {
|
|
22
22
|
return generateDatePickerRanges;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
generatePickerColumnWithCallback: function() {
|
|
25
25
|
return generatePickerColumnWithCallback;
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
getDatePartValue: function() {
|
|
28
28
|
return getDatePartValue;
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
getLastDayOfMonth: function() {
|
|
31
31
|
return getLastDayOfMonth;
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
handlePickerValueChange: function() {
|
|
34
34
|
return handlePickerValueChange;
|
|
35
35
|
}
|
|
36
36
|
});
|
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
Content: function() {
|
|
13
13
|
return Content;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
defaultContentProps: function() {
|
|
16
16
|
return defaultContentProps;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
function _export(target, all) {
|
|
6
6
|
for(var name in all)Object.defineProperty(target, name, {
|
|
7
7
|
enumerable: true,
|
|
8
|
-
get:
|
|
8
|
+
get: all[name]
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
BaseDialog: function() {
|
|
13
13
|
return BaseDialog;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
close: function() {
|
|
16
16
|
return close;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
open: function() {
|
|
19
19
|
return open;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
@@ -91,8 +91,8 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
91
91
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
92
92
|
onCancel();
|
|
93
93
|
};
|
|
94
|
-
var handleOk = function
|
|
95
|
-
|
|
94
|
+
var handleOk = /*#__PURE__*/ function() {
|
|
95
|
+
var _ref = (0, _async_to_generator._)(function(e) {
|
|
96
96
|
var e1;
|
|
97
97
|
return (0, _ts_generator._)(this, function(_state) {
|
|
98
98
|
switch(_state.label){
|
|
@@ -132,8 +132,11 @@ var BaseDialog = function BaseDialog(props) {
|
|
|
132
132
|
];
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
|
-
})
|
|
136
|
-
|
|
135
|
+
});
|
|
136
|
+
return function handleOk(e) {
|
|
137
|
+
return _ref.apply(this, arguments);
|
|
138
|
+
};
|
|
139
|
+
}();
|
|
137
140
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix, "-footer-block") : '';
|
|
138
141
|
var renderCancelOfVertical = function renderCancelOfVertical() {
|
|
139
142
|
return !hideCancelButton && /*#__PURE__*/ _react.default.createElement(_components.View, {
|