@para-ui/core 4.0.29 → 4.0.31
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/AutoButton/index.d.ts +41 -0
- package/AutoButton/index.js +213 -0
- package/AutoButton/lang/en_US.d.ts +4 -0
- package/AutoButton/lang/index.d.ts +9 -0
- package/AutoButton/lang/zh_CN.d.ts +4 -0
- package/Badge/index.d.ts +3 -1
- package/Badge/index.js +15 -5
- package/Card/index.d.ts +53 -0
- package/Card/index.js +218 -0
- package/Card/lang/en_US.d.ts +5 -0
- package/Card/lang/index.d.ts +11 -0
- package/Card/lang/zh_CN.d.ts +5 -0
- package/Cascader/index.js +6 -7
- package/ComboSelect/index.js +7 -4
- package/CycleSelector/index.js +3 -1
- package/DatePicker/index.js +3 -1
- package/DragVerify/index.js +7 -2
- package/DynamicMultiBox/index.js +8 -6
- package/Form/index.js +8 -5
- package/FormItem/index.js +8 -5
- package/Image/index.js +3 -4
- package/PopConfirm/index.js +2 -2
- package/PopMenu/index.js +16 -5
- package/QuickReply/index.js +1 -1
- package/README.md +14 -0
- package/RangeInput/index.d.ts +59 -0
- package/RangeInput/index.js +193 -0
- package/Select/index.js +2 -2
- package/Selector/index.js +282 -548
- package/SelectorPicker/index.js +5 -5
- package/SingleBox/index.js +2 -2
- package/SortBox/index.d.ts +27 -0
- package/SortBox/index.js +64 -0
- package/Stepper/index.js +1 -1
- package/Switch/index.js +2 -2
- package/Table/index.js +471 -409
- package/Tabs/index.js +2 -2
- package/Tag/index.js +82 -53
- package/TextEditor/index.js +3 -3
- package/TimePicker/index.js +3 -1
- package/Timeline/index.js +14 -20
- package/ToggleButton/index.js +25 -26
- package/Transfer/index.js +48 -43
- package/Tree/index.js +8 -5
- package/Upload/ImageUpload/index.d.ts +2 -7
- package/Upload/index.js +848 -495
- package/Upload/interface.d.ts +18 -0
- package/_verture/{Portal-5bd49559.js → Portal-edd94cac.js} +2 -2
- package/_verture/{index-15a0b6a6.js → index-3795d730.js} +1 -1
- package/_verture/{index-e9405e35.js → index-567b5779.js} +395 -313
- package/_verture/{index-68f0506c.js → index-8752ccab.js} +4 -5
- package/_verture/index-94e24006.js +327 -0
- package/_verture/{slicedToArray-a8206399.js → slicedToArray-75fa4188.js} +15 -2
- package/_verture/{toConsumableArray-8f4c9589.js → toConsumableArray-c7a8028f.js} +1 -1
- package/index.d.ts +8 -0
- package/index.js +16 -11
- package/locale/en-US.d.ts +7 -0
- package/locale/index.d.ts +14 -0
- package/locale/index.js +14 -0
- package/locale/zh-CN.d.ts +7 -0
- package/package.json +2 -4
- package/umd/AutoButton.js +43 -0
- package/umd/Badge.js +1 -1
- package/umd/Card.js +1 -0
- package/umd/DragVerify.js +1 -1
- package/umd/FunctionModal.js +3 -3
- package/umd/Modal.js +2 -2
- package/umd/PopMenu.js +2 -2
- package/umd/RangeInput.js +43 -0
- package/umd/SortBox.js +41 -0
- package/umd/Upload.js +4 -4
- package/umd/locale.js +1 -1
- package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
- /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
- /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
package/ComboSelect/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import SearchIcon from '@para-ui/icons/Search';
|
|
|
6
6
|
import CloseIcon from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import Table from '../Table/index.js';
|
|
9
|
-
import { T as Tree } from '../_verture/index-
|
|
9
|
+
import { T as Tree } from '../_verture/index-567b5779.js';
|
|
10
10
|
import { Button } from '../Button/index.js';
|
|
11
11
|
import { D as Dropdown } from '../_verture/index-bde7aabe.js';
|
|
12
12
|
import { Popover } from '../Popover/index.js';
|
|
@@ -24,6 +24,8 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
|
24
24
|
import { Search } from '../Search/index.js';
|
|
25
25
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
26
26
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
27
|
+
import '../_verture/typeof-adeedc13.js';
|
|
28
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
27
29
|
import '../Checkbox/index.js';
|
|
28
30
|
import '../Help/index.js';
|
|
29
31
|
import '@para-ui/icons/Help';
|
|
@@ -35,6 +37,7 @@ import '@para-ui/icons/UpTriangleF';
|
|
|
35
37
|
import '@para-ui/icons/DownTriangleF';
|
|
36
38
|
import '@para-ui/icons/Panel';
|
|
37
39
|
import '../Empty/index.js';
|
|
40
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
38
41
|
import '../Radio/index.js';
|
|
39
42
|
import '../OperateBtn/index.js';
|
|
40
43
|
import '@para-ui/icons/More';
|
|
@@ -56,11 +59,11 @@ import 'rc-pagination';
|
|
|
56
59
|
import '@para-ui/icons/Right';
|
|
57
60
|
import '@para-ui/icons/DoubleLeft';
|
|
58
61
|
import '@para-ui/icons/DoubleRight';
|
|
62
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
63
|
+
import '../_verture/index-94e24006.js';
|
|
64
|
+
import '../_verture/typeof-4646b22c.js';
|
|
59
65
|
import 'rc-tree';
|
|
60
|
-
import '../_verture/typeof-adeedc13.js';
|
|
61
66
|
import '@para-ui/icons/Document';
|
|
62
|
-
import '../_verture/slicedToArray-a8206399.js';
|
|
63
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
64
67
|
import 'react-dom';
|
|
65
68
|
import '@para-ui/icons/EditFile';
|
|
66
69
|
import '@para-ui/icons/PlusCircle';
|
package/CycleSelector/index.js
CHANGED
|
@@ -19,6 +19,9 @@ import 'rc-picker/es/generate/dayjs';
|
|
|
19
19
|
import '../Tag/index.js';
|
|
20
20
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
21
21
|
import '@para-ui/icons/EditOutline';
|
|
22
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
23
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
24
|
+
import '../_verture/typeof-adeedc13.js';
|
|
22
25
|
import '../AutoTips/index.js';
|
|
23
26
|
import '../Tooltip/index.js';
|
|
24
27
|
import 'rc-tooltip';
|
|
@@ -28,7 +31,6 @@ import '@paraview/lib';
|
|
|
28
31
|
import '../_verture/tinycolor-ece3542d.js';
|
|
29
32
|
import '@para-ui/icons/Plus';
|
|
30
33
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
31
|
-
import '../_verture/typeof-adeedc13.js';
|
|
32
34
|
import 'rc-picker';
|
|
33
35
|
import '@para-ui/icons/CloseCircleF';
|
|
34
36
|
import '@para-ui/icons/Calendar';
|
package/DatePicker/index.js
CHANGED
|
@@ -33,9 +33,11 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
33
33
|
import 'dayjs';
|
|
34
34
|
import '@para-ui/icons/Close';
|
|
35
35
|
import '@para-ui/icons/EditOutline';
|
|
36
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
37
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
38
|
+
import '../_verture/typeof-adeedc13.js';
|
|
36
39
|
import '../_verture/tinycolor-ece3542d.js';
|
|
37
40
|
import '@para-ui/icons/Plus';
|
|
38
|
-
import '../_verture/typeof-adeedc13.js';
|
|
39
41
|
import '../Help/index.js';
|
|
40
42
|
import '@para-ui/icons/Help';
|
|
41
43
|
|
package/DragVerify/index.js
CHANGED
|
@@ -185,13 +185,16 @@ const DragVerify = props => {
|
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
187
|
moveDom.ontouchstart = touchE => {
|
|
188
|
-
|
|
188
|
+
touchE.preventDefault();
|
|
189
|
+
if (constData.current.padding) return false;
|
|
189
190
|
const e = touchE.touches[0];
|
|
190
191
|
sliderBox.classList.add("".concat(prefixCls, "-move"));
|
|
191
192
|
// 鼠标移动
|
|
192
193
|
document.ontouchmove = touchEvent => {
|
|
194
|
+
touchEvent.preventDefault();
|
|
193
195
|
const event = touchEvent.touches[0];
|
|
194
196
|
moveFunc(event, e);
|
|
197
|
+
return false;
|
|
195
198
|
};
|
|
196
199
|
// 鼠标抬起
|
|
197
200
|
document.ontouchend = () => {
|
|
@@ -199,6 +202,7 @@ const DragVerify = props => {
|
|
|
199
202
|
document.ontouchend = null;
|
|
200
203
|
endFunc();
|
|
201
204
|
};
|
|
205
|
+
return false;
|
|
202
206
|
};
|
|
203
207
|
};
|
|
204
208
|
/** 复位 */
|
|
@@ -259,7 +263,8 @@ const DragVerify = props => {
|
|
|
259
263
|
className: "slider-move-mask"
|
|
260
264
|
}, {
|
|
261
265
|
children: jsxs("div", Object.assign({
|
|
262
|
-
className: "slider-move-box"
|
|
266
|
+
className: "slider-move-box",
|
|
267
|
+
draggable: false
|
|
263
268
|
}, {
|
|
264
269
|
children: [jsx(DoubleRight, {
|
|
265
270
|
className: 'svg-right'
|
package/DynamicMultiBox/index.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ComboSelect } from '../ComboSelect/index.js';
|
|
|
17
17
|
import DatePicker from '../DatePicker/index.js';
|
|
18
18
|
import AutoTips from '../AutoTips/index.js';
|
|
19
19
|
import { UUID } from '@paraview/lib';
|
|
20
|
-
import { d as dist } from '../_verture/index-
|
|
20
|
+
import { d as dist } from '../_verture/index-c8cb6751.js';
|
|
21
21
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
22
22
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
23
23
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
@@ -52,10 +52,13 @@ import '@para-ui/icons/Up';
|
|
|
52
52
|
import '../MultiBox/index.js';
|
|
53
53
|
import '@para-ui/icons/Internet';
|
|
54
54
|
import '../Table/index.js';
|
|
55
|
+
import '../_verture/typeof-adeedc13.js';
|
|
56
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
55
57
|
import '../Button/index.js';
|
|
56
58
|
import '@para-ui/icons/ScreenF';
|
|
57
59
|
import '@para-ui/icons/UpTriangleF';
|
|
58
60
|
import '@para-ui/icons/DownTriangleF';
|
|
61
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
59
62
|
import '../Radio/index.js';
|
|
60
63
|
import '../OperateBtn/index.js';
|
|
61
64
|
import '@para-ui/icons/More';
|
|
@@ -70,12 +73,12 @@ import 'rc-pagination';
|
|
|
70
73
|
import '@para-ui/icons/Right';
|
|
71
74
|
import '@para-ui/icons/DoubleLeft';
|
|
72
75
|
import '@para-ui/icons/DoubleRight';
|
|
73
|
-
import '../_verture/index-
|
|
76
|
+
import '../_verture/index-567b5779.js';
|
|
77
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
78
|
+
import '../_verture/index-94e24006.js';
|
|
79
|
+
import '../_verture/typeof-4646b22c.js';
|
|
74
80
|
import 'rc-tree';
|
|
75
|
-
import '../_verture/typeof-adeedc13.js';
|
|
76
81
|
import '@para-ui/icons/Document';
|
|
77
|
-
import '../_verture/slicedToArray-a8206399.js';
|
|
78
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
79
82
|
import 'react-dom';
|
|
80
83
|
import '@para-ui/icons/EditFile';
|
|
81
84
|
import '@para-ui/icons/PlusCircle';
|
|
@@ -87,7 +90,6 @@ import '../Tag/index.js';
|
|
|
87
90
|
import '@para-ui/icons/EditOutline';
|
|
88
91
|
import '../_verture/tinycolor-ece3542d.js';
|
|
89
92
|
import '@para-ui/icons/Plus';
|
|
90
|
-
import '../_verture/defineProperty-6f62bb2a.js';
|
|
91
93
|
import 'rc-picker';
|
|
92
94
|
import '@para-ui/icons/Calendar';
|
|
93
95
|
import '@para-ui/icons/Time';
|
package/Form/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { DeepClone } from '@paraview/lib';
|
|
3
3
|
import React__default from 'react';
|
|
4
|
-
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-
|
|
4
|
+
import { F as FormItem, l as localeJson, v as validate } from '../_verture/index-3795d730.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
7
7
|
import '../TextField/index.js';
|
|
@@ -28,8 +28,7 @@ import '../_verture/index-bde7aabe.js';
|
|
|
28
28
|
import 'rc-dropdown';
|
|
29
29
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
30
30
|
import 'dayjs';
|
|
31
|
-
import '../_verture/slicedToArray-
|
|
32
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
31
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
33
32
|
import '../RadioGroup/index.js';
|
|
34
33
|
import '../Radio/index.js';
|
|
35
34
|
import '../Select/index.js';
|
|
@@ -52,10 +51,12 @@ import 'rc-input-number';
|
|
|
52
51
|
import '@para-ui/icons/Up';
|
|
53
52
|
import '../ComboSelect/index.js';
|
|
54
53
|
import '../Table/index.js';
|
|
54
|
+
import '../_verture/typeof-adeedc13.js';
|
|
55
55
|
import '@para-ui/icons/ScreenF';
|
|
56
56
|
import '@para-ui/icons/UpTriangleF';
|
|
57
57
|
import '@para-ui/icons/DownTriangleF';
|
|
58
58
|
import '@para-ui/icons/Panel';
|
|
59
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
59
60
|
import '../OperateBtn/index.js';
|
|
60
61
|
import '@para-ui/icons/More';
|
|
61
62
|
import '../PopConfirm/index.js';
|
|
@@ -69,9 +70,11 @@ import 'rc-pagination';
|
|
|
69
70
|
import '@para-ui/icons/Right';
|
|
70
71
|
import '@para-ui/icons/DoubleLeft';
|
|
71
72
|
import '@para-ui/icons/DoubleRight';
|
|
72
|
-
import '../_verture/index-
|
|
73
|
+
import '../_verture/index-567b5779.js';
|
|
74
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
75
|
+
import '../_verture/index-94e24006.js';
|
|
76
|
+
import '../_verture/typeof-4646b22c.js';
|
|
73
77
|
import 'rc-tree';
|
|
74
|
-
import '../_verture/typeof-adeedc13.js';
|
|
75
78
|
import '@para-ui/icons/Document';
|
|
76
79
|
import 'react-dom';
|
|
77
80
|
import '@para-ui/icons/EditFile';
|
package/FormItem/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { F as default } from '../_verture/index-
|
|
3
|
+
export { F as default } from '../_verture/index-3795d730.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
@@ -27,8 +27,7 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
27
27
|
import 'dayjs';
|
|
28
28
|
import '../Help/index.js';
|
|
29
29
|
import '@para-ui/icons/Help';
|
|
30
|
-
import '../_verture/slicedToArray-
|
|
31
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
30
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
32
31
|
import '../RadioGroup/index.js';
|
|
33
32
|
import '../Radio/index.js';
|
|
34
33
|
import '../Select/index.js';
|
|
@@ -52,10 +51,12 @@ import 'rc-input-number';
|
|
|
52
51
|
import '@para-ui/icons/Up';
|
|
53
52
|
import '../ComboSelect/index.js';
|
|
54
53
|
import '../Table/index.js';
|
|
54
|
+
import '../_verture/typeof-adeedc13.js';
|
|
55
55
|
import '@para-ui/icons/ScreenF';
|
|
56
56
|
import '@para-ui/icons/UpTriangleF';
|
|
57
57
|
import '@para-ui/icons/DownTriangleF';
|
|
58
58
|
import '@para-ui/icons/Panel';
|
|
59
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
59
60
|
import '../OperateBtn/index.js';
|
|
60
61
|
import '@para-ui/icons/More';
|
|
61
62
|
import '../PopConfirm/index.js';
|
|
@@ -69,9 +70,11 @@ import 'rc-pagination';
|
|
|
69
70
|
import '@para-ui/icons/Right';
|
|
70
71
|
import '@para-ui/icons/DoubleLeft';
|
|
71
72
|
import '@para-ui/icons/DoubleRight';
|
|
72
|
-
import '../_verture/index-
|
|
73
|
+
import '../_verture/index-567b5779.js';
|
|
74
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
75
|
+
import '../_verture/index-94e24006.js';
|
|
76
|
+
import '../_verture/typeof-4646b22c.js';
|
|
73
77
|
import 'rc-tree';
|
|
74
|
-
import '../_verture/typeof-adeedc13.js';
|
|
75
78
|
import '@para-ui/icons/Document';
|
|
76
79
|
import 'react-dom';
|
|
77
80
|
import '@para-ui/icons/EditFile';
|
package/Image/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import React__default, { useState, useRef, useEffect, useContext, useMemo } from 'react';
|
|
5
|
-
import { i as warningOnce, d as wrapperRaf, _ as _objectSpread2, w as warning, c as clsx, P as Portal, K as KeyCode, b as _objectWithoutProperties, a as _extends, j as useMergedState } from '../_verture/Portal-
|
|
5
|
+
import { i as warningOnce, d as wrapperRaf, _ as _objectSpread2, w as warning, c as clsx, P as Portal, K as KeyCode, b as _objectWithoutProperties, a as _extends, j as useMergedState } from '../_verture/Portal-edd94cac.js';
|
|
6
6
|
import { _ as _defineProperty } from '../_verture/defineProperty-6f62bb2a.js';
|
|
7
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
7
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
8
8
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
9
9
|
import Dialog from 'rc-dialog';
|
|
10
10
|
import ReactDOM from 'react-dom';
|
|
11
11
|
import CSSMotion from 'rc-motion';
|
|
12
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
12
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
13
13
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
14
14
|
import Sort from '@para-ui/icons/Sort';
|
|
15
15
|
import Switch from '@para-ui/icons/Switch';
|
|
@@ -22,7 +22,6 @@ import RightCircleF from '@para-ui/icons/RightCircleF';
|
|
|
22
22
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
23
23
|
import PreviewOpen from '@para-ui/icons/PreviewOpen';
|
|
24
24
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
25
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
26
25
|
|
|
27
26
|
/* eslint-disable no-nested-ternary */
|
|
28
27
|
function getClientSize() {
|
package/PopConfirm/index.js
CHANGED
|
@@ -35,8 +35,8 @@ var zh = {
|
|
|
35
35
|
};
|
|
36
36
|
|
|
37
37
|
var localeJson = {
|
|
38
|
-
zh,
|
|
39
|
-
en
|
|
38
|
+
zh: zh,
|
|
39
|
+
en: en
|
|
40
40
|
};
|
|
41
41
|
|
|
42
42
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/2 下午1:44\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-popconfirm.paraui-v4-tooltip {\n position: absolute;\n width: 440px;\n padding: 0;\n font-size: 14px;\n color: initial;\n background-color: rgb(255, 255, 255);\n box-shadow: 1px 1px 10px 2px rgba(212, 218, 227, 0.4);\n border-radius: 8px;\n border: 1px solid rgba(212, 218, 227, 0.4);\n}\n.paraui-v4-popconfirm.component-tooltip-hidden.paraui-v4-tooltip {\n border: none;\n}\n.paraui-v4-popconfirm.paraui-v4-tooltip .component-tooltip-inner {\n padding: 0;\n color: initial;\n background-color: transparent;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper {\n padding: 16px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message {\n position: relative;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon {\n position: absolute;\n top: 1px;\n color: rgb(255, 147, 38);\n line-height: 0;\n font-size: 18px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-icon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-body {\n padding-left: 24px;\n line-height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-title {\n font-weight: 600;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content {\n font-weight: 400;\n margin-top: 8px;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-content.without-title {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description {\n margin-top: 4px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-message-description.without-title-or-content {\n margin-top: 0;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns {\n margin-top: 12px;\n text-align: right;\n}\n.paraui-v4-popconfirm .popconfirm-wrapper .popconfirm-btns > button + button {\n margin-left: 12px;\n}\n.paraui-v4-popconfirm .paraui-v4-popconfirm-btn {\n min-width: 54px;\n}";
|
package/PopMenu/index.js
CHANGED
|
@@ -5,13 +5,13 @@ import React__default, { useState, useRef, useEffect } from 'react';
|
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { Popover } from '../Popover/index.js';
|
|
7
7
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
8
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
8
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
9
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
9
10
|
import Right from '@para-ui/icons/Right';
|
|
10
11
|
import AutoTips from '../AutoTips/index.js';
|
|
11
12
|
import { Tooltip } from '../Tooltip/index.js';
|
|
12
13
|
import Help from '../Help/index.js';
|
|
13
14
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
14
|
-
import '../_verture/unsupportedIterableToArray-cb478f24.js';
|
|
15
15
|
import '@paraview/lib';
|
|
16
16
|
import 'rc-tooltip';
|
|
17
17
|
import 'rc-tooltip/lib/placements';
|
|
@@ -66,7 +66,7 @@ const useComponentWidth = efts => {
|
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-pop-menu-content {\n display: inline-block;\n}\n.paraui-v4-pop-menu-item-content {\n display: flex;\n width: 100%;\n}\n.paraui-v4-pop-menu .pop-menu-separator:after {\n content: \"\";\n position: absolute;\n height: 1px;\n background: rgb(234, 236, 241);\n left: 10px;\n right: 10px;\n bottom: 0;\n}\n.paraui-v4-pop-menu .pop-menu-list {\n padding: 4px 0;\n overflow: hidden;\n position: relative;\n max-width: 500px;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item {\n display: flex;\n width: 100%;\n align-items: center;\n height: 30px;\n cursor: pointer;\n padding: 0 10px;\n overflow: hidden;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-help {\n margin-left: 4px;\n display: flex;\n align-items: center;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-help:
|
|
69
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-pop-menu-content {\n display: inline-block;\n}\n.paraui-v4-pop-menu-item-content {\n display: flex;\n width: 100%;\n}\n.paraui-v4-pop-menu .pop-menu-separator:after {\n content: \"\";\n position: absolute;\n height: 1px;\n background: rgb(234, 236, 241);\n left: 10px;\n right: 10px;\n bottom: 0;\n}\n.paraui-v4-pop-menu .pop-menu-list {\n padding: 4px 0;\n overflow: hidden;\n position: relative;\n max-width: 500px;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item {\n display: flex;\n width: 100%;\n align-items: center;\n height: 30px;\n cursor: pointer;\n padding: 0 10px;\n overflow: hidden;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-help {\n margin-left: 4px;\n display: flex;\n align-items: center;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-help svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-help svg:hover {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-arrow {\n margin-left: auto;\n padding-left: 10px;\n display: flex;\n align-items: center;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item .item-arrow svg {\n width: 16px;\n height: 16px;\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item:hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item-hover {\n background: rgb(247, 248, 250);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item-select {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item-select .item-arrow svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item-disabled {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pop-menu .pop-menu-list .pop-menu-item-disabled svg {\n color: rgb(161, 168, 179);\n}";
|
|
70
70
|
styleInject(css_248z);
|
|
71
71
|
|
|
72
72
|
var PopMenuItem = function PopMenuItem(p) {
|
|
@@ -82,6 +82,10 @@ var PopMenuItem = function PopMenuItem(p) {
|
|
|
82
82
|
onChange = _usePopMenuContext.onChange,
|
|
83
83
|
path = _usePopMenuContext.path,
|
|
84
84
|
onClick = _usePopMenuContext.onClick;
|
|
85
|
+
var _React$useState = React__default.useState(false),
|
|
86
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
87
|
+
childVisible = _React$useState2[0],
|
|
88
|
+
setChildVisible = _React$useState2[1];
|
|
85
89
|
var getArrow = function getArrow() {
|
|
86
90
|
return jsx("div", Object.assign({
|
|
87
91
|
className: 'item-arrow'
|
|
@@ -133,6 +137,8 @@ var PopMenuItem = function PopMenuItem(p) {
|
|
|
133
137
|
return jsx("div", Object.assign({
|
|
134
138
|
className: clsx('pop-menu-item', {
|
|
135
139
|
'pop-menu-item-select': currentValue === item.name
|
|
140
|
+
}, {
|
|
141
|
+
'pop-menu-item-hover': childVisible
|
|
136
142
|
}),
|
|
137
143
|
onClick: function onClick() {
|
|
138
144
|
return clickItem(item, close);
|
|
@@ -151,8 +157,13 @@ var PopMenuItem = function PopMenuItem(p) {
|
|
|
151
157
|
minWidth: 'auto'
|
|
152
158
|
}, props.overlayInnerStyle),
|
|
153
159
|
contentClassName: 'item-content',
|
|
154
|
-
offset: [direction === 'right' ? 4 : -4,
|
|
155
|
-
path: [].concat(_toConsumableArray(path), [p.name])
|
|
160
|
+
offset: [direction === 'right' ? 4 : -4, -5],
|
|
161
|
+
path: [].concat(_toConsumableArray(path), [p.name]),
|
|
162
|
+
onVisibleChange: function onVisibleChange(visible) {
|
|
163
|
+
var _a;
|
|
164
|
+
(_a = props.onVisibleChange) === null || _a === void 0 ? void 0 : _a.call(props, visible);
|
|
165
|
+
setChildVisible(visible);
|
|
166
|
+
}
|
|
156
167
|
}, {
|
|
157
168
|
children: getItem(p, false)
|
|
158
169
|
}));
|
package/QuickReply/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import { useState, useRef } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
5
|
-
import { d as dist } from '../_verture/index-
|
|
5
|
+
import { d as dist } from '../_verture/index-c8cb6751.js';
|
|
6
6
|
import { Button } from '../Button/index.js';
|
|
7
7
|
import { Checkbox } from '../Checkbox/index.js';
|
|
8
8
|
import { TextField } from '../TextField/index.js';
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 版本: 4.0.31
|
|
2
|
+
para-ui/core@4.0.31 发布
|
|
3
|
+
【滑块验证码-DragVerify】阻止移动端滑块触发屏幕滑动事件
|
|
4
|
+
【上传-Upload】更换头像增加头像属性,可配置圆角、是否展示重置按钮、默认图片(地址、名称)、是否展示图片名称功能
|
|
5
|
+
【范围输入框-RangeInput】新增组件范围输入框
|
|
6
|
+
【排序容器-SortBox】新增排序组件
|
|
7
|
+
【卡片-Card】新增卡片组件
|
|
8
|
+
【自动按钮-AutoButton】新增自动按钮组件
|
|
9
|
+
【消息角标-Badge】新增偏移量offset参数,sign传null为不显示角标
|
|
10
|
+
|
|
11
|
+
## 版本: 4.0.30
|
|
12
|
+
para-ui/core@4.0.30 发布
|
|
13
|
+
【范围输入框-RangeInput】新增组件范围输入框
|
|
14
|
+
|
|
1
15
|
## 版本: 4.0.29
|
|
2
16
|
【展示内容容器-ContentBox】新增展示内容容器-ContentBox
|
|
3
17
|
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2024/7/29 10:21
|
|
4
|
+
* @description 范围输入框
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import { LabelTooltipProps } from '../Label';
|
|
8
|
+
import { InputNumberProps } from '../InputNumber';
|
|
9
|
+
import { HelperTextDetailProps } from '../HelperText';
|
|
10
|
+
import { TooltipProps } from '../Tooltip';
|
|
11
|
+
import './index.scss';
|
|
12
|
+
export interface RangeInputProps extends HelperTextDetailProps {
|
|
13
|
+
/** 样式class */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** style */
|
|
16
|
+
style?: React.CSSProperties;
|
|
17
|
+
/** 标题 */
|
|
18
|
+
label?: ReactNode;
|
|
19
|
+
/** 帮组提示信息 */
|
|
20
|
+
labelTooltip?: LabelTooltipProps;
|
|
21
|
+
/** 尺寸 */
|
|
22
|
+
size?: 'small' | 'medium' | 'large';
|
|
23
|
+
/** 是否必填 */
|
|
24
|
+
required?: boolean;
|
|
25
|
+
/** 是否禁用 */
|
|
26
|
+
disabled?: boolean | [boolean, boolean];
|
|
27
|
+
/**
|
|
28
|
+
* 禁用提示
|
|
29
|
+
*/
|
|
30
|
+
disabledTooltip?: TooltipProps | [TooltipProps, TooltipProps];
|
|
31
|
+
/** 默认值 不受控 */
|
|
32
|
+
defaultValue?: [number | null, number | null];
|
|
33
|
+
/** 默认值 */
|
|
34
|
+
value?: [number | null, number | null];
|
|
35
|
+
/** 中间符号 */
|
|
36
|
+
separator?: ReactNode;
|
|
37
|
+
/** 单位 */
|
|
38
|
+
unit?: ReactNode;
|
|
39
|
+
/** 提示语 */
|
|
40
|
+
placeholder?: ReactNode | [ReactNode, ReactNode];
|
|
41
|
+
/** 警告提示语 */
|
|
42
|
+
warningMessage?: ReactNode;
|
|
43
|
+
/** 警告提示语消失时间 */
|
|
44
|
+
warnTime?: number;
|
|
45
|
+
/** 输入框其他参数 */
|
|
46
|
+
otherProps?: [InputNumberProps, InputNumberProps];
|
|
47
|
+
/**
|
|
48
|
+
* 改变值
|
|
49
|
+
* */
|
|
50
|
+
onChange?: (val: [number | null, number | null], index: number) => void;
|
|
51
|
+
/** 失去焦点 */
|
|
52
|
+
onBlur?: (event: React.FocusEvent<HTMLInputElement>, index: number) => void;
|
|
53
|
+
/** 得到焦点 */
|
|
54
|
+
onFocus?: (event: React.FocusEvent<HTMLInputElement>, index: number) => void;
|
|
55
|
+
/** 回车事件 */
|
|
56
|
+
onEnter?: (event: React.KeyboardEventHandler<HTMLInputElement>, index: number) => void;
|
|
57
|
+
}
|
|
58
|
+
export declare const RangeInput: FunctionComponent<RangeInputProps>;
|
|
59
|
+
export default RangeInput;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
4
|
+
import Label from '../Label/index.js';
|
|
5
|
+
import { InputNumber } from '../InputNumber/index.js';
|
|
6
|
+
import HelperText from '../HelperText/index.js';
|
|
7
|
+
import clsx from 'clsx';
|
|
8
|
+
import { Tooltip } from '../Tooltip/index.js';
|
|
9
|
+
import { DeepClone } from '@paraview/lib';
|
|
10
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
11
|
+
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
12
|
+
import '../Help/index.js';
|
|
13
|
+
import '@para-ui/icons/Help';
|
|
14
|
+
import 'rc-tooltip';
|
|
15
|
+
import 'rc-tooltip/lib/placements';
|
|
16
|
+
import '@para-ui/icons/Forbid';
|
|
17
|
+
import 'rc-input-number';
|
|
18
|
+
import '@para-ui/icons/Up';
|
|
19
|
+
import '@para-ui/icons/Down';
|
|
20
|
+
|
|
21
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-range-input {\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n font-size: 14px;\n font-weight: 400;\n display: inline-block;\n width: 100%;\n}\n.paraui-v4-range-input > .range-input-content {\n border: 1px solid;\n border-radius: 4px;\n border-color: rgb(212, 218, 227);\n display: flex;\n align-items: center;\n width: 100%;\n position: relative;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-range-input > .range-input-content:hover {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-range-input > .range-input-content > .paraui-v4-input-number > .input-number-content {\n border: none;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-range-input > .range-input-content > .separator {\n color: rgb(29, 33, 38);\n font-size: 14px;\n padding-left: 10px;\n height: 100%;\n display: flex;\n align-items: center;\n line-height: 1;\n}\n.paraui-v4-range-input > .range-input-content > .unit {\n color: rgb(29, 33, 38);\n font-size: 14px;\n padding: 0 10px;\n}\n.paraui-v4-range-input > .range-input-warning-text {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-range-input.paraui-v4-range-input-focus > .range-input-content {\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-range-input.paraui-v4-range-input-disabled > .range-input-content {\n cursor: not-allowed;\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-range-input.paraui-v4-range-input-disabled > .range-input-content:hover {\n border-color: rgb(212, 218, 227);\n}\n.paraui-v4-range-input.paraui-v4-range-input-disabled > .range-input-content > .paraui-v4-input-number > .input-number-content {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-range-input.paraui-v4-range-input-error > .range-input-content {\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-range-input.paraui-v4-range-input-error > .range-input-content:hover {\n border-color: rgb(244, 66, 66);\n}\n.paraui-v4-range-input.paraui-v4-range-input-small > .range-input-content {\n height: 28px;\n}\n.paraui-v4-range-input.paraui-v4-range-input-small > .range-input-content > .paraui-v4-input-number .input-number-content {\n height: 26px;\n}\n.paraui-v4-range-input.paraui-v4-range-input-medium > .range-input-content {\n height: 28px;\n}\n.paraui-v4-range-input.paraui-v4-range-input-medium > .range-input-content > .paraui-v4-input-number .input-number-content {\n height: 26px;\n}\n.paraui-v4-range-input.paraui-v4-range-input-large > .range-input-content {\n height: 32px;\n}\n.paraui-v4-range-input.paraui-v4-range-input-large > .range-input-content > .paraui-v4-input-number .input-number-content {\n height: 30px;\n}";
|
|
22
|
+
styleInject(css_248z);
|
|
23
|
+
|
|
24
|
+
const RangeInput = props => {
|
|
25
|
+
const {
|
|
26
|
+
className,
|
|
27
|
+
style,
|
|
28
|
+
label,
|
|
29
|
+
labelTooltip,
|
|
30
|
+
size = 'large',
|
|
31
|
+
required = false,
|
|
32
|
+
disabled = false,
|
|
33
|
+
disabledTooltip,
|
|
34
|
+
warningMessage,
|
|
35
|
+
warnTime = 2000,
|
|
36
|
+
defaultValue,
|
|
37
|
+
value,
|
|
38
|
+
error = false,
|
|
39
|
+
hideErrorDom,
|
|
40
|
+
helperText = '',
|
|
41
|
+
separator = '~',
|
|
42
|
+
unit,
|
|
43
|
+
placeholder,
|
|
44
|
+
onFocus,
|
|
45
|
+
onBlur,
|
|
46
|
+
onEnter,
|
|
47
|
+
onChange,
|
|
48
|
+
otherProps
|
|
49
|
+
} = props;
|
|
50
|
+
const [valueCom, setValueCom] = useState([null, null]);
|
|
51
|
+
const [focus, setFocus] = useState(false); // 是否获取焦点
|
|
52
|
+
const [showWarning, setShowWarning] = useState(false);
|
|
53
|
+
const constData = useRef({
|
|
54
|
+
timer: null
|
|
55
|
+
});
|
|
56
|
+
useEffect(() => {
|
|
57
|
+
if (props.defaultValue !== undefined) setValueCom(props.defaultValue);
|
|
58
|
+
}, []);
|
|
59
|
+
// 监听value
|
|
60
|
+
useEffect(() => {
|
|
61
|
+
if (value !== undefined) {
|
|
62
|
+
setValueCom(value);
|
|
63
|
+
}
|
|
64
|
+
}, [value]);
|
|
65
|
+
/** 处理placeholder */
|
|
66
|
+
const handlePlaceholder = index => {
|
|
67
|
+
if (placeholder && placeholder instanceof Array) {
|
|
68
|
+
return placeholder[index];
|
|
69
|
+
}
|
|
70
|
+
return placeholder;
|
|
71
|
+
};
|
|
72
|
+
/** 处理disabled */
|
|
73
|
+
const handleDisabled = index => {
|
|
74
|
+
if (disabled && disabled instanceof Array) {
|
|
75
|
+
return disabled[index];
|
|
76
|
+
}
|
|
77
|
+
return disabled;
|
|
78
|
+
};
|
|
79
|
+
/** 得到焦点 */
|
|
80
|
+
const onFocusCom = index => event => {
|
|
81
|
+
setFocus(true);
|
|
82
|
+
onFocus && onFocus(event, index);
|
|
83
|
+
};
|
|
84
|
+
/** 失去焦点 */
|
|
85
|
+
const onBlurCom = index => event => {
|
|
86
|
+
setFocus(false);
|
|
87
|
+
onBlur && onBlur(event, index);
|
|
88
|
+
if (valueCom[0] !== null && valueCom[1] !== null) {
|
|
89
|
+
if (valueCom[0] > valueCom[1]) {
|
|
90
|
+
onChangeCom(index)(null);
|
|
91
|
+
if (warningMessage) handleWarn();
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const handleWarn = () => {
|
|
96
|
+
clearTimeout(constData.current.timer);
|
|
97
|
+
setShowWarning(true);
|
|
98
|
+
constData.current.timer = setTimeout(() => {
|
|
99
|
+
setShowWarning(false);
|
|
100
|
+
}, warnTime);
|
|
101
|
+
};
|
|
102
|
+
/** 回车事件 */
|
|
103
|
+
const onEnterCom = index => event => {
|
|
104
|
+
onEnter && onEnter(event, index);
|
|
105
|
+
};
|
|
106
|
+
/** change事件 */
|
|
107
|
+
const onChangeCom = index => val => {
|
|
108
|
+
const valHandle = valueCom ? DeepClone(valueCom) : [];
|
|
109
|
+
valHandle[index] = val;
|
|
110
|
+
if (props.value === undefined) {
|
|
111
|
+
setValueCom(valHandle);
|
|
112
|
+
}
|
|
113
|
+
onChange && onChange(valHandle, index);
|
|
114
|
+
};
|
|
115
|
+
const contentRender = () => {
|
|
116
|
+
return jsxs("div", Object.assign({
|
|
117
|
+
className: 'range-input-content'
|
|
118
|
+
}, {
|
|
119
|
+
children: [jsx(InputNumber, Object.assign({}, otherProps && otherProps[0], {
|
|
120
|
+
btnMode: "none",
|
|
121
|
+
hideErrorDom: true,
|
|
122
|
+
placeholder: handlePlaceholder(0),
|
|
123
|
+
disabled: handleDisabled(0),
|
|
124
|
+
disabledTooltip: disabledTooltip === null || disabledTooltip === void 0 ? void 0 : disabledTooltip[0],
|
|
125
|
+
value: valueCom[0],
|
|
126
|
+
onFocus: onFocusCom(0),
|
|
127
|
+
onBlur: onBlurCom(0),
|
|
128
|
+
onPressEnter: onEnterCom(0),
|
|
129
|
+
onChange: onChangeCom(0)
|
|
130
|
+
})), jsx("span", Object.assign({
|
|
131
|
+
className: 'separator'
|
|
132
|
+
}, {
|
|
133
|
+
children: separator
|
|
134
|
+
})), jsx(InputNumber, Object.assign({}, otherProps && otherProps[1], {
|
|
135
|
+
btnMode: "none",
|
|
136
|
+
hideErrorDom: true,
|
|
137
|
+
placeholder: handlePlaceholder(1),
|
|
138
|
+
disabled: handleDisabled(1),
|
|
139
|
+
disabledTooltip: disabledTooltip === null || disabledTooltip === void 0 ? void 0 : disabledTooltip[1],
|
|
140
|
+
value: valueCom[1],
|
|
141
|
+
onFocus: onFocusCom(1),
|
|
142
|
+
onBlur: onBlurCom(1),
|
|
143
|
+
onPressEnter: onEnterCom(1),
|
|
144
|
+
onChange: onChangeCom(1)
|
|
145
|
+
})), unit && jsx("span", Object.assign({
|
|
146
|
+
className: 'unit'
|
|
147
|
+
}, {
|
|
148
|
+
children: unit
|
|
149
|
+
}))]
|
|
150
|
+
}));
|
|
151
|
+
};
|
|
152
|
+
/** 处理内容 */
|
|
153
|
+
const handleContent = () => {
|
|
154
|
+
if (disabledTooltip && !(disabledTooltip instanceof Array)) {
|
|
155
|
+
return jsx(Tooltip, Object.assign({
|
|
156
|
+
disabled: true
|
|
157
|
+
}, disabledTooltip, {
|
|
158
|
+
children: contentRender()
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
return contentRender();
|
|
162
|
+
};
|
|
163
|
+
const handleError = () => {
|
|
164
|
+
if (showWarning) {
|
|
165
|
+
return jsx(HelperText, {
|
|
166
|
+
className: "range-input-warning-text",
|
|
167
|
+
helperText: warningMessage,
|
|
168
|
+
hideErrorDom: hideErrorDom
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
return jsx(HelperText, {
|
|
172
|
+
className: "range-input-error-text",
|
|
173
|
+
error: error,
|
|
174
|
+
helperText: helperText,
|
|
175
|
+
hideErrorDom: hideErrorDom
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
return jsxs("div", Object.assign({
|
|
179
|
+
className: clsx(className, "".concat($prefixCls, "-range-input"), "".concat($prefixCls, "-range-input-").concat(size), {
|
|
180
|
+
["".concat($prefixCls, "-range-input-focus")]: focus,
|
|
181
|
+
["".concat($prefixCls, "-range-input-disabled")]: disabled === true || handleDisabled(0) && handleDisabled(1),
|
|
182
|
+
["".concat($prefixCls, "-range-input-error")]: error
|
|
183
|
+
}),
|
|
184
|
+
style: style
|
|
185
|
+
}, {
|
|
186
|
+
children: [jsx(Label, Object.assign({
|
|
187
|
+
label: label,
|
|
188
|
+
required: required
|
|
189
|
+
}, labelTooltip)), handleContent(), handleError()]
|
|
190
|
+
}));
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
export { RangeInput, RangeInput as default };
|