@nutui/nutui-react-taro 2.7.9 → 2.7.11
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 +23 -4
- package/dist/esm/Address.js +1 -1
- package/dist/esm/Audio.js +1 -1
- package/dist/esm/AvatarCropper.js +1 -1
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge.js +1 -1
- package/dist/esm/Calendar/style/index.js +3 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/Calendar.js +1 -1
- package/dist/esm/CalendarCard.js +1 -1
- package/dist/esm/CalendarItem.js +1 -1
- package/dist/esm/Cascader.js +1 -1
- package/dist/esm/ConfigProvider.js +2 -2
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Pagination.js +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover.js +1 -1
- package/dist/esm/Progress.js +1 -1
- package/dist/esm/PullToRefresh.js +1 -1
- package/dist/esm/Range.js +1 -1
- package/dist/esm/SearchBar/style/style.css +1 -1
- package/dist/esm/SearchBar.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TabbarItem.js +1 -1
- package/dist/esm/Table.js +1 -1
- package/dist/esm/Tabs.js +1 -1
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Tour.js +1 -1
- package/dist/esm/Uploader.js +1 -1
- package/dist/esm/WaterMark.js +1 -1
- package/dist/esm/{address.taro-Ck0ZmxRg.js → address.taro-BM2ZWeTm.js} +2 -2
- package/dist/esm/{audio.taro-DtIUjg89.js → audio.taro-C9DxpSXx.js} +2 -2
- package/dist/esm/{avatarcropper.taro-5JSFH7Q9.js → avatarcropper.taro-BsbRSHbo.js} +1 -1
- package/dist/esm/{backtop.taro-D3Lo3jFO.js → backtop.taro-Cj60ZYba.js} +1 -1
- package/dist/esm/{badge.taro-B42_7q8v.js → badge.taro-W8s89KAj.js} +1 -1
- package/dist/esm/calendar.taro-C-5Lmq9i.js +317 -0
- package/dist/esm/{calendarcard.taro-BiOnui_b.js → calendarcard.taro-Cp3yzc6h.js} +2 -2
- package/dist/esm/{calendaritem.taro-DveeC4_t.js → calendaritem.taro-B0QA0q4N.js} +208 -15
- package/dist/esm/{cascader.taro-DUJvcGw0.js → cascader.taro-Djw9IdKW.js} +2 -2
- package/dist/esm/{configprovider.taro-C3WyeHSO.js → configprovider.taro-DpK4IiCE.js} +4 -0
- package/dist/esm/date-C7eJqrqk.js +74 -0
- package/dist/esm/{datepicker.taro-Dwh8sKhJ.js → datepicker.taro-CPSTcVSz.js} +2 -2
- package/dist/esm/{dialog.taro-yjDaaRHA.js → dialog.taro-1Vukbvap.js} +1 -1
- package/dist/esm/{ellipsis.taro-K9VJCTL6.js → ellipsis.taro-rMWnB7Vp.js} +1 -1
- package/dist/esm/{fixednav.taro-BodErnYy.js → fixednav.taro-DlVXnggt.js} +1 -1
- package/dist/esm/{infiniteloading.taro-DzIrZvc0.js → infiniteloading.taro-6r-XMUlU.js} +1 -1
- package/dist/esm/{input.taro-CA9ZpM9a.js → input.taro-s1Zw62KR.js} +1 -1
- package/dist/esm/{noticebar.taro-B0qm66Cu.js → noticebar.taro-DjmvFSpp.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-BvVO_MyJ.js → numberkeyboard.taro-blGUntGo.js} +1 -1
- package/dist/esm/nutui-react.es.js +35 -35
- package/dist/esm/{pagination.taro-BSwytb0-.js → pagination.taro-V57qqxwc.js} +1 -1
- package/dist/esm/{picker.taro-B7EE52qf.js → picker.taro-Ctc0Wt4S.js} +1 -1
- package/dist/esm/{popover.taro-C9qhPJCb.js → popover.taro-Da7xRN6D.js} +1 -1
- package/dist/esm/{progress.taro-CaIUT9Uo.js → progress.taro-cveY9Y_I.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-DAFv7upo.js → pulltorefresh.taro-KKNiGe1Q.js} +1 -1
- package/dist/esm/{range.taro-Bbs4JcXp.js → range.taro-C5SuX_2b.js} +1 -1
- package/dist/esm/{searchbar.taro-LaO2Xr2t.js → searchbar.taro-B7UhNlBh.js} +23 -17
- package/dist/esm/{shortpassword.taro-CUnXqjab.js → shortpassword.taro--atvsdZp.js} +1 -1
- package/dist/esm/{tabbar.taro-BiQDgZQF.js → tabbar.taro-BQpwulp5.js} +1 -1
- package/dist/esm/{tabbaritem.taro-BiIVucQz.js → tabbaritem.taro-BPe2bsMQ.js} +1 -1
- package/dist/esm/{table.taro-1nFkDxbh.js → table.taro-H3kjB4kV.js} +1 -1
- package/dist/esm/{tabs.taro-sp_DNWis.js → tabs.taro-Cb7JS_Gz.js} +6 -16
- package/dist/esm/{textarea.taro-PsaohYay.js → textarea.taro-CGMI5QNw.js} +1 -1
- package/dist/esm/{timeselect.taro-FIl91wiO.js → timeselect.taro-3Sc_hERv.js} +1 -1
- package/dist/esm/{tour.taro-BidQx8Fg.js → tour.taro-xqFUxSBB.js} +1 -1
- package/dist/esm/{uploader.taro-BBJsHrew.js → uploader.taro-DAWwySrs.js} +2 -2
- package/dist/esm/{watermark.taro-CbO7mKFD.js → watermark.taro-DuJQHymA.js} +1 -1
- package/dist/locales/base.d.ts +4 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +5 -1
- package/dist/locales/id-ID.js +5 -1
- package/dist/locales/tr-TR.js +5 -1
- package/dist/locales/zh-CN.js +5 -1
- package/dist/locales/zh-TW.js +5 -1
- package/dist/locales/zh-UG.js +5 -1
- package/dist/nutui.react.es.js +611 -153
- package/dist/nutui.react.umd.js +611 -153
- package/dist/packages/calendar/calendar.scss +24 -0
- package/dist/packages/calendar/calendarviewmode.scss +181 -0
- package/dist/packages/searchbar/searchbar.scss +2 -0
- package/dist/style.css +1 -1
- package/dist/styles/variables-jmapp.scss +4 -0
- package/dist/styles/variables.scss +4 -0
- package/dist/types/locales/base.d.ts +4 -0
- package/dist/types/packages/calendar/calendar.d.ts +4 -0
- package/dist/types/packages/calendar/calendar.taro.d.ts +4 -0
- package/dist/types/packages/calendar/calendarviewmodeitem.d.ts +20 -0
- package/dist/types/packages/calendar/calendarviewmodeitem.taro.d.ts +20 -0
- package/dist/types/packages/calendar/types.d.ts +27 -0
- package/dist/types/packages/calendar/utils.d.ts +40 -0
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -0
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -0
- package/dist/types/packages/calendaritem/utils.d.ts +17 -0
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +11 -5
- package/dist/types/utils/date.d.ts +0 -17
- package/package.json +1 -1
- package/dist/esm/calendar.taro-CUDVpJBa.js +0 -47
- package/dist/esm/date-BmUWlDuN.js +0 -147
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const isLeapYear = (y) => {
|
|
2
|
+
return y % 4 === 0 && y % 100 !== 0 || y % 400 === 0;
|
|
3
|
+
};
|
|
4
|
+
const getWhatDay = (year, month, day) => {
|
|
5
|
+
const date = new Date(year, month - 1, day);
|
|
6
|
+
const dayNames = [
|
|
7
|
+
"星期日",
|
|
8
|
+
"星期一",
|
|
9
|
+
"星期二",
|
|
10
|
+
"星期三",
|
|
11
|
+
"星期四",
|
|
12
|
+
"星期五",
|
|
13
|
+
"星期六"
|
|
14
|
+
];
|
|
15
|
+
return dayNames[date.getDay()];
|
|
16
|
+
};
|
|
17
|
+
const getMonthPreDay = (year, month) => {
|
|
18
|
+
const day = new Date(year, month - 1, 1).getDay();
|
|
19
|
+
return day === 0 ? 7 : day;
|
|
20
|
+
};
|
|
21
|
+
const getMonthDays = (year, month) => {
|
|
22
|
+
if (/^0/.test(month)) {
|
|
23
|
+
month = month.split("")[1];
|
|
24
|
+
}
|
|
25
|
+
return [
|
|
26
|
+
0,
|
|
27
|
+
31,
|
|
28
|
+
isLeapYear(Number(year)) ? 29 : 28,
|
|
29
|
+
31,
|
|
30
|
+
30,
|
|
31
|
+
31,
|
|
32
|
+
30,
|
|
33
|
+
31,
|
|
34
|
+
31,
|
|
35
|
+
30,
|
|
36
|
+
31,
|
|
37
|
+
30,
|
|
38
|
+
31
|
|
39
|
+
][month];
|
|
40
|
+
};
|
|
41
|
+
const getNumTwoBit = (n) => {
|
|
42
|
+
return n > 9 ? `${n}` : `0${n}`;
|
|
43
|
+
};
|
|
44
|
+
const date2Str = (date, split = "-") => {
|
|
45
|
+
const y = date.getFullYear();
|
|
46
|
+
const m = getNumTwoBit(date.getMonth() + 1);
|
|
47
|
+
const d = getNumTwoBit(date.getDate());
|
|
48
|
+
return [y, m, d].join(split);
|
|
49
|
+
};
|
|
50
|
+
const getDateString = (offset = 0) => {
|
|
51
|
+
const date = /* @__PURE__ */ new Date();
|
|
52
|
+
date.setDate(date.getDate() + offset);
|
|
53
|
+
return date2Str(date, "-");
|
|
54
|
+
};
|
|
55
|
+
const compareDate = (date1, date2) => {
|
|
56
|
+
const startTime = new Date(date1.replace("-", "/").replace("-", "/"));
|
|
57
|
+
const endTime = new Date(date2.replace("-", "/").replace("-", "/"));
|
|
58
|
+
return startTime < endTime;
|
|
59
|
+
};
|
|
60
|
+
const isEqual = (date1, date2) => {
|
|
61
|
+
const startTime = new Date((date1 || "").replace(/-/g, "/")).getTime();
|
|
62
|
+
const endTime = new Date(date2.replace(/-/g, "/")).getTime();
|
|
63
|
+
return startTime === endTime;
|
|
64
|
+
};
|
|
65
|
+
export {
|
|
66
|
+
getNumTwoBit as a,
|
|
67
|
+
getMonthDays as b,
|
|
68
|
+
getMonthPreDay as c,
|
|
69
|
+
date2Str as d,
|
|
70
|
+
getWhatDay as e,
|
|
71
|
+
compareDate as f,
|
|
72
|
+
getDateString as g,
|
|
73
|
+
isEqual as i
|
|
74
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
|
-
import { P as Picker } from "./picker.taro-
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
+
import { P as Picker } from "./picker.taro-Ctc0Wt4S.js";
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
6
6
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { p as padZero } from "./pad-zero-B2OUQfh7.js";
|
|
@@ -5,7 +5,7 @@ import { CSSTransition } from "react-transition-group";
|
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
6
|
import { Close } from "@nutui/icons-react-taro";
|
|
7
7
|
import { B as Button } from "./button.taro-CixO32Hw.js";
|
|
8
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
8
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
9
9
|
import { u as useLockScrollTaro, O as Overlay } from "./overlay.taro-C8eXSsJH.js";
|
|
10
10
|
import { b as useParams, u as useCustomEvent, a as useCustomEventsPath, c as customEvents } from "./use-custom-event-DuP4onEm.js";
|
|
11
11
|
import { m as mergeProps } from "./merge-props-2rRqFlJz.js";
|
|
@@ -5,7 +5,7 @@ import classNames from "classnames";
|
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
6
|
import { g as getRectByTaro } from "./get-rect-by-taro-D0h6aiDr.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
8
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { content: "", direction: "end", rows: 1, expandText: "", collapseText: "", symbol: "...", lineHeight: "20", width: "auto" });
|
|
10
10
|
const classPrefix = `nut-ellipsis`;
|
|
11
11
|
const Ellipsis = (props) => {
|
|
@@ -3,7 +3,7 @@ import React__default from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ArrowLeft } from "@nutui/icons-react-taro";
|
|
5
5
|
import { O as Overlay } from "./overlay.taro-C8eXSsJH.js";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { activeText: "", inactiveText: "", type: "right", position: {
|
|
9
9
|
top: "auto",
|
|
@@ -3,7 +3,7 @@ import React__default, { useState, useRef, useEffect } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ScrollView } from "@tarojs/components";
|
|
5
5
|
import { createSelectorQuery } from "@tarojs/taro";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "default", hasMore: true, threshold: 40, target: "", pullRefresh: false });
|
|
9
9
|
const classPrefix = `nut-infiniteloading`;
|
|
@@ -3,7 +3,7 @@ import React__default, { forwardRef, useRef, useState, useImperativeHandle, useC
|
|
|
3
3
|
import { View, Input as Input$1 } from "@tarojs/components";
|
|
4
4
|
import { MaskClose } from "@nutui/icons-react-taro";
|
|
5
5
|
import Taro, { getEnv, ENV_TYPE } from "@tarojs/taro";
|
|
6
|
-
import { a as useRtl, u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { a as useRtl, u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
9
|
function trimExtraChar(value, char, regExp) {
|
|
@@ -5,7 +5,7 @@ import { Notice, Close } from "@nutui/icons-react-taro";
|
|
|
5
5
|
import classNames from "classnames";
|
|
6
6
|
import { g as getRectByTaro } from "./get-rect-by-taro-D0h6aiDr.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
8
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { align: "left", direction: "horizontal", list: [], duration: 1e3, height: 40, content: "", closeable: false, wrap: false, leftIcon: React__default.createElement(Notice, { size: 16 }), rightIcon: null, right: null, delay: 1, scrollable: null, speed: 50 });
|
|
10
10
|
const NoticeBar = (props) => {
|
|
11
11
|
const rtl = useRtl();
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
5
5
|
import { View } from "@tarojs/components";
|
|
6
6
|
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, rightActions: "", type: "default", custom: [], random: false, onClose: () => {
|
|
10
10
|
} });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { B } from "./button.taro-CixO32Hw.js";
|
|
2
2
|
import { C } from "./cell.taro-DWLhb5m6.js";
|
|
3
3
|
import { C as C2 } from "./cellgroup.taro-DTLGMR_c.js";
|
|
4
|
-
import { C as C3, g, s, u, a } from "./configprovider.taro-
|
|
4
|
+
import { C as C3, g, s, u, a } from "./configprovider.taro-DpK4IiCE.js";
|
|
5
5
|
import { I } from "./image.taro-CyF6ujA7.js";
|
|
6
6
|
import { O } from "./overlay.taro-C8eXSsJH.js";
|
|
7
7
|
import { C as C4 } from "./col.taro-BdtbWacE.js";
|
|
@@ -13,87 +13,87 @@ import { R } from "./row.taro-ItEq1Bi5.js";
|
|
|
13
13
|
import { S } from "./space.taro-B1KsEPZL.js";
|
|
14
14
|
import { S as S2 } from "./sticky.taro-l66r7WFn.js";
|
|
15
15
|
import { S as S3 } from "./safearea.taro-BJpvFsMf.js";
|
|
16
|
-
import { B as B2 } from "./backtop.taro-
|
|
16
|
+
import { B as B2 } from "./backtop.taro-Cj60ZYba.js";
|
|
17
17
|
import { E } from "./elevator.taro-C0Gs93x7.js";
|
|
18
|
-
import { F } from "./fixednav.taro-
|
|
18
|
+
import { F } from "./fixednav.taro-DlVXnggt.js";
|
|
19
19
|
import { N } from "./navbar.taro-B_9Ezsny.js";
|
|
20
20
|
import { S as S4 } from "./sidenavbar.taro-C-AoUXLA.js";
|
|
21
21
|
import { S as S5 } from "./sidenavbaritem.taro-BKpzXpzG.js";
|
|
22
22
|
import { S as S6 } from "./subsidenavbar.taro-CSU3DhNq.js";
|
|
23
|
-
import { T } from "./tabbar.taro-
|
|
24
|
-
import { T as T2 } from "./tabbaritem.taro-
|
|
23
|
+
import { T } from "./tabbar.taro-BQpwulp5.js";
|
|
24
|
+
import { T as T2 } from "./tabbaritem.taro-BPe2bsMQ.js";
|
|
25
25
|
import { T as T3 } from "./tabpane.taro-BAihO3w8.js";
|
|
26
|
-
import { T as T4 } from "./tabs.taro-
|
|
27
|
-
import { A } from "./address.taro-
|
|
28
|
-
import { C as C5 } from "./calendar.taro-
|
|
29
|
-
import { C as C6 } from "./calendaritem.taro-
|
|
30
|
-
import { C as C7 } from "./calendarcard.taro-
|
|
31
|
-
import { C as C8 } from "./cascader.taro-
|
|
26
|
+
import { T as T4 } from "./tabs.taro-Cb7JS_Gz.js";
|
|
27
|
+
import { A } from "./address.taro-BM2ZWeTm.js";
|
|
28
|
+
import { C as C5 } from "./calendar.taro-C-5Lmq9i.js";
|
|
29
|
+
import { C as C6 } from "./calendaritem.taro-B0QA0q4N.js";
|
|
30
|
+
import { C as C7 } from "./calendarcard.taro-Cp3yzc6h.js";
|
|
31
|
+
import { C as C8 } from "./cascader.taro-Djw9IdKW.js";
|
|
32
32
|
import { C as C9, a as a2 } from "./checkbox.taro-CgqJyhrh.js";
|
|
33
|
-
import { D as D2 } from "./datepicker.taro-
|
|
33
|
+
import { D as D2 } from "./datepicker.taro-CPSTcVSz.js";
|
|
34
34
|
import { default as default2 } from "./Form.js";
|
|
35
35
|
import { F as F2 } from "./formitem.taro-Bee3MWwq.js";
|
|
36
|
-
import { I as I2 } from "./input.taro-
|
|
36
|
+
import { I as I2 } from "./input.taro-s1Zw62KR.js";
|
|
37
37
|
import { I as I3 } from "./inputnumber.taro-CZourWz-.js";
|
|
38
38
|
import { M } from "./menu.taro-9N8A5UoN.js";
|
|
39
39
|
import { M as M2 } from "./menuitem.taro-CnsORm5-.js";
|
|
40
|
-
import { N as N2 } from "./numberkeyboard.taro-
|
|
41
|
-
import { P } from "./picker.taro-
|
|
40
|
+
import { N as N2 } from "./numberkeyboard.taro-blGUntGo.js";
|
|
41
|
+
import { P } from "./picker.taro-Ctc0Wt4S.js";
|
|
42
42
|
import { R as R2, a as a3 } from "./radio.taro-M2in687s.js";
|
|
43
|
-
import { R as R3 } from "./range.taro-
|
|
43
|
+
import { R as R3 } from "./range.taro-C5SuX_2b.js";
|
|
44
44
|
import { R as R4 } from "./rate.taro-DsDMiRHd.js";
|
|
45
|
-
import { S as S7 } from "./searchbar.taro-
|
|
46
|
-
import { S as S8 } from "./shortpassword.taro
|
|
45
|
+
import { S as S7 } from "./searchbar.taro-B7UhNlBh.js";
|
|
46
|
+
import { S as S8 } from "./shortpassword.taro--atvsdZp.js";
|
|
47
47
|
import { S as S9 } from "./signature.taro-BW4eiGIR.js";
|
|
48
48
|
import { S as S10 } from "./switch.taro-CdBmDo18.js";
|
|
49
|
-
import { T as T5 } from "./textarea.taro-
|
|
50
|
-
import { U } from "./uploader.taro-
|
|
49
|
+
import { T as T5 } from "./textarea.taro-CGMI5QNw.js";
|
|
50
|
+
import { U } from "./uploader.taro-DAWwySrs.js";
|
|
51
51
|
import { A as A2 } from "./actionsheet.taro-kMhbV73n.js";
|
|
52
|
-
import { B as B3 } from "./badge.taro-
|
|
53
|
-
import { B as B4 } from "./dialog.taro-
|
|
52
|
+
import { B as B3 } from "./badge.taro-W8s89KAj.js";
|
|
53
|
+
import { B as B4 } from "./dialog.taro-1Vukbvap.js";
|
|
54
54
|
import { D as D3 } from "./drag.taro-CHPSfySz.js";
|
|
55
55
|
import { E as E2 } from "./empty.taro-ChtnK90s.js";
|
|
56
|
-
import { I as I4 } from "./infiniteloading.taro-
|
|
56
|
+
import { I as I4 } from "./infiniteloading.taro-6r-XMUlU.js";
|
|
57
57
|
import { L as L2 } from "./loading.taro-n_qoNgCW.js";
|
|
58
|
-
import { N as N3 } from "./noticebar.taro-
|
|
58
|
+
import { N as N3 } from "./noticebar.taro-DjmvFSpp.js";
|
|
59
59
|
import { N as N4 } from "./notify.taro-BVXg7xTI.js";
|
|
60
|
-
import { P as P2 } from "./popover.taro-
|
|
60
|
+
import { P as P2 } from "./popover.taro-Da7xRN6D.js";
|
|
61
61
|
import { P as P3 } from "./popup.taro-JynjcLCn.js";
|
|
62
|
-
import { P as P4 } from "./pulltorefresh.taro-
|
|
62
|
+
import { P as P4 } from "./pulltorefresh.taro-KKNiGe1Q.js";
|
|
63
63
|
import { S as S11 } from "./skeleton.taro-D9Vkgsyx.js";
|
|
64
64
|
import { S as S12 } from "./swipe.taro-CUZSZcIh.js";
|
|
65
65
|
import { T as T6 } from "./toast.taro-Tx0IHbsl.js";
|
|
66
66
|
import { A as A3 } from "./animate.taro-BHDZMzJF.js";
|
|
67
67
|
import { default as default3 } from "./AnimatingNumbers.js";
|
|
68
|
-
import { A as A4 } from "./audio.taro-
|
|
68
|
+
import { A as A4 } from "./audio.taro-C9DxpSXx.js";
|
|
69
69
|
import { A as A5 } from "./avatar.taro-9dU2KeWv.js";
|
|
70
70
|
import { A as A6 } from "./avatargroup.taro-ScakjsY1.js";
|
|
71
71
|
import { C as C10 } from "./circleprogress.taro-BTRyQG5T.js";
|
|
72
72
|
import { C as C11 } from "./collapse.taro-wqL6MWZr.js";
|
|
73
73
|
import { C as C12 } from "./collapseitem.taro-DjUx5Nx8.js";
|
|
74
74
|
import { C as C13 } from "./countdown.taro-Dyryl4pq.js";
|
|
75
|
-
import { E as E3 } from "./ellipsis.taro-
|
|
75
|
+
import { E as E3 } from "./ellipsis.taro-rMWnB7Vp.js";
|
|
76
76
|
import { I as I5 } from "./imagepreview.taro-BE4mZT-S.js";
|
|
77
77
|
import { I as I6 } from "./indicator.taro-k8bxJf86.js";
|
|
78
|
-
import { P as P5 } from "./pagination.taro-
|
|
78
|
+
import { P as P5 } from "./pagination.taro-V57qqxwc.js";
|
|
79
79
|
import { P as P6 } from "./price.taro-DUW-OR83.js";
|
|
80
|
-
import { P as P7 } from "./progress.taro-
|
|
80
|
+
import { P as P7 } from "./progress.taro-cveY9Y_I.js";
|
|
81
81
|
import { S as S13 } from "./step.taro-Cc1dc5Qb.js";
|
|
82
82
|
import { S as S14 } from "./steps.taro-CUEhZGfy.js";
|
|
83
83
|
import { default as default4 } from "./Swiper.js";
|
|
84
84
|
import { S as S15 } from "./swiperitem.taro-BleF1EOs.js";
|
|
85
|
-
import { T as T7 } from "./table.taro-
|
|
85
|
+
import { T as T7 } from "./table.taro-H3kjB4kV.js";
|
|
86
86
|
import { T as T8 } from "./tag.taro-CFt28RLm.js";
|
|
87
|
-
import { T as T9 } from "./tour.taro-
|
|
87
|
+
import { T as T9 } from "./tour.taro-xqFUxSBB.js";
|
|
88
88
|
import { V } from "./video.taro-CecLv4sr.js";
|
|
89
89
|
import { V as V2 } from "./virtuallist.taro-CQDtOwWn.js";
|
|
90
90
|
import { B as B5 } from "./barrage.taro-Dc2Wz_3H.js";
|
|
91
91
|
import { C as C14 } from "./card.taro-DxcIi5qH.js";
|
|
92
92
|
import { T as T10 } from "./timedetail.taro-ya5JNy2L.js";
|
|
93
|
-
import { T as T11 } from "./timeselect.taro-
|
|
93
|
+
import { T as T11 } from "./timeselect.taro-3Sc_hERv.js";
|
|
94
94
|
import { T as T12 } from "./trendarrow.taro-DKx5cGIh.js";
|
|
95
|
-
import { W } from "./watermark.taro-
|
|
96
|
-
import { A as A7 } from "./avatarcropper.taro-
|
|
95
|
+
import { W } from "./watermark.taro-DuJQHymA.js";
|
|
96
|
+
import { A as A7 } from "./avatarcropper.taro-BsbRSHbo.js";
|
|
97
97
|
export {
|
|
98
98
|
A2 as ActionSheet,
|
|
99
99
|
A as Address,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { useMemo } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
5
5
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: 1, mode: "multi", prev: null, next: null, total: 50, pageSize: 10, itemSize: 5, ellipse: false });
|
|
@@ -8,7 +8,7 @@ import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-D0h6aiDr.js";
|
|
9
9
|
import { p as passiveSupported } from "./overlay.taro-C8eXSsJH.js";
|
|
10
10
|
import { u as useRefs } from "./use-refs-BeEmziIR.js";
|
|
11
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
11
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
12
12
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
13
13
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
14
14
|
const InternalPickerPanel = (props, ref) => {
|
|
@@ -5,7 +5,7 @@ import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
|
5
5
|
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
6
6
|
import { a as getRect, g as getRectByTaro } from "./get-rect-by-taro-D0h6aiDr.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
8
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { list: [], theme: "light", location: "bottom", visible: false, offset: [0, 12], arrowOffset: 0, targetId: "", className: "", showArrow: true, closeOnOutsideClick: true, closeOnActionClick: true, overlay: false, onClick: () => {
|
|
10
10
|
}, onOpen: () => {
|
|
11
11
|
}, onClose: () => {
|
|
@@ -3,7 +3,7 @@ import React__default, { useState, useEffect, useRef } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro from "@tarojs/taro";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
6
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { u as useUuid } from "./use-uuid-BvqmbYZ7.js";
|
|
8
8
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { percent: 0, showText: false, animated: false, lazy: false, delay: 0 });
|
|
9
9
|
const Progress = (props) => {
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { View } from "@tarojs/components";
|
|
5
5
|
import { Loading, More } from "@nutui/icons-react-taro";
|
|
6
6
|
import Taro from "@tarojs/taro";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
8
8
|
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
import { a as getDeviceInfo } from "./get-system-info-D27xNglo.js";
|
|
@@ -6,7 +6,7 @@ import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
8
8
|
import { g as getRectByTaro } from "./get-rect-by-taro-D0h6aiDr.js";
|
|
9
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
9
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
10
10
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { range: false, min: 0, max: 100, step: 1, vertical: false, marks: {} });
|
|
11
11
|
const Range = (props) => {
|
|
12
12
|
const rtl = useRtl();
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
2
|
+
import Taro from "@tarojs/taro";
|
|
3
|
+
import { View, Input } from "@tarojs/components";
|
|
2
4
|
import { Search, ArrowLeft, MaskClose } from "@nutui/icons-react-taro";
|
|
3
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
4
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { placeholder: "", shape: "square", disabled: false, maxLength: 9999, clearable: true, readOnly: false, autoFocus: false, backable: false, left: "", right: "", rightIn: "", leftIn: React__default.createElement(Search, { size: "16" }) });
|
|
6
8
|
const SearchBar = (props) => {
|
|
@@ -14,30 +16,34 @@ const SearchBar = (props) => {
|
|
|
14
16
|
searchSelf && searchSelf.focus();
|
|
15
17
|
};
|
|
16
18
|
const change = (event) => {
|
|
17
|
-
if (value === event.
|
|
19
|
+
if (value === event.detail.value)
|
|
18
20
|
return;
|
|
19
|
-
onChange && (onChange === null || onChange === void 0 ? void 0 : onChange(event.
|
|
20
|
-
setValue(event.
|
|
21
|
-
event.
|
|
21
|
+
onChange && (onChange === null || onChange === void 0 ? void 0 : onChange(event.detail.value, event));
|
|
22
|
+
setValue(event.detail.value);
|
|
23
|
+
event.detail.value === "" && forceFocus();
|
|
22
24
|
};
|
|
23
25
|
const focus = (event) => {
|
|
24
|
-
const { value: value2 } = event.
|
|
26
|
+
const { value: value2 } = event.detail;
|
|
25
27
|
onFocus && (onFocus === null || onFocus === void 0 ? void 0 : onFocus(value2, event));
|
|
26
28
|
};
|
|
27
29
|
const blur = (event) => {
|
|
28
30
|
const searchSelf = searchRef.current;
|
|
29
31
|
searchSelf && searchSelf.blur();
|
|
30
|
-
const { value: value2 } = event.
|
|
32
|
+
const { value: value2 } = event.detail;
|
|
31
33
|
onBlur && (onBlur === null || onBlur === void 0 ? void 0 : onBlur(value2, event));
|
|
32
34
|
};
|
|
33
35
|
useEffect(() => {
|
|
34
36
|
setValue(outerValue || "");
|
|
35
37
|
}, [outerValue]);
|
|
36
38
|
useEffect(() => {
|
|
37
|
-
|
|
39
|
+
if (Taro.getEnv() === "WEB") {
|
|
40
|
+
autoFocus && forceFocus();
|
|
41
|
+
}
|
|
38
42
|
}, [autoFocus]);
|
|
39
43
|
const renderField = () => {
|
|
40
|
-
return React__default.createElement(
|
|
44
|
+
return React__default.createElement(Input, { className: `${classPrefix}-input ${clearable ? `${classPrefix}-input-clear` : ""}`, ref: searchRef, style, value: (value || "").toString(), placeholder: placeholder || locale.placeholder, disabled: disabled || readOnly, maxlength: maxLength, nativeProps: {
|
|
45
|
+
onKeyPress: onKeypress
|
|
46
|
+
}, autoFocus, onInput: (e) => change(e), onFocus: (e) => focus(e), onBlur: (e) => blur(e), onClick: (e) => clickInput(e) });
|
|
41
47
|
};
|
|
42
48
|
const clickInput = (e) => {
|
|
43
49
|
onInputClick && onInputClick(e);
|
|
@@ -45,26 +51,26 @@ const SearchBar = (props) => {
|
|
|
45
51
|
const renderLeftIn = () => {
|
|
46
52
|
if (!leftIn)
|
|
47
53
|
return null;
|
|
48
|
-
return React__default.createElement(
|
|
54
|
+
return React__default.createElement(View, { className: `${classPrefix}-leftin ${classPrefix}-icon` }, leftIn);
|
|
49
55
|
};
|
|
50
56
|
const renderLeft = () => {
|
|
51
57
|
if (!backable && !left)
|
|
52
58
|
return null;
|
|
53
|
-
return React__default.createElement(
|
|
59
|
+
return React__default.createElement(View, { className: `${classPrefix}-left` }, backable ? React__default.createElement(ArrowLeft, { size: "16" }) : left);
|
|
54
60
|
};
|
|
55
61
|
const renderRightIn = () => {
|
|
56
62
|
if (!rightIn)
|
|
57
63
|
return null;
|
|
58
|
-
return React__default.createElement(
|
|
64
|
+
return React__default.createElement(View, { className: `${classPrefix}-rightin ${classPrefix}-icon` }, rightIn);
|
|
59
65
|
};
|
|
60
66
|
const renderRight = () => {
|
|
61
67
|
if (!right)
|
|
62
68
|
return null;
|
|
63
|
-
return React__default.createElement(
|
|
69
|
+
return React__default.createElement(View, { className: `${classPrefix}-right` }, right);
|
|
64
70
|
};
|
|
65
71
|
const handleClear = () => {
|
|
66
72
|
return React__default.createElement(
|
|
67
|
-
|
|
73
|
+
View,
|
|
68
74
|
{ className: `${classPrefix}-clear ${classPrefix}-icon`, onClick: (e) => clearaVal(e) },
|
|
69
75
|
React__default.createElement(MaskClose, { size: 16 })
|
|
70
76
|
);
|
|
@@ -87,14 +93,14 @@ const SearchBar = (props) => {
|
|
|
87
93
|
}
|
|
88
94
|
};
|
|
89
95
|
return React__default.createElement(
|
|
90
|
-
|
|
96
|
+
View,
|
|
91
97
|
{ className: `${classPrefix} ${disabled ? `${classPrefix}-disabled` : ""} ${className || ""}`, style },
|
|
92
98
|
renderLeft(),
|
|
93
99
|
React__default.createElement(
|
|
94
|
-
|
|
100
|
+
View,
|
|
95
101
|
{ className: `${classPrefix}-content ${shape === "round" ? `${classPrefix}-round` : ""}` },
|
|
96
102
|
renderLeftIn(),
|
|
97
|
-
React__default.createElement(
|
|
103
|
+
React__default.createElement(View, { className: "nut-searchbar-input-box" }, renderField()),
|
|
98
104
|
clearable && !value && renderRightIn(),
|
|
99
105
|
clearable && value && handleClear()
|
|
100
106
|
),
|
|
@@ -3,7 +3,7 @@ import React__default, { useMemo, useImperativeHandle, useEffect } from "react";
|
|
|
3
3
|
import { Tips } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", visible: false, plain: false, hideFooter: true, length: 6, autoFocus: false });
|
|
@@ -2,7 +2,7 @@ import React__default from "react";
|
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
4
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
5
|
-
import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-
|
|
5
|
+
import { a as TabbarContext, T as TabbarItem } from "./tabbaritem.taro-BPe2bsMQ.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: 0, fixed: false, inactiveColor: "", activeColor: "", safeArea: false, onSwitch: (value) => {
|
|
7
7
|
} });
|
|
8
8
|
const Tabbar = (props) => {
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useContext } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
-
import { B as Badge } from "./badge.taro-
|
|
5
|
+
import { B as Badge } from "./badge.taro-W8s89KAj.js";
|
|
6
6
|
const TabbarContext = React__default.createContext(null);
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { title: "", icon: null, value: "", dot: false, max: 99, top: "0", right: "5" });
|
|
8
8
|
const TabbarItem = (props) => {
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useState, useEffect, useCallback, useRef } from "react";
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import { ArrowDown } from "@nutui/icons-react-taro";
|
|
5
|
-
import { u as useConfig, a as useRtl } from "./configprovider.taro-
|
|
5
|
+
import { u as useConfig, a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
8
8
|
function useTableSticky(columns, rtl = false) {
|
|
@@ -10,7 +10,7 @@ import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
|
10
10
|
import { u as useForceUpdate } from "./use-force-update-CudFjCsy.js";
|
|
11
11
|
import { r as requestAniFrame } from "./raf-Di10dXPS.js";
|
|
12
12
|
import { u as useUuid } from "./use-uuid-BvqmbYZ7.js";
|
|
13
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
13
|
+
import { a as useRtl } from "./configprovider.taro-DpK4IiCE.js";
|
|
14
14
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { tabStyle: {}, activeColor: "", direction: "horizontal", activeType: "line", duration: 300, autoHeight: false });
|
|
15
15
|
const classPrefix = "nut-tabs";
|
|
16
16
|
const Tabs = (props) => {
|
|
@@ -78,17 +78,10 @@ const Tabs = (props) => {
|
|
|
78
78
|
const [scrollLeft, setScrollLeft] = useState(0);
|
|
79
79
|
const [scrollTop, setScrollTop] = useState(0);
|
|
80
80
|
const scrollDirection = (to, direction2) => {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
setScrollLeft(to);
|
|
86
|
-
else
|
|
87
|
-
setScrollTop(to);
|
|
88
|
-
if (++count < frames)
|
|
89
|
-
requestAniFrame(animate);
|
|
90
|
-
}
|
|
91
|
-
animate();
|
|
81
|
+
if (direction2 === "horizontal")
|
|
82
|
+
setScrollLeft(to);
|
|
83
|
+
else
|
|
84
|
+
setScrollTop(to);
|
|
92
85
|
};
|
|
93
86
|
const scrollIntoView = (index) => {
|
|
94
87
|
requestAniFrame(() => {
|
|
@@ -106,14 +99,11 @@ const Tabs = (props) => {
|
|
|
106
99
|
} else {
|
|
107
100
|
const left = titleRects.slice(0, index).reduce((prev, curr) => prev + curr.width, 0);
|
|
108
101
|
to = left - (navRect.width - titleRect.width) / 2;
|
|
109
|
-
if (to < 0)
|
|
110
|
-
return;
|
|
111
|
-
to = rtl ? -to : to;
|
|
112
102
|
}
|
|
103
|
+
scrollDirection(to, direction);
|
|
113
104
|
nextTick(() => {
|
|
114
105
|
scrollWithAnimation.current = true;
|
|
115
106
|
});
|
|
116
|
-
scrollDirection(to, direction);
|
|
117
107
|
});
|
|
118
108
|
});
|
|
119
109
|
};
|
|
@@ -3,7 +3,7 @@ import React__default, { useRef } from "react";
|
|
|
3
3
|
import classNames from "classnames";
|
|
4
4
|
import Taro from "@tarojs/taro";
|
|
5
5
|
import { Textarea } from "@tarojs/components";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { defaultValue: "", showCount: false, maxLength: 140, readOnly: false, disabled: false, autoSize: false });
|
|
@@ -4,7 +4,7 @@ import classNames from "classnames";
|
|
|
4
4
|
import { P as Popup } from "./popup.taro-JynjcLCn.js";
|
|
5
5
|
import { T as TimeDetail } from "./timedetail.taro-ya5JNy2L.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
8
8
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, multiple: false, defaultValue: [], options: [], optionKey: {
|
|
9
9
|
valueKey: "value",
|
|
10
10
|
textKey: "text",
|
|
@@ -2,7 +2,7 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useState, useEffect } from "react";
|
|
3
3
|
import { Close } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
5
|
-
import { P as Popover } from "./popover.taro-
|
|
5
|
+
import { P as Popover } from "./popover.taro-Da7xRN6D.js";
|
|
6
6
|
import Taro, { createSelectorQuery } from "@tarojs/taro";
|
|
7
7
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
8
|
import { useConfig } from "./ConfigProvider.js";
|
|
@@ -4,12 +4,12 @@ import classNames from "classnames";
|
|
|
4
4
|
import Taro, { uploadFile, getEnv, chooseMedia, chooseImage } from "@tarojs/taro";
|
|
5
5
|
import { Link, Del, Failure, Loading, Photograph } from "@nutui/icons-react-taro";
|
|
6
6
|
import { B as Button } from "./button.taro-CixO32Hw.js";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
8
8
|
import { a as isPromise } from "./index-DeNfBlua.js";
|
|
9
9
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
10
10
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
11
11
|
import { View, Image } from "@tarojs/components";
|
|
12
|
-
import { P as Progress } from "./progress.taro-
|
|
12
|
+
import { P as Progress } from "./progress.taro-cveY9Y_I.js";
|
|
13
13
|
class UploadOptions {
|
|
14
14
|
constructor() {
|
|
15
15
|
this.url = "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default, { useState, useEffect } from "react";
|
|
2
2
|
import { getSystemInfo, createOffscreenCanvas } from "@tarojs/taro";
|
|
3
3
|
import classNames from "classnames";
|
|
4
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
4
|
+
import { u as useConfig } from "./configprovider.taro-DpK4IiCE.js";
|
|
5
5
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
6
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { content: "", fullPage: true, zIndex: 2e3, gapX: 24, gapY: 48, width: 120, height: 64, startX: 0, startY: 0, image: "", imageWidth: 120, imageHeight: 64, rotate: -22, color: "rgba(0,0,0,.15)", fontStyle: "normal", fontWeight: "normal", fontSize: 14 });
|
|
7
7
|
const WaterMark = (props) => {
|
package/dist/locales/base.d.ts
CHANGED
package/dist/locales/base.js
CHANGED