@nutui/nutui-react-taro 2.0.0 → 2.0.1
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/CHANGELOG.md +17 -0
- package/dist/esm/Address.js +4 -4
- package/dist/esm/Audio.js +3 -3
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Calendar.js +3 -3
- package/dist/esm/CalendarItem.js +2 -2
- package/dist/esm/Card/style/style.css +1 -1
- package/dist/esm/Cascader.js +3 -3
- package/dist/esm/Checkbox.js +2 -2
- package/dist/esm/CheckboxGroup.js +2 -2
- package/dist/esm/CircleProgress.js +1 -1
- package/dist/esm/Collapse.js +2 -2
- package/dist/esm/DatePicker.js +3 -3
- package/dist/esm/Ellipsis/style/style.css +1 -1
- package/dist/esm/Form.js +1 -1
- package/dist/esm/ImagePreview.js +2 -2
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Input.js +2 -2
- package/dist/esm/InputNumber.js +2 -2
- package/dist/esm/Pagination.js +2 -2
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/Radio.js +2 -2
- package/dist/esm/RadioGroup.js +2 -2
- package/dist/esm/Range.js +2 -2
- package/dist/esm/Rate.js +2 -2
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/Switch.js +2 -2
- package/dist/esm/Tabbar.js +2 -2
- package/dist/esm/Tabs.js +2 -2
- package/dist/esm/Tag/style/style.css +1 -1
- package/dist/esm/TextArea.js +2 -2
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/{address.taro-d4299225.js → address.taro-3e9addcc.js} +1 -1
- package/dist/esm/{audio.taro-e4e33cdd.js → audio.taro-38889f9d.js} +1 -1
- package/dist/esm/{barrage.taro-e87bc58e.js → barrage.taro-1de16de1.js} +9 -9
- package/dist/esm/{calendar.taro-8bb4cb34.js → calendar.taro-eedfb0ac.js} +1 -1
- package/dist/esm/{calendaritem.taro-0262d6ab.js → calendaritem.taro-22e09e6d.js} +1 -1
- package/dist/esm/{cascader.taro-e929f24d.js → cascader.taro-cb5ead51.js} +2 -2
- package/dist/esm/{checkbox.taro-303276d7.js → checkbox.taro-ab8ef36e.js} +1 -1
- package/dist/esm/{circleprogress.taro-7149e09d.js → circleprogress.taro-fd2326fc.js} +2 -2
- package/dist/esm/{collapse.taro-1d9e3bb2.js → collapse.taro-5aa2b225.js} +1 -1
- package/dist/esm/{datepicker.taro-604222f0.js → datepicker.taro-a6b0ae2d.js} +33 -26
- package/dist/esm/{form.taro-1fcc5143.js → form.taro-1a66c97a.js} +1 -1
- package/dist/esm/{imagepreview.taro-2d18f096.js → imagepreview.taro-71d57d47.js} +1 -1
- package/dist/esm/{infiniteloading.taro-59778aef.js → infiniteloading.taro-1b43b959.js} +2 -2
- package/dist/esm/{input.taro-a4c8fecb.js → input.taro-c611c122.js} +1 -1
- package/dist/esm/{inputnumber.taro-c4c0cfb3.js → inputnumber.taro-96165704.js} +7 -7
- package/dist/esm/nutui-react.es.js +28 -28
- package/dist/esm/{pagination.taro-0d851480.js → pagination.taro-2c68b943.js} +1 -1
- package/dist/esm/{picker.taro-86564e14.js → picker.taro-539089cb.js} +1 -1
- package/dist/esm/{radio.taro-5d6ca4ad.js → radio.taro-410f7b07.js} +1 -1
- package/dist/esm/{range.taro-a1d1ad25.js → range.taro-e88b568c.js} +1 -1
- package/dist/esm/{rate.taro-78c66969.js → rate.taro-2e2898ec.js} +1 -1
- package/dist/esm/{searchbar.taro-842e985f.js → searchbar.taro-5d83279d.js} +1 -1
- package/dist/esm/{shortpassword.taro-b1b6c076.js → shortpassword.taro-9c3be7da.js} +1 -1
- package/dist/esm/{switch.taro-f0da73a3.js → switch.taro-81197983.js} +1 -1
- package/dist/esm/{tabbar.taro-4f49ed90.js → tabbar.taro-978c27b0.js} +1 -1
- package/dist/esm/{tabs.taro-66164782.js → tabs.taro-67bdf3bb.js} +1 -5
- package/dist/esm/{textarea.taro-6b6142cc.js → textarea.taro-a09e8563.js} +1 -1
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.d.ts +1 -3
- package/dist/esm/types/src/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -3
- package/dist/esm/types/src/packages/circleprogress/circleprogress.d.ts +1 -1
- package/dist/esm/types/src/packages/circleprogress/circleprogress.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/datepicker/datepicker.d.ts +2 -2
- package/dist/esm/types/src/packages/datepicker/datepicker.taro.d.ts +2 -2
- package/dist/esm/types/src/packages/tag/tag.d.ts +1 -1
- package/dist/esm/types/src/packages/tag/tag.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/uploader/upload.d.ts +6 -6
- package/dist/esm/types/src/packages/uploader/uploader.taro.d.ts +2 -2
- package/dist/esm/{uploader.taro-d9add90e.js → uploader.taro-3bbe2503.js} +33 -35
- package/dist/esm/use-props-value-1f54346f.js +27 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +113 -100
- package/dist/nutui.react.umd.js +113 -100
- package/dist/packages/searchbar/searchbar.scss +2 -0
- package/dist/packages/tag/tag.scss +5 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/theme-dark.scss +1 -0
- package/dist/styles/theme-default.scss +1 -0
- package/dist/styles/variables.scss +6 -6
- package/dist/types/packages/animatingnumbers/animatingnumbers.taro.d.ts +1 -3
- package/dist/types/packages/circleprogress/circleprogress.taro.d.ts +1 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/datepicker/datepicker.taro.d.ts +2 -2
- package/dist/types/packages/swiper/swiper.taro.d.ts +1 -1
- package/dist/types/packages/tag/tag.taro.d.ts +1 -1
- package/dist/types/packages/uploader/upload.d.ts +6 -6
- package/dist/types/packages/uploader/uploader.taro.d.ts +2 -2
- package/package.json +2 -3
- package/dist/esm/use-props-value-7ac1b1b5.js +0 -16
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { View } from "@tarojs/components";
|
|
3
|
-
import { P as Picker } from "./picker.taro-
|
|
3
|
+
import { P as Picker } from "./picker.taro-539089cb.js";
|
|
4
4
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
5
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
7
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
8
8
|
const defaultProps = {
|
|
@@ -43,12 +43,12 @@ const DatePicker = (props) => {
|
|
|
43
43
|
}
|
|
44
44
|
let timestmp = Math.max(cvalue.getTime(), startDate.getTime());
|
|
45
45
|
timestmp = Math.min(timestmp, endDate.getTime());
|
|
46
|
-
return
|
|
46
|
+
return timestmp;
|
|
47
47
|
};
|
|
48
48
|
const [currentDate, setCurrentDate] = usePropsValue({
|
|
49
49
|
value: props.value && formatValue(props.value),
|
|
50
50
|
defaultValue: formatValue(props.defaultValue || null),
|
|
51
|
-
finalValue:
|
|
51
|
+
finalValue: 0,
|
|
52
52
|
onChange: (val) => {
|
|
53
53
|
}
|
|
54
54
|
});
|
|
@@ -91,7 +91,7 @@ const DatePicker = (props) => {
|
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
const ranges = () => {
|
|
94
|
-
const curDate = currentDate;
|
|
94
|
+
const curDate = new Date(currentDate);
|
|
95
95
|
if (!curDate)
|
|
96
96
|
return [];
|
|
97
97
|
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", curDate);
|
|
@@ -148,29 +148,31 @@ const DatePicker = (props) => {
|
|
|
148
148
|
return result;
|
|
149
149
|
};
|
|
150
150
|
const updateChooseValueCustmer = (selectedOptions, selectedValue, index) => {
|
|
151
|
-
|
|
151
|
+
var _a;
|
|
152
|
+
const rangeType = type.toLocaleLowerCase();
|
|
153
|
+
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(rangeType)) {
|
|
152
154
|
const formatDate = [];
|
|
153
155
|
selectedValue.forEach((item) => {
|
|
154
156
|
formatDate.push(item);
|
|
155
157
|
});
|
|
156
|
-
if (
|
|
158
|
+
if (rangeType === "month-day" && formatDate.length < 3) {
|
|
157
159
|
formatDate.unshift(new Date(defaultValue || startDate || endDate).getFullYear());
|
|
158
160
|
}
|
|
159
|
-
if (
|
|
161
|
+
if (rangeType === "year-month" && formatDate.length < 3) {
|
|
160
162
|
formatDate.push(new Date(defaultValue || startDate || endDate).getDate());
|
|
161
163
|
}
|
|
162
164
|
const year = Number(formatDate[0]);
|
|
163
165
|
const month = Number(formatDate[1]) - 1;
|
|
164
166
|
const day = Math.min(Number(formatDate[2]), getMonthEndDay(Number(formatDate[0]), Number(formatDate[1])));
|
|
165
167
|
let date = null;
|
|
166
|
-
if (
|
|
168
|
+
if (rangeType === "date" || rangeType === "month-day" || rangeType === "year-month") {
|
|
167
169
|
date = new Date(year, month, day);
|
|
168
|
-
} else if (
|
|
170
|
+
} else if (rangeType === "datetime") {
|
|
169
171
|
date = new Date(year, month, day, Number(formatDate[3]), Number(formatDate[4]));
|
|
170
|
-
} else if (
|
|
172
|
+
} else if (rangeType === "datehour") {
|
|
171
173
|
date = new Date(year, month, day, Number(formatDate[3]));
|
|
172
174
|
}
|
|
173
|
-
const isEqual = (currentDate == null ? void 0 :
|
|
175
|
+
const isEqual = ((_a = new Date(currentDate)) == null ? void 0 : _a.getTime()) === (date == null ? void 0 : date.getTime());
|
|
174
176
|
date && isDate(date) && !isEqual && setCurrentDate(formatValue(date));
|
|
175
177
|
}
|
|
176
178
|
props.onChange && props.onChange(selectedOptions, selectedValue, index);
|
|
@@ -220,23 +222,28 @@ const DatePicker = (props) => {
|
|
|
220
222
|
return arr;
|
|
221
223
|
};
|
|
222
224
|
const getDateIndex = (type2) => {
|
|
225
|
+
const date = new Date(currentDate);
|
|
223
226
|
if (!currentDate)
|
|
224
227
|
return 0;
|
|
225
|
-
let d = 0;
|
|
226
228
|
if (type2 === "year") {
|
|
227
|
-
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
229
|
+
return date.getFullYear();
|
|
230
|
+
}
|
|
231
|
+
if (type2 === "month") {
|
|
232
|
+
return date.getMonth() + 1;
|
|
233
|
+
}
|
|
234
|
+
if (type2 === "day") {
|
|
235
|
+
return date.getDate();
|
|
236
|
+
}
|
|
237
|
+
if (type2 === "hour") {
|
|
238
|
+
return date.getHours();
|
|
239
|
+
}
|
|
240
|
+
if (type2 === "minute") {
|
|
241
|
+
return date.getMinutes();
|
|
242
|
+
}
|
|
243
|
+
if (type2 === "seconds") {
|
|
244
|
+
return date.getSeconds();
|
|
238
245
|
}
|
|
239
|
-
return
|
|
246
|
+
return 0;
|
|
240
247
|
};
|
|
241
248
|
const columns = () => {
|
|
242
249
|
const val = ranges().map((res, columnIndex) => {
|
|
@@ -248,7 +255,7 @@ const DatePicker = (props) => {
|
|
|
248
255
|
if (currentDate) {
|
|
249
256
|
setOptions(columns());
|
|
250
257
|
}
|
|
251
|
-
}, []);
|
|
258
|
+
}, [currentDate]);
|
|
252
259
|
return React.createElement(View, { className: `nut-datepicker ${className}`, style, catchMove: true, ...rest }, options.length && React.createElement(Picker, { title, visible, options, onClose, defaultValue: defaultValueOfPicker, onConfirm: (options2, value) => onConfirm && onConfirm(options2, value), onChange: (options2, value, index) => updateChooseValueCustmer(options2, value, index), threeDimensional }));
|
|
253
260
|
};
|
|
254
261
|
DatePicker.defaultProps = defaultProps;
|
|
@@ -1080,7 +1080,7 @@ class FormStore {
|
|
|
1080
1080
|
__publicField(this, "registerField", (field) => {
|
|
1081
1081
|
this.fieldEntities.push(field);
|
|
1082
1082
|
return () => {
|
|
1083
|
-
this.fieldEntities = this.fieldEntities.filter((item) => item
|
|
1083
|
+
this.fieldEntities = this.fieldEntities.filter((item) => item !== field);
|
|
1084
1084
|
if (this.store) {
|
|
1085
1085
|
delete this.store[field.props.name];
|
|
1086
1086
|
}
|
|
@@ -5,7 +5,7 @@ import { P as Popup } from "./popup.taro-1cd1f9d2.js";
|
|
|
5
5
|
import InnerSwiper from "./Swiper.js";
|
|
6
6
|
import { S as SwiperItem } from "./swiperitem.taro-ef7342e8.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
8
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
8
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
9
9
|
const defaultProps = {
|
|
10
10
|
...ComponentDefaults,
|
|
11
11
|
images: [],
|
|
@@ -73,14 +73,14 @@ const InfiniteLoading = (props) => {
|
|
|
73
73
|
onScroll && onScroll(e.detail.scrollTop);
|
|
74
74
|
};
|
|
75
75
|
const lower = () => {
|
|
76
|
-
if (direction.current
|
|
76
|
+
if (direction.current === "up" || !hasMore || isInfiniting) {
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
79
|
setIsInfiniting(true);
|
|
80
80
|
onLoadMore && onLoadMore(infiniteDone);
|
|
81
81
|
};
|
|
82
82
|
const touchStart = (event) => {
|
|
83
|
-
if (scrollTop.current
|
|
83
|
+
if (scrollTop.current === 0 && !isTouching.current && pullRefresh) {
|
|
84
84
|
y.current = event.touches[0].pageY;
|
|
85
85
|
isTouching.current = true;
|
|
86
86
|
}
|
|
@@ -4,7 +4,7 @@ import { MaskClose } from "@nutui/icons-react-taro";
|
|
|
4
4
|
import { getEnv, ENV_TYPE } from "@tarojs/taro";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
8
8
|
function trimExtraChar(value, char, regExp) {
|
|
9
9
|
const index = value.indexOf(char);
|
|
10
10
|
if (index === -1) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useEffect } from "react";
|
|
2
2
|
import { Minus, Plus } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
4
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -43,14 +43,14 @@ const InputNumber = (props) => {
|
|
|
43
43
|
};
|
|
44
44
|
const addAllow = (value2 = _checked) => {
|
|
45
45
|
if (formatter) {
|
|
46
|
-
const numValue = String(value2).replace(/[^0-9
|
|
46
|
+
const numValue = String(value2).replace(/[^0-9|.]/gi, "");
|
|
47
47
|
return Number(numValue) < Number(max) && !disabled;
|
|
48
48
|
}
|
|
49
49
|
return Number(value2) < Number(max) && !disabled;
|
|
50
50
|
};
|
|
51
51
|
const reduceAllow = (value2 = _checked) => {
|
|
52
52
|
if (formatter) {
|
|
53
|
-
const numValue = String(value2).replace(/[^0-9
|
|
53
|
+
const numValue = String(value2).replace(/[^0-9|.]/gi, "");
|
|
54
54
|
return Number(numValue) > Number(min) && !disabled;
|
|
55
55
|
}
|
|
56
56
|
return Number(value2) > Number(min) && !disabled;
|
|
@@ -81,7 +81,7 @@ const InputNumber = (props) => {
|
|
|
81
81
|
onMinus && onMinus(e);
|
|
82
82
|
if (reduceAllow()) {
|
|
83
83
|
if (formatter) {
|
|
84
|
-
const numValue = String(_checked).replace(/[^0-9
|
|
84
|
+
const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
|
|
85
85
|
const outputValue = Number(numValue) - Number(step);
|
|
86
86
|
inputRef.current = formatter(outputValue);
|
|
87
87
|
emitChange(outputValue, e);
|
|
@@ -97,7 +97,7 @@ const InputNumber = (props) => {
|
|
|
97
97
|
onPlus && onPlus(e);
|
|
98
98
|
if (addAllow()) {
|
|
99
99
|
if (formatter) {
|
|
100
|
-
const numValue = String(_checked).replace(/[^0-9
|
|
100
|
+
const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
|
|
101
101
|
const outputValue = Number(numValue) + Number(step);
|
|
102
102
|
inputRef.current = formatter(outputValue);
|
|
103
103
|
emitChange(outputValue, e);
|
|
@@ -119,7 +119,7 @@ const InputNumber = (props) => {
|
|
|
119
119
|
const changeFormatValue = (e) => {
|
|
120
120
|
const input = e.target.value;
|
|
121
121
|
const numReg = new RegExp("^[0-9]*$");
|
|
122
|
-
const numValue = input.replace(/[^0-9
|
|
122
|
+
const numValue = input.replace(/[^0-9|.]/gi, "");
|
|
123
123
|
if (formatter) {
|
|
124
124
|
if (!numReg.test(input[0]) && numValue) {
|
|
125
125
|
setChecked(formatter(numValue));
|
|
@@ -138,7 +138,7 @@ const InputNumber = (props) => {
|
|
|
138
138
|
const burFormatValue = (e) => {
|
|
139
139
|
const input = e.target.value;
|
|
140
140
|
const numReg = new RegExp("^[0-9]*$");
|
|
141
|
-
const numValue = input.replace(/[^0-9
|
|
141
|
+
const numValue = input.replace(/[^0-9|.]/gi, "");
|
|
142
142
|
if (formatter) {
|
|
143
143
|
if (formatter(numValue) === input) {
|
|
144
144
|
emitChange(numValue, e);
|
|
@@ -18,39 +18,39 @@ import { N } from "./navbar.taro-f2d4215d.js";
|
|
|
18
18
|
import { S as S2 } from "./sidenavbar.taro-61eaa60b.js";
|
|
19
19
|
import { S as S3 } from "./sidenavbaritem.taro-7d805f92.js";
|
|
20
20
|
import { S as S4 } from "./subsidenavbar.taro-47bb6e74.js";
|
|
21
|
-
import { T } from "./tabbar.taro-
|
|
21
|
+
import { T } from "./tabbar.taro-978c27b0.js";
|
|
22
22
|
import { T as T2 } from "./tabbaritem.taro-16a380db.js";
|
|
23
23
|
import { T as T3 } from "./tabpane.taro-f8d92ece.js";
|
|
24
|
-
import { T as T4 } from "./tabs.taro-
|
|
25
|
-
import { A } from "./address.taro-
|
|
26
|
-
import { C as C5 } from "./calendar.taro-
|
|
27
|
-
import { C as C6 } from "./calendaritem.taro-
|
|
28
|
-
import { C as C7 } from "./cascader.taro-
|
|
29
|
-
import { C as C8, a } from "./checkbox.taro-
|
|
30
|
-
import { D as D2 } from "./datepicker.taro-
|
|
31
|
-
import { F as F2 } from "./form.taro-
|
|
24
|
+
import { T as T4 } from "./tabs.taro-67bdf3bb.js";
|
|
25
|
+
import { A } from "./address.taro-3e9addcc.js";
|
|
26
|
+
import { C as C5 } from "./calendar.taro-eedfb0ac.js";
|
|
27
|
+
import { C as C6 } from "./calendaritem.taro-22e09e6d.js";
|
|
28
|
+
import { C as C7 } from "./cascader.taro-cb5ead51.js";
|
|
29
|
+
import { C as C8, a } from "./checkbox.taro-ab8ef36e.js";
|
|
30
|
+
import { D as D2 } from "./datepicker.taro-a6b0ae2d.js";
|
|
31
|
+
import { F as F2 } from "./form.taro-1a66c97a.js";
|
|
32
32
|
import { F as F3 } from "./formitem.taro-8828760a.js";
|
|
33
|
-
import { I as I2 } from "./input.taro-
|
|
34
|
-
import { I as I3 } from "./inputnumber.taro-
|
|
33
|
+
import { I as I2 } from "./input.taro-c611c122.js";
|
|
34
|
+
import { I as I3 } from "./inputnumber.taro-96165704.js";
|
|
35
35
|
import { M } from "./menu.taro-e8e96336.js";
|
|
36
36
|
import { M as M2 } from "./menuitem.taro-7f8c12cf.js";
|
|
37
37
|
import { N as N2 } from "./numberkeyboard.taro-04a2f2c8.js";
|
|
38
|
-
import { P } from "./picker.taro-
|
|
39
|
-
import { R as R2, a as a2 } from "./radio.taro-
|
|
40
|
-
import { R as R3 } from "./range.taro-
|
|
41
|
-
import { R as R4 } from "./rate.taro-
|
|
42
|
-
import { S as S5 } from "./searchbar.taro-
|
|
43
|
-
import { S as S6 } from "./shortpassword.taro-
|
|
38
|
+
import { P } from "./picker.taro-539089cb.js";
|
|
39
|
+
import { R as R2, a as a2 } from "./radio.taro-410f7b07.js";
|
|
40
|
+
import { R as R3 } from "./range.taro-e88b568c.js";
|
|
41
|
+
import { R as R4 } from "./rate.taro-2e2898ec.js";
|
|
42
|
+
import { S as S5 } from "./searchbar.taro-5d83279d.js";
|
|
43
|
+
import { S as S6 } from "./shortpassword.taro-9c3be7da.js";
|
|
44
44
|
import { S as S7 } from "./signature.taro-4f68516a.js";
|
|
45
|
-
import { S as S8 } from "./switch.taro-
|
|
46
|
-
import { T as T5 } from "./textarea.taro-
|
|
47
|
-
import { U } from "./uploader.taro-
|
|
45
|
+
import { S as S8 } from "./switch.taro-81197983.js";
|
|
46
|
+
import { T as T5 } from "./textarea.taro-a09e8563.js";
|
|
47
|
+
import { U } from "./uploader.taro-3bbe2503.js";
|
|
48
48
|
import { A as A2 } from "./actionsheet.taro-0fecc929.js";
|
|
49
49
|
import { B as B3 } from "./badge.taro-872605bf.js";
|
|
50
50
|
import { B as B4 } from "./dialog.taro-2c2ca662.js";
|
|
51
51
|
import { D as D3 } from "./drag.taro-48e1ff38.js";
|
|
52
52
|
import { E as E2 } from "./empty.taro-a670f621.js";
|
|
53
|
-
import { I as I4 } from "./infiniteloading.taro-
|
|
53
|
+
import { I as I4 } from "./infiniteloading.taro-1b43b959.js";
|
|
54
54
|
import { N as N3 } from "./noticebar.taro-2720ca1e.js";
|
|
55
55
|
import { N as N4 } from "./notify.taro-5768403d.js";
|
|
56
56
|
import { P as P2 } from "./popover.taro-cec3a7a0.js";
|
|
@@ -61,17 +61,17 @@ import { S as S10 } from "./swipe.taro-4eb0cc9a.js";
|
|
|
61
61
|
import { T as T6 } from "./toast.taro-85007ac8.js";
|
|
62
62
|
import { A as A3 } from "./animate.taro-c8b29242.js";
|
|
63
63
|
import { default as default2 } from "./AnimatingNumbers.js";
|
|
64
|
-
import { A as A4 } from "./audio.taro-
|
|
64
|
+
import { A as A4 } from "./audio.taro-38889f9d.js";
|
|
65
65
|
import { A as A5 } from "./avatar.taro-31362306.js";
|
|
66
66
|
import { A as A6 } from "./avatargroup.taro-0672aa1e.js";
|
|
67
|
-
import { C as C9 } from "./circleprogress.taro-
|
|
68
|
-
import { C as C10 } from "./collapse.taro-
|
|
67
|
+
import { C as C9 } from "./circleprogress.taro-fd2326fc.js";
|
|
68
|
+
import { C as C10 } from "./collapse.taro-5aa2b225.js";
|
|
69
69
|
import { C as C11 } from "./collapseitem.taro-eac33538.js";
|
|
70
70
|
import { C as C12 } from "./countdown.taro-384168de.js";
|
|
71
71
|
import { E as E3 } from "./ellipsis.taro-5653d0b2.js";
|
|
72
|
-
import { I as I5 } from "./imagepreview.taro-
|
|
72
|
+
import { I as I5 } from "./imagepreview.taro-71d57d47.js";
|
|
73
73
|
import { I as I6 } from "./indicator.taro-edbc71df.js";
|
|
74
|
-
import { P as P5 } from "./pagination.taro-
|
|
74
|
+
import { P as P5 } from "./pagination.taro-2c68b943.js";
|
|
75
75
|
import { P as P6 } from "./price.taro-479f1b82.js";
|
|
76
76
|
import { P as P7 } from "./progress.taro-437b9f6a.js";
|
|
77
77
|
import { S as S11 } from "./step.taro-2f55e4f2.js";
|
|
@@ -82,7 +82,7 @@ import { T as T7 } from "./table.taro-4fd3bfe8.js";
|
|
|
82
82
|
import { T as T8 } from "./tag.taro-614758eb.js";
|
|
83
83
|
import { V } from "./video.taro-2a26d7da.js";
|
|
84
84
|
import { V as V2 } from "./virtuallist.taro-1de01855.js";
|
|
85
|
-
import { B as B5 } from "./barrage.taro-
|
|
85
|
+
import { B as B5 } from "./barrage.taro-1de16de1.js";
|
|
86
86
|
import { C as C13 } from "./card.taro-92fe9733.js";
|
|
87
87
|
import { T as T9 } from "./timedetail.taro-d7aa4c1b.js";
|
|
88
88
|
import { T as T10 } from "./timeselect.taro-45ab9d52.js";
|
|
@@ -98,7 +98,7 @@ import "./UserContext-ab42ba7f.js";
|
|
|
98
98
|
import "./use-client-rect-2bb6c562.js";
|
|
99
99
|
import "./can-use-dom-0e539bd3.js";
|
|
100
100
|
import "./context-f32a9246.js";
|
|
101
|
-
import "./use-props-value-
|
|
101
|
+
import "./use-props-value-1f54346f.js";
|
|
102
102
|
import "react-transition-group";
|
|
103
103
|
import "./use-touch-ff43512c.js";
|
|
104
104
|
import "./index-e3184f19.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
4
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
4
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -7,7 +7,7 @@ import { u as useTouch } from "./use-touch-ff43512c.js";
|
|
|
7
7
|
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
8
8
|
import { c as canUseDom } from "./can-use-dom-0e539bd3.js";
|
|
9
9
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
10
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
10
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
11
11
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
12
12
|
let passiveSupported = false;
|
|
13
13
|
if (canUseDom) {
|
|
@@ -2,7 +2,7 @@ import React, { useCallback, useContext } from "react";
|
|
|
2
2
|
import { CheckChecked, CheckNormal } from "@nutui/icons-react-taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
5
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
6
6
|
const RadioContext = React.createContext(null);
|
|
7
7
|
const defaultProps$1 = {
|
|
8
8
|
labelPosition: "right",
|
|
@@ -4,7 +4,7 @@ import { View } from "@tarojs/components";
|
|
|
4
4
|
import { u as useTouch } from "./use-touch-ff43512c.js";
|
|
5
5
|
import { g as getRectByTaro } from "./use-client-rect-2bb6c562.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
...ComponentDefaults,
|
|
10
10
|
range: false,
|
|
@@ -2,7 +2,7 @@ import React, { useState, useEffect } from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { StarFillN } from "@nutui/icons-react-taro";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
5
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
5
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
8
8
|
count: 5,
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { P as Popup } from "./popup.taro-1cd1f9d2.js";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
...ComponentDefaults,
|
|
10
10
|
value: "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
3
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
3
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
4
4
|
const defaultProps = {
|
|
5
5
|
...ComponentDefaults,
|
|
6
6
|
disabled: false,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
4
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
4
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
5
5
|
import { T as TabbarItem } from "./tabbaritem.taro-16a380db.js";
|
|
6
6
|
const defaultProps = {
|
|
7
7
|
...ComponentDefaults,
|
|
@@ -4,11 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { JoySmile } from "@nutui/icons-react-taro";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
6
6
|
import { T as TabPane } from "./tabpane.taro-f8d92ece.js";
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
8
|
-
function useForceUpdate() {
|
|
9
|
-
const [, updateState] = React.useState();
|
|
10
|
-
return React.useCallback(() => updateState({}), []);
|
|
11
|
-
}
|
|
7
|
+
import { u as usePropsValue, a as useForceUpdate } from "./use-props-value-1f54346f.js";
|
|
12
8
|
const defaultProps = {
|
|
13
9
|
...ComponentDefaults,
|
|
14
10
|
tabStyle: {},
|
|
@@ -4,7 +4,7 @@ import Taro from "@tarojs/taro";
|
|
|
4
4
|
import { Textarea } from "@tarojs/components";
|
|
5
5
|
import { u as useConfig } from "./configprovider.taro-a7f3bcfd.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-11d83a22.js";
|
|
7
|
-
import { u as usePropsValue } from "./use-props-value-
|
|
7
|
+
import { u as usePropsValue } from "./use-props-value-1f54346f.js";
|
|
8
8
|
const defaultProps = {
|
|
9
9
|
...ComponentDefaults,
|
|
10
10
|
defaultValue: "",
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
export interface AnimatingNumbersProps {
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
|
|
4
|
+
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, unknown> {
|
|
6
5
|
static defaultProps: AnimatingNumbersProps;
|
|
7
6
|
static displayName: string;
|
|
8
7
|
static CountUp: React.FunctionComponent<Partial<import("./countup").CountUpProps>>;
|
|
9
8
|
constructor(props: AnimatingNumbersProps);
|
|
10
9
|
render(): JSX.Element;
|
|
11
10
|
}
|
|
12
|
-
export {};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
export interface AnimatingNumbersProps {
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, AnimatingNumbersStates> {
|
|
4
|
+
export declare class AnimatingNumbers extends Component<AnimatingNumbersProps, unknown> {
|
|
6
5
|
static defaultProps: AnimatingNumbersProps;
|
|
7
6
|
static displayName: string;
|
|
8
7
|
static CountUp: React.FunctionComponent<Partial<import("./countup.taro").CountUpProps>>;
|
|
9
8
|
constructor(props: AnimatingNumbersProps);
|
|
10
9
|
render(): JSX.Element;
|
|
11
10
|
}
|
|
12
|
-
export {};
|
|
@@ -8,7 +8,7 @@ export interface CircleProgressProps extends BasicComponent {
|
|
|
8
8
|
strokeWidth?: string | number;
|
|
9
9
|
radius?: number | string;
|
|
10
10
|
strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
|
|
11
|
-
color?:
|
|
11
|
+
color?: any;
|
|
12
12
|
background?: string;
|
|
13
13
|
clockwise?: boolean;
|
|
14
14
|
}
|
|
@@ -8,7 +8,7 @@ export interface CircleProgressProps extends BasicComponent {
|
|
|
8
8
|
strokeWidth?: string | number;
|
|
9
9
|
radius?: number | string;
|
|
10
10
|
strokeLinecap?: 'butt' | 'round' | 'square' | 'inherit';
|
|
11
|
-
color?:
|
|
11
|
+
color?: any;
|
|
12
12
|
background?: string;
|
|
13
13
|
clockwise?: boolean;
|
|
14
14
|
}
|