@nutui/nutui-react-taro 1.4.11-beta.0 → 1.4.12-beta.0
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 +19 -0
- package/README.md +17 -12
- package/dist/esm/ActionSheet.js +10 -7
- package/dist/esm/Address.js +15 -12
- package/dist/esm/Animate.js +6 -3
- package/dist/esm/AnimatingNumbers.js +6 -3
- package/dist/esm/Audio.js +16 -13
- package/dist/esm/Avatar.js +9 -6
- package/dist/esm/AvatarGroup.js +9 -6
- package/dist/esm/BackTop.js +8 -5
- package/dist/esm/Badge.js +8 -5
- package/dist/esm/Barrage.js +6 -3
- package/dist/esm/Button.js +8 -5
- package/dist/esm/Calendar.js +13 -10
- package/dist/esm/CalendarItem.js +8 -5
- package/dist/esm/Card.js +10 -7
- package/dist/esm/Cascader.js +12 -9
- package/dist/esm/Cell.js +8 -5
- package/dist/esm/CellGroup.js +6 -3
- package/dist/esm/Checkbox.js +8 -5
- package/dist/esm/CheckboxGroup.js +8 -5
- package/dist/esm/CircleProgress.js +7 -4
- package/dist/esm/Col.js +6 -3
- package/dist/esm/Collapse.js +6 -3
- package/dist/esm/CollapseItem.js +8 -5
- package/dist/esm/ConfigProvider.js +6 -3
- package/dist/esm/CountDown.js +8 -5
- package/dist/esm/DatePicker.js +17 -14
- package/dist/esm/Dialog.js +11 -8
- package/dist/esm/Divider.js +6 -3
- package/dist/esm/Drag.js +6 -3
- package/dist/esm/Elevator.js +6 -3
- package/dist/esm/Ellipsis.js +8 -5
- package/dist/esm/Empty.js +8 -5
- package/dist/esm/FixedNav.js +11 -8
- package/dist/esm/Form.js +11 -8
- package/dist/esm/FormItem.js +9 -6
- package/dist/esm/Grid.js +9 -6
- package/dist/esm/GridItem.js +11 -8
- package/dist/esm/Icon.js +6 -3
- package/dist/esm/Image.js +9 -6
- package/dist/esm/ImagePreview.js +13 -10
- package/dist/esm/Indicator.js +6 -3
- package/dist/esm/Infiniteloading.js +10 -7
- package/dist/esm/Input.js +10 -7
- package/dist/esm/InputNumber.js +8 -5
- package/dist/esm/Layout.js +5 -2
- package/dist/esm/Menu.js +8 -5
- package/dist/esm/MenuItem.js +11 -8
- package/dist/esm/NavBar.js +8 -5
- package/dist/esm/NoticeBar.js +9 -6
- package/dist/esm/Notify.js +6 -3
- package/dist/esm/NumberKeyboard.js +12 -9
- package/dist/esm/Overlay.js +6 -3
- package/dist/esm/Pagination.js +8 -5
- package/dist/esm/Picker.js +15 -12
- package/dist/esm/Popover.js +10 -7
- package/dist/esm/Popup.js +9 -6
- package/dist/esm/Price.js +6 -3
- package/dist/esm/Progress.js +8 -5
- package/dist/esm/PullToRefresh.js +8 -5
- package/dist/esm/Radio.js +8 -4
- package/dist/esm/RadioGroup.js +8 -5
- package/dist/esm/Range.js +12 -9
- package/dist/esm/Rate.js +8 -5
- package/dist/esm/Row.js +6 -3
- package/dist/esm/SearchBar.js +10 -7
- package/dist/esm/ShortPassword.js +12 -9
- package/dist/esm/SideNavBar.js +13 -10
- package/dist/esm/SideNavBarItem.js +5 -2
- package/dist/esm/Signature.js +11 -8
- package/dist/esm/Skeleton.js +10 -7
- package/dist/esm/Step.js +9 -6
- package/dist/esm/Steps.js +7 -4
- package/dist/esm/Sticky.js +8 -5
- package/dist/esm/SubSideNavBar.js +6 -3
- package/dist/esm/Swipe.js +8 -5
- package/dist/esm/Swiper.js +7 -4
- package/dist/esm/SwiperItem.js +7 -4
- package/dist/esm/Switch.js +6 -3
- package/dist/esm/TabPane.js +6 -3
- package/dist/esm/Tabbar.js +6 -3
- package/dist/esm/TabbarItem.js +8 -5
- package/dist/esm/Table.js +10 -7
- package/dist/esm/Tabs.js +9 -6
- package/dist/esm/Tag.js +8 -5
- package/dist/esm/TextArea.js +8 -5
- package/dist/esm/TimeDetail.js +8 -5
- package/dist/esm/TimePannel.js +8 -5
- package/dist/esm/TimeSelect.js +14 -11
- package/dist/esm/Toast.js +7 -4
- package/dist/esm/TrendArrow.js +7 -4
- package/dist/esm/Uploader.js +13 -10
- package/dist/esm/Video.js +6 -3
- package/dist/esm/VirtualList.js +7 -4
- package/dist/esm/WaterMark.js +8 -5
- package/dist/esm/{actionsheet.taro-c5ccaf4e.js → actionsheet.taro-e6a51446.js} +2 -2
- package/dist/esm/{address.taro-f977bad0.js → address.taro-f1acf8fb.js} +8 -8
- package/dist/esm/{animate.taro-b0e83dd5.js → animate.taro-fb7986d6.js} +1 -1
- package/dist/esm/{animatingnumbers.taro-6307a3a5.js → animatingnumbers.taro-03e5d61d.js} +1 -1
- package/dist/esm/{audio.taro-c2cdbe18.js → audio.taro-7ba4b47e.js} +6 -6
- package/dist/esm/{avatar.taro-c17c3d15.js → avatar.taro-3676f38f.js} +4 -4
- package/dist/esm/{avatargroup-1d900174.js → avatargroup-f3574510.js} +3 -3
- package/dist/esm/{backtop.taro-e53236c7.js → backtop.taro-66394a36.js} +2 -2
- package/dist/esm/{badge.taro-a2e7dd5a.js → badge.taro-a4e59c11.js} +3 -3
- package/dist/esm/{barrage.taro-5dbab093.js → barrage.taro-80df08d3.js} +1 -1
- package/dist/esm/{button.taro-dc4795a3.js → button.taro-9244d065.js} +3 -3
- package/dist/esm/{calendar.taro-f5d03548.js → calendar.taro-670842ea.js} +8 -8
- package/dist/esm/{calendaritem.taro-971a7af8.js → calendaritem.taro-2a603571.js} +13 -2
- package/dist/esm/{card.taro-4fb6bc4e.js → card.taro-e4c76dad.js} +3 -3
- package/dist/esm/{cascader.taro-a2ee549c.js → cascader.taro-a824b371.js} +5 -5
- package/dist/esm/{cell.taro-e877cf12.js → cell.taro-a10a74d3.js} +3 -3
- package/dist/esm/{cellgroup.taro-e094471c.js → cellgroup.taro-abe501bc.js} +1 -1
- package/dist/esm/{checkbox.taro-6aab93c3.js → checkbox.taro-6120e3e3.js} +3 -3
- package/dist/esm/{circleprogress.taro-897ea24b.js → circleprogress.taro-79854448.js} +2 -2
- package/dist/esm/{col.taro-9e4c5cc0.js → col.taro-53eed3cc.js} +1 -1
- package/dist/esm/{collapse.taro-c903a060.js → collapse.taro-1a9e4ba2.js} +1 -1
- package/dist/esm/{collapseitem-2e864527.js → collapseitem-4d0bc55d.js} +3 -3
- package/dist/esm/{configprovider-5eea4f5d.js → configprovider-67d19d3a.js} +1 -1
- package/dist/esm/{configprovider.taro-26882dd2.js → configprovider.taro-8d71eb49.js} +1 -1
- package/dist/esm/{countdown.taro-9e40de9c.js → countdown.taro-dbcb9a4f.js} +2 -2
- package/dist/esm/{datepicker.taro-d9252862.js → datepicker.taro-f8369e63.js} +2 -2
- package/dist/esm/{dialog.taro-7608bd26.js → dialog.taro-a3267d29.js} +2 -2
- package/dist/esm/{divider.taro-5236fe6a.js → divider.taro-26d1d8b4.js} +1 -1
- package/dist/esm/{drag.taro-703560c4.js → drag.taro-79bb8744.js} +1 -1
- package/dist/esm/{elevator.taro-1d749ab0.js → elevator.taro-c4ed99e4.js} +1 -1
- package/dist/esm/{ellipsis.taro-660e2ee9.js → ellipsis.taro-f15f26da.js} +16 -8
- package/dist/esm/{empty.taro-7bd813f9.js → empty.taro-04ae4389.js} +2 -2
- package/dist/esm/{fixednav.taro-84930e08.js → fixednav.taro-1f05acaf.js} +5 -5
- package/dist/esm/{form.taro-ce791a58.js → form.taro-0c8e7a39.js} +3 -3
- package/dist/esm/{formitem.taro-f2ed02d4.js → formitem.taro-190a3326.js} +2 -2
- package/dist/esm/{grid.taro-9410ff69.js → grid.taro-3503b82c.js} +3 -3
- package/dist/esm/{griditem.taro-26863577.js → griditem.taro-da155df6.js} +5 -5
- package/dist/esm/{icon-2242973e.js → icon-296a1bec.js} +1 -1
- package/dist/esm/{icon.taro-c9254a81.js → icon.taro-296a1bec.js} +1 -1
- package/dist/esm/{image.taro-1d867416.js → image.taro-142cf512.js} +2 -2
- package/dist/esm/{imagepreview.taro-3a5722e8.js → imagepreview.taro-c50bb0a3.js} +3 -3
- package/dist/esm/{indicator.taro-25682172.js → indicator.taro-cba8b010.js} +1 -1
- package/dist/esm/{infiniteloading.taro-8ead43b0.js → infiniteloading.taro-e66e3746.js} +4 -4
- package/dist/esm/{input.taro-fe0248b1.js → input.taro-27e1262b.js} +3 -3
- package/dist/esm/{inputnumber.taro-94c75663.js → inputnumber.taro-7c2d7e85.js} +3 -3
- package/dist/esm/{menu.taro-e5b84501.js → menu.taro-7e4038a1.js} +2 -2
- package/dist/esm/{menuitem.taro-f2129be6.js → menuitem.taro-96cc4f15.js} +4 -4
- package/dist/esm/{navbar.taro-70514adf.js → navbar.taro-777c4705.js} +3 -3
- package/dist/esm/{noticebar.taro-22486646.js → noticebar.taro-4a23cdee.js} +4 -4
- package/dist/esm/{notify.taro-3a424269.js → notify.taro-e17c6f82.js} +1 -1
- package/dist/esm/{numberkeyboard.taro-78224b3a.js → numberkeyboard.taro-1bc24744.js} +3 -3
- package/dist/esm/nutui-react.es.js +107 -107
- package/dist/esm/{overlay.taro-1e74a71d.js → overlay.taro-21e87fb1.js} +1 -1
- package/dist/esm/{pagination.taro-bb490de9.js → pagination.taro-715a173b.js} +2 -2
- package/dist/esm/{picker.taro-4298ce4e.js → picker.taro-ab396b2d.js} +7 -6
- package/dist/esm/{popover.taro-f144cd02.js → popover.taro-ad5e76ea.js} +4 -4
- package/dist/esm/{popup.taro-6e81162a.js → popup.taro-01676bff.js} +4 -4
- package/dist/esm/{price.taro-8801462e.js → price.taro-776ed16e.js} +1 -1
- package/dist/esm/{progress.taro-773482ed.js → progress.taro-f0ce38e9.js} +3 -3
- package/dist/esm/{pulltorefresh.taro-2b50fdf3.js → pulltorefresh.taro-dc15ab1a.js} +2 -2
- package/dist/esm/{index.taro-84346556.js → radio.taro-a6eff96c.js} +7 -9
- package/dist/esm/{range.taro-b628f1ed.js → range.taro-8688b321.js} +4 -4
- package/dist/esm/{rate.taro-f18381f3.js → rate.taro-6cdf03bd.js} +3 -3
- package/dist/esm/{row.taro-4e697aa2.js → row.taro-f64d4a13.js} +1 -1
- package/dist/esm/{searchbar.taro-bc3e87bc.js → searchbar.taro-0c25927b.js} +4 -4
- package/dist/esm/{shortpassword.taro-7dfb72fb.js → shortpassword.taro-9ee034f7.js} +5 -5
- package/dist/esm/{sidenavbar.taro-e03a5287.js → sidenavbar.taro-c307b35e.js} +3 -3
- package/dist/esm/{signature.taro-45d1dde3.js → signature.taro-ec4e713b.js} +3 -3
- package/dist/esm/{skeleton.taro-38e2fca2.js → skeleton.taro-76faf63f.js} +2 -2
- package/dist/esm/{step.taro-891c020b.js → step.taro-b7903e8c.js} +4 -4
- package/dist/esm/{steps.taro-acf205a0.js → steps.taro-c82d2252.js} +2 -2
- package/dist/esm/{sticky.taro-b15d1173.js → sticky.taro-d5b6eabe.js} +3 -3
- package/dist/esm/{subsidenavbar.taro-f46b4c73.js → subsidenavbar.taro-69cb9752.js} +1 -1
- package/dist/esm/{swipe.taro-9375a9a1.js → swipe.taro-ea35f07f.js} +3 -3
- package/dist/esm/{swiper.taro-8164df5b.js → swiper.taro-7a94e211.js} +2 -2
- package/dist/esm/{swiperitem-86a3578a.js → swiperitem-c9e3d0d5.js} +2 -2
- package/dist/esm/{switch.taro-bae2dca0.js → switch.taro-34ca8228.js} +1 -1
- package/dist/esm/{tabbar.taro-17d898d9.js → tabbar.taro-9acfc2fa.js} +1 -1
- package/dist/esm/{tabbaritem.taro-3643f585.js → tabbaritem.taro-bf517487.js} +3 -3
- package/dist/esm/{table.taro-6119a948.js → table.taro-91fc0c01.js} +4 -4
- package/dist/esm/{tabpane.taro-9512e308.js → tabpane.taro-4ca340ef.js} +1 -1
- package/dist/esm/{tabs.taro-95edd45d.js → tabs.taro-07e4adce.js} +4 -4
- package/dist/esm/{tag.taro-64f37bd9.js → tag.taro-23ba0834.js} +3 -2
- package/dist/esm/{textarea.taro-2a12788b.js → textarea.taro-92a1651c.js} +2 -2
- package/dist/esm/{timedetail.taro-c5f564fd.js → timedetail.taro-5b2f2269.js} +2 -2
- package/dist/esm/{timepannel.taro-29f9dd86.js → timepannel.taro-d6e40180.js} +2 -2
- package/dist/esm/{timeselect.taro-f276b0a9.js → timeselect.taro-a07036f4.js} +5 -5
- package/dist/esm/{toast.taro-0f972a92.js → toast.taro-d6c14811.js} +2 -2
- package/dist/esm/{trendarrow.taro-d79fc8e2.js → trendarrow.taro-b8c5ccd9.js} +2 -2
- package/dist/esm/{uploader.taro-77396b5d.js → uploader.taro-c615fd4c.js} +7 -7
- package/dist/esm/{video-8a3518c5.js → video-f1be8a91.js} +1 -1
- package/dist/esm/{virtuallist.taro-1688484f.js → virtuallist.taro-f0b0270d.js} +1 -1
- package/dist/esm/{watermark.taro-a948c735.js → watermark.taro-9ce2ae37.js} +2 -2
- package/dist/esm/{zh-CN-dfc384d0.js → zh-CN-c779e6c1.js} +1 -0
- package/dist/locales/base.d.ts +1 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +2 -1
- package/dist/locales/id-ID.js +2 -1
- package/dist/locales/zh-CN.js +2 -1
- package/dist/locales/zh-TW.js +2 -1
- package/dist/locales/zh-UG.js +2 -1
- package/dist/nutui.react.mjs +70 -41
- package/dist/nutui.react.umd.js +70 -41
- package/dist/packages/button/button.scss +1 -0
- package/dist/packages/cell/cell.scss +3 -0
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +2 -4
- /package/dist/esm/{AvatarContext-7153ad2b.js → AvatarContext-c96afdcc.js} +0 -0
- /package/dist/esm/{UserContext-68f62e66.js → UserContext-0aac9a82.js} +0 -0
- /package/dist/esm/{UserContext-b4181162.js → UserContext-e402e1a6.js} +0 -0
- /package/dist/esm/{UserContext-be8097d2.js → UserContext-e8176108.js} +0 -0
- /package/dist/esm/{bem-893ad28d.js → bem-350c1702.js} +0 -0
- /package/dist/esm/{get-scroll-parent-3dcd3f53.js → get-scroll-parent-5d508382.js} +0 -0
- /package/dist/esm/{grid.taro.context-39636af9.js → grid.taro.context-c2bbfb4f.js} +0 -0
- /package/dist/esm/{index-a90733f9.js → index-5bcb0ff8.js} +0 -0
- /package/dist/esm/{layout.taro-358f014f.js → layout.taro-9046d093.js} +0 -0
- /package/dist/esm/{offsetContext-bfb02c25.js → offsetContext-c2a746fa.js} +0 -0
- /package/dist/esm/{sidenavbaritem.taro-fee11d26.js → sidenavbaritem.taro-5a7965d0.js} +0 -0
- /package/dist/esm/{typings-1c5f2628.js → typings-b9828dba.js} +0 -0
- /package/dist/esm/{useClientRect-4506e52f.js → useClientRect-1f8ed1fe.js} +0 -0
- /package/dist/esm/{useTouch-a2ea68c6.js → useTouch-db24bb5c.js} +0 -0
package/dist/nutui.react.mjs
CHANGED
|
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5
5
|
return value;
|
|
6
6
|
};
|
|
7
7
|
/*!
|
|
8
|
-
* @nutui/nutui-react-taro v1.4.
|
|
8
|
+
* @nutui/nutui-react-taro v1.4.12-beta.0 Wed Mar 22 2023 15:56:29 GMT+0800 (中国标准时间)
|
|
9
9
|
* (c) 2023 @jdf2e.
|
|
10
10
|
* Released under the MIT License.
|
|
11
11
|
*/
|
|
@@ -324,7 +324,7 @@ const Button = (props) => {
|
|
|
324
324
|
...rest,
|
|
325
325
|
onClick: (e) => handleClick(e)
|
|
326
326
|
},
|
|
327
|
-
/* @__PURE__ */ React__default.createElement("div", { className: "nut-button__warp"
|
|
327
|
+
/* @__PURE__ */ React__default.createElement("div", { className: "nut-button__warp" }, loading && /* @__PURE__ */ React__default.createElement(
|
|
328
328
|
Icon$1,
|
|
329
329
|
{
|
|
330
330
|
classPrefix: iconClassPrefix,
|
|
@@ -780,6 +780,7 @@ const zhCN = {
|
|
|
780
780
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
781
781
|
end: "结束",
|
|
782
782
|
start: "开始",
|
|
783
|
+
confirm: "确认",
|
|
783
784
|
title: "日历选择",
|
|
784
785
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
785
786
|
today: "今天",
|
|
@@ -5017,7 +5018,7 @@ const Utils = {
|
|
|
5017
5018
|
* @return {String}
|
|
5018
5019
|
*/
|
|
5019
5020
|
getWhatDay(year, month, day) {
|
|
5020
|
-
const date = new Date(`${year}/${month}/${day}`);
|
|
5021
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
5021
5022
|
const index = date.getDay();
|
|
5022
5023
|
const dayNames = [
|
|
5023
5024
|
"星期日",
|
|
@@ -5035,7 +5036,7 @@ const Utils = {
|
|
|
5035
5036
|
* @return {Number}
|
|
5036
5037
|
*/
|
|
5037
5038
|
getMonthPreDay(year, month) {
|
|
5038
|
-
const date = new Date(`${year}/${month}/01`);
|
|
5039
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
5039
5040
|
let day = date.getDay();
|
|
5040
5041
|
if (day == 0) {
|
|
5041
5042
|
day = 7;
|
|
@@ -5092,7 +5093,7 @@ const Utils = {
|
|
|
5092
5093
|
*/
|
|
5093
5094
|
getDay(i) {
|
|
5094
5095
|
i = i || 0;
|
|
5095
|
-
let date = new Date();
|
|
5096
|
+
let date = /* @__PURE__ */ new Date();
|
|
5096
5097
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
5097
5098
|
date = new Date(date.getTime() + diff);
|
|
5098
5099
|
return this.date2Str(date);
|
|
@@ -5284,7 +5285,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5284
5285
|
};
|
|
5285
5286
|
const isCurrDay = (month, day) => {
|
|
5286
5287
|
const date = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
5287
|
-
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
5288
|
+
return Utils.isEqual(date, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
5288
5289
|
};
|
|
5289
5290
|
const confirm = () => {
|
|
5290
5291
|
const { type: type2 } = props;
|
|
@@ -5619,6 +5620,15 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
5619
5620
|
}
|
|
5620
5621
|
}
|
|
5621
5622
|
});
|
|
5623
|
+
} else {
|
|
5624
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5625
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
5626
|
+
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
5627
|
+
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
5628
|
+
});
|
|
5629
|
+
if (currentYearMonthIndex > -1) {
|
|
5630
|
+
current = currentYearMonthIndex;
|
|
5631
|
+
}
|
|
5622
5632
|
}
|
|
5623
5633
|
setDefaultRange(monthsNum, current);
|
|
5624
5634
|
state.currentIndex = current;
|
|
@@ -5773,14 +5783,14 @@ const defaultProps$13 = {
|
|
|
5773
5783
|
isAutoBackFill: false,
|
|
5774
5784
|
poppable: true,
|
|
5775
5785
|
visible: false,
|
|
5776
|
-
title: "
|
|
5786
|
+
title: "",
|
|
5777
5787
|
defaultValue: "",
|
|
5778
5788
|
startDate: Utils.getDay(0),
|
|
5779
5789
|
endDate: Utils.getDay(365),
|
|
5780
5790
|
showToday: true,
|
|
5781
|
-
startText: "
|
|
5782
|
-
endText: "
|
|
5783
|
-
confirmText: "
|
|
5791
|
+
startText: "",
|
|
5792
|
+
endText: "",
|
|
5793
|
+
confirmText: "",
|
|
5784
5794
|
showTitle: true,
|
|
5785
5795
|
showSubTitle: true,
|
|
5786
5796
|
toDateAnimation: true,
|
|
@@ -5857,14 +5867,14 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
5857
5867
|
type,
|
|
5858
5868
|
isAutoBackFill,
|
|
5859
5869
|
poppable,
|
|
5860
|
-
title: locale.calendaritem.title
|
|
5870
|
+
title: title || locale.calendaritem.title,
|
|
5861
5871
|
defaultValue,
|
|
5862
5872
|
startDate,
|
|
5863
5873
|
endDate,
|
|
5864
5874
|
showToday,
|
|
5865
|
-
startText,
|
|
5866
|
-
endText,
|
|
5867
|
-
confirmText,
|
|
5875
|
+
startText: startText || locale.calendaritem.start,
|
|
5876
|
+
endText: endText || locale.calendaritem.end,
|
|
5877
|
+
confirmText: confirmText || locale.calendaritem.confirm,
|
|
5868
5878
|
showTitle,
|
|
5869
5879
|
showSubTitle,
|
|
5870
5880
|
toDateAnimation,
|
|
@@ -7126,22 +7136,32 @@ const InternalPicker = (props, ref) => {
|
|
|
7126
7136
|
closeActionSheet();
|
|
7127
7137
|
}
|
|
7128
7138
|
},
|
|
7129
|
-
/* @__PURE__ */ React__default.createElement(
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
{
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
|
|
7143
|
-
|
|
7144
|
-
|
|
7139
|
+
/* @__PURE__ */ React__default.createElement(
|
|
7140
|
+
View,
|
|
7141
|
+
{
|
|
7142
|
+
className: `${b2()} ${className || ""}`,
|
|
7143
|
+
style,
|
|
7144
|
+
...rest,
|
|
7145
|
+
catchMove: true
|
|
7146
|
+
},
|
|
7147
|
+
renderToolbar(),
|
|
7148
|
+
/* @__PURE__ */ React__default.createElement("div", { className: b2("panel"), ref: pickerRef }, columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
7149
|
+
return /* @__PURE__ */ React__default.createElement(
|
|
7150
|
+
PickerSlot$1,
|
|
7151
|
+
{
|
|
7152
|
+
ref: setRefs(index),
|
|
7153
|
+
defaultValue: chooseValueData == null ? void 0 : chooseValueData[index],
|
|
7154
|
+
listData: item,
|
|
7155
|
+
threeDimensional,
|
|
7156
|
+
chooseItem: (value, index2) => chooseItem(value, index2),
|
|
7157
|
+
swipeDuration,
|
|
7158
|
+
key: index,
|
|
7159
|
+
keyIndex: index,
|
|
7160
|
+
itemShow: isVisible
|
|
7161
|
+
}
|
|
7162
|
+
);
|
|
7163
|
+
}))
|
|
7164
|
+
)
|
|
7145
7165
|
);
|
|
7146
7166
|
};
|
|
7147
7167
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
@@ -7158,7 +7178,7 @@ const ConfigContext = createContext(null);
|
|
|
7158
7178
|
const useConfig = () => {
|
|
7159
7179
|
return useContext(ConfigContext) ?? getDefaultConfig();
|
|
7160
7180
|
};
|
|
7161
|
-
const currentYear = new Date().getFullYear();
|
|
7181
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7162
7182
|
const defaultProps$_ = {
|
|
7163
7183
|
modelValue: null,
|
|
7164
7184
|
visible: false,
|
|
@@ -10247,7 +10267,7 @@ class FileItem {
|
|
|
10247
10267
|
constructor() {
|
|
10248
10268
|
__publicField(this, "status", "ready");
|
|
10249
10269
|
__publicField(this, "message", "准备中..");
|
|
10250
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
10270
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
10251
10271
|
__publicField(this, "name");
|
|
10252
10272
|
__publicField(this, "url");
|
|
10253
10273
|
__publicField(this, "type");
|
|
@@ -17540,7 +17560,7 @@ const Ellipsis = (props) => {
|
|
|
17540
17560
|
const root2 = useRef(null);
|
|
17541
17561
|
const rootContain = useRef(null);
|
|
17542
17562
|
const symbolContain = useRef(null);
|
|
17543
|
-
const
|
|
17563
|
+
const [contentCopy, setContentCopy] = useState(content);
|
|
17544
17564
|
let lineH = 0;
|
|
17545
17565
|
let originHeight = 0;
|
|
17546
17566
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
@@ -17551,12 +17571,17 @@ const Ellipsis = (props) => {
|
|
|
17551
17571
|
const digitReg = /^[0-9]+$/;
|
|
17552
17572
|
const letterUpperReg = /^[A-Z]+$/;
|
|
17553
17573
|
const letterLowerReg = /^[a-z]+$/;
|
|
17554
|
-
|
|
17574
|
+
const init = () => {
|
|
17575
|
+
setExceeded(false);
|
|
17576
|
+
setExpanded(false);
|
|
17577
|
+
setContentCopy(content);
|
|
17555
17578
|
nextTick(() => {
|
|
17556
17579
|
getSymbolInfo();
|
|
17557
17580
|
getReference();
|
|
17558
17581
|
});
|
|
17559
|
-
}
|
|
17582
|
+
};
|
|
17583
|
+
useReady(() => init());
|
|
17584
|
+
useEffect(() => init(), [content]);
|
|
17560
17585
|
const getSymbolInfo = async () => {
|
|
17561
17586
|
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
17562
17587
|
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
@@ -17582,6 +17607,8 @@ const Ellipsis = (props) => {
|
|
|
17582
17607
|
]
|
|
17583
17608
|
},
|
|
17584
17609
|
(res) => {
|
|
17610
|
+
if (!res)
|
|
17611
|
+
return;
|
|
17585
17612
|
lineH = pxToNumber(
|
|
17586
17613
|
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
17587
17614
|
);
|
|
@@ -17656,7 +17683,8 @@ const Ellipsis = (props) => {
|
|
|
17656
17683
|
};
|
|
17657
17684
|
const assignContent = () => {
|
|
17658
17685
|
var _a2, _b2, _c2, _d2;
|
|
17659
|
-
|
|
17686
|
+
const newContent = `${((_a2 = ellipsis.current) == null ? void 0 : _a2.leading) || ""}${((_b2 = ellipsis.current) == null ? void 0 : _b2.leading) ? symbol : ""}${expandText || ""}${((_c2 = ellipsis.current) == null ? void 0 : _c2.tailing) ? symbol : ""}${((_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) || ""}`;
|
|
17687
|
+
setContentCopy(newContent);
|
|
17660
17688
|
};
|
|
17661
17689
|
const tailorContent = (left, right, type = "") => {
|
|
17662
17690
|
const threeDotWidth = symbolTextWidth;
|
|
@@ -17752,7 +17780,7 @@ const Ellipsis = (props) => {
|
|
|
17752
17780
|
id: `rootContain${refRandomId}`,
|
|
17753
17781
|
style: { width: `${widthRef}` }
|
|
17754
17782
|
},
|
|
17755
|
-
/* @__PURE__ */ React__default.createElement("div", null,
|
|
17783
|
+
/* @__PURE__ */ React__default.createElement("div", null, contentCopy)
|
|
17756
17784
|
), /* @__PURE__ */ React__default.createElement(
|
|
17757
17785
|
"div",
|
|
17758
17786
|
{
|
|
@@ -18331,7 +18359,7 @@ const ImagePreview = (props) => {
|
|
|
18331
18359
|
const touches = event.touches;
|
|
18332
18360
|
const events = touches[0];
|
|
18333
18361
|
const events2 = touches[1];
|
|
18334
|
-
const curTouchTime = new Date().getTime();
|
|
18362
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
18335
18363
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
18336
18364
|
const store12 = store;
|
|
18337
18365
|
if (store12.scale > 1) {
|
|
@@ -18385,7 +18413,7 @@ const ImagePreview = (props) => {
|
|
|
18385
18413
|
}
|
|
18386
18414
|
};
|
|
18387
18415
|
const onTouchEnd = () => {
|
|
18388
|
-
setLastTouchEndTime(new Date().getTime());
|
|
18416
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
18389
18417
|
const store1 = store;
|
|
18390
18418
|
store1.moveable = false;
|
|
18391
18419
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -19623,7 +19651,8 @@ const Tag = (props) => {
|
|
|
19623
19651
|
iconSize,
|
|
19624
19652
|
prefixCls,
|
|
19625
19653
|
onClick,
|
|
19626
|
-
onClose
|
|
19654
|
+
onClose,
|
|
19655
|
+
className
|
|
19627
19656
|
]);
|
|
19628
19657
|
const classes = () => {
|
|
19629
19658
|
const prefixCls2 = "nut-tag";
|
|
@@ -20819,7 +20848,7 @@ const InternalBarrage = (props, ref) => {
|
|
|
20819
20848
|
const barrageListSet = useRef(barrageList);
|
|
20820
20849
|
const barrageBody = useRef(null);
|
|
20821
20850
|
const barrageContainer = useRef(null);
|
|
20822
|
-
const timeId = useRef(new Date().getTime());
|
|
20851
|
+
const timeId = useRef((/* @__PURE__ */ new Date()).getTime());
|
|
20823
20852
|
const timer = useRef(0);
|
|
20824
20853
|
useRef(0);
|
|
20825
20854
|
const b2 = cn("barrage");
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react-taro v1.4.
|
|
11
|
+
* @nutui/nutui-react-taro v1.4.12-beta.0 Wed Mar 22 2023 15:56:29 GMT+0800 (中国标准时间)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -340,7 +340,7 @@ var __publicField = (obj, key, value) => {
|
|
|
340
340
|
...rest,
|
|
341
341
|
onClick: (e) => handleClick(e)
|
|
342
342
|
},
|
|
343
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-button__warp"
|
|
343
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-button__warp" }, loading && /* @__PURE__ */ React.createElement(
|
|
344
344
|
Icon$1,
|
|
345
345
|
{
|
|
346
346
|
classPrefix: iconClassPrefix,
|
|
@@ -796,6 +796,7 @@ var __publicField = (obj, key, value) => {
|
|
|
796
796
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
797
797
|
end: "结束",
|
|
798
798
|
start: "开始",
|
|
799
|
+
confirm: "确认",
|
|
799
800
|
title: "日历选择",
|
|
800
801
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
801
802
|
today: "今天",
|
|
@@ -5033,7 +5034,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5033
5034
|
* @return {String}
|
|
5034
5035
|
*/
|
|
5035
5036
|
getWhatDay(year, month, day) {
|
|
5036
|
-
const date = new Date(`${year}/${month}/${day}`);
|
|
5037
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
5037
5038
|
const index = date.getDay();
|
|
5038
5039
|
const dayNames = [
|
|
5039
5040
|
"星期日",
|
|
@@ -5051,7 +5052,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5051
5052
|
* @return {Number}
|
|
5052
5053
|
*/
|
|
5053
5054
|
getMonthPreDay(year, month) {
|
|
5054
|
-
const date = new Date(`${year}/${month}/01`);
|
|
5055
|
+
const date = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
5055
5056
|
let day = date.getDay();
|
|
5056
5057
|
if (day == 0) {
|
|
5057
5058
|
day = 7;
|
|
@@ -5108,7 +5109,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5108
5109
|
*/
|
|
5109
5110
|
getDay(i) {
|
|
5110
5111
|
i = i || 0;
|
|
5111
|
-
let date = new Date();
|
|
5112
|
+
let date = /* @__PURE__ */ new Date();
|
|
5112
5113
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
5113
5114
|
date = new Date(date.getTime() + diff);
|
|
5114
5115
|
return this.date2Str(date);
|
|
@@ -5300,7 +5301,7 @@ var __publicField = (obj, key, value) => {
|
|
|
5300
5301
|
};
|
|
5301
5302
|
const isCurrDay = (month, day) => {
|
|
5302
5303
|
const date = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
5303
|
-
return Utils.isEqual(date, Utils.date2Str(new Date()));
|
|
5304
|
+
return Utils.isEqual(date, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
5304
5305
|
};
|
|
5305
5306
|
const confirm = () => {
|
|
5306
5307
|
const { type: type2 } = props;
|
|
@@ -5635,6 +5636,15 @@ var __publicField = (obj, key, value) => {
|
|
|
5635
5636
|
}
|
|
5636
5637
|
}
|
|
5637
5638
|
});
|
|
5639
|
+
} else {
|
|
5640
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
5641
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
5642
|
+
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
5643
|
+
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
5644
|
+
});
|
|
5645
|
+
if (currentYearMonthIndex > -1) {
|
|
5646
|
+
current = currentYearMonthIndex;
|
|
5647
|
+
}
|
|
5638
5648
|
}
|
|
5639
5649
|
setDefaultRange(monthsNum, current);
|
|
5640
5650
|
state.currentIndex = current;
|
|
@@ -5789,14 +5799,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5789
5799
|
isAutoBackFill: false,
|
|
5790
5800
|
poppable: true,
|
|
5791
5801
|
visible: false,
|
|
5792
|
-
title: "
|
|
5802
|
+
title: "",
|
|
5793
5803
|
defaultValue: "",
|
|
5794
5804
|
startDate: Utils.getDay(0),
|
|
5795
5805
|
endDate: Utils.getDay(365),
|
|
5796
5806
|
showToday: true,
|
|
5797
|
-
startText: "
|
|
5798
|
-
endText: "
|
|
5799
|
-
confirmText: "
|
|
5807
|
+
startText: "",
|
|
5808
|
+
endText: "",
|
|
5809
|
+
confirmText: "",
|
|
5800
5810
|
showTitle: true,
|
|
5801
5811
|
showSubTitle: true,
|
|
5802
5812
|
toDateAnimation: true,
|
|
@@ -5873,14 +5883,14 @@ var __publicField = (obj, key, value) => {
|
|
|
5873
5883
|
type,
|
|
5874
5884
|
isAutoBackFill,
|
|
5875
5885
|
poppable,
|
|
5876
|
-
title: locale.calendaritem.title
|
|
5886
|
+
title: title || locale.calendaritem.title,
|
|
5877
5887
|
defaultValue,
|
|
5878
5888
|
startDate,
|
|
5879
5889
|
endDate,
|
|
5880
5890
|
showToday,
|
|
5881
|
-
startText,
|
|
5882
|
-
endText,
|
|
5883
|
-
confirmText,
|
|
5891
|
+
startText: startText || locale.calendaritem.start,
|
|
5892
|
+
endText: endText || locale.calendaritem.end,
|
|
5893
|
+
confirmText: confirmText || locale.calendaritem.confirm,
|
|
5884
5894
|
showTitle,
|
|
5885
5895
|
showSubTitle,
|
|
5886
5896
|
toDateAnimation,
|
|
@@ -7142,22 +7152,32 @@ var __publicField = (obj, key, value) => {
|
|
|
7142
7152
|
closeActionSheet();
|
|
7143
7153
|
}
|
|
7144
7154
|
},
|
|
7145
|
-
/* @__PURE__ */ React.createElement(
|
|
7146
|
-
|
|
7147
|
-
|
|
7148
|
-
{
|
|
7149
|
-
|
|
7150
|
-
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7155
|
+
/* @__PURE__ */ React.createElement(
|
|
7156
|
+
components.View,
|
|
7157
|
+
{
|
|
7158
|
+
className: `${b2()} ${className || ""}`,
|
|
7159
|
+
style,
|
|
7160
|
+
...rest,
|
|
7161
|
+
catchMove: true
|
|
7162
|
+
},
|
|
7163
|
+
renderToolbar(),
|
|
7164
|
+
/* @__PURE__ */ React.createElement("div", { className: b2("panel"), ref: pickerRef }, columnsList == null ? void 0 : columnsList.map((item, index) => {
|
|
7165
|
+
return /* @__PURE__ */ React.createElement(
|
|
7166
|
+
PickerSlot$1,
|
|
7167
|
+
{
|
|
7168
|
+
ref: setRefs(index),
|
|
7169
|
+
defaultValue: chooseValueData == null ? void 0 : chooseValueData[index],
|
|
7170
|
+
listData: item,
|
|
7171
|
+
threeDimensional,
|
|
7172
|
+
chooseItem: (value, index2) => chooseItem(value, index2),
|
|
7173
|
+
swipeDuration,
|
|
7174
|
+
key: index,
|
|
7175
|
+
keyIndex: index,
|
|
7176
|
+
itemShow: isVisible
|
|
7177
|
+
}
|
|
7178
|
+
);
|
|
7179
|
+
}))
|
|
7180
|
+
)
|
|
7161
7181
|
);
|
|
7162
7182
|
};
|
|
7163
7183
|
const Picker = React.forwardRef(InternalPicker);
|
|
@@ -7174,7 +7194,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7174
7194
|
const useConfig = () => {
|
|
7175
7195
|
return React.useContext(ConfigContext) ?? getDefaultConfig();
|
|
7176
7196
|
};
|
|
7177
|
-
const currentYear = new Date().getFullYear();
|
|
7197
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
7178
7198
|
const defaultProps$_ = {
|
|
7179
7199
|
modelValue: null,
|
|
7180
7200
|
visible: false,
|
|
@@ -10263,7 +10283,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10263
10283
|
constructor() {
|
|
10264
10284
|
__publicField(this, "status", "ready");
|
|
10265
10285
|
__publicField(this, "message", "准备中..");
|
|
10266
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
10286
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
10267
10287
|
__publicField(this, "name");
|
|
10268
10288
|
__publicField(this, "url");
|
|
10269
10289
|
__publicField(this, "type");
|
|
@@ -17556,7 +17576,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17556
17576
|
const root2 = React.useRef(null);
|
|
17557
17577
|
const rootContain = React.useRef(null);
|
|
17558
17578
|
const symbolContain = React.useRef(null);
|
|
17559
|
-
const
|
|
17579
|
+
const [contentCopy, setContentCopy] = React.useState(content);
|
|
17560
17580
|
let lineH = 0;
|
|
17561
17581
|
let originHeight = 0;
|
|
17562
17582
|
const refRandomId = Math.random().toString(36).slice(-8);
|
|
@@ -17567,12 +17587,17 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17567
17587
|
const digitReg = /^[0-9]+$/;
|
|
17568
17588
|
const letterUpperReg = /^[A-Z]+$/;
|
|
17569
17589
|
const letterLowerReg = /^[a-z]+$/;
|
|
17570
|
-
|
|
17590
|
+
const init = () => {
|
|
17591
|
+
setExceeded(false);
|
|
17592
|
+
setExpanded(false);
|
|
17593
|
+
setContentCopy(content);
|
|
17571
17594
|
Taro.nextTick(() => {
|
|
17572
17595
|
getSymbolInfo();
|
|
17573
17596
|
getReference();
|
|
17574
17597
|
});
|
|
17575
|
-
}
|
|
17598
|
+
};
|
|
17599
|
+
Taro.useReady(() => init());
|
|
17600
|
+
React.useEffect(() => init(), [content]);
|
|
17576
17601
|
const getSymbolInfo = async () => {
|
|
17577
17602
|
const refe = await getRectByTaro(symbolContain == null ? void 0 : symbolContain.current);
|
|
17578
17603
|
symbolTextWidth = refe.width ? Math.ceil(refe.width) : Math.ceil(widthBase[0] * 0.7921);
|
|
@@ -17598,6 +17623,8 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17598
17623
|
]
|
|
17599
17624
|
},
|
|
17600
17625
|
(res) => {
|
|
17626
|
+
if (!res)
|
|
17627
|
+
return;
|
|
17601
17628
|
lineH = pxToNumber(
|
|
17602
17629
|
res.lineHeight === "normal" ? lineHeight : res.lineHeight
|
|
17603
17630
|
);
|
|
@@ -17672,7 +17699,8 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17672
17699
|
};
|
|
17673
17700
|
const assignContent = () => {
|
|
17674
17701
|
var _a2, _b2, _c2, _d2;
|
|
17675
|
-
|
|
17702
|
+
const newContent = `${((_a2 = ellipsis.current) == null ? void 0 : _a2.leading) || ""}${((_b2 = ellipsis.current) == null ? void 0 : _b2.leading) ? symbol : ""}${expandText || ""}${((_c2 = ellipsis.current) == null ? void 0 : _c2.tailing) ? symbol : ""}${((_d2 = ellipsis.current) == null ? void 0 : _d2.tailing) || ""}`;
|
|
17703
|
+
setContentCopy(newContent);
|
|
17676
17704
|
};
|
|
17677
17705
|
const tailorContent = (left, right, type = "") => {
|
|
17678
17706
|
const threeDotWidth = symbolTextWidth;
|
|
@@ -17768,7 +17796,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
17768
17796
|
id: `rootContain${refRandomId}`,
|
|
17769
17797
|
style: { width: `${widthRef}` }
|
|
17770
17798
|
},
|
|
17771
|
-
/* @__PURE__ */ React.createElement("div", null,
|
|
17799
|
+
/* @__PURE__ */ React.createElement("div", null, contentCopy)
|
|
17772
17800
|
), /* @__PURE__ */ React.createElement(
|
|
17773
17801
|
"div",
|
|
17774
17802
|
{
|
|
@@ -18347,7 +18375,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
18347
18375
|
const touches = event.touches;
|
|
18348
18376
|
const events = touches[0];
|
|
18349
18377
|
const events2 = touches[1];
|
|
18350
|
-
const curTouchTime = new Date().getTime();
|
|
18378
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
18351
18379
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
18352
18380
|
const store12 = store;
|
|
18353
18381
|
if (store12.scale > 1) {
|
|
@@ -18401,7 +18429,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
18401
18429
|
}
|
|
18402
18430
|
};
|
|
18403
18431
|
const onTouchEnd = () => {
|
|
18404
|
-
setLastTouchEndTime(new Date().getTime());
|
|
18432
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
18405
18433
|
const store1 = store;
|
|
18406
18434
|
store1.moveable = false;
|
|
18407
18435
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -19639,7 +19667,8 @@ This message will only show in development mode. It won't appear in production.
|
|
|
19639
19667
|
iconSize,
|
|
19640
19668
|
prefixCls,
|
|
19641
19669
|
onClick,
|
|
19642
|
-
onClose
|
|
19670
|
+
onClose,
|
|
19671
|
+
className
|
|
19643
19672
|
]);
|
|
19644
19673
|
const classes = () => {
|
|
19645
19674
|
const prefixCls2 = "nut-tag";
|
|
@@ -20835,7 +20864,7 @@ This message will only show in development mode. It won't appear in production.
|
|
|
20835
20864
|
const barrageListSet = React.useRef(barrageList);
|
|
20836
20865
|
const barrageBody = React.useRef(null);
|
|
20837
20866
|
const barrageContainer = React.useRef(null);
|
|
20838
|
-
const timeId = React.useRef(new Date().getTime());
|
|
20867
|
+
const timeId = React.useRef((/* @__PURE__ */ new Date()).getTime());
|
|
20839
20868
|
const timer = React.useRef(0);
|
|
20840
20869
|
React.useRef(0);
|
|
20841
20870
|
const b2 = cn("barrage");
|