@chaoswise/ui 3.1.16 → 3.1.18
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/lib/Antd5/_util/isNumeric.js +4 -0
- package/lib/Antd5/avatar/group.js +121 -0
- package/lib/Antd5/button/LoadingIcon.js +82 -0
- package/lib/Antd5/pagination/Select.js +24 -0
- package/lib/BasicLayout/locale/en_US.js +4 -0
- package/lib/BasicLayout/locale/index.js +11 -0
- package/lib/BasicLayout/locale/zh_CN.js +4 -0
- package/lib/BasicLayout/locale/zh_TW.js +4 -0
- package/lib/CWColorPicker/index.js +44 -44
- package/lib/CWMessage/MessageContent/TabList/index.js +13 -13
- package/lib/CWMessage/MessageContent/index.js +25 -25
- package/lib/CWRangePicker/DropdownMenu/MoreHistoryList/index.js +7 -7
- package/lib/CWRangePicker/DropdownMenu/MoreTimeList/index.js +14 -14
- package/lib/CWRangePicker/DropdownMenu/index.js +34 -34
- package/lib/CWRangePicker/Refresh/index.js +12 -12
- package/lib/CWRangePicker/TimeSpan/index.js +14 -14
- package/lib/CWRangePicker/index.js +56 -56
- package/lib/CWRangePicker/utils/generate/dayjs.js +110 -93
- package/lib/CWRangePicker/utils/generate/moment.js +99 -82
- package/lib/CWTable/assets/DownGraySvg.js +16 -0
- package/lib/CWTable/assets/DownLightSvg.js +16 -0
- package/lib/CWTable/assets/SortSvg.js +16 -0
- package/lib/CWTable/assets/SortingSvg.js +16 -0
- package/lib/CWTable/assets/UpGraySvg.js +15 -0
- package/lib/CWTable/assets/UpLightSvg.js +15 -0
- package/lib/CWTree/locale/en_US.js +3 -0
- package/lib/CWTree/locale/index.js +11 -0
- package/lib/CWTree/locale/zh_CN.js +3 -0
- package/lib/CWTree/locale/zh_TW.js +3 -0
- package/lib/ConfigProvider/ConfigProvider.js +6 -0
- package/lib/ConfigProvider/generate/dayjs.js +4 -0
- package/lib/Empty/index.js +10 -10
- package/lib/ErrorBoundary/ErrorPage.js +10 -10
- package/lib/Exception/index.js +22 -22
- package/lib/FilterDropDown/index.js +19 -19
- package/lib/Header/Document/index.js +5 -5
- package/lib/IconSelect/components/CustomImg/index.js +10 -10
- package/lib/IconSelect/components/SearchIcon/index.js +8 -8
- package/lib/IconSelect/index.js +16 -16
- package/lib/Joyride/List.js +11 -11
- package/lib/Joyride/index.js +55 -55
- package/lib/Pagination/index.js +34 -34
- package/lib/QuickTransfer/DragList.js +15 -15
- package/lib/QuickTransfer/index.js +59 -59
- package/lib/RangePicker/components/ExtraTimeFooter.js +1 -1
- package/lib/SearchBar/index.js +40 -40
- package/lib/TimeRangeSlider/Refresh/index.js +11 -11
- package/lib/TimeRangeSlider/TimeSpan/index.js +13 -13
- package/lib/TimeRangeSlider/index.js +32 -32
- package/lib/TimeRangeSlider/utils/generate/moment.js +106 -89
- package/lib/locales/en_US.json +1 -86
- package/lib/locales/index.js +11 -0
- package/lib/locales/ja_JP.json +1 -0
- package/lib/locales/zh_CN.json +1 -86
- package/lib/locales/zh_TW.json +1 -86
- package/package.json +2 -1
- /package/lib/Antd5/avatar/{Avatar.js → avatar.js} +0 -0
|
@@ -15,15 +15,15 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
15
15
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
16
16
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
17
17
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
18
|
-
import React, { forwardRef, useImperativeHandle } from
|
|
19
|
-
import classnames from
|
|
20
|
-
import Refresh1Svg from
|
|
21
|
-
import Refresh2Svg from
|
|
22
|
-
import Refresh3Svg from
|
|
23
|
-
import { getChangeUnitDate, funcValueChangeArrayValue, getTimeSpanFromValue, computedRecentlyValue, judgeType } from
|
|
24
|
-
import useConfigContext from
|
|
25
|
-
import { useIntl } from
|
|
26
|
-
import useStyle from
|
|
18
|
+
import React, { forwardRef, useImperativeHandle } from 'react';
|
|
19
|
+
import classnames from 'classnames';
|
|
20
|
+
import Refresh1Svg from '../assets/Refresh1';
|
|
21
|
+
import Refresh2Svg from '../assets/Refresh2';
|
|
22
|
+
import Refresh3Svg from '../assets/Refresh3';
|
|
23
|
+
import { getChangeUnitDate, funcValueChangeArrayValue, getTimeSpanFromValue, computedRecentlyValue, judgeType } from '../utils/generate/dayjs';
|
|
24
|
+
import useConfigContext from '../../useConfigContext';
|
|
25
|
+
import { useIntl } from '../../locales';
|
|
26
|
+
import useStyle from '../styles/refresh.style';
|
|
27
27
|
var Refresh = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
28
28
|
var recordDateValue = props.recordDateValue,
|
|
29
29
|
setRecordDateValue = props.setRecordDateValue,
|
|
@@ -146,12 +146,12 @@ var Refresh = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
146
146
|
return wrapCSSVar((showRefresh || showAutoRefresh) && /*#__PURE__*/React.createElement(_Button.Group, {
|
|
147
147
|
className: classnames(hashId, cssVarCls, "".concat(prefixCls, "-time-range-slider-refresh-wrapper"))
|
|
148
148
|
}, showRefresh && /*#__PURE__*/React.createElement(_Tooltip, {
|
|
149
|
-
title: intl.get(
|
|
149
|
+
title: intl.get('1d0f3c0c-188f-4f83-bff0-2792dffcdc2d').d('刷新')
|
|
150
150
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
151
151
|
onClick: onRefresh,
|
|
152
152
|
disabled: isDisabledRefresh
|
|
153
153
|
}, /*#__PURE__*/React.createElement(Refresh1Svg, null))), showAutoRefresh && /*#__PURE__*/React.createElement(_Tooltip, {
|
|
154
|
-
title: intl.get(
|
|
154
|
+
title: intl.get('502d0d23-e942-4ecd-89e4-e85431a3098f').d('自动刷新')
|
|
155
155
|
}, /*#__PURE__*/React.createElement(_Button, {
|
|
156
156
|
onClick: onAutoRefresh,
|
|
157
157
|
disabled: isDisabledAutoRefresh,
|
|
@@ -6,13 +6,13 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
6
6
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
7
7
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
8
8
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
9
|
-
import React from
|
|
10
|
-
import { CaretLeftOutlined, CaretRightOutlined, ZoomInOutlined } from
|
|
11
|
-
import { getChangeDate } from
|
|
12
|
-
import useConfigContext from
|
|
13
|
-
import { useIntl } from
|
|
14
|
-
import classnames from
|
|
15
|
-
import useStyle from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import { CaretLeftOutlined, CaretRightOutlined, ZoomInOutlined } from '@ant-design/icons';
|
|
11
|
+
import { getChangeDate } from '../utils/generate/dayjs';
|
|
12
|
+
import useConfigContext from '../../useConfigContext';
|
|
13
|
+
import { useIntl } from '../../locales';
|
|
14
|
+
import classnames from 'classnames';
|
|
15
|
+
import useStyle from '../styles/timeSpan.style';
|
|
16
16
|
_Button.__ANT_BUTTON = true;
|
|
17
17
|
var TimeSpan = function TimeSpan(props) {
|
|
18
18
|
var onChange = props.onChange,
|
|
@@ -49,13 +49,13 @@ var TimeSpan = function TimeSpan(props) {
|
|
|
49
49
|
cssVarCls = _useStyle2[2];
|
|
50
50
|
var intl = useIntl();
|
|
51
51
|
var _tooltipTitleCustom$f = tooltipTitleCustom.forwardTitle,
|
|
52
|
-
forwardTitle = _tooltipTitleCustom$f === void 0 ? intl.get(
|
|
52
|
+
forwardTitle = _tooltipTitleCustom$f === void 0 ? intl.get('df9a3bfb-00df-44cd-9761-87dc21ffc0e8').d('向前平滑') : _tooltipTitleCustom$f,
|
|
53
53
|
_tooltipTitleCustom$b = tooltipTitleCustom.backTitle,
|
|
54
|
-
backTitle = _tooltipTitleCustom$b === void 0 ? intl.get(
|
|
54
|
+
backTitle = _tooltipTitleCustom$b === void 0 ? intl.get('cefeccff-2f9e-4b59-925c-af11c28aa8ed').d('向后平滑') : _tooltipTitleCustom$b,
|
|
55
55
|
_tooltipTitleCustom$e = tooltipTitleCustom.expandTitle,
|
|
56
|
-
expandTitle = _tooltipTitleCustom$e === void 0 ? intl.get(
|
|
56
|
+
expandTitle = _tooltipTitleCustom$e === void 0 ? intl.get('56a89179-5086-4c43-8814-06eac1ba9983', {
|
|
57
57
|
span: growSize
|
|
58
|
-
}).d(
|
|
58
|
+
}).d('按{span}倍增加时间跨度') : _tooltipTitleCustom$e;
|
|
59
59
|
var onChangeTimeSpan = function onChangeTimeSpan(direction) {
|
|
60
60
|
var _getChangeDate = getChangeDate(recordDateValue, direction, growSize, timeSpanBoundary),
|
|
61
61
|
value = _getChangeDate.value,
|
|
@@ -78,14 +78,14 @@ var TimeSpan = function TimeSpan(props) {
|
|
|
78
78
|
}, showForwardBtn && /*#__PURE__*/React.createElement(_Button, {
|
|
79
79
|
icon: forwardIcon ? forwardIcon : /*#__PURE__*/React.createElement(CaretLeftOutlined, null),
|
|
80
80
|
onClick: function onClick() {
|
|
81
|
-
onChangeTimeSpan(
|
|
81
|
+
onChangeTimeSpan('left');
|
|
82
82
|
}
|
|
83
83
|
})), /*#__PURE__*/React.createElement(_Tooltip, {
|
|
84
84
|
title: backTitle
|
|
85
85
|
}, showBackwardBtn && /*#__PURE__*/React.createElement(_Button, {
|
|
86
86
|
icon: backIcon ? backIcon : /*#__PURE__*/React.createElement(CaretRightOutlined, null),
|
|
87
87
|
onClick: function onClick() {
|
|
88
|
-
onChangeTimeSpan(
|
|
88
|
+
onChangeTimeSpan('right');
|
|
89
89
|
},
|
|
90
90
|
disabled: isRightDisabled
|
|
91
91
|
}))));
|
|
@@ -18,18 +18,18 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
18
18
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
19
19
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
20
20
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
21
|
-
import React, { forwardRef, useState, useEffect, useMemo, useRef, useImperativeHandle } from
|
|
22
|
-
import { CloseOutlined } from
|
|
23
|
-
import PropTypes from
|
|
24
|
-
import classnames from
|
|
25
|
-
import TimeSpan from
|
|
26
|
-
import TimeRangeSliderCmp from
|
|
27
|
-
import Refresh from
|
|
28
|
-
import CalendarSvg from
|
|
29
|
-
import useConfigContext from
|
|
30
|
-
import { echoInputValue, getUnit, judgeType, getChangeUnitDate, isInvalidDate, funcValueChangeArrayValue, getCorrectValue, getFinalDateOption, getTruthDateCount, isLessThanMinTimeSpan, isExceedMaxTimeSpan, isWithinTimeSpan, getYears, computedRecentlyValue } from
|
|
31
|
-
import useStyle from
|
|
32
|
-
import { useIntl } from
|
|
21
|
+
import React, { forwardRef, useState, useEffect, useMemo, useRef, useImperativeHandle } from 'react';
|
|
22
|
+
import { CloseOutlined } from '@ant-design/icons';
|
|
23
|
+
import PropTypes from 'prop-types';
|
|
24
|
+
import classnames from 'classnames';
|
|
25
|
+
import TimeSpan from './TimeSpan';
|
|
26
|
+
import TimeRangeSliderCmp from './TimeRangeSliderCmp';
|
|
27
|
+
import Refresh from './Refresh';
|
|
28
|
+
import CalendarSvg from './assets/Calendar';
|
|
29
|
+
import useConfigContext from '../useConfigContext';
|
|
30
|
+
import { echoInputValue, getUnit, judgeType, getChangeUnitDate, isInvalidDate, funcValueChangeArrayValue, getCorrectValue, getFinalDateOption, getTruthDateCount, isLessThanMinTimeSpan, isExceedMaxTimeSpan, isWithinTimeSpan, getYears, computedRecentlyValue } from './utils/generate/dayjs';
|
|
31
|
+
import useStyle from './styles/index.style';
|
|
32
|
+
import { useIntl } from '../locales';
|
|
33
33
|
var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
34
34
|
var defaultValue = props.defaultValue,
|
|
35
35
|
value = props.value,
|
|
@@ -44,7 +44,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
44
44
|
timeSpanOption = _props$timeSpanOption === void 0 ? {} : _props$timeSpanOption,
|
|
45
45
|
inputPrefixIcon = props.inputPrefixIcon,
|
|
46
46
|
_props$format = props.format,
|
|
47
|
-
format = _props$format === void 0 ?
|
|
47
|
+
format = _props$format === void 0 ? 'YYYY/MM/DD HH:mm:ss' : _props$format,
|
|
48
48
|
forceRenderTitle = props.forceRenderTitle,
|
|
49
49
|
_props$timeSliderOpti = props.timeSliderOption,
|
|
50
50
|
timeSliderOption = _props$timeSliderOpti === void 0 ? {} : _props$timeSliderOpti;
|
|
@@ -72,7 +72,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
72
72
|
var intl = useIntl();
|
|
73
73
|
var _ref = (intl === null || intl === void 0 ? void 0 : intl.options) || {},
|
|
74
74
|
_ref$currentLocale = _ref.currentLocale,
|
|
75
|
-
locale = _ref$currentLocale === void 0 ?
|
|
75
|
+
locale = _ref$currentLocale === void 0 ? 'zh_CN' : _ref$currentLocale;
|
|
76
76
|
var _useConfigContext = useConfigContext(),
|
|
77
77
|
getPrefixCls = _useConfigContext.getPrefixCls;
|
|
78
78
|
var prefixCls = getPrefixCls();
|
|
@@ -87,7 +87,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
87
87
|
isFocus = _useState2[0],
|
|
88
88
|
setIsFocus = _useState2[1];
|
|
89
89
|
// 输入框回填内容
|
|
90
|
-
var _useState3 = useState(
|
|
90
|
+
var _useState3 = useState(''),
|
|
91
91
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
92
92
|
inputValue = _useState4[0],
|
|
93
93
|
setInputValue = _useState4[1];
|
|
@@ -149,7 +149,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
149
149
|
isRecently: true,
|
|
150
150
|
value: getChangeUnitDate(captureUnit[0], captureUnit[1]),
|
|
151
151
|
number: captureUnit[0],
|
|
152
|
-
unit: captureUnit[1] ===
|
|
152
|
+
unit: captureUnit[1] === 'mo' ? 'M' : captureUnit[1]
|
|
153
153
|
});
|
|
154
154
|
} else if (values) {
|
|
155
155
|
initValue = _objectSpread(_objectSpread({}, initValue), {}, {
|
|
@@ -232,7 +232,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
232
232
|
var newValue = _objectSpread(_objectSpread({}, recordDateValue), {}, {
|
|
233
233
|
timeDomain: recordUnit,
|
|
234
234
|
number: captureUnit[0],
|
|
235
|
-
unit: captureUnit[1] ===
|
|
235
|
+
unit: captureUnit[1] === 'mo' ? 'M' : captureUnit[1],
|
|
236
236
|
value: _values,
|
|
237
237
|
isRecently: true
|
|
238
238
|
});
|
|
@@ -260,7 +260,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
260
260
|
isRecently: true,
|
|
261
261
|
value: getChangeUnitDate(captureUnit[0], captureUnit[1]),
|
|
262
262
|
number: captureUnit[0],
|
|
263
|
-
unit: captureUnit[1] ===
|
|
263
|
+
unit: captureUnit[1] === 'mo' ? 'M' : captureUnit[1]
|
|
264
264
|
});
|
|
265
265
|
} else if (values) {
|
|
266
266
|
initValue = _objectSpread(_objectSpread({}, initValue), {}, {
|
|
@@ -288,7 +288,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
288
288
|
if (!values) {
|
|
289
289
|
values = getChangeUnitDate(captureUnit[0], captureUnit[1]);
|
|
290
290
|
}
|
|
291
|
-
if (captureUnit[1] ===
|
|
291
|
+
if (captureUnit[1] === 'y' && Number(captureUnit[0]) >= years) {
|
|
292
292
|
isDisabledEnlargeBtn = true;
|
|
293
293
|
}
|
|
294
294
|
}
|
|
@@ -304,16 +304,16 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
304
304
|
isDisabledEnlargeBtn = _useMemo2[3];
|
|
305
305
|
// 点击空白处日历切换
|
|
306
306
|
useEffect(function () {
|
|
307
|
-
document.addEventListener(
|
|
307
|
+
document.addEventListener('click', clickBody);
|
|
308
308
|
return function () {
|
|
309
|
-
document.removeEventListener(
|
|
309
|
+
document.removeEventListener('click', clickBody);
|
|
310
310
|
};
|
|
311
311
|
}, [_defaultValue]);
|
|
312
312
|
// 日历模式下点击body
|
|
313
313
|
var clickBody = function clickBody(e) {
|
|
314
314
|
// 点击bodyfasle
|
|
315
315
|
var targetInput = calendarRef.current.querySelector(".".concat(prefixCls, "-time-range-slider-box-wrapper"));
|
|
316
|
-
var customPopoverDom = calendarRef.current.querySelector(
|
|
316
|
+
var customPopoverDom = calendarRef.current.querySelector('.custom-popover-wrapper');
|
|
317
317
|
if (targetInput && customPopoverDom) {
|
|
318
318
|
if (!targetInput.contains(e.target) && !customPopoverDom.contains(e.target) && isHandleClickRef.current) {
|
|
319
319
|
// 点击弹窗和输入框以外的区域触发(非点击不触发move事件)
|
|
@@ -390,15 +390,15 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
390
390
|
if (!isInvalidDate_) {
|
|
391
391
|
var passValue = returnValue.value;
|
|
392
392
|
if (isLessThanMinTimeSpan(passValue, timeSpanBoundaryStart)) {
|
|
393
|
-
message.error(
|
|
393
|
+
message.error('小于限制的最小时间跨度,请重新输入');
|
|
394
394
|
return;
|
|
395
395
|
}
|
|
396
396
|
if (isExceedMaxTimeSpan(passValue, timeSpanBoundary)) {
|
|
397
|
-
message.error(intl.get(
|
|
397
|
+
message.error(intl.get('e8a046c4-4611-47b9-bef0-cb46de7dd733').d('超过了限制的最大时间跨度,请重新输入'));
|
|
398
398
|
return;
|
|
399
399
|
}
|
|
400
400
|
if (!isWithinTimeSpan(passValue, days)) {
|
|
401
|
-
message.error(
|
|
401
|
+
message.error('不在要求的时间跨度之内,请重新输入');
|
|
402
402
|
return;
|
|
403
403
|
}
|
|
404
404
|
_onChange(returnValue);
|
|
@@ -407,7 +407,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
407
407
|
setRecordDateValue(returnValue);
|
|
408
408
|
}
|
|
409
409
|
} else {
|
|
410
|
-
message.error(intl.get(
|
|
410
|
+
message.error(intl.get('e2008629-6fc2-4222-b28c-ada43aa79a74').d('不符合输入格式,请重新输入'));
|
|
411
411
|
}
|
|
412
412
|
} else {
|
|
413
413
|
var finalDateOption = getFinalDateOption(inputValue);
|
|
@@ -419,15 +419,15 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
419
419
|
});
|
|
420
420
|
var _passValue = _returnValue.value;
|
|
421
421
|
if (isLessThanMinTimeSpan(_passValue, timeSpanBoundaryStart)) {
|
|
422
|
-
message.error(
|
|
422
|
+
message.error('小于限制的最小时间跨度,请重新输入');
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
if (isExceedMaxTimeSpan(_passValue, timeSpanBoundary)) {
|
|
426
|
-
message.error(intl.get(
|
|
426
|
+
message.error(intl.get('e8a046c4-4611-47b9-bef0-cb46de7dd733').d('超过了限制的最大时间跨度,请重新输入'));
|
|
427
427
|
return;
|
|
428
428
|
}
|
|
429
429
|
if (!isWithinTimeSpan(_passValue, days)) {
|
|
430
|
-
message.error(
|
|
430
|
+
message.error('不在要求的时间跨度之内,请重新输入');
|
|
431
431
|
return;
|
|
432
432
|
}
|
|
433
433
|
_onChange(_returnValue);
|
|
@@ -436,7 +436,7 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
436
436
|
setRecordDateValue(_returnValue);
|
|
437
437
|
}
|
|
438
438
|
} else {
|
|
439
|
-
message.error(intl.get(
|
|
439
|
+
message.error(intl.get('e2008629-6fc2-4222-b28c-ada43aa79a74').d('不符合输入格式,请重新输入'));
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
442
|
isInputRef.current = false;
|
|
@@ -512,8 +512,8 @@ var TimeRangeSlider = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
512
512
|
}
|
|
513
513
|
}, /*#__PURE__*/React.createElement("div", {
|
|
514
514
|
style: {
|
|
515
|
-
position:
|
|
516
|
-
height:
|
|
515
|
+
position: 'relative',
|
|
516
|
+
height: '100%'
|
|
517
517
|
}
|
|
518
518
|
}))));
|
|
519
519
|
});
|