@nutui/nutui-react 1.4.11 → 1.4.12
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 +1 -1
- package/dist/esm/Address.js +2 -2
- package/dist/esm/Animate.js +1 -1
- package/dist/esm/AnimatingNumbers.js +1 -1
- package/dist/esm/Audio.js +2 -2
- package/dist/esm/Avatar.js +3 -3
- package/dist/esm/AvatarGroup.js +2 -2
- package/dist/esm/BackTop.js +1 -1
- package/dist/esm/Badge.js +2 -2
- package/dist/esm/Barrage.js +1 -1
- package/dist/esm/Button.js +1 -1
- package/dist/esm/Calendar.js +9 -9
- package/dist/esm/CalendarItem.js +12 -2
- package/dist/esm/Card.js +1 -1
- package/dist/esm/Cascader.js +5 -5
- package/dist/esm/Cell.js +2 -2
- package/dist/esm/CellGroup.js +3 -3
- package/dist/esm/Checkbox.js +4 -4
- package/dist/esm/CheckboxGroup.js +3 -3
- package/dist/esm/CircleProgress.js +2 -2
- package/dist/esm/Col.js +1 -1
- package/dist/esm/Collapse.js +1 -1
- package/dist/esm/CollapseItem.js +2 -2
- package/dist/esm/ConfigProvider.js +1 -0
- package/dist/esm/CountDown.js +1 -1
- package/dist/esm/Dialog.js +1 -1
- package/dist/esm/Divider.js +1 -1
- package/dist/esm/Drag.js +1 -1
- package/dist/esm/Elevator.js +1 -1
- package/dist/esm/Empty.js +1 -1
- package/dist/esm/FixedNav.js +2 -2
- package/dist/esm/Form.js +4 -4
- package/dist/esm/FormItem.js +3 -3
- package/dist/esm/Grid.js +2 -2
- package/dist/esm/GridItem.js +3 -3
- package/dist/esm/Icon.js +3 -3
- package/dist/esm/Indicator.js +1 -1
- package/dist/esm/Infiniteloading.js +2 -3
- package/dist/esm/Input.js +1 -1
- package/dist/esm/InputNumber.js +2 -2
- package/dist/esm/Menu.js +1 -1
- package/dist/esm/MenuItem.js +3 -3
- package/dist/esm/NavBar.js +2 -2
- package/dist/esm/NoticeBar.js +3 -3
- package/dist/esm/Notify.js +2 -2
- package/dist/esm/NumberKeyboard.js +1 -1
- package/dist/esm/Overlay.js +3 -3
- package/dist/esm/Pagination.js +1 -1
- package/dist/esm/Picker.js +2 -2
- package/dist/esm/Popover.js +2 -2
- package/dist/esm/Popup.js +3 -3
- package/dist/esm/Price.js +1 -1
- package/dist/esm/Progress.js +2 -2
- package/dist/esm/PullToRefresh.js +1 -1
- package/dist/esm/Radio.js +3 -3
- package/dist/esm/RadioGroup.js +3 -3
- package/dist/esm/Range.js +2 -2
- package/dist/esm/Rate.js +2 -2
- package/dist/esm/Row.js +1 -1
- package/dist/esm/SearchBar.js +2 -2
- package/dist/esm/ShortPassword.js +2 -2
- package/dist/esm/SideNavBar.js +1 -1
- package/dist/esm/Signature.js +1 -1
- package/dist/esm/Skeleton.js +1 -1
- package/dist/esm/Step.js +3 -3
- package/dist/esm/Steps.js +2 -2
- package/dist/esm/Sticky.js +3 -3
- package/dist/esm/SubSideNavBar.js +1 -1
- package/dist/esm/Swipe.js +3 -3
- package/dist/esm/Swiper.js +3 -3
- package/dist/esm/SwiperItem.js +2 -2
- package/dist/esm/Switch.js +2 -2
- package/dist/esm/TabPane.js +3 -3
- package/dist/esm/Tabbar.js +1 -1
- package/dist/esm/TabbarItem.js +2 -2
- package/dist/esm/Table.js +2 -2
- package/dist/esm/Tabs.js +4 -4
- package/dist/esm/Tag.js +2 -2
- package/dist/esm/TextArea.js +1 -1
- package/dist/esm/TimeDetail.js +1 -1
- package/dist/esm/TimePannel.js +1 -1
- package/dist/esm/TimeSelect.js +1 -1
- package/dist/esm/Toast.js +2 -2
- package/dist/esm/TrendArrow.js +1 -1
- package/dist/esm/Uploader.js +3 -3
- package/dist/esm/Video.js +1 -1
- package/dist/esm/WaterMark.js +1 -1
- package/dist/esm/{cellgroup-3402f96c.js → cellgroup-fcc72767.js} +1 -1
- package/dist/esm/{checkbox-6969a83f.js → checkbox-44e13cd0.js} +2 -2
- package/dist/esm/{formitem-4b58943b.js → formitem-8a73a5fb.js} +4 -3
- package/dist/esm/{icon-2242973e.js → icon-4ef1581c.js} +1 -1
- package/dist/esm/{overlay-85e1180a.js → overlay-de6c79d5.js} +1 -1
- package/dist/esm/{radio-e3ac1cef.js → radio-9f141e6b.js} +1 -1
- package/dist/esm/{tabpane-15f62234.js → tabpane-01075e6c.js} +1 -1
- package/dist/esm/{tabs-c13f8ffe.js → tabs-e1b4e4b1.js} +2 -2
- 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 +35 -24
- package/dist/nutui.react.umd.js +35 -24
- 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 +2 -0
- package/package.json +2 -4
- /package/dist/esm/{AvatarContext-7153ad2b.js → AvatarContext-15733596.js} +0 -0
- /package/dist/esm/{UserContext-68f62e66.js → UserContext-101ad4a4.js} +0 -0
- /package/dist/esm/{UserContext-b4181162.js → UserContext-2629d479.js} +0 -0
- /package/dist/esm/{UserContext-be8097d2.js → UserContext-b33bcf21.js} +0 -0
- /package/dist/esm/{bem-893ad28d.js → bem-3b438e61.js} +0 -0
- /package/dist/esm/{date-710f8c7c.js → date-c7aad4c0.js} +0 -0
- /package/dist/esm/{get-scroll-parent-3dcd3f53.js → get-scroll-parent-5f85dee8.js} +0 -0
- /package/dist/esm/{grid.context-e2f1ee97.js → grid.context-2ee27d95.js} +0 -0
- /package/dist/esm/{index-a90733f9.js → index-030b7245.js} +0 -0
- /package/dist/esm/{offsetContext-0e3d04b3.js → offsetContext-3ab00d40.js} +0 -0
- /package/dist/esm/{render-f8746530.js → render-bbebb760.js} +0 -0
- /package/dist/esm/{typings-1c5f2628.js → typings-f27b58f4.js} +0 -0
- /package/dist/esm/{useClientRect-839d18c5.js → useClientRect-56bb675b.js} +0 -0
- /package/dist/esm/{useTouch-a2ea68c6.js → useTouch-cf73a407.js} +0 -0
package/dist/esm/Uploader.js
CHANGED
|
@@ -11,10 +11,10 @@ import React__default, { useState, useEffect, useImperativeHandle } from 'react'
|
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import Icon from './Icon.js';
|
|
13
13
|
import Progress from './Progress.js';
|
|
14
|
-
import { c as cn } from './bem-
|
|
14
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
15
15
|
import { useConfig } from './ConfigProvider.js';
|
|
16
|
-
import { i as isPromise } from './index-
|
|
17
|
-
import { C as ComponentDefaults } from './typings-
|
|
16
|
+
import { i as isPromise } from './index-030b7245.js';
|
|
17
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
18
18
|
import '@bem-react/classname';
|
|
19
19
|
var UploadOptions = /*#__PURE__*/_createClass(function UploadOptions() {
|
|
20
20
|
_classCallCheck(this, UploadOptions);
|
package/dist/esm/Video.js
CHANGED
|
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
import React__default, { useRef, useEffect } from 'react';
|
|
7
7
|
import classNames from 'classnames';
|
|
8
|
-
import { c as cn } from './bem-
|
|
8
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
9
9
|
import '@bem-react/classname';
|
|
10
10
|
var defaultProps = {
|
|
11
11
|
source: {
|
package/dist/esm/WaterMark.js
CHANGED
|
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
6
|
import classNames from 'classnames';
|
|
7
7
|
import { useConfig } from './ConfigProvider.js';
|
|
8
|
-
import { c as cn } from './bem-
|
|
8
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
9
9
|
import '@bem-react/classname';
|
|
10
10
|
var defaultProps = {
|
|
11
11
|
content: '',
|
|
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
2
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import React__default from 'react';
|
|
5
|
-
import { c as cn } from './bem-
|
|
5
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
6
6
|
var defaultProps = {
|
|
7
7
|
title: '',
|
|
8
8
|
desc: '',
|
|
@@ -8,8 +8,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8
8
|
import React__default, { createContext, useContext, useState, useEffect } from 'react';
|
|
9
9
|
import Icon from './Icon.js';
|
|
10
10
|
import CheckboxGroup from './CheckboxGroup.js';
|
|
11
|
-
import { c as cn } from './bem-
|
|
12
|
-
import { C as ComponentDefaults } from './typings-
|
|
11
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
12
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
13
13
|
var CheckboxGroupContext = createContext(null);
|
|
14
14
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
15
15
|
checked: false,
|
|
@@ -11,7 +11,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
11
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
12
|
import React__default, { createContext } from 'react';
|
|
13
13
|
import Cell from './Cell.js';
|
|
14
|
-
import { C as ComponentDefaults } from './typings-
|
|
14
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
15
15
|
var FormItemContext = createContext({});
|
|
16
16
|
var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
|
|
17
17
|
name: '',
|
|
@@ -42,18 +42,19 @@ var FormItem = /*#__PURE__*/function (_React__default$Compo) {
|
|
|
42
42
|
_defineProperty(_assertThisInitialized(_this), "isInitialValue", false);
|
|
43
43
|
// children添加value属性和onChange事件
|
|
44
44
|
_defineProperty(_assertThisInitialized(_this), "getControlled", function (children) {
|
|
45
|
-
var _children$props;
|
|
45
|
+
var _children$props, _children$props2;
|
|
46
46
|
var _this$context = _this.context,
|
|
47
47
|
getFieldValue = _this$context.getFieldValue,
|
|
48
48
|
setFieldsValue = _this$context.setFieldsValue;
|
|
49
49
|
var name = _this.props.name;
|
|
50
50
|
var type = children.type.NAME;
|
|
51
|
-
var defaultvalue = _this.props.initialValue || ((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.defaultValue);
|
|
51
|
+
var defaultvalue = _this.props.initialValue || ((_children$props = children.props) === null || _children$props === void 0 ? void 0 : _children$props.defaultValue) || ((_children$props2 = children.props) === null || _children$props2 === void 0 ? void 0 : _children$props2.value);
|
|
52
52
|
if (defaultvalue && !_this.isInitialValue) {
|
|
53
53
|
setFieldsValue(_defineProperty({}, name, defaultvalue));
|
|
54
54
|
_this.isInitialValue = true;
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
+
value: getFieldValue(name),
|
|
57
58
|
defaultValue: getFieldValue(name),
|
|
58
59
|
onChange: function onChange(event) {
|
|
59
60
|
var originOnChange = children.props.onChange;
|
|
@@ -4,7 +4,7 @@ var _excluded = ["name", "size", "classPrefix", "color", "tag", "children", "cla
|
|
|
4
4
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
import React__default from 'react';
|
|
7
|
-
import { c as cn } from './bem-
|
|
7
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
8
8
|
var defaultProps = {
|
|
9
9
|
name: '',
|
|
10
10
|
size: '',
|
|
@@ -6,7 +6,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
8
8
|
import classNames from 'classnames';
|
|
9
|
-
import { c as cn } from './bem-
|
|
9
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
10
10
|
var defaultOverlayProps = {
|
|
11
11
|
zIndex: 1000,
|
|
12
12
|
duration: 0.3,
|
|
@@ -7,7 +7,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
7
7
|
import React__default, { useState, useContext, useEffect } from 'react';
|
|
8
8
|
import Icon from './Icon.js';
|
|
9
9
|
import RadioGroup from './RadioGroup.js';
|
|
10
|
-
import { C as ComponentDefaults } from './typings-
|
|
10
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
11
11
|
var radioContext = {
|
|
12
12
|
onChange: function onChange(val) {}
|
|
13
13
|
};
|
|
@@ -3,7 +3,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import { c as cn } from './bem-
|
|
6
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
7
7
|
var defaultProps = {
|
|
8
8
|
title: '',
|
|
9
9
|
paneKey: '',
|
|
@@ -8,9 +8,9 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
8
8
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
9
9
|
import React__default, { useState, useRef, useEffect } from 'react';
|
|
10
10
|
import classNames from 'classnames';
|
|
11
|
-
import { c as cn } from './bem-
|
|
11
|
+
import { c as cn } from './bem-3b438e61.js';
|
|
12
12
|
import Icon from './Icon.js';
|
|
13
|
-
import { C as ComponentDefaults } from './typings-
|
|
13
|
+
import { C as ComponentDefaults } from './typings-f27b58f4.js';
|
|
14
14
|
import TabPane from './TabPane.js';
|
|
15
15
|
var Title = /*#__PURE__*/_createClass(
|
|
16
16
|
// eslint-disable-next-line no-useless-constructor
|
package/dist/locales/base.d.ts
CHANGED
package/dist/locales/base.js
CHANGED
package/dist/locales/en-US.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:50:16 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,6 +33,7 @@ const o = {
|
|
|
33
33
|
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
34
34
|
end: "End",
|
|
35
35
|
start: "Start",
|
|
36
|
+
confirm: "Confirm",
|
|
36
37
|
title: "Calendar",
|
|
37
38
|
monthTitle: (e, t) => `${e}/${t}`,
|
|
38
39
|
today: "Today",
|
package/dist/locales/id-ID.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:50:16 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,6 +33,7 @@ const n = {
|
|
|
33
33
|
weekdays: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
34
34
|
end: "Selesai",
|
|
35
35
|
start: "Mulai",
|
|
36
|
+
confirm: "Mengonfirmasi",
|
|
36
37
|
title: "Kalender",
|
|
37
38
|
monthTitle: (a, e) => `${a}/${e}`,
|
|
38
39
|
today: "Hari ini",
|
package/dist/locales/zh-CN.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:50:16 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -35,6 +35,7 @@ const a = {
|
|
|
35
35
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
36
36
|
end: "结束",
|
|
37
37
|
start: "开始",
|
|
38
|
+
confirm: "确认",
|
|
38
39
|
title: "日历选择",
|
|
39
40
|
monthTitle: (e, t) => `${e}年${t}月`,
|
|
40
41
|
today: "今天",
|
package/dist/locales/zh-TW.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:50:16 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,6 +33,7 @@ const a = {
|
|
|
33
33
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
34
34
|
end: "結束",
|
|
35
35
|
start: "開始",
|
|
36
|
+
confirm: "確認",
|
|
36
37
|
title: "行事曆選擇",
|
|
37
38
|
monthTitle: (e, t) => `${e}年${t}月`,
|
|
38
39
|
today: "今天",
|
package/dist/locales/zh-UG.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* @nutui/nutui-react v1.4.
|
|
2
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:50:16 GMT+0800 (中国标准时间)
|
|
3
3
|
* (c) 2023 @jdf2e.
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -33,6 +33,7 @@ const a = {
|
|
|
33
33
|
weekdays: ["ي", "د", "س", "چ", "پ", "ج", "ش"],
|
|
34
34
|
end: "ئاخىرى",
|
|
35
35
|
start: "بېشى",
|
|
36
|
+
confirm: "جەزملەشتۈرۈڭ",
|
|
36
37
|
title: "تاللاڭ",
|
|
37
38
|
monthTitle: (e, t) => `${e} يىلى ${t} ئاي`,
|
|
38
39
|
today: "بۈگۈن",
|
package/dist/nutui.react.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
var _a;
|
|
8
8
|
/*!
|
|
9
|
-
* @nutui/nutui-react v1.4.
|
|
9
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:49:25 GMT+0800 (中国标准时间)
|
|
10
10
|
* (c) 2023 @jdf2e.
|
|
11
11
|
* Released under the MIT License.
|
|
12
12
|
*/
|
|
@@ -776,6 +776,7 @@ const zhCN = {
|
|
|
776
776
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
777
777
|
end: "结束",
|
|
778
778
|
start: "开始",
|
|
779
|
+
confirm: "确认",
|
|
779
780
|
title: "日历选择",
|
|
780
781
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
781
782
|
today: "今天",
|
|
@@ -10203,7 +10204,7 @@ const Utils = {
|
|
|
10203
10204
|
* @return {String}
|
|
10204
10205
|
*/
|
|
10205
10206
|
getWhatDay(year, month, day) {
|
|
10206
|
-
const date4 = new Date(`${year}/${month}/${day}`);
|
|
10207
|
+
const date4 = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
10207
10208
|
const index = date4.getDay();
|
|
10208
10209
|
const dayNames = [
|
|
10209
10210
|
"星期日",
|
|
@@ -10221,7 +10222,7 @@ const Utils = {
|
|
|
10221
10222
|
* @return {Number}
|
|
10222
10223
|
*/
|
|
10223
10224
|
getMonthPreDay(year, month) {
|
|
10224
|
-
const date4 = new Date(`${year}/${month}/01`);
|
|
10225
|
+
const date4 = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
10225
10226
|
let day = date4.getDay();
|
|
10226
10227
|
if (day == 0) {
|
|
10227
10228
|
day = 7;
|
|
@@ -10278,7 +10279,7 @@ const Utils = {
|
|
|
10278
10279
|
*/
|
|
10279
10280
|
getDay(i) {
|
|
10280
10281
|
i = i || 0;
|
|
10281
|
-
let date4 = new Date();
|
|
10282
|
+
let date4 = /* @__PURE__ */ new Date();
|
|
10282
10283
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
10283
10284
|
date4 = new Date(date4.getTime() + diff);
|
|
10284
10285
|
return this.date2Str(date4);
|
|
@@ -10468,7 +10469,7 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
10468
10469
|
};
|
|
10469
10470
|
const isCurrDay = (month, day) => {
|
|
10470
10471
|
const date4 = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
10471
|
-
return Utils.isEqual(date4, Utils.date2Str(new Date()));
|
|
10472
|
+
return Utils.isEqual(date4, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
10472
10473
|
};
|
|
10473
10474
|
const confirm2 = () => {
|
|
10474
10475
|
const { type: type22 } = props;
|
|
@@ -10803,6 +10804,15 @@ const CalendarItem = React__default.forwardRef((props, ref) => {
|
|
|
10803
10804
|
}
|
|
10804
10805
|
}
|
|
10805
10806
|
});
|
|
10807
|
+
} else {
|
|
10808
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10809
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
10810
|
+
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
10811
|
+
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
10812
|
+
});
|
|
10813
|
+
if (currentYearMonthIndex > -1) {
|
|
10814
|
+
current = currentYearMonthIndex;
|
|
10815
|
+
}
|
|
10806
10816
|
}
|
|
10807
10817
|
setDefaultRange(monthsNum, current);
|
|
10808
10818
|
state.currentIndex = current;
|
|
@@ -10951,14 +10961,14 @@ const defaultProps$10 = {
|
|
|
10951
10961
|
isAutoBackFill: false,
|
|
10952
10962
|
poppable: true,
|
|
10953
10963
|
visible: false,
|
|
10954
|
-
title: "
|
|
10964
|
+
title: "",
|
|
10955
10965
|
defaultValue: "",
|
|
10956
10966
|
startDate: Utils.getDay(0),
|
|
10957
10967
|
endDate: Utils.getDay(365),
|
|
10958
10968
|
showToday: true,
|
|
10959
|
-
startText: "
|
|
10960
|
-
endText: "
|
|
10961
|
-
confirmText: "
|
|
10969
|
+
startText: "",
|
|
10970
|
+
endText: "",
|
|
10971
|
+
confirmText: "",
|
|
10962
10972
|
showTitle: true,
|
|
10963
10973
|
showSubTitle: true,
|
|
10964
10974
|
toDateAnimation: true,
|
|
@@ -11034,14 +11044,14 @@ const Calendar = React__default.forwardRef((props, ref) => {
|
|
|
11034
11044
|
type: type4,
|
|
11035
11045
|
isAutoBackFill,
|
|
11036
11046
|
poppable,
|
|
11037
|
-
title: locale.calendaritem.title
|
|
11047
|
+
title: title || locale.calendaritem.title,
|
|
11038
11048
|
defaultValue,
|
|
11039
11049
|
startDate,
|
|
11040
11050
|
endDate,
|
|
11041
11051
|
showToday,
|
|
11042
|
-
startText,
|
|
11043
|
-
endText,
|
|
11044
|
-
confirmText,
|
|
11052
|
+
startText: startText || locale.calendaritem.start,
|
|
11053
|
+
endText: endText || locale.calendaritem.end,
|
|
11054
|
+
confirmText: confirmText || locale.calendaritem.confirm,
|
|
11045
11055
|
showTitle,
|
|
11046
11056
|
showSubTitle,
|
|
11047
11057
|
toDateAnimation,
|
|
@@ -12303,7 +12313,7 @@ const InternalPicker = (props, ref) => {
|
|
|
12303
12313
|
};
|
|
12304
12314
|
const Picker = React__default.forwardRef(InternalPicker);
|
|
12305
12315
|
const Picker$1 = Picker;
|
|
12306
|
-
const currentYear = new Date().getFullYear();
|
|
12316
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
12307
12317
|
const defaultProps$X = {
|
|
12308
12318
|
modelValue: null,
|
|
12309
12319
|
visible: false,
|
|
@@ -13823,16 +13833,17 @@ class FormItem extends React__default.Component {
|
|
|
13823
13833
|
__publicField(this, "isInitialValue", false);
|
|
13824
13834
|
// children添加value属性和onChange事件
|
|
13825
13835
|
__publicField(this, "getControlled", (children) => {
|
|
13826
|
-
var _a2;
|
|
13836
|
+
var _a2, _b;
|
|
13827
13837
|
const { getFieldValue, setFieldsValue } = this.context;
|
|
13828
13838
|
const { name } = this.props;
|
|
13829
13839
|
const type4 = children.type.NAME;
|
|
13830
|
-
const defaultvalue = this.props.initialValue || ((_a2 = children.props) == null ? void 0 : _a2.defaultValue);
|
|
13840
|
+
const defaultvalue = this.props.initialValue || ((_a2 = children.props) == null ? void 0 : _a2.defaultValue) || ((_b = children.props) == null ? void 0 : _b.value);
|
|
13831
13841
|
if (defaultvalue && !this.isInitialValue) {
|
|
13832
13842
|
setFieldsValue({ [name]: defaultvalue });
|
|
13833
13843
|
this.isInitialValue = true;
|
|
13834
13844
|
}
|
|
13835
13845
|
return {
|
|
13846
|
+
value: getFieldValue(name),
|
|
13836
13847
|
defaultValue: getFieldValue(name),
|
|
13837
13848
|
onChange: (event) => {
|
|
13838
13849
|
const originOnChange = children.props.onChange;
|
|
@@ -16506,7 +16517,7 @@ class FileItem {
|
|
|
16506
16517
|
constructor() {
|
|
16507
16518
|
__publicField(this, "status", "ready");
|
|
16508
16519
|
__publicField(this, "message", "准备中..");
|
|
16509
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
16520
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
16510
16521
|
__publicField(this, "name");
|
|
16511
16522
|
__publicField(this, "url");
|
|
16512
16523
|
__publicField(this, "type");
|
|
@@ -17069,7 +17080,7 @@ const BackTop = (props) => {
|
|
|
17069
17080
|
};
|
|
17070
17081
|
const scrollAnimation = () => {
|
|
17071
17082
|
let cid = requestAniFrame2()(function fn() {
|
|
17072
|
-
const t = duration - Math.max(0, startTime -
|
|
17083
|
+
const t = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
|
|
17073
17084
|
const y = t * -scrollTop / duration + scrollTop;
|
|
17074
17085
|
scroll(y);
|
|
17075
17086
|
cid = requestAniFrame2()(fn);
|
|
@@ -17098,7 +17109,7 @@ const BackTop = (props) => {
|
|
|
17098
17109
|
}
|
|
17099
17110
|
const goTop = (e) => {
|
|
17100
17111
|
onClick && onClick(e);
|
|
17101
|
-
const otime =
|
|
17112
|
+
const otime = +/* @__PURE__ */ new Date();
|
|
17102
17113
|
startTime = otime;
|
|
17103
17114
|
isAnimation && duration > 0 ? scrollAnimation() : scroll();
|
|
17104
17115
|
};
|
|
@@ -17690,7 +17701,6 @@ const Infiniteloading = (props) => {
|
|
|
17690
17701
|
className: classes,
|
|
17691
17702
|
ref: scroller,
|
|
17692
17703
|
onTouchStart: touchStart,
|
|
17693
|
-
onTouchMove: touchMove,
|
|
17694
17704
|
onTouchEnd: touchEnd,
|
|
17695
17705
|
...restProps
|
|
17696
17706
|
},
|
|
@@ -17812,7 +17822,7 @@ class Notification extends React.PureComponent {
|
|
|
17812
17822
|
__publicField(Notification, "newInstance");
|
|
17813
17823
|
Notification.newInstance = (properties, callback) => {
|
|
17814
17824
|
const element = document.createElement("div");
|
|
17815
|
-
const id = properties.id ? properties.id : `${new Date().getTime()}`;
|
|
17825
|
+
const id = properties.id ? properties.id : `${(/* @__PURE__ */ new Date()).getTime()}`;
|
|
17816
17826
|
element.id = id;
|
|
17817
17827
|
properties.id = id;
|
|
17818
17828
|
document.body.appendChild(element);
|
|
@@ -20288,7 +20298,7 @@ const ImagePreview = (props) => {
|
|
|
20288
20298
|
const touches = event.touches;
|
|
20289
20299
|
const events = touches[0];
|
|
20290
20300
|
const events2 = touches[1];
|
|
20291
|
-
const curTouchTime = new Date().getTime();
|
|
20301
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
20292
20302
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
20293
20303
|
const store12 = store;
|
|
20294
20304
|
if (store12.scale > 1) {
|
|
@@ -20342,7 +20352,7 @@ const ImagePreview = (props) => {
|
|
|
20342
20352
|
}
|
|
20343
20353
|
};
|
|
20344
20354
|
const onTouchEnd = () => {
|
|
20345
|
-
setLastTouchEndTime(new Date().getTime());
|
|
20355
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
20346
20356
|
const store1 = store;
|
|
20347
20357
|
store1.moveable = false;
|
|
20348
20358
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -21561,7 +21571,8 @@ const Tag = (props) => {
|
|
|
21561
21571
|
iconSize,
|
|
21562
21572
|
prefixCls,
|
|
21563
21573
|
onClick,
|
|
21564
|
-
onClose
|
|
21574
|
+
onClose,
|
|
21575
|
+
className
|
|
21565
21576
|
]);
|
|
21566
21577
|
const classes = () => {
|
|
21567
21578
|
const prefixCls2 = "nut-tag";
|
package/dist/nutui.react.umd.js
CHANGED
|
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9
9
|
return value;
|
|
10
10
|
};
|
|
11
11
|
/*!
|
|
12
|
-
* @nutui/nutui-react v1.4.
|
|
12
|
+
* @nutui/nutui-react v1.4.12 Wed Mar 22 2023 15:49:25 GMT+0800 (中国标准时间)
|
|
13
13
|
* (c) 2023 @jdf2e.
|
|
14
14
|
* Released under the MIT License.
|
|
15
15
|
*/
|
|
@@ -794,6 +794,7 @@ var __publicField = (obj, key, value) => {
|
|
|
794
794
|
weekdays: ["日", "一", "二", "三", "四", "五", "六"],
|
|
795
795
|
end: "结束",
|
|
796
796
|
start: "开始",
|
|
797
|
+
confirm: "确认",
|
|
797
798
|
title: "日历选择",
|
|
798
799
|
monthTitle: (year, month) => `${year}年${month}月`,
|
|
799
800
|
today: "今天",
|
|
@@ -10221,7 +10222,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10221
10222
|
* @return {String}
|
|
10222
10223
|
*/
|
|
10223
10224
|
getWhatDay(year, month, day) {
|
|
10224
|
-
const date2 = new Date(`${year}/${month}/${day}`);
|
|
10225
|
+
const date2 = /* @__PURE__ */ new Date(`${year}/${month}/${day}`);
|
|
10225
10226
|
const index = date2.getDay();
|
|
10226
10227
|
const dayNames = [
|
|
10227
10228
|
"星期日",
|
|
@@ -10239,7 +10240,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10239
10240
|
* @return {Number}
|
|
10240
10241
|
*/
|
|
10241
10242
|
getMonthPreDay(year, month) {
|
|
10242
|
-
const date2 = new Date(`${year}/${month}/01`);
|
|
10243
|
+
const date2 = /* @__PURE__ */ new Date(`${year}/${month}/01`);
|
|
10243
10244
|
let day = date2.getDay();
|
|
10244
10245
|
if (day == 0) {
|
|
10245
10246
|
day = 7;
|
|
@@ -10296,7 +10297,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10296
10297
|
*/
|
|
10297
10298
|
getDay(i) {
|
|
10298
10299
|
i = i || 0;
|
|
10299
|
-
let date2 = new Date();
|
|
10300
|
+
let date2 = /* @__PURE__ */ new Date();
|
|
10300
10301
|
const diff = i * (1e3 * 60 * 60 * 24);
|
|
10301
10302
|
date2 = new Date(date2.getTime() + diff);
|
|
10302
10303
|
return this.date2Str(date2);
|
|
@@ -10486,7 +10487,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10486
10487
|
};
|
|
10487
10488
|
const isCurrDay = (month, day) => {
|
|
10488
10489
|
const date2 = `${month.curData[0]}-${month.curData[1]}-${day}`;
|
|
10489
|
-
return Utils.isEqual(date2, Utils.date2Str(new Date()));
|
|
10490
|
+
return Utils.isEqual(date2, Utils.date2Str(/* @__PURE__ */ new Date()));
|
|
10490
10491
|
};
|
|
10491
10492
|
const confirm2 = () => {
|
|
10492
10493
|
const { type: type22 } = props;
|
|
@@ -10821,6 +10822,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10821
10822
|
}
|
|
10822
10823
|
}
|
|
10823
10824
|
});
|
|
10825
|
+
} else {
|
|
10826
|
+
const currentYear2 = (/* @__PURE__ */ new Date()).getFullYear();
|
|
10827
|
+
const currentMonth = (/* @__PURE__ */ new Date()).getMonth() + 1;
|
|
10828
|
+
const currentYearMonthIndex = state.monthsData.findIndex((item) => {
|
|
10829
|
+
return +item.curData[0] === currentYear2 && +item.curData[1] === currentMonth;
|
|
10830
|
+
});
|
|
10831
|
+
if (currentYearMonthIndex > -1) {
|
|
10832
|
+
current = currentYearMonthIndex;
|
|
10833
|
+
}
|
|
10824
10834
|
}
|
|
10825
10835
|
setDefaultRange(monthsNum, current);
|
|
10826
10836
|
state.currentIndex = current;
|
|
@@ -10969,14 +10979,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10969
10979
|
isAutoBackFill: false,
|
|
10970
10980
|
poppable: true,
|
|
10971
10981
|
visible: false,
|
|
10972
|
-
title: "
|
|
10982
|
+
title: "",
|
|
10973
10983
|
defaultValue: "",
|
|
10974
10984
|
startDate: Utils.getDay(0),
|
|
10975
10985
|
endDate: Utils.getDay(365),
|
|
10976
10986
|
showToday: true,
|
|
10977
|
-
startText: "
|
|
10978
|
-
endText: "
|
|
10979
|
-
confirmText: "
|
|
10987
|
+
startText: "",
|
|
10988
|
+
endText: "",
|
|
10989
|
+
confirmText: "",
|
|
10980
10990
|
showTitle: true,
|
|
10981
10991
|
showSubTitle: true,
|
|
10982
10992
|
toDateAnimation: true,
|
|
@@ -11052,14 +11062,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11052
11062
|
type: type2,
|
|
11053
11063
|
isAutoBackFill,
|
|
11054
11064
|
poppable,
|
|
11055
|
-
title: locale.calendaritem.title
|
|
11065
|
+
title: title || locale.calendaritem.title,
|
|
11056
11066
|
defaultValue,
|
|
11057
11067
|
startDate,
|
|
11058
11068
|
endDate,
|
|
11059
11069
|
showToday,
|
|
11060
|
-
startText,
|
|
11061
|
-
endText,
|
|
11062
|
-
confirmText,
|
|
11070
|
+
startText: startText || locale.calendaritem.start,
|
|
11071
|
+
endText: endText || locale.calendaritem.end,
|
|
11072
|
+
confirmText: confirmText || locale.calendaritem.confirm,
|
|
11063
11073
|
showTitle,
|
|
11064
11074
|
showSubTitle,
|
|
11065
11075
|
toDateAnimation,
|
|
@@ -12321,7 +12331,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12321
12331
|
};
|
|
12322
12332
|
const Picker = React.forwardRef(InternalPicker);
|
|
12323
12333
|
const Picker$1 = Picker;
|
|
12324
|
-
const currentYear = new Date().getFullYear();
|
|
12334
|
+
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
12325
12335
|
const defaultProps$X = {
|
|
12326
12336
|
modelValue: null,
|
|
12327
12337
|
visible: false,
|
|
@@ -13841,16 +13851,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
13841
13851
|
__publicField(this, "isInitialValue", false);
|
|
13842
13852
|
// children添加value属性和onChange事件
|
|
13843
13853
|
__publicField(this, "getControlled", (children) => {
|
|
13844
|
-
var _a2;
|
|
13854
|
+
var _a2, _b;
|
|
13845
13855
|
const { getFieldValue, setFieldsValue } = this.context;
|
|
13846
13856
|
const { name } = this.props;
|
|
13847
13857
|
const type2 = children.type.NAME;
|
|
13848
|
-
const defaultvalue = this.props.initialValue || ((_a2 = children.props) == null ? void 0 : _a2.defaultValue);
|
|
13858
|
+
const defaultvalue = this.props.initialValue || ((_a2 = children.props) == null ? void 0 : _a2.defaultValue) || ((_b = children.props) == null ? void 0 : _b.value);
|
|
13849
13859
|
if (defaultvalue && !this.isInitialValue) {
|
|
13850
13860
|
setFieldsValue({ [name]: defaultvalue });
|
|
13851
13861
|
this.isInitialValue = true;
|
|
13852
13862
|
}
|
|
13853
13863
|
return {
|
|
13864
|
+
value: getFieldValue(name),
|
|
13854
13865
|
defaultValue: getFieldValue(name),
|
|
13855
13866
|
onChange: (event) => {
|
|
13856
13867
|
const originOnChange = children.props.onChange;
|
|
@@ -16524,7 +16535,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16524
16535
|
constructor() {
|
|
16525
16536
|
__publicField(this, "status", "ready");
|
|
16526
16537
|
__publicField(this, "message", "准备中..");
|
|
16527
|
-
__publicField(this, "uid", new Date().getTime().toString());
|
|
16538
|
+
__publicField(this, "uid", (/* @__PURE__ */ new Date()).getTime().toString());
|
|
16528
16539
|
__publicField(this, "name");
|
|
16529
16540
|
__publicField(this, "url");
|
|
16530
16541
|
__publicField(this, "type");
|
|
@@ -17087,7 +17098,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17087
17098
|
};
|
|
17088
17099
|
const scrollAnimation = () => {
|
|
17089
17100
|
let cid = requestAniFrame2()(function fn() {
|
|
17090
|
-
const t = duration - Math.max(0, startTime -
|
|
17101
|
+
const t = duration - Math.max(0, startTime - +/* @__PURE__ */ new Date() + duration / 2);
|
|
17091
17102
|
const y = t * -scrollTop / duration + scrollTop;
|
|
17092
17103
|
scroll(y);
|
|
17093
17104
|
cid = requestAniFrame2()(fn);
|
|
@@ -17116,7 +17127,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17116
17127
|
}
|
|
17117
17128
|
const goTop = (e) => {
|
|
17118
17129
|
onClick && onClick(e);
|
|
17119
|
-
const otime =
|
|
17130
|
+
const otime = +/* @__PURE__ */ new Date();
|
|
17120
17131
|
startTime = otime;
|
|
17121
17132
|
isAnimation && duration > 0 ? scrollAnimation() : scroll();
|
|
17122
17133
|
};
|
|
@@ -17708,7 +17719,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17708
17719
|
className: classes,
|
|
17709
17720
|
ref: scroller,
|
|
17710
17721
|
onTouchStart: touchStart,
|
|
17711
|
-
onTouchMove: touchMove,
|
|
17712
17722
|
onTouchEnd: touchEnd,
|
|
17713
17723
|
...restProps
|
|
17714
17724
|
},
|
|
@@ -17830,7 +17840,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17830
17840
|
__publicField(Notification, "newInstance");
|
|
17831
17841
|
Notification.newInstance = (properties, callback) => {
|
|
17832
17842
|
const element = document.createElement("div");
|
|
17833
|
-
const id = properties.id ? properties.id : `${new Date().getTime()}`;
|
|
17843
|
+
const id = properties.id ? properties.id : `${(/* @__PURE__ */ new Date()).getTime()}`;
|
|
17834
17844
|
element.id = id;
|
|
17835
17845
|
properties.id = id;
|
|
17836
17846
|
document.body.appendChild(element);
|
|
@@ -20306,7 +20316,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20306
20316
|
const touches = event.touches;
|
|
20307
20317
|
const events = touches[0];
|
|
20308
20318
|
const events2 = touches[1];
|
|
20309
|
-
const curTouchTime = new Date().getTime();
|
|
20319
|
+
const curTouchTime = (/* @__PURE__ */ new Date()).getTime();
|
|
20310
20320
|
if (curTouchTime - lastTouchEndTime < 300) {
|
|
20311
20321
|
const store12 = store;
|
|
20312
20322
|
if (store12.scale > 1) {
|
|
@@ -20360,7 +20370,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20360
20370
|
}
|
|
20361
20371
|
};
|
|
20362
20372
|
const onTouchEnd = () => {
|
|
20363
|
-
setLastTouchEndTime(new Date().getTime());
|
|
20373
|
+
setLastTouchEndTime((/* @__PURE__ */ new Date()).getTime());
|
|
20364
20374
|
const store1 = store;
|
|
20365
20375
|
store1.moveable = false;
|
|
20366
20376
|
if (store1.scale < 1.1 && store1.scale > 1 || store1.scale < 1) {
|
|
@@ -21579,7 +21589,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21579
21589
|
iconSize,
|
|
21580
21590
|
prefixCls,
|
|
21581
21591
|
onClick,
|
|
21582
|
-
onClose
|
|
21592
|
+
onClose,
|
|
21593
|
+
className
|
|
21583
21594
|
]);
|
|
21584
21595
|
const classes = () => {
|
|
21585
21596
|
const prefixCls2 = "nut-tag";
|