@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
|
@@ -5,320 +5,320 @@ 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
|
+
ActionSheet: function() {
|
|
13
13
|
return _index55.default;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
Address: function() {
|
|
16
16
|
return _index27.default;
|
|
17
17
|
},
|
|
18
|
-
|
|
18
|
+
Animate: function() {
|
|
19
19
|
return _index71.default;
|
|
20
20
|
},
|
|
21
|
-
|
|
21
|
+
AnimatingNumbers: function() {
|
|
22
22
|
return _index72.default;
|
|
23
23
|
},
|
|
24
|
-
|
|
24
|
+
Audio: function() {
|
|
25
25
|
return _index73.default;
|
|
26
26
|
},
|
|
27
|
-
|
|
27
|
+
Avatar: function() {
|
|
28
28
|
return _index74.default;
|
|
29
29
|
},
|
|
30
|
-
|
|
30
|
+
AvatarCropper: function() {
|
|
31
31
|
return _index97.default;
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
AvatarGroup: function() {
|
|
34
34
|
return _index75.default;
|
|
35
35
|
},
|
|
36
|
-
|
|
36
|
+
BackTop: function() {
|
|
37
37
|
return _index15.default;
|
|
38
38
|
},
|
|
39
|
-
|
|
39
|
+
Badge: function() {
|
|
40
40
|
return _index56.default;
|
|
41
41
|
},
|
|
42
|
-
|
|
42
|
+
Barrage: function() {
|
|
43
43
|
return _index98.default;
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
Button: function() {
|
|
46
46
|
return _index.default;
|
|
47
47
|
},
|
|
48
|
-
|
|
48
|
+
Calendar: function() {
|
|
49
49
|
return _index28.default;
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
CalendarCard: function() {
|
|
52
52
|
return _index30.default;
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
CalendarItem: function() {
|
|
55
55
|
return _index29.default;
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
Card: function() {
|
|
58
58
|
return _index99.default;
|
|
59
59
|
},
|
|
60
|
-
|
|
60
|
+
Cascader: function() {
|
|
61
61
|
return _index31.default;
|
|
62
62
|
},
|
|
63
|
-
|
|
63
|
+
Cell: function() {
|
|
64
64
|
return _index1.default;
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
CellGroup: function() {
|
|
67
67
|
return _index2.default;
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
Checkbox: function() {
|
|
70
70
|
return _index32.default;
|
|
71
71
|
},
|
|
72
|
-
|
|
72
|
+
CheckboxGroup: function() {
|
|
73
73
|
return _index33.default;
|
|
74
74
|
},
|
|
75
|
-
|
|
75
|
+
CircleProgress: function() {
|
|
76
76
|
return _index76.default;
|
|
77
77
|
},
|
|
78
|
-
|
|
78
|
+
Col: function() {
|
|
79
79
|
return _index10.default;
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
Collapse: function() {
|
|
82
82
|
return _index77.default;
|
|
83
83
|
},
|
|
84
|
-
|
|
84
|
+
CollapseItem: function() {
|
|
85
85
|
return _index78.default;
|
|
86
86
|
},
|
|
87
|
-
|
|
87
|
+
ConfigProvider: function() {
|
|
88
88
|
return _index3.default;
|
|
89
89
|
},
|
|
90
|
-
|
|
90
|
+
CountDown: function() {
|
|
91
91
|
return _index79.default;
|
|
92
92
|
},
|
|
93
|
-
|
|
93
|
+
DatePicker: function() {
|
|
94
94
|
return _index34.default;
|
|
95
95
|
},
|
|
96
|
-
|
|
96
|
+
DatePickerView: function() {
|
|
97
97
|
return _index35.default;
|
|
98
98
|
},
|
|
99
|
-
|
|
99
|
+
Dialog: function() {
|
|
100
100
|
return _index57.default;
|
|
101
101
|
},
|
|
102
|
-
|
|
102
|
+
Divider: function() {
|
|
103
103
|
return _index6.default;
|
|
104
104
|
},
|
|
105
|
-
|
|
105
|
+
Drag: function() {
|
|
106
106
|
return _index58.default;
|
|
107
107
|
},
|
|
108
|
-
|
|
108
|
+
Elevator: function() {
|
|
109
109
|
return _index16.default;
|
|
110
110
|
},
|
|
111
|
-
|
|
111
|
+
Ellipsis: function() {
|
|
112
112
|
return _index80.default;
|
|
113
113
|
},
|
|
114
|
-
|
|
114
|
+
Empty: function() {
|
|
115
115
|
return _index59.default;
|
|
116
116
|
},
|
|
117
|
-
|
|
117
|
+
FixedNav: function() {
|
|
118
118
|
return _index17.default;
|
|
119
119
|
},
|
|
120
|
-
|
|
120
|
+
Form: function() {
|
|
121
121
|
return _index36.default;
|
|
122
122
|
},
|
|
123
|
-
|
|
123
|
+
FormItem: function() {
|
|
124
124
|
return _index37.default;
|
|
125
125
|
},
|
|
126
|
-
|
|
126
|
+
Grid: function() {
|
|
127
127
|
return _index7.default;
|
|
128
128
|
},
|
|
129
|
-
|
|
129
|
+
GridItem: function() {
|
|
130
130
|
return _index8.default;
|
|
131
131
|
},
|
|
132
|
-
|
|
132
|
+
HoverButton: function() {
|
|
133
133
|
return _index18.default;
|
|
134
134
|
},
|
|
135
|
-
|
|
135
|
+
HoverButtonItem: function() {
|
|
136
136
|
return _index19.default;
|
|
137
137
|
},
|
|
138
|
-
|
|
138
|
+
Image: function() {
|
|
139
139
|
return _index4.default;
|
|
140
140
|
},
|
|
141
|
-
|
|
141
|
+
ImagePreview: function() {
|
|
142
142
|
return _index81.default;
|
|
143
143
|
},
|
|
144
|
-
|
|
144
|
+
Indicator: function() {
|
|
145
145
|
return _index82.default;
|
|
146
146
|
},
|
|
147
|
-
|
|
147
|
+
InfiniteLoading: function() {
|
|
148
148
|
return _index60.default;
|
|
149
149
|
},
|
|
150
|
-
|
|
150
|
+
Input: function() {
|
|
151
151
|
return _index38.default;
|
|
152
152
|
},
|
|
153
|
-
|
|
153
|
+
InputNumber: function() {
|
|
154
154
|
return _index39.default;
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
Layout: function() {
|
|
157
157
|
return _index9.default;
|
|
158
158
|
},
|
|
159
|
-
|
|
159
|
+
Loading: function() {
|
|
160
160
|
return _index61.default;
|
|
161
161
|
},
|
|
162
|
-
|
|
162
|
+
Lottie: function() {
|
|
163
163
|
return _index83.default;
|
|
164
164
|
},
|
|
165
|
-
|
|
165
|
+
Menu: function() {
|
|
166
166
|
return _index40.default;
|
|
167
167
|
},
|
|
168
|
-
|
|
168
|
+
MenuItem: function() {
|
|
169
169
|
return _index41.default;
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
NavBar: function() {
|
|
172
172
|
return _index20.default;
|
|
173
173
|
},
|
|
174
|
-
|
|
174
|
+
NoticeBar: function() {
|
|
175
175
|
return _index62.default;
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
Notify: function() {
|
|
178
178
|
return _index63.default;
|
|
179
179
|
},
|
|
180
|
-
|
|
180
|
+
NumberKeyboard: function() {
|
|
181
181
|
return _index42.default;
|
|
182
182
|
},
|
|
183
|
-
|
|
183
|
+
Overlay: function() {
|
|
184
184
|
return _index5.default;
|
|
185
185
|
},
|
|
186
|
-
|
|
186
|
+
Pagination: function() {
|
|
187
187
|
return _index84.default;
|
|
188
188
|
},
|
|
189
|
-
|
|
189
|
+
Picker: function() {
|
|
190
190
|
return _index43.default;
|
|
191
191
|
},
|
|
192
|
-
|
|
192
|
+
PickerView: function() {
|
|
193
193
|
return _index44.default;
|
|
194
194
|
},
|
|
195
|
-
|
|
195
|
+
Popover: function() {
|
|
196
196
|
return _index64.default;
|
|
197
197
|
},
|
|
198
|
-
|
|
198
|
+
Popup: function() {
|
|
199
199
|
return _index65.default;
|
|
200
200
|
},
|
|
201
|
-
|
|
201
|
+
Price: function() {
|
|
202
202
|
return _index85.default;
|
|
203
203
|
},
|
|
204
|
-
|
|
204
|
+
Progress: function() {
|
|
205
205
|
return _index86.default;
|
|
206
206
|
},
|
|
207
|
-
|
|
207
|
+
PullToRefresh: function() {
|
|
208
208
|
return _index66.default;
|
|
209
209
|
},
|
|
210
|
-
|
|
210
|
+
Radio: function() {
|
|
211
211
|
return _index45.default;
|
|
212
212
|
},
|
|
213
|
-
|
|
213
|
+
RadioGroup: function() {
|
|
214
214
|
return _index46.default;
|
|
215
215
|
},
|
|
216
|
-
|
|
216
|
+
Range: function() {
|
|
217
217
|
return _index47.default;
|
|
218
218
|
},
|
|
219
|
-
|
|
219
|
+
Rate: function() {
|
|
220
220
|
return _index48.default;
|
|
221
221
|
},
|
|
222
|
-
|
|
222
|
+
ResultPage: function() {
|
|
223
223
|
return _index67.default;
|
|
224
224
|
},
|
|
225
|
-
|
|
225
|
+
Row: function() {
|
|
226
226
|
return _index11.default;
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
SafeArea: function() {
|
|
229
229
|
return _index12.default;
|
|
230
230
|
},
|
|
231
|
-
|
|
231
|
+
SearchBar: function() {
|
|
232
232
|
return _index49.default;
|
|
233
233
|
},
|
|
234
|
-
|
|
234
|
+
Segmented: function() {
|
|
235
235
|
return _index87.default;
|
|
236
236
|
},
|
|
237
|
-
|
|
237
|
+
ShortPassword: function() {
|
|
238
238
|
return _index50.default;
|
|
239
239
|
},
|
|
240
|
-
|
|
240
|
+
SideBar: function() {
|
|
241
241
|
return _index21.default;
|
|
242
242
|
},
|
|
243
|
-
|
|
243
|
+
SideBarItem: function() {
|
|
244
244
|
return _index22.default;
|
|
245
245
|
},
|
|
246
|
-
|
|
246
|
+
Signature: function() {
|
|
247
247
|
return _index51.default;
|
|
248
248
|
},
|
|
249
|
-
|
|
249
|
+
Skeleton: function() {
|
|
250
250
|
return _index68.default;
|
|
251
251
|
},
|
|
252
|
-
|
|
252
|
+
Space: function() {
|
|
253
253
|
return _index13.default;
|
|
254
254
|
},
|
|
255
|
-
|
|
255
|
+
Step: function() {
|
|
256
256
|
return _index88.default;
|
|
257
257
|
},
|
|
258
|
-
|
|
258
|
+
Steps: function() {
|
|
259
259
|
return _index89.default;
|
|
260
260
|
},
|
|
261
|
-
|
|
261
|
+
Sticky: function() {
|
|
262
262
|
return _index14.default;
|
|
263
263
|
},
|
|
264
|
-
|
|
264
|
+
Swipe: function() {
|
|
265
265
|
return _index69.default;
|
|
266
266
|
},
|
|
267
|
-
|
|
267
|
+
Swiper: function() {
|
|
268
268
|
return _index90.default;
|
|
269
269
|
},
|
|
270
|
-
|
|
270
|
+
SwiperItem: function() {
|
|
271
271
|
return _index91.default;
|
|
272
272
|
},
|
|
273
|
-
|
|
273
|
+
Switch: function() {
|
|
274
274
|
return _index52.default;
|
|
275
275
|
},
|
|
276
|
-
|
|
276
|
+
TabPane: function() {
|
|
277
277
|
return _index25.default;
|
|
278
278
|
},
|
|
279
|
-
|
|
279
|
+
Tabbar: function() {
|
|
280
280
|
return _index23.default;
|
|
281
281
|
},
|
|
282
|
-
|
|
282
|
+
TabbarItem: function() {
|
|
283
283
|
return _index24.default;
|
|
284
284
|
},
|
|
285
|
-
|
|
285
|
+
Table: function() {
|
|
286
286
|
return _index92.default;
|
|
287
287
|
},
|
|
288
|
-
|
|
288
|
+
Tabs: function() {
|
|
289
289
|
return _index26.default;
|
|
290
290
|
},
|
|
291
|
-
|
|
291
|
+
Tag: function() {
|
|
292
292
|
return _index93.default;
|
|
293
293
|
},
|
|
294
|
-
|
|
294
|
+
TextArea: function() {
|
|
295
295
|
return _index53.default;
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
TimeDetail: function() {
|
|
298
298
|
return _index100.default;
|
|
299
299
|
},
|
|
300
|
-
|
|
300
|
+
TimeSelect: function() {
|
|
301
301
|
return _index101.default;
|
|
302
302
|
},
|
|
303
|
-
|
|
303
|
+
Toast: function() {
|
|
304
304
|
return _index70.default;
|
|
305
305
|
},
|
|
306
|
-
|
|
306
|
+
Tour: function() {
|
|
307
307
|
return _index94.default;
|
|
308
308
|
},
|
|
309
|
-
|
|
309
|
+
TrendArrow: function() {
|
|
310
310
|
return _index102.default;
|
|
311
311
|
},
|
|
312
|
-
|
|
312
|
+
Uploader: function() {
|
|
313
313
|
return _index54.default;
|
|
314
314
|
},
|
|
315
|
-
|
|
315
|
+
Video: function() {
|
|
316
316
|
return _index95.default;
|
|
317
317
|
},
|
|
318
|
-
|
|
318
|
+
VirtualList: function() {
|
|
319
319
|
return _index96.default;
|
|
320
320
|
},
|
|
321
|
-
|
|
321
|
+
WaterMark: function() {
|
|
322
322
|
return _index103.default;
|
|
323
323
|
}
|
|
324
324
|
});
|
|
@@ -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
|
+
Overlay: function() {
|
|
13
13
|
return Overlay;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
defaultOverlayProps: function() {
|
|
16
16
|
return defaultOverlayProps;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -126,8 +126,8 @@ var InternalPickerRoller = function InternalPickerRoller(props, ref) {
|
|
|
126
126
|
setTouchTime(0);
|
|
127
127
|
selectValue(scrollDistance);
|
|
128
128
|
};
|
|
129
|
-
var getReactHeight = function
|
|
130
|
-
|
|
129
|
+
var getReactHeight = /*#__PURE__*/ function() {
|
|
130
|
+
var _ref = (0, _async_to_generator._)(function() {
|
|
131
131
|
var placeholder, placeholderHeight, error;
|
|
132
132
|
return (0, _ts_generator._)(this, function(_state) {
|
|
133
133
|
switch(_state.label){
|
|
@@ -162,8 +162,11 @@ var InternalPickerRoller = function InternalPickerRoller(props, ref) {
|
|
|
162
162
|
];
|
|
163
163
|
}
|
|
164
164
|
});
|
|
165
|
-
})
|
|
166
|
-
|
|
165
|
+
});
|
|
166
|
+
return function getReactHeight() {
|
|
167
|
+
return _ref.apply(this, arguments);
|
|
168
|
+
};
|
|
169
|
+
}();
|
|
167
170
|
// lineSpacing.current CSS variable
|
|
168
171
|
(0, _react.useEffect)(function() {
|
|
169
172
|
var element = pickerRollerRef.current;
|
|
@@ -66,7 +66,8 @@ var InternalPickerView = function InternalPickerView(props, ref) {
|
|
|
66
66
|
var index = currentOptions.findIndex(function(columnItem) {
|
|
67
67
|
return columnItem.value === currentValue;
|
|
68
68
|
});
|
|
69
|
-
columnOptions = currentOptions[index === -1 ? 0 : index]
|
|
69
|
+
columnOptions = currentOptions[index === -1 ? 0 : index] // 如果未找到,默认取第一个
|
|
70
|
+
;
|
|
70
71
|
} else {
|
|
71
72
|
return "break" // 如果 currentValue 不存在,终止循环
|
|
72
73
|
;
|
|
@@ -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
|
+
momentum: function() {
|
|
13
13
|
return momentum;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
useStyles: function() {
|
|
16
16
|
return useStyles;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
@@ -86,91 +86,93 @@ var Popover = function Popover(props) {
|
|
|
86
86
|
]);
|
|
87
87
|
var uid = (0, _useuuid.useUuid)();
|
|
88
88
|
var popoverId = "popover-".concat(uid);
|
|
89
|
-
var getWrapperPosition = function
|
|
90
|
-
|
|
89
|
+
var getWrapperPosition = /*#__PURE__*/ function() {
|
|
90
|
+
var _ref = (0, _async_to_generator._)(function() {
|
|
91
91
|
return (0, _ts_generator._)(this, function(_state) {
|
|
92
|
-
(0, _taro.nextTick)(function() {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})();
|
|
137
|
-
});
|
|
92
|
+
(0, _taro.nextTick)(/*#__PURE__*/ (0, _async_to_generator._)(function() {
|
|
93
|
+
var rect, _tmp, width, height, right, left, top;
|
|
94
|
+
return (0, _ts_generator._)(this, function(_state) {
|
|
95
|
+
switch(_state.label){
|
|
96
|
+
case 0:
|
|
97
|
+
if (!targetId) return [
|
|
98
|
+
3,
|
|
99
|
+
2
|
|
100
|
+
];
|
|
101
|
+
return [
|
|
102
|
+
4,
|
|
103
|
+
(0, _getrect.getRectInMultiPlatform)(document.querySelector("#".concat(targetId)), targetId)
|
|
104
|
+
];
|
|
105
|
+
case 1:
|
|
106
|
+
_tmp = _state.sent();
|
|
107
|
+
return [
|
|
108
|
+
3,
|
|
109
|
+
4
|
|
110
|
+
];
|
|
111
|
+
case 2:
|
|
112
|
+
return [
|
|
113
|
+
4,
|
|
114
|
+
(0, _getrect.getRectInMultiPlatform)(popoverRef.current, popoverId)
|
|
115
|
+
];
|
|
116
|
+
case 3:
|
|
117
|
+
_tmp = _state.sent();
|
|
118
|
+
_state.label = 4;
|
|
119
|
+
case 4:
|
|
120
|
+
rect = _tmp;
|
|
121
|
+
width = rect.width, height = rect.height, right = rect.right, left = rect.left, top = rect.top;
|
|
122
|
+
setWrapperPosition({
|
|
123
|
+
width: width,
|
|
124
|
+
height: height,
|
|
125
|
+
left: rtl ? right : left,
|
|
126
|
+
top: top,
|
|
127
|
+
right: rtl ? left : right
|
|
128
|
+
});
|
|
129
|
+
getPopoverContentW();
|
|
130
|
+
return [
|
|
131
|
+
2
|
|
132
|
+
];
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}));
|
|
138
136
|
return [
|
|
139
137
|
2
|
|
140
138
|
];
|
|
141
139
|
});
|
|
142
|
-
})
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
140
|
+
});
|
|
141
|
+
return function getWrapperPosition() {
|
|
142
|
+
return _ref.apply(this, arguments);
|
|
143
|
+
};
|
|
144
|
+
}();
|
|
145
|
+
var getPopoverContentW = /*#__PURE__*/ function() {
|
|
146
|
+
var _ref = (0, _async_to_generator._)(function() {
|
|
146
147
|
return (0, _ts_generator._)(this, function(_state) {
|
|
147
|
-
(0, _taro.nextTick)(function() {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
})();
|
|
167
|
-
});
|
|
148
|
+
(0, _taro.nextTick)(/*#__PURE__*/ (0, _async_to_generator._)(function() {
|
|
149
|
+
var rectContent;
|
|
150
|
+
return (0, _ts_generator._)(this, function(_state) {
|
|
151
|
+
switch(_state.label){
|
|
152
|
+
case 0:
|
|
153
|
+
return [
|
|
154
|
+
4,
|
|
155
|
+
(0, _getrect.getRectInMultiPlatform)(popoverContentRef.current)
|
|
156
|
+
];
|
|
157
|
+
case 1:
|
|
158
|
+
rectContent = _state.sent();
|
|
159
|
+
setPopWidth(rectContent.width);
|
|
160
|
+
setPopHeight(rectContent.height);
|
|
161
|
+
return [
|
|
162
|
+
2
|
|
163
|
+
];
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
}));
|
|
168
167
|
return [
|
|
169
168
|
2
|
|
170
169
|
];
|
|
171
170
|
});
|
|
172
|
-
})
|
|
173
|
-
|
|
171
|
+
});
|
|
172
|
+
return function getPopoverContentW() {
|
|
173
|
+
return _ref.apply(this, arguments);
|
|
174
|
+
};
|
|
175
|
+
}();
|
|
174
176
|
var clickAway = function clickAway() {
|
|
175
177
|
if (closeOnOutsideClick) {
|
|
176
178
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|