@nutui/nutui-react-taro 3.0.0-beta.12 → 3.0.0-beta.13
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/{utils → hooks}/use-click-away.js +2 -2
- package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
- package/dist/cjs/{utils → hooks}/use-lock-scroll.js +2 -2
- package/dist/cjs/packages/address/address.d.ts +1 -1
- package/dist/cjs/packages/address/address.js +1 -1
- package/dist/cjs/packages/animate/animate.js +5 -6
- package/dist/cjs/packages/animate/style/animate.scss +63 -105
- package/dist/cjs/packages/animate/style/style.css +45 -44
- package/dist/cjs/packages/animate/style/style.harmony.css +45 -44
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +3 -2
- package/dist/cjs/packages/badge/badge.js +10 -11
- package/dist/cjs/packages/calendar/style/calendar.scss +25 -31
- package/dist/cjs/packages/calendar/style/style.css +14 -20
- package/dist/cjs/packages/calendar/style/style.harmony.css +14 -20
- package/dist/cjs/packages/calendarcard/calendarcard.js +1 -1
- package/dist/cjs/packages/calendaritem/calendaritem.js +1 -2
- package/dist/cjs/packages/cascader/cascader.js +1 -1
- package/dist/cjs/packages/checkbox/checkbox.js +1 -1
- package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +1 -1
- package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
- package/dist/cjs/packages/collapse/collapse.js +1 -1
- package/dist/cjs/packages/configprovider/configprovider.js +1 -1
- package/dist/cjs/packages/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/datepicker/datepicker.js +1 -1
- package/dist/cjs/packages/datepicker/style/style.css +2 -2
- package/dist/cjs/packages/dialog/dialog.js +2 -2
- package/dist/cjs/packages/drag/drag.js +3 -2
- package/dist/cjs/packages/elevator/elevator.js +1 -1
- package/dist/cjs/packages/imagepreview/imagepreview.js +1 -1
- package/dist/cjs/packages/input/input.js +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
- package/dist/cjs/packages/lottie/mp.js +3 -2
- package/dist/cjs/packages/menuitem/menuitem.js +5 -4
- package/dist/cjs/packages/notify/notify.js +1 -1
- package/dist/cjs/packages/nutui.react.build.d.ts +3 -1
- package/dist/cjs/packages/nutui.react.build.js +122 -118
- package/dist/cjs/packages/nutui.react.d.ts +4 -1
- package/dist/cjs/packages/nutui.react.js +123 -118
- package/dist/cjs/packages/nutui.react.scss.d.ts +1 -0
- package/dist/cjs/packages/nutui.react.scss.js +1 -0
- package/dist/cjs/packages/overlay/overlay.js +1 -1
- package/dist/cjs/packages/pagination/pagination.js +1 -1
- package/dist/cjs/packages/picker/picker.js +2 -2
- package/dist/cjs/packages/picker/pickerpanel.js +1 -1
- package/dist/cjs/packages/picker/style/style.css +2 -2
- package/dist/cjs/packages/picker/style/style.harmony.css +2 -2
- package/dist/cjs/packages/pickerview/index.d.ts +3 -0
- package/dist/cjs/packages/pickerview/index.js +13 -0
- package/dist/cjs/packages/pickerview/pickerroller.d.ts +7 -0
- package/dist/cjs/packages/pickerview/pickerroller.js +186 -0
- package/dist/cjs/packages/pickerview/pickerview.d.ts +4 -0
- package/dist/cjs/packages/pickerview/pickerview.js +201 -0
- package/dist/cjs/packages/pickerview/style/css.js +1 -0
- package/dist/cjs/packages/pickerview/style/index.js +1 -0
- package/dist/cjs/packages/pickerview/style/pickerview.scss +79 -0
- package/dist/cjs/packages/pickerview/style/style.css +73 -0
- package/dist/cjs/packages/pickerview/style/style.harmony.css +83 -0
- package/dist/cjs/packages/pickerview/types.d.ts +32 -0
- package/dist/cjs/packages/pickerview/types.js +4 -0
- package/dist/cjs/packages/pickerview/utils.d.ts +14 -0
- package/dist/cjs/packages/pickerview/utils.js +46 -0
- package/dist/cjs/packages/popover/popover.d.ts +2 -2
- package/dist/cjs/packages/popover/popover.js +1 -1
- package/dist/cjs/packages/popover/types.d.ts +3 -2
- package/dist/cjs/packages/popup/popup.js +1 -1
- package/dist/cjs/packages/progress/progress.js +1 -1
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +3 -2
- package/dist/cjs/packages/radio/radio.js +1 -1
- package/dist/cjs/packages/radiogroup/radiogroup.js +1 -1
- package/dist/cjs/packages/range/range.js +2 -2
- package/dist/cjs/packages/rate/rate.js +2 -2
- package/dist/cjs/packages/segmented/segmented.js +1 -1
- package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
- package/dist/cjs/packages/sidebar/sidebar.js +3 -3
- package/dist/cjs/packages/sticky/sticky.js +3 -2
- package/dist/cjs/packages/swipe/swipe.js +2 -2
- package/dist/cjs/packages/switch/switch.js +1 -1
- package/dist/cjs/packages/tabbar/style/style.css +2 -9
- package/dist/cjs/packages/tabbar/tabbar.js +1 -1
- package/dist/cjs/packages/tabbaritem/style/style.css +2 -9
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +1 -1
- package/dist/cjs/packages/tabbaritem/style/tabbaritem.scss +2 -10
- package/dist/cjs/packages/tabbaritem/tabbaritem.js +9 -11
- package/dist/cjs/packages/table/table.js +1 -1
- package/dist/cjs/packages/tabs/tabs.js +3 -3
- package/dist/cjs/packages/textarea/textarea.d.ts +3 -3
- package/dist/cjs/packages/textarea/textarea.js +19 -22
- package/dist/cjs/packages/toast/toast.js +2 -2
- package/dist/cjs/packages/tour/tour.d.ts +1 -1
- package/dist/cjs/packages/tour/tour.js +1 -1
- package/dist/cjs/packages/uploader/types.d.ts +2 -1
- package/dist/cjs/packages/uploader/uploader.js +1 -1
- package/dist/cjs/packages/virtuallist/virtuallist.js +2 -2
- package/dist/cjs/utils/get-rect-by-taro.js +1 -1
- package/dist/cjs/utils/get-system-info.d.ts +19 -0
- package/dist/cjs/utils/get-system-info.js +32 -0
- package/dist/es/{utils → hooks}/use-click-away.js +3 -2
- package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.js +1 -1
- package/dist/es/{utils → hooks}/use-lock-scroll.js +2 -2
- package/dist/es/packages/address/address.d.ts +1 -1
- package/dist/es/packages/address/address.js +1 -1
- package/dist/es/packages/animate/animate.js +5 -6
- package/dist/es/packages/animate/style/animate.scss +63 -105
- package/dist/es/packages/animate/style/style.css +45 -44
- package/dist/es/packages/animate/style/style.harmony.css +45 -44
- package/dist/es/packages/audio/audio.d.ts +30 -10
- package/dist/es/packages/avatarcropper/avatarcropper.js +3 -2
- package/dist/es/packages/badge/badge.js +10 -11
- package/dist/es/packages/calendar/calendar.d.ts +27 -135
- package/dist/es/packages/calendar/style/calendar.scss +25 -31
- package/dist/es/packages/calendar/style/style.css +14 -20
- package/dist/es/packages/calendar/style/style.harmony.css +14 -20
- package/dist/es/packages/calendarcard/calendarcard.js +1 -1
- package/dist/es/packages/calendaritem/calendaritem.js +1 -2
- package/dist/es/packages/cascader/cascader.js +1 -1
- package/dist/es/packages/checkbox/checkbox.js +1 -1
- package/dist/es/packages/checkboxgroup/checkboxgroup.js +1 -1
- package/dist/es/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/es/packages/circleprogress/circleprogress.js +1 -1
- package/dist/es/packages/collapse/collapse.js +1 -1
- package/dist/es/packages/configprovider/configprovider.js +1 -1
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/datepicker/datepicker.js +1 -1
- package/dist/es/packages/datepicker/style/style.css +2 -2
- package/dist/es/packages/dialog/dialog.js +2 -2
- package/dist/es/packages/drag/drag.js +4 -3
- package/dist/es/packages/elevator/elevator.js +1 -1
- package/dist/es/packages/form/form.d.ts +1 -1
- package/dist/es/packages/imagepreview/imagepreview.js +1 -1
- package/dist/es/packages/input/input.js +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +1 -1
- package/dist/es/packages/lottie/mp.js +4 -3
- package/dist/es/packages/menuitem/menuitem.js +6 -5
- package/dist/es/packages/noticebar/noticebar.d.ts +1 -1
- package/dist/es/packages/notify/notify.js +1 -1
- package/dist/es/packages/nutui.react.build.d.ts +3 -1
- package/dist/es/packages/nutui.react.build.js +3 -1
- package/dist/es/packages/overlay/overlay.js +1 -1
- package/dist/es/packages/pagination/pagination.js +1 -1
- package/dist/es/packages/picker/picker.js +2 -2
- package/dist/es/packages/picker/pickerpanel.js +1 -1
- package/dist/es/packages/picker/style/style.css +2 -2
- package/dist/es/packages/picker/style/style.harmony.css +2 -2
- package/dist/es/packages/pickerview/index.d.ts +3 -0
- package/dist/es/packages/pickerview/index.js +2 -0
- package/dist/es/packages/pickerview/pickerroller.d.ts +7 -0
- package/dist/es/packages/pickerview/pickerroller.js +175 -0
- package/dist/es/packages/pickerview/pickerview.d.ts +4 -0
- package/dist/es/packages/pickerview/pickerview.js +189 -0
- package/dist/es/packages/pickerview/style/css.js +1 -0
- package/dist/es/packages/pickerview/style/index.js +1 -0
- package/dist/es/packages/pickerview/style/pickerview.scss +79 -0
- package/dist/es/packages/pickerview/style/style.css +73 -0
- package/dist/es/packages/pickerview/style/style.harmony.css +83 -0
- package/dist/es/packages/pickerview/types.d.ts +32 -0
- package/dist/es/packages/pickerview/types.js +1 -0
- package/dist/es/packages/pickerview/utils.d.ts +14 -0
- package/dist/es/packages/pickerview/utils.js +28 -0
- package/dist/es/packages/popover/popover.d.ts +2 -2
- package/dist/es/packages/popover/popover.js +1 -1
- package/dist/es/packages/popover/types.d.ts +3 -2
- package/dist/es/packages/popup/popup.js +1 -1
- package/dist/es/packages/progress/progress.js +1 -1
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +3 -2
- package/dist/es/packages/radio/radio.js +1 -1
- package/dist/es/packages/radiogroup/radiogroup.js +1 -1
- package/dist/es/packages/range/range.js +2 -2
- package/dist/es/packages/rate/rate.js +2 -2
- package/dist/es/packages/segmented/segmented.js +1 -1
- package/dist/es/packages/shortpassword/shortpassword.js +1 -1
- package/dist/es/packages/sidebar/sidebar.js +3 -3
- package/dist/es/packages/sticky/sticky.js +4 -3
- package/dist/es/packages/swipe/swipe.js +2 -2
- package/dist/es/packages/switch/switch.js +1 -1
- package/dist/es/packages/tabbar/style/style.css +2 -9
- package/dist/es/packages/tabbar/tabbar.js +1 -1
- package/dist/es/packages/tabbaritem/style/style.css +2 -9
- package/dist/es/packages/tabbaritem/style/style.harmony.css +1 -1
- package/dist/es/packages/tabbaritem/style/tabbaritem.scss +2 -10
- package/dist/es/packages/tabbaritem/tabbaritem.js +9 -11
- package/dist/es/packages/table/table.js +1 -1
- package/dist/es/packages/tabs/tabs.js +3 -3
- package/dist/es/packages/textarea/textarea.d.ts +3 -3
- package/dist/es/packages/textarea/textarea.js +20 -23
- package/dist/es/packages/toast/toast.js +2 -2
- package/dist/es/packages/tour/tour.d.ts +1 -1
- package/dist/es/packages/tour/tour.js +1 -1
- package/dist/es/packages/uploader/types.d.ts +2 -1
- package/dist/es/packages/uploader/uploader.js +1 -1
- package/dist/es/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/es/packages/virtuallist/virtuallist.js +2 -2
- package/dist/es/utils/get-rect-by-taro.js +1 -1
- package/dist/es/utils/get-system-info.d.ts +19 -0
- package/dist/es/utils/get-system-info.js +19 -0
- package/dist/nutui.react.umd.js +529 -172
- package/dist/style.css +1 -1
- package/dist/style.scss +44 -43
- package/dist/styles/variables.scss +3 -1
- package/package.json +1 -80
- /package/dist/cjs/{utils → hooks}/use-click-away.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-client-rect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-client-rect.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-custom-event.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-custom-event.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-force-update.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-force-update.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scoll-taro.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-lock-scroll.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-memo.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-memo.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-props-value.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-props-value.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-ref-state.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-ref-state.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-refs.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-refs.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-taro-rect.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-taro-rect.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-touch.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-touch.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-uuid.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-uuid.js +0 -0
- /package/dist/cjs/{utils → hooks}/use-watch.d.ts +0 -0
- /package/dist/cjs/{utils → hooks}/use-watch.js +0 -0
- /package/dist/es/{utils → hooks}/use-click-away.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-client-rect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-client-rect.js +0 -0
- /package/dist/es/{utils → hooks}/use-custom-event.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-custom-event.js +0 -0
- /package/dist/es/{utils → hooks}/use-force-update.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-force-update.js +0 -0
- /package/dist/es/{utils → hooks}/use-isomprphic-layout-effect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scoll-taro.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scoll-taro.js +0 -0
- /package/dist/es/{utils → hooks}/use-lock-scroll.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-memo.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-memo.js +0 -0
- /package/dist/es/{utils → hooks}/use-props-value.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-props-value.js +0 -0
- /package/dist/es/{utils → hooks}/use-ref-state.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-ref-state.js +0 -0
- /package/dist/es/{utils → hooks}/use-refs.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-refs.js +0 -0
- /package/dist/es/{utils → hooks}/use-taro-rect.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-taro-rect.js +0 -0
- /package/dist/es/{utils → hooks}/use-touch.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-touch.js +0 -0
- /package/dist/es/{utils → hooks}/use-uuid.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-uuid.js +0 -0
- /package/dist/es/{utils → hooks}/use-watch.d.ts +0 -0
- /package/dist/es/{utils → hooks}/use-watch.js +0 -0
|
@@ -3,16 +3,22 @@
|
|
|
3
3
|
/* #ifndef harmony */
|
|
4
4
|
/* #endif */
|
|
5
5
|
.nut-animate {
|
|
6
|
-
/* Animation
|
|
6
|
+
/* Animation CSS */
|
|
7
|
+
/* Slide Animations */
|
|
8
|
+
/* Shake Animation */
|
|
9
|
+
/* Ripple Animation */
|
|
10
|
+
/* Breath Animation */
|
|
11
|
+
/* Twinkle Animation */
|
|
12
|
+
/* Flicker Animation */
|
|
13
|
+
/* Jump Animation */
|
|
14
|
+
/* Float Animation */
|
|
15
|
+
/* Loop Animation */
|
|
7
16
|
}
|
|
8
17
|
.nut-animate [class*=nut-animate-] {
|
|
9
18
|
animation-duration: 0.5s;
|
|
10
19
|
animation-timing-function: ease-out;
|
|
11
20
|
animation-fill-mode: both;
|
|
12
21
|
}
|
|
13
|
-
.nut-animate .nut-animate-slide-right {
|
|
14
|
-
animation-name: slide-right;
|
|
15
|
-
}
|
|
16
22
|
@keyframes slide-right {
|
|
17
23
|
0% {
|
|
18
24
|
opacity: 0;
|
|
@@ -23,9 +29,6 @@
|
|
|
23
29
|
transform: translateX(0);
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
|
-
.nut-animate .nut-animate-slide-left {
|
|
27
|
-
animation-name: slide-left;
|
|
28
|
-
}
|
|
29
32
|
@keyframes slide-left {
|
|
30
33
|
0% {
|
|
31
34
|
opacity: 0;
|
|
@@ -36,9 +39,6 @@
|
|
|
36
39
|
transform: translateX(0);
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
|
-
.nut-animate .nut-animate-slide-top {
|
|
40
|
-
animation-name: slide-top;
|
|
41
|
-
}
|
|
42
42
|
@keyframes slide-top {
|
|
43
43
|
0% {
|
|
44
44
|
opacity: 0;
|
|
@@ -49,9 +49,6 @@
|
|
|
49
49
|
transform: translateY(0);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
.nut-animate .nut-animate-slide-bottom {
|
|
53
|
-
animation-name: slide-bottom;
|
|
54
|
-
}
|
|
55
52
|
@keyframes slide-bottom {
|
|
56
53
|
0% {
|
|
57
54
|
opacity: 0;
|
|
@@ -62,8 +59,17 @@
|
|
|
62
59
|
transform: translateY(0);
|
|
63
60
|
}
|
|
64
61
|
}
|
|
65
|
-
.nut-animate .nut-animate-
|
|
66
|
-
animation-name:
|
|
62
|
+
.nut-animate .nut-animate-slide-right {
|
|
63
|
+
animation-name: slide-right;
|
|
64
|
+
}
|
|
65
|
+
.nut-animate .nut-animate-slide-left {
|
|
66
|
+
animation-name: slide-left;
|
|
67
|
+
}
|
|
68
|
+
.nut-animate .nut-animate-slide-top {
|
|
69
|
+
animation-name: slide-top;
|
|
70
|
+
}
|
|
71
|
+
.nut-animate .nut-animate-slide-bottom {
|
|
72
|
+
animation-name: slide-bottom;
|
|
67
73
|
}
|
|
68
74
|
@keyframes shake {
|
|
69
75
|
0%, 100% {
|
|
@@ -97,8 +103,8 @@
|
|
|
97
103
|
transform: translateX(-1px);
|
|
98
104
|
}
|
|
99
105
|
}
|
|
100
|
-
.nut-animate .nut-animate-
|
|
101
|
-
animation-name:
|
|
106
|
+
.nut-animate .nut-animate-shake {
|
|
107
|
+
animation-name: shake;
|
|
102
108
|
}
|
|
103
109
|
@keyframes ripple {
|
|
104
110
|
0% {
|
|
@@ -108,22 +114,22 @@
|
|
|
108
114
|
transform: scale(1.1);
|
|
109
115
|
}
|
|
110
116
|
}
|
|
111
|
-
.nut-animate .nut-animate-
|
|
112
|
-
animation-name:
|
|
113
|
-
animation-duration: 2700ms;
|
|
114
|
-
animation-timing-function: ease-in-out;
|
|
115
|
-
animation-direction: alternate;
|
|
117
|
+
.nut-animate .nut-animate-ripple {
|
|
118
|
+
animation-name: ripple;
|
|
116
119
|
}
|
|
117
120
|
@keyframes breath {
|
|
118
|
-
0% {
|
|
121
|
+
0%, 100% {
|
|
119
122
|
transform: scale(1);
|
|
120
123
|
}
|
|
121
124
|
50% {
|
|
122
125
|
transform: scale(1.1);
|
|
123
126
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
+
}
|
|
128
|
+
.nut-animate .nut-animate-breath {
|
|
129
|
+
animation-name: breath;
|
|
130
|
+
animation-duration: 2700ms;
|
|
131
|
+
animation-timing-function: ease-in-out;
|
|
132
|
+
animation-direction: alternate;
|
|
127
133
|
}
|
|
128
134
|
.nut-animate .nut-animate-twinkle {
|
|
129
135
|
position: relative;
|
|
@@ -137,7 +143,7 @@
|
|
|
137
143
|
position: absolute;
|
|
138
144
|
border-radius: 30px;
|
|
139
145
|
right: 50%;
|
|
140
|
-
margin-top: -
|
|
146
|
+
margin-top: -30px;
|
|
141
147
|
margin-right: -30px;
|
|
142
148
|
z-index: 1;
|
|
143
149
|
transform: scale(0);
|
|
@@ -183,39 +189,30 @@
|
|
|
183
189
|
transform: translateX(150px) skewX(-20deg);
|
|
184
190
|
}
|
|
185
191
|
}
|
|
186
|
-
.nut-animate .nut-animate-jump {
|
|
187
|
-
transform-origin: center center;
|
|
188
|
-
animation: jump 0.7s linear;
|
|
189
|
-
}
|
|
190
192
|
@keyframes jump {
|
|
191
193
|
0% {
|
|
192
|
-
|
|
193
|
-
transform: rotate(0deg) translateY(0);
|
|
194
|
+
transform: rotate(0) translateY(0);
|
|
194
195
|
}
|
|
195
196
|
25% {
|
|
196
|
-
animation-timing-function: ease-out;
|
|
197
197
|
transform: rotate(10deg) translateY(20px);
|
|
198
198
|
}
|
|
199
199
|
50% {
|
|
200
|
-
|
|
201
|
-
transform: rotate(0deg) translateY(-10px);
|
|
200
|
+
transform: rotate(0) translateY(-10px);
|
|
202
201
|
}
|
|
203
202
|
75% {
|
|
204
|
-
animation-timing-function: ease-out;
|
|
205
203
|
transform: rotate(-10deg) translateY(20px);
|
|
206
204
|
}
|
|
207
205
|
100% {
|
|
208
|
-
|
|
209
|
-
transform: rotate(0deg) translateY(0);
|
|
206
|
+
transform: rotate(0) translateY(0);
|
|
210
207
|
}
|
|
211
208
|
}
|
|
212
|
-
.nut-animate .nut-animate-
|
|
213
|
-
|
|
214
|
-
animation
|
|
209
|
+
.nut-animate .nut-animate-jump {
|
|
210
|
+
transform-origin: center center;
|
|
211
|
+
animation: jump 0.7s linear;
|
|
215
212
|
}
|
|
216
213
|
@keyframes float-pop {
|
|
217
214
|
0% {
|
|
218
|
-
top:
|
|
215
|
+
top: 0;
|
|
219
216
|
}
|
|
220
217
|
25% {
|
|
221
218
|
top: 1px;
|
|
@@ -227,9 +224,13 @@
|
|
|
227
224
|
top: 1px;
|
|
228
225
|
}
|
|
229
226
|
100% {
|
|
230
|
-
top:
|
|
227
|
+
top: 0;
|
|
231
228
|
}
|
|
232
229
|
}
|
|
230
|
+
.nut-animate .nut-animate-float {
|
|
231
|
+
position: relative;
|
|
232
|
+
animation-name: float-pop;
|
|
233
|
+
}
|
|
233
234
|
.nut-animate .loop {
|
|
234
235
|
animation-iteration-count: infinite;
|
|
235
236
|
}
|
|
@@ -20,10 +20,11 @@ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
20
20
|
var _taro = /*#__PURE__*/ _interop_require_wildcard._(require("@tarojs/taro"));
|
|
21
21
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
22
22
|
var _components = require("@tarojs/components");
|
|
23
|
+
var _getsysteminfo = require("../../utils/get-system-info");
|
|
23
24
|
var _button = require("../button/button");
|
|
24
25
|
var _index = require("../configprovider/index");
|
|
25
26
|
var _typings = require("../../utils/typings");
|
|
26
|
-
var _usetouch = require("../../
|
|
27
|
+
var _usetouch = require("../../hooks/use-touch");
|
|
27
28
|
var _utils = require("../../utils");
|
|
28
29
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
29
30
|
maxZoom: 3,
|
|
@@ -96,7 +97,7 @@ var AvatarCropper = function AvatarCropper(props) {
|
|
|
96
97
|
var _useState = (0, _sliced_to_array._)((0, _react.useState)(false), 2), visible = _useState[0], setVisible = _useState[1];
|
|
97
98
|
var _useState1 = (0, _sliced_to_array._)((0, _react.useState)(false), 2), moving = _useState1[0], setMoving = _useState1[1];
|
|
98
99
|
var _useState2 = (0, _sliced_to_array._)((0, _react.useState)(false), 2), zooming = _useState2[0], setZooming = _useState2[1];
|
|
99
|
-
var systemInfo =
|
|
100
|
+
var systemInfo = (0, _getsysteminfo.getWindowInfo)();
|
|
100
101
|
// 支付宝基础库2.7.0以上支持,需要开启支付宝小程序canvas2d
|
|
101
102
|
var showAlipayCanvas2D = (0, _react.useMemo)(function() {
|
|
102
103
|
return _taro.default.getEnv() === 'ALIPAY' && parseInt(_taro.default.SDKVersion.replace(/\./g, '')) >= 270;
|
|
@@ -34,9 +34,9 @@ var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typing
|
|
|
34
34
|
size: 'large'
|
|
35
35
|
});
|
|
36
36
|
var Badge = function Badge(props) {
|
|
37
|
-
var
|
|
38
|
-
if (dot ||
|
|
39
|
-
if (typeof value === 'number'
|
|
37
|
+
var getContent = function getContent() {
|
|
38
|
+
if (dot || value === 0) return null;
|
|
39
|
+
if (typeof value === 'number') {
|
|
40
40
|
return max < value ? "".concat(max, "+") : "".concat(value);
|
|
41
41
|
}
|
|
42
42
|
return value;
|
|
@@ -59,7 +59,7 @@ var Badge = function Badge(props) {
|
|
|
59
59
|
var badgeRef = (0, _react.useRef)(null);
|
|
60
60
|
var _useState = (0, _sliced_to_array._)((0, _react.useState)({}), 2), contentStyle = _useState[0], setContentStyle = _useState[1];
|
|
61
61
|
var _obj;
|
|
62
|
-
var contentClasses = (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-sup"), isNumber() || isString() || dot), (0, _define_property._)(_obj, "".concat(classPrefix, "-number"), isNumber()), (0, _define_property._)(_obj, "".concat(classPrefix, "-one"), typeof
|
|
62
|
+
var contentClasses = (0, _classnames.default)((_obj = {}, (0, _define_property._)(_obj, "".concat(classPrefix, "-sup"), isNumber() || isString() || dot), (0, _define_property._)(_obj, "".concat(classPrefix, "-number"), isNumber()), (0, _define_property._)(_obj, "".concat(classPrefix, "-one"), typeof getContent() === 'string' && ((_this = "".concat(getContent())) === null || _this === void 0 ? void 0 : _this.length) === 1), (0, _define_property._)(_obj, "".concat(classPrefix, "-dot"), dot), (0, _define_property._)(_obj, "".concat(classPrefix, "-dot-").concat(size), dot), (0, _define_property._)(_obj, "".concat(classPrefix, "-").concat(fill), fill === 'outline'), (0, _define_property._)(_obj, "".concat(classPrefix, "-content"), children), _obj));
|
|
63
63
|
(0, _react.useEffect)(function() {
|
|
64
64
|
if (badgeRef.current) {
|
|
65
65
|
getPositionStyle();
|
|
@@ -67,12 +67,11 @@ var Badge = function Badge(props) {
|
|
|
67
67
|
}, []);
|
|
68
68
|
var getPositionStyle = /*#__PURE__*/ function() {
|
|
69
69
|
var _ref = (0, _async_to_generator._)(function() {
|
|
70
|
-
var style
|
|
70
|
+
var style;
|
|
71
71
|
return (0, _ts_generator._)(this, function(_state) {
|
|
72
|
-
style = {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
style[dir] = isHarmony ? (0, _pxtransform.default)(Number(right)) : "".concat(Number(right) || 0, "px");
|
|
72
|
+
style = (0, _define_property._)({
|
|
73
|
+
top: (0, _pxtransform.default)(Number(top) || 0)
|
|
74
|
+
}, rtl ? 'left' : 'right', isHarmony ? (0, _pxtransform.default)(Number(right)) : "".concat(Number(right) || 0, "px"));
|
|
76
75
|
setContentStyle(style);
|
|
77
76
|
return [
|
|
78
77
|
2
|
|
@@ -91,9 +90,9 @@ var Badge = function Badge(props) {
|
|
|
91
90
|
}, isIcon() && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
92
91
|
className: (0, _classnames.default)("".concat(classPrefix, "-content"), (_obj1 = {}, (0, _define_property._)(_obj1, "".concat(classPrefix, "-icon"), true), (0, _define_property._)(_obj1, "".concat(classPrefix, "-icon-rtl"), rtl), _obj1)),
|
|
93
92
|
style: contentStyle
|
|
94
|
-
}, value), children, !isIcon() && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
93
|
+
}, value), children, !isIcon() && (getContent() || dot) && /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
95
94
|
className: contentClasses,
|
|
96
95
|
style: contentStyle
|
|
97
|
-
},
|
|
96
|
+
}, getContent()));
|
|
98
97
|
};
|
|
99
98
|
Badge.displayName = 'NutBadge';
|
|
@@ -34,6 +34,10 @@
|
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
text-align: center;
|
|
37
|
+
|
|
38
|
+
&-buttons {
|
|
39
|
+
height: $calendar-header-height;
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
&-title {
|
|
@@ -49,10 +53,6 @@
|
|
|
49
53
|
font-size: $calendar-sub-title-font-size;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
|
-
&-header-buttons {
|
|
53
|
-
height: $calendar-header-height;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
56
|
&-weeks {
|
|
57
57
|
display: flex;
|
|
58
58
|
align-items: center;
|
|
@@ -101,12 +101,12 @@
|
|
|
101
101
|
display: flex;
|
|
102
102
|
flex-direction: column;
|
|
103
103
|
text-align: center;
|
|
104
|
-
}
|
|
105
104
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
&-title {
|
|
106
|
+
height: 23px;
|
|
107
|
+
line-height: 23px;
|
|
108
|
+
margin: 8px 0;
|
|
109
|
+
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
&-days {
|
|
@@ -130,6 +130,7 @@
|
|
|
130
130
|
color: $color-primary;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
+
&-info,
|
|
133
134
|
&-info-curr {
|
|
134
135
|
position: absolute;
|
|
135
136
|
bottom: 5px;
|
|
@@ -138,14 +139,6 @@
|
|
|
138
139
|
line-height: 14px;
|
|
139
140
|
}
|
|
140
141
|
|
|
141
|
-
&-info {
|
|
142
|
-
position: absolute;
|
|
143
|
-
bottom: 5px;
|
|
144
|
-
width: 100%;
|
|
145
|
-
font-size: 12px;
|
|
146
|
-
line-height: 14px;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
142
|
&-info-top {
|
|
150
143
|
position: absolute;
|
|
151
144
|
width: 100%;
|
|
@@ -188,18 +181,18 @@
|
|
|
188
181
|
}
|
|
189
182
|
}
|
|
190
183
|
|
|
191
|
-
&-choose-disabled {
|
|
192
|
-
background-color: $calendar-choose-disable-background-color;
|
|
193
|
-
color: $calendar-disable-color !important;
|
|
194
|
-
|
|
195
|
-
.nut-calendar-day-info-curr {
|
|
196
|
-
display: none;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
184
|
&-choose {
|
|
201
185
|
background-color: $calendar-choose-background-color;
|
|
202
186
|
color: $calendar-choose-color;
|
|
187
|
+
|
|
188
|
+
&-disabled {
|
|
189
|
+
background-color: $calendar-choose-disable-background-color;
|
|
190
|
+
color: $calendar-disable-color !important;
|
|
191
|
+
|
|
192
|
+
.nut-calendar-day-info-curr {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
203
196
|
}
|
|
204
197
|
}
|
|
205
198
|
|
|
@@ -211,13 +204,14 @@
|
|
|
211
204
|
background-color: $white;
|
|
212
205
|
|
|
213
206
|
.calendar-confirm-btn {
|
|
214
|
-
height:
|
|
215
|
-
|
|
216
|
-
|
|
207
|
+
height: 40px;
|
|
208
|
+
line-height: 40px;
|
|
209
|
+
margin: 6px 16px;
|
|
210
|
+
text-align: center;
|
|
211
|
+
border-radius: $radius-base;
|
|
217
212
|
background: $button-primary-background-color;
|
|
218
213
|
color: $color-primary-text;
|
|
219
|
-
|
|
220
|
-
line-height: 44px;
|
|
214
|
+
font-weight: $font-weight-bold;
|
|
221
215
|
}
|
|
222
216
|
}
|
|
223
217
|
}
|
|
@@ -399,6 +399,9 @@
|
|
|
399
399
|
flex-direction: column;
|
|
400
400
|
text-align: center;
|
|
401
401
|
}
|
|
402
|
+
.nut-calendar-header-buttons {
|
|
403
|
+
height: var(--nutui-calendar-header-height, 24px);
|
|
404
|
+
}
|
|
402
405
|
.nut-calendar-title {
|
|
403
406
|
color: var(--nutui-color-title, #1a1a1a);
|
|
404
407
|
font-size: var(--nutui-calendar-title-font-size, var(--nutui-font-size-xl, 18px));
|
|
@@ -410,9 +413,6 @@
|
|
|
410
413
|
line-height: 22px;
|
|
411
414
|
font-size: var(--nutui-calendar-sub-title-font-size, var(--nutui-font-size-base, 14px));
|
|
412
415
|
}
|
|
413
|
-
.nut-calendar-header-buttons {
|
|
414
|
-
height: var(--nutui-calendar-header-height, 24px);
|
|
415
|
-
}
|
|
416
416
|
.nut-calendar-weeks {
|
|
417
417
|
display: flex;
|
|
418
418
|
align-items: center;
|
|
@@ -476,14 +476,7 @@
|
|
|
476
476
|
.nut-calendar-day:nth-child(7n+0), .nut-calendar-day:nth-child(7n+1) {
|
|
477
477
|
color: var(--nutui-color-primary, #ff0f23);
|
|
478
478
|
}
|
|
479
|
-
.nut-calendar-day-info-curr {
|
|
480
|
-
position: absolute;
|
|
481
|
-
bottom: 5px;
|
|
482
|
-
width: 100%;
|
|
483
|
-
font-size: 12px;
|
|
484
|
-
line-height: 14px;
|
|
485
|
-
}
|
|
486
|
-
.nut-calendar-day-info {
|
|
479
|
+
.nut-calendar-day-info, .nut-calendar-day-info-curr {
|
|
487
480
|
position: absolute;
|
|
488
481
|
bottom: 5px;
|
|
489
482
|
width: 100%;
|
|
@@ -524,6 +517,10 @@
|
|
|
524
517
|
.nut-calendar-day-disabled .nut-calendar-day-info-curr {
|
|
525
518
|
display: none;
|
|
526
519
|
}
|
|
520
|
+
.nut-calendar-day-choose {
|
|
521
|
+
background-color: var(--nutui-calendar-choose-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
|
|
522
|
+
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
523
|
+
}
|
|
527
524
|
.nut-calendar-day-choose-disabled {
|
|
528
525
|
background-color: var(--nutui-calendar-choose-disable-background-color, rgba(191, 191, 191, 0.09));
|
|
529
526
|
color: var(--nutui-calendar-disable-color, var(--nutui-color-text-disabled, #c2c4cc)) !important;
|
|
@@ -531,10 +528,6 @@
|
|
|
531
528
|
.nut-calendar-day-choose-disabled .nut-calendar-day-info-curr {
|
|
532
529
|
display: none;
|
|
533
530
|
}
|
|
534
|
-
.nut-calendar-day-choose {
|
|
535
|
-
background-color: var(--nutui-calendar-choose-background-color, var(--nutui-color-primary-light-pressed, #ffebf1));
|
|
536
|
-
color: var(--nutui-calendar-choose-color, var(--nutui-color-primary, #ff0f23));
|
|
537
|
-
}
|
|
538
531
|
.nut-calendar-footer {
|
|
539
532
|
display: flex;
|
|
540
533
|
width: 100%;
|
|
@@ -542,13 +535,14 @@
|
|
|
542
535
|
background-color: #ffffff;
|
|
543
536
|
}
|
|
544
537
|
.nut-calendar-footer .calendar-confirm-btn {
|
|
545
|
-
height:
|
|
546
|
-
|
|
547
|
-
|
|
538
|
+
height: 40px;
|
|
539
|
+
line-height: 40px;
|
|
540
|
+
margin: 6px 16px;
|
|
541
|
+
text-align: center;
|
|
542
|
+
border-radius: var(--nutui-radius-base, 8px);
|
|
548
543
|
background: linear-gradient(90deg, var(--nutui-color-primary-stop-1, #ff475d) 0%, var(--nutui-color-primary-stop-2, #ff0f23) 100%);
|
|
549
544
|
color: #ffffff;
|
|
550
|
-
|
|
551
|
-
line-height: 44px;
|
|
545
|
+
font-weight: var(--nutui-font-weight-bold, 600);
|
|
552
546
|
}
|
|
553
547
|
|
|
554
548
|
.nut-calendar-popup .nut-popup-title-right {
|
|
@@ -30,6 +30,9 @@
|
|
|
30
30
|
flex-direction: column;
|
|
31
31
|
text-align: center;
|
|
32
32
|
}
|
|
33
|
+
.nut-calendar-header-buttons {
|
|
34
|
+
height: 24px;
|
|
35
|
+
}
|
|
33
36
|
.nut-calendar-title {
|
|
34
37
|
color: #1a1a1a;
|
|
35
38
|
font-size: 18px;
|
|
@@ -41,9 +44,6 @@
|
|
|
41
44
|
line-height: 22px;
|
|
42
45
|
font-size: 14px;
|
|
43
46
|
}
|
|
44
|
-
.nut-calendar-header-buttons {
|
|
45
|
-
height: 24px;
|
|
46
|
-
}
|
|
47
47
|
.nut-calendar-weeks {
|
|
48
48
|
display: flex;
|
|
49
49
|
align-items: center;
|
|
@@ -113,14 +113,7 @@
|
|
|
113
113
|
.nut-calendar-day:nth-child(7n+1) {
|
|
114
114
|
color: #ff0f23;
|
|
115
115
|
}
|
|
116
|
-
.nut-calendar-day-info-curr {
|
|
117
|
-
position: absolute;
|
|
118
|
-
bottom: 5px;
|
|
119
|
-
width: 100%;
|
|
120
|
-
font-size: 12px;
|
|
121
|
-
line-height: 14px;
|
|
122
|
-
}
|
|
123
|
-
.nut-calendar-day-info {
|
|
116
|
+
.nut-calendar-day-info, .nut-calendar-day-info-curr {
|
|
124
117
|
position: absolute;
|
|
125
118
|
bottom: 5px;
|
|
126
119
|
width: 100%;
|
|
@@ -161,6 +154,10 @@
|
|
|
161
154
|
.nut-calendar-day-disabled .nut-calendar-day-info-curr {
|
|
162
155
|
display: none;
|
|
163
156
|
}
|
|
157
|
+
.nut-calendar-day-choose {
|
|
158
|
+
background-color: #ffebf1;
|
|
159
|
+
color: #ff0f23;
|
|
160
|
+
}
|
|
164
161
|
.nut-calendar-day-choose-disabled {
|
|
165
162
|
background-color: rgba(191, 191, 191, 0.09);
|
|
166
163
|
color: #c2c4cc !important;
|
|
@@ -168,10 +165,6 @@
|
|
|
168
165
|
.nut-calendar-day-choose-disabled .nut-calendar-day-info-curr {
|
|
169
166
|
display: none;
|
|
170
167
|
}
|
|
171
|
-
.nut-calendar-day-choose {
|
|
172
|
-
background-color: #ffebf1;
|
|
173
|
-
color: #ff0f23;
|
|
174
|
-
}
|
|
175
168
|
.nut-calendar-footer {
|
|
176
169
|
display: flex;
|
|
177
170
|
width: 100%;
|
|
@@ -179,13 +172,14 @@
|
|
|
179
172
|
background-color: #ffffff;
|
|
180
173
|
}
|
|
181
174
|
.nut-calendar-footer .calendar-confirm-btn {
|
|
182
|
-
height:
|
|
183
|
-
|
|
184
|
-
|
|
175
|
+
height: 40px;
|
|
176
|
+
line-height: 40px;
|
|
177
|
+
margin: 6px 16px;
|
|
178
|
+
text-align: center;
|
|
179
|
+
border-radius: 8px;
|
|
185
180
|
background: linear-gradient(90deg, #ff475d 0%, #ff0f23 100%);
|
|
186
181
|
color: #ffffff;
|
|
187
|
-
|
|
188
|
-
line-height: 44px;
|
|
182
|
+
font-weight: 600;
|
|
189
183
|
}
|
|
190
184
|
|
|
191
185
|
.nut-calendar-popup .nut-popup-title-right {
|
|
@@ -21,7 +21,7 @@ var _icon = require("./icon");
|
|
|
21
21
|
var _typings = require("../../utils/typings");
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
var _index = require("../configprovider/index");
|
|
24
|
-
var _usepropsvalue = require("../../
|
|
24
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
25
25
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
26
26
|
type: 'single',
|
|
27
27
|
firstDayOfWeek: 0
|
|
@@ -23,7 +23,7 @@ var _typings = require("../../utils/typings");
|
|
|
23
23
|
var _date = require("../../utils/date");
|
|
24
24
|
var _raf = /*#__PURE__*/ _interop_require_default._(require("../../utils/raf"));
|
|
25
25
|
var _index = require("../configprovider/index");
|
|
26
|
-
var _usepropsvalue = require("../../
|
|
26
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
27
27
|
var _utils = require("../calendar/utils");
|
|
28
28
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
29
29
|
type: 'single',
|
|
@@ -651,7 +651,6 @@ var CalendarItem = /*#__PURE__*/ _react.default.forwardRef(function(props, ref)
|
|
|
651
651
|
return /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
652
652
|
className: "nut-calendar-footer"
|
|
653
653
|
}, children, /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
654
|
-
className: "calendar-confirm-btn",
|
|
655
654
|
onClick: confirm
|
|
656
655
|
}, renderBottomButton ? renderBottomButton() : /*#__PURE__*/ _react.default.createElement(_components.View, {
|
|
657
656
|
className: "calendar-confirm-btn"
|
|
@@ -24,7 +24,7 @@ var _index = /*#__PURE__*/ _interop_require_default._(require("../popup/index"))
|
|
|
24
24
|
var _tabs = require("../tabs/tabs");
|
|
25
25
|
var _utils = /*#__PURE__*/ _interop_require_wildcard._(require("./utils"));
|
|
26
26
|
var _typings = require("../../utils/typings");
|
|
27
|
-
var _usepropsvalue = require("../../
|
|
27
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
28
28
|
var _index1 = require("../configprovider/index");
|
|
29
29
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
30
30
|
activeColor: '',
|
|
@@ -21,7 +21,7 @@ var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames")
|
|
|
21
21
|
var _components = require("@tarojs/components");
|
|
22
22
|
var _typings = require("../../utils/typings");
|
|
23
23
|
var _context = /*#__PURE__*/ _interop_require_default._(require("../checkboxgroup/context"));
|
|
24
|
-
var _usepropsvalue = require("../../
|
|
24
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
25
25
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
26
26
|
disabled: false,
|
|
27
27
|
shape: 'round',
|
|
@@ -19,7 +19,7 @@ var _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
|
19
19
|
var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames"));
|
|
20
20
|
var _checkbox = require("../checkbox/checkbox");
|
|
21
21
|
var _context = /*#__PURE__*/ _interop_require_default._(require("./context"));
|
|
22
|
-
var _usepropsvalue = require("../../
|
|
22
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
23
23
|
var defaultProps = {
|
|
24
24
|
max: undefined,
|
|
25
25
|
min: undefined,
|
|
@@ -18,7 +18,7 @@ var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames")
|
|
|
18
18
|
var _components = require("@tarojs/components");
|
|
19
19
|
var _utils = require("../../utils");
|
|
20
20
|
var _typings = require("../../utils/typings");
|
|
21
|
-
var _useforceupdate = require("../../
|
|
21
|
+
var _useforceupdate = require("../../hooks/use-force-update");
|
|
22
22
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
23
23
|
strokeWidth: 5,
|
|
24
24
|
radius: 50,
|
|
@@ -19,7 +19,7 @@ var _components = require("@tarojs/components");
|
|
|
19
19
|
var _typings = require("../../utils/typings");
|
|
20
20
|
var _index = /*#__PURE__*/ _interop_require_default._(require("../collapseitem/index"));
|
|
21
21
|
var _context = /*#__PURE__*/ _interop_require_default._(require("./context"));
|
|
22
|
-
var _usepropsvalue = require("../../
|
|
22
|
+
var _usepropsvalue = require("../../hooks/use-props-value");
|
|
23
23
|
var defaultProps = (0, _object_spread_props._)((0, _object_spread._)({}, _typings.ComponentDefaults), {
|
|
24
24
|
defaultActiveName: [],
|
|
25
25
|
accordion: false,
|
|
@@ -38,7 +38,7 @@ var _classnames = /*#__PURE__*/ _interop_require_default._(require("classnames")
|
|
|
38
38
|
var _lodashkebabcase = /*#__PURE__*/ _interop_require_default._(require("lodash.kebabcase"));
|
|
39
39
|
var _reactfastcompare = /*#__PURE__*/ _interop_require_default._(require("react-fast-compare"));
|
|
40
40
|
var _components = require("@tarojs/components");
|
|
41
|
-
var _usememo = /*#__PURE__*/ _interop_require_default._(require("../../
|
|
41
|
+
var _usememo = /*#__PURE__*/ _interop_require_default._(require("../../hooks/use-memo"));
|
|
42
42
|
var _zhCN = /*#__PURE__*/ _interop_require_default._(require("../../locales/zh-CN"));
|
|
43
43
|
var classPrefix = 'nut-configprovider';
|
|
44
44
|
var defaultConfigRef = {
|