@nutui/nutui-react-taro 2.6.18 → 2.6.20
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 +21 -0
- package/dist/esm/ActionSheet.js +1 -1
- package/dist/esm/Address.js +1 -1
- package/dist/esm/AnimatingNumbers.js +2 -2
- 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.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/CountDown.js +1 -1
- package/dist/esm/DatePicker.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Ellipsis.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/Grid.js +1 -1
- package/dist/esm/GridItem.js +1 -1
- package/dist/esm/ImagePreview.js +1 -1
- package/dist/esm/InfiniteLoading.js +1 -1
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber.js +1 -1
- package/dist/esm/Layout.js +1 -1
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +1 -1
- package/dist/esm/NoticeBar.js +1 -1
- package/dist/esm/Notify.js +1 -1
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.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/Popup.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.js +1 -1
- package/dist/esm/ShortPassword.js +1 -1
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Signature.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/Toast.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/{actionsheet.taro-CJjNsNrH.js → actionsheet.taro-CgfXnK1M.js} +3 -2
- package/dist/esm/{address.taro-CH4lcI54.js → address.taro-CWr6jIYg.js} +3 -3
- package/dist/esm/{audio.taro-CD-vP_u0.js → audio.taro--yoX2oyx.js} +6 -10
- package/dist/esm/{avatarcropper.taro-CAVcFvKC.js → avatarcropper.taro-B0I9uLNp.js} +25 -24
- package/dist/esm/{backtop.taro-jWlJ1ZWG.js → backtop.taro-CpzSXDW3.js} +1 -1
- package/dist/esm/{badge.taro-BGaxpEYi.js → badge.taro-B42_7q8v.js} +1 -1
- package/dist/esm/{calendar.taro-BXrHr8bg.js → calendar.taro-Csq-7imv.js} +3 -3
- package/dist/esm/{calendarcard.taro-CbvCWF1k.js → calendarcard.taro-CvWyBqnr.js} +1 -1
- package/dist/esm/{calendaritem.taro-CRultyrO.js → calendaritem.taro-BOMJjsx9.js} +6 -10
- package/dist/esm/{cascader.taro-4QSI_vGC.js → cascader.taro-DZ_oBTm0.js} +8 -3
- package/dist/esm/{configprovider.taro-DA4GDDFu.js → configprovider.taro-C3WyeHSO.js} +4 -0
- package/dist/esm/{countdown.taro-mKXeisK0.js → countdown.taro-Dyryl4pq.js} +0 -3
- package/dist/esm/{datepicker.taro-BxaZ3Fjv.js → datepicker.taro-DibmSueg.js} +3 -3
- package/dist/esm/{dialog.taro-BW9D2Gsr.js → dialog.taro-Bg730q8d.js} +4 -4
- package/dist/esm/{ellipsis.taro-Ck2rumQ6.js → ellipsis.taro-fvcP85Ir.js} +10 -14
- package/dist/esm/{empty.taro-CnwDznke.js → empty.taro-Dr4eSaDg.js} +0 -2
- package/dist/esm/{fixednav.taro-D3KnhYoI.js → fixednav.taro-BodErnYy.js} +2 -2
- package/dist/esm/{grid.taro-ZJywVaVe.js → grid.taro-Bi-DXjbo.js} +1 -1
- package/dist/esm/{griditem.taro-CcWyYchl.js → griditem.taro-DMvds46i.js} +0 -2
- package/dist/esm/{imagepreview.taro-0D3hjS6s.js → imagepreview.taro-C0yMREHT.js} +1 -1
- package/dist/esm/{infiniteloading.taro-TbcBB0Qr.js → infiniteloading.taro-DzIrZvc0.js} +1 -1
- package/dist/esm/{input.taro-DbAbbzIX.js → input.taro-CA9ZpM9a.js} +1 -1
- package/dist/esm/{inputnumber.taro-D9mteLSI.js → inputnumber.taro-DPRZtV42.js} +1 -5
- package/dist/esm/{layout.taro-C-aUcOOE.js → layout.taro-DpiuZLLE.js} +1 -3
- package/dist/esm/{menu.taro-CLbOM_Z4.js → menu.taro-BFc4uUxG.js} +1 -1
- package/dist/esm/{menuitem.taro-CNaseNcY.js → menuitem.taro-D6KQvdRw.js} +4 -3
- package/dist/esm/merge-props-2rRqFlJz.js +16 -0
- package/dist/esm/{noticebar.taro-CGUTg60Q.js → noticebar.taro-BjKDC7We.js} +1 -1
- package/dist/esm/{notify.taro-jP7y9zMU.js → notify.taro-BVXg7xTI.js} +5 -4
- package/dist/esm/{numberkeyboard.taro-Cz6rKxk3.js → numberkeyboard.taro-CIlStObb.js} +2 -2
- package/dist/esm/nutui-react.es.js +51 -51
- package/dist/esm/{overlay.taro-C2t82CZz.js → overlay.taro-C8eXSsJH.js} +3 -7
- package/dist/esm/{pagination.taro-DdLO3OTc.js → pagination.taro-BSwytb0-.js} +5 -9
- package/dist/esm/{picker.taro-CafNRRO5.js → picker.taro-mCnxpFCY.js} +3 -3
- package/dist/esm/{popover.taro-B_FJgU0z.js → popover.taro-BHcidbZG.js} +2 -2
- package/dist/esm/{popup.taro-CR3JyuJV.js → popup.taro-DV32k5dP.js} +6 -6
- package/dist/esm/{progress.taro-De9-206U.js → progress.taro-CaIUT9Uo.js} +1 -1
- package/dist/esm/{pulltorefresh.taro-DSr2dBjM.js → pulltorefresh.taro-BiSDwLpA.js} +1 -1
- package/dist/esm/{range.taro-D_qsx_j6.js → range.taro-BilM3sMH.js} +1 -1
- package/dist/esm/{searchbar.taro-C8cg7NeJ.js → searchbar.taro-LaO2Xr2t.js} +1 -1
- package/dist/esm/{shortpassword.taro-DpdtRsQ-.js → shortpassword.taro-ByEtEDDl.js} +2 -2
- package/dist/esm/{sidenavbar.taro-5BmrYFtP.js → sidenavbar.taro-DNwoQw9u.js} +1 -1
- package/dist/esm/{signature.taro-zgwaJkIE.js → signature.taro-BW4eiGIR.js} +1 -1
- package/dist/esm/{tabbar.taro-CXk0zLdz.js → tabbar.taro-BiQDgZQF.js} +1 -1
- package/dist/esm/{tabbaritem.taro-BZNabTBp.js → tabbaritem.taro-BiIVucQz.js} +1 -1
- package/dist/esm/{table.taro-B6WCKTkO.js → table.taro-1nFkDxbh.js} +1 -1
- package/dist/esm/{tabs.taro-8X51sTol.js → tabs.taro-CJiI4q_-.js} +1 -1
- package/dist/esm/{textarea.taro-DuceTjAx.js → textarea.taro-EJQxRHZR.js} +1 -1
- package/dist/esm/{timeselect.taro-DncKbp3l.js → timeselect.taro-DE_a87DT.js} +2 -2
- package/dist/esm/{toast.taro-CYk6UERn.js → toast.taro-Tx0IHbsl.js} +3 -3
- package/dist/esm/{tour.taro-SPMrhDA9.js → tour.taro-BvBZa8nq.js} +1 -1
- package/dist/esm/{uploader.taro-Do8LZqUn.js → uploader.taro-C-8Jf7un.js} +4 -8
- package/dist/esm/{watermark.taro-CZ6R5FlJ.js → watermark.taro-CbO7mKFD.js} +1 -1
- package/dist/locales/base.d.ts +7 -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 +83 -67
- package/dist/nutui.react.umd.js +83 -67
- package/dist/packages/elevator/elevator.scss +1 -2
- package/dist/packages/popover/popover.scss +3 -3
- package/dist/packages/tabs/tabs.scss +3 -3
- package/dist/packages/uploader/uploader.scss +1 -2
- package/dist/types/index.d.ts +196 -196
- package/dist/types/locales/base.d.ts +7 -0
- package/dist/types/packages/searchbar/searchbar.d.ts +0 -14
- package/dist/types/packages/searchbar/searchbar.taro.d.ts +14 -14
- package/dist/types/packages/uploader/uploader.taro.d.ts +0 -3
- package/dist/types/utils/merge-props.d.ts +9 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
# v2.6.20
|
|
2
|
+
`2024-09-20`
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
* :bug: fix: i18n (#2597)
|
|
6
|
+
* :bug: fix: 类型构建错误 (#2605)
|
|
7
|
+
* 🏡 chore: replace local prettier plugin with npm package (#2603)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# v2.6.19
|
|
11
|
+
|
|
12
|
+
`2024-09-13`
|
|
13
|
+
|
|
14
|
+
- 🏡 chore(deps): update dependency vite-plugin-dts to v4 (#2533)
|
|
15
|
+
- :bug: fix(cascader): 受控状态下 value 变化时同步组件选中状态 (#2591)
|
|
16
|
+
- :bug: fix: 移除不必要的 fragment 元素 (#2587)
|
|
17
|
+
- :bug: fix(datepicker): show zero on page (#2582)
|
|
18
|
+
- :bug: fix: findDomNode from transition (#2525)
|
|
19
|
+
- :bug: fix(props): add mergeProps utility to resolve all defaultProps warnings (#2581)
|
|
20
|
+
- 🪵 refactor: resolve sass nested rules warning (#2579)
|
|
21
|
+
|
|
1
22
|
# v2.6.18
|
|
2
23
|
|
|
3
24
|
`2024-09-06`
|
package/dist/esm/ActionSheet.js
CHANGED
package/dist/esm/Address.js
CHANGED
|
@@ -2,9 +2,10 @@ import React__default, { useRef, useState, useEffect, Component } from "react";
|
|
|
2
2
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
3
3
|
import { createSelectorQuery } from "@tarojs/taro";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
import { m as mergeProps } from "./merge-props-2rRqFlJz.js";
|
|
5
6
|
const defaultProps$1 = Object.assign(Object.assign({}, ComponentDefaults), { length: 0, value: "", delay: 300, duration: 1, thousands: false });
|
|
6
7
|
const CountUp = (props) => {
|
|
7
|
-
const _a =
|
|
8
|
+
const _a = mergeProps(defaultProps$1, props), { length, value, delay, duration, className, thousands, style } = _a;
|
|
8
9
|
__rest(_a, ["length", "value", "delay", "duration", "className", "thousands", "style"]);
|
|
9
10
|
const classPrefix = "nut-countup";
|
|
10
11
|
const countupRef = useRef(null);
|
|
@@ -67,7 +68,6 @@ const CountUp = (props) => {
|
|
|
67
68
|
}))
|
|
68
69
|
);
|
|
69
70
|
};
|
|
70
|
-
CountUp.defaultProps = defaultProps$1;
|
|
71
71
|
CountUp.displayName = "NutCountUp";
|
|
72
72
|
const defaultProps = {};
|
|
73
73
|
class AnimatingNumbers extends Component {
|
package/dist/esm/Audio.js
CHANGED
package/dist/esm/BackTop.js
CHANGED
package/dist/esm/Badge.js
CHANGED
package/dist/esm/Calendar.js
CHANGED
package/dist/esm/CalendarCard.js
CHANGED
package/dist/esm/CalendarItem.js
CHANGED
package/dist/esm/Cascader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as ConfigProvider } from "./configprovider.taro-
|
|
2
|
-
import { g, s, u, a } from "./configprovider.taro-
|
|
1
|
+
import { C as ConfigProvider } from "./configprovider.taro-C3WyeHSO.js";
|
|
2
|
+
import { g, s, u, a } from "./configprovider.taro-C3WyeHSO.js";
|
|
3
3
|
export {
|
|
4
4
|
ConfigProvider as default,
|
|
5
5
|
g as getDefaultConfig,
|
package/dist/esm/CountDown.js
CHANGED
package/dist/esm/DatePicker.js
CHANGED
package/dist/esm/Dialog.js
CHANGED
package/dist/esm/Ellipsis.js
CHANGED
package/dist/esm/Empty.js
CHANGED
package/dist/esm/FixedNav.js
CHANGED
package/dist/esm/Grid.js
CHANGED
package/dist/esm/GridItem.js
CHANGED
package/dist/esm/ImagePreview.js
CHANGED
package/dist/esm/Input.js
CHANGED
package/dist/esm/InputNumber.js
CHANGED
package/dist/esm/Layout.js
CHANGED
package/dist/esm/Menu.js
CHANGED
package/dist/esm/MenuItem.js
CHANGED
package/dist/esm/NoticeBar.js
CHANGED
package/dist/esm/Notify.js
CHANGED
package/dist/esm/Overlay.js
CHANGED
package/dist/esm/Pagination.js
CHANGED
package/dist/esm/Picker.js
CHANGED
package/dist/esm/Popover.js
CHANGED
package/dist/esm/Popup.js
CHANGED
package/dist/esm/Progress.js
CHANGED
package/dist/esm/Range.js
CHANGED
package/dist/esm/SearchBar.js
CHANGED
package/dist/esm/SideNavBar.js
CHANGED
package/dist/esm/Signature.js
CHANGED
package/dist/esm/Tabbar.js
CHANGED
package/dist/esm/TabbarItem.js
CHANGED
package/dist/esm/Table.js
CHANGED
package/dist/esm/Tabs.js
CHANGED
package/dist/esm/TextArea.js
CHANGED
package/dist/esm/TimeSelect.js
CHANGED
package/dist/esm/Toast.js
CHANGED
package/dist/esm/Tour.js
CHANGED
package/dist/esm/Uploader.js
CHANGED
package/dist/esm/WaterMark.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
+
import { P as Popup } from "./popup.taro-DV32k5dP.js";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
|
+
import { m as mergeProps } from "./merge-props-2rRqFlJz.js";
|
|
5
6
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { visible: false, description: "", options: [], optionKey: { name: "name", description: "description" }, cancelText: "", onCancel: () => {
|
|
6
7
|
}, onSelect: () => {
|
|
7
8
|
} });
|
|
8
9
|
const ActionSheet = (props) => {
|
|
9
|
-
const _a =
|
|
10
|
+
const _a = mergeProps(defaultProps, props), { children, cancelText, optionKey, title, description, options, onCancel, onSelect, visible, className, style } = _a, rest = __rest(_a, ["children", "cancelText", "optionKey", "title", "description", "options", "onCancel", "onSelect", "visible", "className", "style"]);
|
|
10
11
|
const classPrefix = "nut-actionsheet";
|
|
11
12
|
const cancelActionSheet = () => {
|
|
12
13
|
onCancel && onCancel();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
2
2
|
import React__default, { forwardRef, useState, useImperativeHandle } from "react";
|
|
3
3
|
import { Check, Location, ArrowLeft } from "@nutui/icons-react-taro";
|
|
4
|
-
import { P as Popup } from "./popup.taro-
|
|
4
|
+
import { P as Popup } from "./popup.taro-DV32k5dP.js";
|
|
5
5
|
import { ScrollView } from "@tarojs/components";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
-
import { C as Cascader } from "./cascader.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
|
+
import { C as Cascader } from "./cascader.taro-DZ_oBTm0.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
10
10
|
const defaultProps$2 = {
|
|
@@ -2,9 +2,9 @@ import { _ as __rest } from "./tslib.es6-iWu3F_1J.js";
|
|
|
2
2
|
import React__default, { useState, useRef } from "react";
|
|
3
3
|
import { createInnerAudioContext } from "@tarojs/taro";
|
|
4
4
|
import { Service } from "@nutui/icons-react-taro";
|
|
5
|
-
import { R as Range } from "./range.taro-
|
|
5
|
+
import { R as Range } from "./range.taro-BilM3sMH.js";
|
|
6
6
|
import { B as Button } from "./button.taro-1kEru6r9.js";
|
|
7
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
8
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
9
9
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { className: "", url: "", style: {}, autoplay: false, loop: false, type: "progress", onFastBack: (ctx) => {
|
|
10
10
|
}, onForward: (ctx) => {
|
|
@@ -106,16 +106,12 @@ const Audio = (props) => {
|
|
|
106
106
|
};
|
|
107
107
|
const renderIcon = () => {
|
|
108
108
|
return React__default.createElement(
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
"div",
|
|
110
|
+
{ className: `${classPrefix}-icon` },
|
|
111
111
|
React__default.createElement(
|
|
112
112
|
"div",
|
|
113
|
-
{ className: `${classPrefix}-icon` },
|
|
114
|
-
React__default.createElement(
|
|
115
|
-
"div",
|
|
116
|
-
{ className: `${classPrefix}-icon-box} ${playing ? `${classPrefix}-icon-play}` : `${classPrefix}-icon-stop}`}`, onClick: handleStatusChange },
|
|
117
|
-
React__default.createElement(Service, { className: playing ? "nut-icon-loading" : "" })
|
|
118
|
-
)
|
|
113
|
+
{ className: `${classPrefix}-icon-box} ${playing ? `${classPrefix}-icon-play}` : `${classPrefix}-icon-stop}`}`, onClick: handleStatusChange },
|
|
114
|
+
React__default.createElement(Service, { className: playing ? "nut-icon-loading" : "" })
|
|
119
115
|
)
|
|
120
116
|
);
|
|
121
117
|
};
|
|
@@ -4,17 +4,26 @@ import Taro, { useReady, createSelectorQuery } from "@tarojs/taro";
|
|
|
4
4
|
import classNames from "classnames";
|
|
5
5
|
import { Canvas } from "@tarojs/components";
|
|
6
6
|
import { B as Button } from "./button.taro-1kEru6r9.js";
|
|
7
|
+
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
8
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
8
9
|
import { u as useTouch } from "./use-touch-BeiLHDO9.js";
|
|
9
10
|
import { p as preventDefault, c as clamp } from "./index-DeNfBlua.js";
|
|
10
11
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { maxZoom: 3, space: 10, toolbar: [
|
|
11
|
-
React__default.createElement(Button, { type: "danger", key: "cancel" }, "
|
|
12
|
-
React__default.createElement(Button, { key: "reset" }, "
|
|
13
|
-
React__default.createElement(Button, { key: "rotate" }, "
|
|
14
|
-
React__default.createElement(Button, { type: "success", key: "confirm" }, "
|
|
15
|
-
], toolbarPosition: "bottom", editText: "
|
|
12
|
+
React__default.createElement(Button, { type: "danger", key: "cancel" }, "Cancel"),
|
|
13
|
+
React__default.createElement(Button, { key: "reset" }, "Reset"),
|
|
14
|
+
React__default.createElement(Button, { key: "rotate" }, "Rotate"),
|
|
15
|
+
React__default.createElement(Button, { type: "success", key: "confirm" }, "Confirm")
|
|
16
|
+
], toolbarPosition: "bottom", editText: "Edit", sizeType: ["original", "compressed"], sourceType: ["album", "camera"], shape: "square" });
|
|
16
17
|
const classPrefix = `nut-avatar-cropper`;
|
|
17
18
|
const AvatarCropper = (props) => {
|
|
19
|
+
const { locale } = useConfig();
|
|
20
|
+
defaultProps.toolbar = [
|
|
21
|
+
React__default.createElement(Button, { type: "danger", key: "cancel" }, locale.cancel),
|
|
22
|
+
React__default.createElement(Button, { key: "reset" }, locale.reset),
|
|
23
|
+
React__default.createElement(Button, { key: "rotate" }, locale.avatarCropper.rotate),
|
|
24
|
+
React__default.createElement(Button, { type: "success", key: "confirm" }, locale.confirm)
|
|
25
|
+
];
|
|
26
|
+
defaultProps.editText = locale.edit;
|
|
18
27
|
const _a = Object.assign(Object.assign({}, defaultProps), props), { children, toolbar, maxZoom, space, toolbarPosition, editText, sizeType, sourceType, shape, className, style, onConfirm, onCancel } = _a, rest = __rest(_a, ["children", "toolbar", "maxZoom", "space", "toolbarPosition", "editText", "sizeType", "sourceType", "shape", "className", "style", "onConfirm", "onCancel"]);
|
|
19
28
|
const cls = classNames(classPrefix, "taro", className, shape === "round" && "round");
|
|
20
29
|
const toolbarPositionCls = classNames(`${classPrefix}-popup-toolbar`, toolbarPosition);
|
|
@@ -380,31 +389,23 @@ const AvatarCropper = (props) => {
|
|
|
380
389
|
};
|
|
381
390
|
const ToolBar = () => {
|
|
382
391
|
const actions = [cancel, reset, rotate, confirm];
|
|
383
|
-
return React__default.createElement(
|
|
384
|
-
React__default.Fragment,
|
|
385
|
-
null,
|
|
386
|
-
React__default.createElement("div", { className: `${classPrefix}-popup-toolbar-flex` }, actions.map((action, index) => React__default.createElement("div", { key: index, className: `${classPrefix}-popup-toolbar-item`, onClick: (_e) => action() }, toolbar[index])))
|
|
387
|
-
);
|
|
392
|
+
return React__default.createElement("div", { className: `${classPrefix}-popup-toolbar-flex` }, actions.map((action, index) => React__default.createElement("div", { key: index, className: `${classPrefix}-popup-toolbar-item`, onClick: (_e) => action() }, toolbar[index])));
|
|
388
393
|
};
|
|
389
394
|
const CropperPopup = () => {
|
|
390
395
|
const { canvasId } = canvasAll;
|
|
391
396
|
return React__default.createElement(
|
|
392
|
-
|
|
393
|
-
|
|
397
|
+
"div",
|
|
398
|
+
{ className: `${classPrefix}-popup`, style: { display: visible ? "block" : "none" } },
|
|
399
|
+
React__default.createElement(Canvas, { id: canvasId, "canvas-id": canvasId, type: showAlipayCanvas2D ? "2d" : void 0, style: canvasStyle, className: `${classPrefix}-popup-canvas` }),
|
|
400
|
+
React__default.createElement(
|
|
401
|
+
"div",
|
|
402
|
+
{ className: `${classPrefix}-popup-highlight`, onTouchStart, onTouchMove, onTouchEnd },
|
|
403
|
+
React__default.createElement("div", { className: "highlight", style: highlightStyle })
|
|
404
|
+
),
|
|
394
405
|
React__default.createElement(
|
|
395
406
|
"div",
|
|
396
|
-
{ className:
|
|
397
|
-
React__default.createElement(
|
|
398
|
-
React__default.createElement(
|
|
399
|
-
"div",
|
|
400
|
-
{ className: `${classPrefix}-popup-highlight`, onTouchStart, onTouchMove, onTouchEnd },
|
|
401
|
-
React__default.createElement("div", { className: "highlight", style: highlightStyle })
|
|
402
|
-
),
|
|
403
|
-
React__default.createElement(
|
|
404
|
-
"div",
|
|
405
|
-
{ className: toolbarPositionCls },
|
|
406
|
-
React__default.createElement(ToolBar, null)
|
|
407
|
-
)
|
|
407
|
+
{ className: toolbarPositionCls },
|
|
408
|
+
React__default.createElement(ToolBar, null)
|
|
408
409
|
)
|
|
409
410
|
);
|
|
410
411
|
};
|
|
@@ -3,7 +3,7 @@ import { usePageScroll, pageScrollTo } from "@tarojs/taro";
|
|
|
3
3
|
import { Top } from "@nutui/icons-react-taro";
|
|
4
4
|
import classNames from "classnames";
|
|
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-C3WyeHSO.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { threshold: 200, zIndex: 900, duration: 1e3 });
|
|
8
8
|
const BackTop = (props) => {
|
|
9
9
|
const rtl = useRtl();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React__default from "react";
|
|
2
2
|
import classNames from "classnames";
|
|
3
3
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
4
|
-
import { a as useRtl } from "./configprovider.taro-
|
|
4
|
+
import { a as useRtl } from "./configprovider.taro-C3WyeHSO.js";
|
|
5
5
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { value: "", dot: false, max: 99, top: "4", right: "8", color: "", fill: "solid" });
|
|
6
6
|
const Badge = (props) => {
|
|
7
7
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React__default, { useRef } from "react";
|
|
2
|
-
import { P as Popup } from "./popup.taro-
|
|
3
|
-
import { C as CalendarItem } from "./calendaritem.taro-
|
|
2
|
+
import { P as Popup } from "./popup.taro-DV32k5dP.js";
|
|
3
|
+
import { C as CalendarItem } from "./calendaritem.taro-BOMJjsx9.js";
|
|
4
4
|
import { U as Utils } from "./date-CYwRNlGq.js";
|
|
5
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
5
|
+
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
6
6
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
7
7
|
const defaultProps = Object.assign(Object.assign({}, ComponentDefaults), { type: "single", autoBackfill: false, popup: true, visible: false, title: "", defaultValue: "", startDate: Utils.getDay(0), endDate: Utils.getDay(365), showToday: true, startText: "", endText: "", confirmText: "", showTitle: true, showSubTitle: true, scrollAnimation: true, firstDayOfWeek: 0, disableDate: (date) => false, renderHeaderButtons: void 0, renderDay: void 0, renderDayTop: void 0, renderDayBottom: void 0, onClose: () => {
|
|
8
8
|
}, onConfirm: (param) => {
|
|
@@ -3,7 +3,7 @@ import classNames from "classnames";
|
|
|
3
3
|
import { View } from "@tarojs/components";
|
|
4
4
|
import { C as ComponentDefaults } from "./typings-DV9RBfhj.js";
|
|
5
5
|
import { U as Utils } from "./date-CYwRNlGq.js";
|
|
6
|
-
import { u as useConfig } from "./configprovider.taro-
|
|
6
|
+
import { u as useConfig } from "./configprovider.taro-C3WyeHSO.js";
|
|
7
7
|
import { u as usePropsValue } from "./use-props-value-SH9krhkx.js";
|
|
8
8
|
const left = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNNi42MDUgOS40OWEuNzcxLjc3MSAwIDAgMSAwLS45OGwzLjYtNC4zNzJhLjc3MS43NzEgMCAwIDEgMS4xOS45ODFMOC4yIDlsMy4xOTcgMy44ODFhLjc3MS43NzEgMCAxIDEtMS4xOTEuOThsLTMuNi00LjM3eiIvPjwvc3ZnPg==";
|
|
9
9
|
const right = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDE4IDE4Ij48cGF0aCBkPSJNMTEuMzk2IDkuNDlhLjc3MS43NzEgMCAwIDAgMC0uOThsLTMuNi00LjM3MmEuNzcxLjc3MSAwIDAgMC0xLjE5MS45ODFMOS44IDlsLTMuMTk2IDMuODgxYS43NzEuNzcxIDAgMCAwIDEuMTkuOThsMy42LTQuMzd6Ii8+PC9zdmc+";
|