@para-ui/core 4.0.41 → 4.0.42
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/Cascader/index.js +4 -4
- package/ComboSelect/index.js +10 -10
- package/CycleSelector/index.js +4 -4
- package/DragVerify/index.js +2 -2
- package/DynamicMultiBox/index.js +7 -7
- package/Form/index.js +8 -8
- package/FormItem/index.js +8 -8
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +1 -1
- package/Message/index.js +2 -2
- package/Modal/index.js +3 -3
- package/Notification/index.js +3 -3
- package/Pagination/index.js +2 -2
- package/Progress/index.js +2 -2
- package/Prompt/index.js +2 -2
- package/QuickReply/index.js +1 -1
- package/README.md +4 -1
- package/Result/index.d.ts +25 -0
- package/Result/index.js +94 -0
- package/Select/index.js +3 -3
- package/Selector/index.js +284 -226
- package/SelectorPicker/index.js +7 -7
- package/SingleBox/index.js +2 -2
- package/SortBox/index.js +1 -1
- package/Stepper/index.js +4 -4
- package/Switch/index.js +2 -2
- package/Table/index.js +488 -423
- package/Tabs/index.js +6 -6
- package/Tag/index.js +2 -2
- package/TextEditor/index.js +3 -3
- package/Timeline/index.js +14 -20
- package/Tree/index.js +4 -4
- package/Upload/index.js +5 -5
- package/_verture/{index-6016a7ed.js → index-2824e7a7.js} +2 -2
- package/_verture/{index-8a431cd6.js → index-67fe714a.js} +56 -54
- package/_verture/{index-5b4ff3b2.js → index-77fff5bd.js} +1 -1
- package/_verture/{index-8ac46bd9.js → index-94e24006.js} +1 -1
- package/index.d.ts +2 -0
- package/index.js +10 -9
- package/package.json +2 -3
- package/umd/Result.js +43 -0
- /package/_verture/{Portal-f9bedb3a.js → Portal-edd94cac.js} +0 -0
- /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
- /package/_verture/{modalContext-efa83b5c.js → modalContext-369509dd.js} +0 -0
- /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
package/Cascader/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as Cascader } from '../_verture/index-
|
|
2
|
-
export { C as default } from '../_verture/index-
|
|
1
|
+
import { C as Cascader } from '../_verture/index-2824e7a7.js';
|
|
2
|
+
export { C as default } from '../_verture/index-2824e7a7.js';
|
|
3
3
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
|
-
import '../_verture/Portal-
|
|
5
|
+
import '../_verture/Portal-edd94cac.js';
|
|
6
6
|
import '../_verture/slicedToArray-75fa4188.js';
|
|
7
7
|
import 'react';
|
|
8
8
|
import 'react-dom';
|
|
@@ -11,7 +11,7 @@ import '../_verture/toConsumableArray-c7a8028f.js';
|
|
|
11
11
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
12
12
|
import 'rc-motion';
|
|
13
13
|
import 'clsx';
|
|
14
|
-
import '../_verture/typeof-
|
|
14
|
+
import '../_verture/typeof-4646b22c.js';
|
|
15
15
|
import 'rc-tree/lib/utils/conductUtil';
|
|
16
16
|
import '@para-ui/icons/Right';
|
|
17
17
|
import '@para-ui/icons/Down';
|
package/ComboSelect/index.js
CHANGED
|
@@ -3,10 +3,10 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import React__default, { useRef, useState, useEffect, useMemo, useImperativeHandle } from 'react';
|
|
4
4
|
import Down from '@para-ui/icons/Down';
|
|
5
5
|
import SearchIcon from '@para-ui/icons/Search';
|
|
6
|
-
import
|
|
6
|
+
import Close 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-77fff5bd.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,7 +37,8 @@ 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';
|
|
38
|
-
import '../_verture/
|
|
40
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
|
+
import '../_verture/index-c8cb6751.js';
|
|
39
42
|
import '../_verture/sortable.esm-76fe46a4.js';
|
|
40
43
|
import '../Radio/index.js';
|
|
41
44
|
import '../OperateBtn/index.js';
|
|
@@ -60,11 +63,8 @@ import '@para-ui/icons/Right';
|
|
|
60
63
|
import '@para-ui/icons/DoubleLeft';
|
|
61
64
|
import '@para-ui/icons/DoubleRight';
|
|
62
65
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
63
|
-
import '../_verture/
|
|
64
|
-
import '../_verture/
|
|
65
|
-
import '../_verture/typeof-adeedc13.js';
|
|
66
|
-
import '../_verture/index-8ac46bd9.js';
|
|
67
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
66
|
+
import '../_verture/index-94e24006.js';
|
|
67
|
+
import '../_verture/typeof-4646b22c.js';
|
|
68
68
|
import 'rc-tree';
|
|
69
69
|
import '@para-ui/icons/Document';
|
|
70
70
|
import 'react-dom';
|
|
@@ -679,7 +679,7 @@ const ComboSelect = props => {
|
|
|
679
679
|
onClick: evt => handleRemoveTagClick(evt, item),
|
|
680
680
|
onMouseDown: e => e.stopPropagation()
|
|
681
681
|
}, {
|
|
682
|
-
children: jsx(
|
|
682
|
+
children: jsx(Close, {})
|
|
683
683
|
}))]
|
|
684
684
|
}));
|
|
685
685
|
};
|
|
@@ -941,7 +941,7 @@ const ComboSelect = props => {
|
|
|
941
941
|
className: 'comboselect-more-item-remove',
|
|
942
942
|
onClick: e => handleRemoveTagClick(e, item)
|
|
943
943
|
}, {
|
|
944
|
-
children: jsx(
|
|
944
|
+
children: jsx(Close, {})
|
|
945
945
|
}))]
|
|
946
946
|
}), idx);
|
|
947
947
|
});
|
package/CycleSelector/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
|
2
2
|
import React__default, { useState, useRef, useEffect, useImperativeHandle } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import dayjs from 'dayjs';
|
|
5
|
-
import
|
|
5
|
+
import Close from '@para-ui/icons/Close';
|
|
6
6
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
7
7
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
8
8
|
import DatePicker from '../DatePicker/index.js';
|
|
@@ -219,8 +219,8 @@ var zh = {
|
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
var localeJson = {
|
|
222
|
-
zh,
|
|
223
|
-
en
|
|
222
|
+
zh: zh,
|
|
223
|
+
en: en
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-cycle-selector .cycle-selector-content {\n display: flex;\n}\n.paraui-v4-cycle-selector .cycle-selector-content .time-select {\n flex: 1;\n overflow: hidden;\n}\n.paraui-v4-cycle-selector .cycle-selector-content .select-type {\n flex: 1;\n overflow: hidden;\n margin-left: 10px;\n}\n.paraui-v4-cycle-selector .cycle-selector-content .paraui-v4-helper-text {\n display: none;\n}\n.paraui-v4-cycle-selector .text-tip {\n font-size: 12px;\n color: rgb(29, 33, 38);\n margin-top: 10px;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n line-height: 20px;\n}\n.paraui-v4-cycle-selector .text-tip button {\n height: inherit;\n font-size: 12px;\n margin-left: 8px;\n}\n\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content {\n width: 480px;\n padding: 15px 20px 20px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .title {\n display: flex;\n line-height: 20px;\n align-items: center;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .title .label {\n flex: 1;\n font-size: 14px;\n color: rgb(29, 33, 38);\n font-weight: 600;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .title svg {\n color: rgb(92, 101, 115);\n cursor: pointer;\n font-size: 18px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .title svg:hover {\n color: rgb(87, 131, 235);\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content {\n margin-top: 16px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .item {\n display: flex;\n margin-bottom: 20px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .item .label {\n line-height: 32px;\n width: 150px;\n color: rgb(92, 101, 115);\n font-size: 14px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .item .form-content {\n display: flex;\n flex: 1;\n overflow: hidden;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .frequency .form-content .frequency-select {\n margin-right: 10px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .end-type .form-content .end-type-select {\n flex: 1;\n overflow: hidden;\n margin-right: 10px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .end-type .form-content .right-box {\n flex: 1;\n overflow: hidden;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day {\n margin-bottom: 0;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content {\n display: flex;\n flex-direction: column;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content .execution-day-select {\n display: flex;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content .execution-day-select > div {\n flex: 1;\n overflow: hidden;\n height: 28px;\n margin-right: 6px;\n border: 1px solid rgb(212, 218, 227);\n border-radius: 4px;\n line-height: 26px;\n text-align: center;\n cursor: pointer;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content .execution-day-select > div.select-item {\n background-color: rgb(46, 101, 230);\n color: rgb(255, 255, 255);\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content .execution-day-select > div:last-child {\n margin-right: 0;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content > .tip {\n min-height: 20px;\n display: flex;\n opacity: 0;\n transition: all 0.3s;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content > .tip.show-tip {\n opacity: 1;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content > .tip svg {\n color: rgb(255, 147, 38);\n font-size: 16px;\n vertical-align: middle;\n margin-right: 4px;\n margin-top: 2px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .execution-day .form-content > .tip span {\n font-size: 12px;\n color: rgb(255, 147, 38);\n flex: 1;\n overflow: hidden;\n line-height: 20px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .month-cycle-type-list .form-content > div {\n flex: 1;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .content .month-cycle-type-list .form-content > div:first-child {\n margin-right: 10px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .footer {\n text-align: right;\n margin-top: 30px;\n}\n.paraui-v4-cycle-selector-popover .cycle-selector-popover-content .footer button:last-child {\n margin-left: 16px;\n}";
|
|
@@ -755,7 +755,7 @@ const CycleSelector = props => {
|
|
|
755
755
|
className: 'label'
|
|
756
756
|
}, {
|
|
757
757
|
children: intl('customCycle')
|
|
758
|
-
})), jsx(
|
|
758
|
+
})), jsx(Close, {
|
|
759
759
|
onClick: cancelPopover
|
|
760
760
|
})]
|
|
761
761
|
})), jsx("div", Object.assign({
|
package/DragVerify/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useState, useRef, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import DoubleRight from '@para-ui/icons/DoubleRight';
|
|
6
|
-
import
|
|
6
|
+
import Close from '@para-ui/icons/Close';
|
|
7
7
|
import Check from '@para-ui/icons/Check';
|
|
8
8
|
import Refresh from '@para-ui/icons/Refresh';
|
|
9
9
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -268,7 +268,7 @@ const DragVerify = props => {
|
|
|
268
268
|
}, {
|
|
269
269
|
children: [jsx(DoubleRight, {
|
|
270
270
|
className: 'svg-right'
|
|
271
|
-
}), jsx(
|
|
271
|
+
}), jsx(Close, {
|
|
272
272
|
className: 'svg-close'
|
|
273
273
|
}), jsx(Check, {
|
|
274
274
|
className: 'svg-check'
|
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,13 +73,10 @@ 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-77fff5bd.js';
|
|
74
77
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
75
|
-
import '../_verture/
|
|
76
|
-
import '../_verture/
|
|
77
|
-
import '../_verture/typeof-adeedc13.js';
|
|
78
|
-
import '../_verture/index-8ac46bd9.js';
|
|
79
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
78
|
+
import '../_verture/index-94e24006.js';
|
|
79
|
+
import '../_verture/typeof-4646b22c.js';
|
|
80
80
|
import 'rc-tree';
|
|
81
81
|
import '@para-ui/icons/Document';
|
|
82
82
|
import 'react-dom';
|
package/Form/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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-67fe714a.js';
|
|
5
5
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
6
6
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
7
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
7
8
|
import '../TextField/index.js';
|
|
8
9
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
9
10
|
import '../Label/index.js';
|
|
@@ -28,7 +29,6 @@ import '../_verture/index-bde7aabe.js';
|
|
|
28
29
|
import 'rc-dropdown';
|
|
29
30
|
import '../_verture/usePopupContainer-635f66f4.js';
|
|
30
31
|
import 'dayjs';
|
|
31
|
-
import '../_verture/slicedToArray-75fa4188.js';
|
|
32
32
|
import '../RadioGroup/index.js';
|
|
33
33
|
import '../Radio/index.js';
|
|
34
34
|
import '../Select/index.js';
|
|
@@ -51,11 +51,13 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
+
import '../_verture/typeof-adeedc13.js';
|
|
54
55
|
import '@para-ui/icons/ScreenF';
|
|
55
56
|
import '@para-ui/icons/UpTriangleF';
|
|
56
57
|
import '@para-ui/icons/DownTriangleF';
|
|
57
58
|
import '@para-ui/icons/Panel';
|
|
58
|
-
import '../_verture/
|
|
59
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
|
+
import '../_verture/index-c8cb6751.js';
|
|
59
61
|
import '../_verture/sortable.esm-76fe46a4.js';
|
|
60
62
|
import '../OperateBtn/index.js';
|
|
61
63
|
import '@para-ui/icons/More';
|
|
@@ -71,12 +73,10 @@ import 'rc-pagination';
|
|
|
71
73
|
import '@para-ui/icons/Right';
|
|
72
74
|
import '@para-ui/icons/DoubleLeft';
|
|
73
75
|
import '@para-ui/icons/DoubleRight';
|
|
74
|
-
import '../_verture/index-
|
|
76
|
+
import '../_verture/index-77fff5bd.js';
|
|
75
77
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
76
|
-
import '../_verture/
|
|
77
|
-
import '../_verture/typeof-
|
|
78
|
-
import '../_verture/index-8ac46bd9.js';
|
|
79
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
78
|
+
import '../_verture/index-94e24006.js';
|
|
79
|
+
import '../_verture/typeof-4646b22c.js';
|
|
80
80
|
import 'rc-tree';
|
|
81
81
|
import '@para-ui/icons/Document';
|
|
82
82
|
import 'react-dom';
|
package/FormItem/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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-67fe714a.js';
|
|
4
4
|
import 'clsx';
|
|
5
5
|
import '../Label/index.js';
|
|
6
6
|
import '../_verture/constant-5317fc89.js';
|
|
7
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
7
8
|
import '../TextField/index.js';
|
|
8
9
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
9
10
|
import '@paraview/lib';
|
|
@@ -27,7 +28,6 @@ import '../_verture/usePopupContainer-635f66f4.js';
|
|
|
27
28
|
import 'dayjs';
|
|
28
29
|
import '../Help/index.js';
|
|
29
30
|
import '@para-ui/icons/Help';
|
|
30
|
-
import '../_verture/slicedToArray-75fa4188.js';
|
|
31
31
|
import '../RadioGroup/index.js';
|
|
32
32
|
import '../Radio/index.js';
|
|
33
33
|
import '../Select/index.js';
|
|
@@ -51,11 +51,13 @@ import 'rc-input-number';
|
|
|
51
51
|
import '@para-ui/icons/Up';
|
|
52
52
|
import '../ComboSelect/index.js';
|
|
53
53
|
import '../Table/index.js';
|
|
54
|
+
import '../_verture/typeof-adeedc13.js';
|
|
54
55
|
import '@para-ui/icons/ScreenF';
|
|
55
56
|
import '@para-ui/icons/UpTriangleF';
|
|
56
57
|
import '@para-ui/icons/DownTriangleF';
|
|
57
58
|
import '@para-ui/icons/Panel';
|
|
58
|
-
import '../_verture/
|
|
59
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
60
|
+
import '../_verture/index-c8cb6751.js';
|
|
59
61
|
import '../_verture/sortable.esm-76fe46a4.js';
|
|
60
62
|
import '../OperateBtn/index.js';
|
|
61
63
|
import '@para-ui/icons/More';
|
|
@@ -71,12 +73,10 @@ import 'rc-pagination';
|
|
|
71
73
|
import '@para-ui/icons/Right';
|
|
72
74
|
import '@para-ui/icons/DoubleLeft';
|
|
73
75
|
import '@para-ui/icons/DoubleRight';
|
|
74
|
-
import '../_verture/index-
|
|
76
|
+
import '../_verture/index-77fff5bd.js';
|
|
75
77
|
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
76
|
-
import '../_verture/
|
|
77
|
-
import '../_verture/typeof-
|
|
78
|
-
import '../_verture/index-8ac46bd9.js';
|
|
79
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
78
|
+
import '../_verture/index-94e24006.js';
|
|
79
|
+
import '../_verture/typeof-4646b22c.js';
|
|
80
80
|
import 'rc-tree';
|
|
81
81
|
import '@para-ui/icons/Document';
|
|
82
82
|
import 'react-dom';
|
package/FunctionModal/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as useModal } from '../_verture/modalContext-
|
|
2
|
-
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-
|
|
1
|
+
import { u as useModal } from '../_verture/modalContext-369509dd.js';
|
|
2
|
+
export { F as FunctionModalProvider, u as default, a as useClose } from '../_verture/modalContext-369509dd.js';
|
|
3
3
|
import '../_verture/tslib.es6-f43aa41d.js';
|
|
4
4
|
import 'react/jsx-runtime';
|
|
5
5
|
import 'react';
|
package/Image/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { a as __rest } from '../_verture/tslib.es6-f43aa41d.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
7
|
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
8
8
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
package/Message/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useEffect } from 'react';
|
|
|
3
3
|
import ReactDOM from 'react-dom';
|
|
4
4
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
5
5
|
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
6
|
-
import
|
|
6
|
+
import Close from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
@@ -131,7 +131,7 @@ const renderContent = (box, _ref2, removeTime, autoClose, fill) => {
|
|
|
131
131
|
const iconDom = document.querySelector("#".concat(id, " .msg-icon"));
|
|
132
132
|
if (iconDom && icon && !hideIcon) ReactDOM.render(icon, iconDom);
|
|
133
133
|
const closeDom = document.querySelector("#".concat(id, " .msg-close"));
|
|
134
|
-
if (closeDom) ReactDOM.render(jsx(
|
|
134
|
+
if (closeDom) ReactDOM.render(jsx(Close, {}), closeDom);
|
|
135
135
|
if (!autoClose) return;
|
|
136
136
|
setTimeout(() => {
|
|
137
137
|
const hasNode = document.querySelector("#".concat(item.id));
|
package/Modal/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
|
3
3
|
import React__default from 'react';
|
|
4
4
|
import Dialog from 'rc-dialog';
|
|
5
5
|
import { Button } from '../Button/index.js';
|
|
6
|
-
import
|
|
6
|
+
import Close from '@para-ui/icons/Close';
|
|
7
7
|
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
8
8
|
import { g as getConfirmLocale, l as localeJson } from '../_verture/index-ca413216.js';
|
|
9
9
|
import ReactDOM from 'react-dom';
|
|
@@ -128,7 +128,7 @@ const ConfirmDialog = props => {
|
|
|
128
128
|
className: 'confirm-content-close',
|
|
129
129
|
onClick: handleCancel
|
|
130
130
|
}, {
|
|
131
|
-
children: jsx(
|
|
131
|
+
children: jsx(Close, {})
|
|
132
132
|
})), jsx("span", Object.assign({
|
|
133
133
|
className: clsx('confirm-content-icon', "confirm-content-icon--".concat(type))
|
|
134
134
|
}, {
|
|
@@ -342,7 +342,7 @@ const Modal = props => {
|
|
|
342
342
|
variant: 'outlined',
|
|
343
343
|
size: 'small'
|
|
344
344
|
}, {
|
|
345
|
-
children: closeIcon || jsx(
|
|
345
|
+
children: closeIcon || jsx(Close, {
|
|
346
346
|
className: "".concat(prefixCls, "-close-icon")
|
|
347
347
|
})
|
|
348
348
|
}));
|
package/Notification/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import Notification from 'rc-notification';
|
|
4
4
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
5
5
|
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
6
|
-
import
|
|
6
|
+
import Close from '@para-ui/icons/Close';
|
|
7
7
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
@@ -23,7 +23,7 @@ let defaultRight = 20;
|
|
|
23
23
|
let defaultPlacement = 'topRight';
|
|
24
24
|
let defaultGetContainer;
|
|
25
25
|
const prefixCls = "".concat($prefixCls, "-notification");
|
|
26
|
-
let defaultCloseIcon = jsx(
|
|
26
|
+
let defaultCloseIcon = jsx(Close, {
|
|
27
27
|
className: "".concat(prefixCls, "-close-icon")
|
|
28
28
|
});
|
|
29
29
|
const rtl = false;
|
|
@@ -134,7 +134,7 @@ function getNotificationInstance(args, callback) {
|
|
|
134
134
|
const closeIconToRender = jsx("span", Object.assign({
|
|
135
135
|
className: "".concat(prefixCls, "-close-x")
|
|
136
136
|
}, {
|
|
137
|
-
children: closeIcon || jsx(
|
|
137
|
+
children: closeIcon || jsx(Close, {
|
|
138
138
|
className: "".concat(prefixCls, "-close-icon")
|
|
139
139
|
})
|
|
140
140
|
}));
|
package/Pagination/index.js
CHANGED
|
@@ -60,8 +60,8 @@ var zh = {
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
var localeJson = {
|
|
63
|
-
zh,
|
|
64
|
-
en
|
|
63
|
+
zh: zh,
|
|
64
|
+
en: en
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2021/10/26 13:57\n* @description 分页样式\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-pagination {\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 color: rgb(29, 33, 38);\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n opacity: 1;\n}\n.paraui-v4-pagination.paraui-v4-pagination-over {\n overflow: hidden;\n height: 32px;\n opacity: 0;\n transition: all 0.3s;\n}\n.paraui-v4-pagination.paraui-v4-pagination-no-left-arrow > .pagination-content {\n padding-left: 0;\n}\n.paraui-v4-pagination.paraui-v4-pagination-no-right-arrow > .pagination-content {\n padding-right: 0;\n}\n.paraui-v4-pagination > .pagination-space {\n margin-right: 10px;\n}\n.paraui-v4-pagination > .pagination-space:last-child {\n margin-right: 0;\n}\n.paraui-v4-pagination > .pagination-content {\n display: flex;\n border-radius: 4px;\n height: 32px;\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-pagination > .pagination-content > .left-page, .paraui-v4-pagination > .pagination-content > .right-page {\n display: inline-block;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div, .paraui-v4-pagination > .pagination-content > .right-page > div {\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn {\n cursor: not-allowed;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn > svg, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn:hover, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn:hover {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div.disabled-btn:hover > svg, .paraui-v4-pagination > .pagination-content > .right-page > div.disabled-btn:hover > svg {\n color: rgb(161, 168, 179);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:last-child, .paraui-v4-pagination > .pagination-content > .right-page > div:last-child {\n margin-right: 0;\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:hover, .paraui-v4-pagination > .pagination-content > .right-page > div:hover {\n background-color: rgb(247, 248, 250);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div:hover > svg, .paraui-v4-pagination > .pagination-content > .right-page > div:hover > svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pagination > .pagination-content > .left-page > div > svg, .paraui-v4-pagination > .pagination-content > .right-page > div > svg {\n font-size: 16px;\n color: rgb(92, 101, 115);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination {\n height: 100%;\n display: inline-block;\n box-shadow: none;\n vertical-align: top;\n line-height: 30px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li {\n min-width: 32px;\n height: 32px;\n line-height: 32px;\n display: inline-block;\n text-align: center;\n cursor: pointer;\n border-radius: 4px;\n margin-right: 6px;\n padding: 0 6px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li:first-child, .paraui-v4-pagination > .pagination-content > .component-pagination > li:last-child, .paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-next {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-jump-next, .paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-jump-prev {\n padding: 0;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon svg, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon svg {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon span, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon span {\n display: inline-block;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon:hover svg, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon:hover svg {\n display: inline-block;\n vertical-align: middle;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-prev-icon:hover span, .paraui-v4-pagination > .pagination-content > .component-pagination > li > .jump-next-icon:hover span {\n display: none;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li:hover {\n background-color: rgb(247, 248, 250);\n color: rgb(46, 101, 230);\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-item-active {\n color: rgb(46, 101, 230);\n border: 1px solid;\n border-color: rgb(46, 101, 230);\n line-height: 30px;\n}\n.paraui-v4-pagination > .pagination-content > .component-pagination > li.component-pagination-item-active:hover {\n background: rgb(255, 255, 255);\n border-color: rgb(46, 101, 230);\n}\n.paraui-v4-pagination > .pagination-btn-content button:first-child {\n margin-right: 10px;\n}\n.paraui-v4-pagination > .page-line-memo > span {\n display: inline-block;\n margin-right: 8px;\n vertical-align: middle;\n}\n.paraui-v4-pagination > .page-line-memo .page-line-select {\n width: 110px;\n vertical-align: middle;\n}\n.paraui-v4-pagination > .skip-page-memo {\n display: flex;\n align-items: center;\n}\n.paraui-v4-pagination > .skip-page-memo > span {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-pagination > .skip-page-memo > .skip-page-text-field {\n width: 50px;\n margin: 0 4px;\n}\n.paraui-v4-pagination > .skip-page-memo > .skip-page-text-field .right-icon {\n margin-right: 8px;\n}";
|
package/Progress/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Circle } from 'rc-progress';
|
|
|
4
4
|
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
5
5
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
6
6
|
import Check from '@para-ui/icons/Check';
|
|
7
|
-
import
|
|
7
|
+
import Close from '@para-ui/icons/Close';
|
|
8
8
|
import { a as $rcPrefixCls, $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
10
|
|
|
@@ -255,7 +255,7 @@ const Progress = props => {
|
|
|
255
255
|
}) : jsx(CheckCircleF, {
|
|
256
256
|
className: "success"
|
|
257
257
|
});
|
|
258
|
-
if (status === 'exception') return type === 'circle' ? jsx(
|
|
258
|
+
if (status === 'exception') return type === 'circle' ? jsx(Close, {
|
|
259
259
|
className: "error"
|
|
260
260
|
}) : jsx(CloseCircleF, {
|
|
261
261
|
className: "error"
|
package/Prompt/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
|
5
5
|
import WarningCircleF from '@para-ui/icons/WarningCircleF';
|
|
6
6
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
7
7
|
import CheckCircleF from '@para-ui/icons/CheckCircleF';
|
|
8
|
-
import
|
|
8
|
+
import Close from '@para-ui/icons/Close';
|
|
9
9
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-prompt {\n width: 100%;\n border-radius: 4px;\n padding: 10px 16px 10px 40px;\n position: relative;\n box-sizing: border-box;\n}\n.paraui-v4-prompt.prompt-outline {\n border-width: 1px;\n border-style: solid;\n}\n.paraui-v4-prompt.prompt-status-feedback-close {\n padding-right: 44px;\n}\n.paraui-v4-prompt .prompt-icon {\n width: 16px;\n height: 16px;\n position: absolute;\n top: 12px;\n left: 16px;\n z-index: 2;\n}\n.paraui-v4-prompt .prompt-icon svg {\n width: 16px;\n height: 16px;\n}\n.paraui-v4-prompt .prompt-btn-close {\n width: 16px;\n height: 16px;\n position: absolute;\n top: 12px;\n right: 12px;\n z-index: 2;\n margin-left: auto;\n cursor: pointer;\n}\n.paraui-v4-prompt .prompt-btn-close svg {\n width: 100%;\n height: 100%;\n}\n.paraui-v4-prompt .prompt-title {\n width: 100%;\n font-weight: 600;\n height: 20px;\n font-size: 14px;\n color: rgb(29, 33, 38);\n line-height: 20px;\n margin-bottom: 4px;\n}\n.paraui-v4-prompt .prompt-content-list .prompt-content-item {\n margin-top: 4px;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-prompt .prompt-content-list .prompt-content-item:first-child {\n margin-top: 0;\n}\n.paraui-v4-prompt .prompt-content-item {\n width: 100%;\n font-size: 14px;\n color: rgb(29, 33, 38);\n line-height: 20px;\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-info .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-info .prompt-content-item {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-error .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-error .prompt-content-item {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-success .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-success .prompt-content-item {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-warn .prompt-title,\n.paraui-v4-prompt.prompt-status-feedback.prompt-type-warn .prompt-content-item {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-prompt.prompt-type-info {\n background: rgb(240, 245, 255);\n}\n.paraui-v4-prompt.prompt-type-info svg {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-prompt.prompt-type-info.prompt-outline {\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-prompt.prompt-type-error {\n background: rgb(255, 235, 235);\n}\n.paraui-v4-prompt.prompt-type-error svg {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-prompt.prompt-type-error.prompt-outline {\n border-color: rgb(246, 103, 103);\n}\n.paraui-v4-prompt.prompt-type-success {\n background: rgb(232, 252, 239);\n}\n.paraui-v4-prompt.prompt-type-success svg {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-type-success.prompt-outline {\n border-color: rgb(19, 191, 76);\n}\n.paraui-v4-prompt.prompt-type-warn {\n background: rgb(255, 246, 235);\n}\n.paraui-v4-prompt.prompt-type-warn svg {\n color: rgb(255, 147, 38);\n}\n.paraui-v4-prompt.prompt-type-warn.prompt-outline {\n border-color: rgb(255, 147, 38);\n}";
|
|
@@ -85,7 +85,7 @@ const Prompt = props => {
|
|
|
85
85
|
className: 'prompt-btn-close',
|
|
86
86
|
onClick: closePanel
|
|
87
87
|
}, {
|
|
88
|
-
children: jsx(
|
|
88
|
+
children: jsx(Close, {})
|
|
89
89
|
})), title && jsx("div", Object.assign({
|
|
90
90
|
className: "prompt-title"
|
|
91
91
|
}, {
|
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
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author linhd
|
|
3
|
+
* @date 2024/9/11 10:46
|
|
4
|
+
* @description 结果
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent, ReactNode } from 'react';
|
|
7
|
+
import './index.scss';
|
|
8
|
+
interface ResultProps {
|
|
9
|
+
/** 样式class */
|
|
10
|
+
className?: string;
|
|
11
|
+
/** style */
|
|
12
|
+
style?: React.CSSProperties;
|
|
13
|
+
/** 状态 */
|
|
14
|
+
status?: 'success' | 'error' | 'loading';
|
|
15
|
+
/** 插画 */
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/** 标题 */
|
|
18
|
+
title?: ReactNode;
|
|
19
|
+
/** 副标题 */
|
|
20
|
+
subTitle?: ReactNode;
|
|
21
|
+
/** 底部 */
|
|
22
|
+
footer?: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare const Result: FunctionComponent<ResultProps>;
|
|
25
|
+
export default Result;
|
package/Result/index.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import AutoTips from '../AutoTips/index.js';
|
|
4
|
+
import Check from '@para-ui/icons/Check';
|
|
5
|
+
import Close from '@para-ui/icons/Close';
|
|
6
|
+
import LoadingIcon from '@para-ui/icons/Loading';
|
|
7
|
+
import { $ as $prefixCls } from '../_verture/constant-5317fc89.js';
|
|
8
|
+
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
9
|
+
import 'react';
|
|
10
|
+
import '../Tooltip/index.js';
|
|
11
|
+
import '../_verture/tslib.es6-f43aa41d.js';
|
|
12
|
+
import 'rc-tooltip';
|
|
13
|
+
import 'rc-tooltip/lib/placements';
|
|
14
|
+
import '@para-ui/icons/Forbid';
|
|
15
|
+
import '@paraview/lib';
|
|
16
|
+
|
|
17
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-result {\n width: 100%;\n height: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n}\n@keyframes rotateLoading {\n 0% {\n transformOrigin: 50% 50%;\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v4-result > .icon-box {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n margin-bottom: 30px;\n}\n.paraui-v4-result > .icon-box > .icon-bg {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 80px;\n height: 80px;\n border-radius: 50%;\n}\n.paraui-v4-result > .icon-box > .icon-bg > svg {\n font-size: 40px;\n}\n.paraui-v4-result > .title {\n color: rgb(29, 33, 38);\n font-size: 18px;\n font-weight: 700;\n max-width: 100%;\n margin-bottom: 4px;\n}\n.paraui-v4-result > .sub-title {\n max-width: 100%;\n font-size: 14px;\n color: rgb(92, 101, 115);\n text-align: center;\n}\n.paraui-v4-result > .footer {\n margin-top: 40px;\n}\n.paraui-v4-result.paraui-v4-result-success > .icon-box > .icon-bg {\n background-color: rgba(19, 191, 76, 0.1);\n}\n.paraui-v4-result.paraui-v4-result-success > .icon-box > .icon-bg > svg {\n color: rgb(19, 191, 76);\n}\n.paraui-v4-result.paraui-v4-result-error > .icon-box > .icon-bg {\n background-color: rgba(244, 66, 66, 0.1);\n}\n.paraui-v4-result.paraui-v4-result-error > .icon-box > .icon-bg > svg {\n color: rgb(244, 66, 66);\n}\n.paraui-v4-result.paraui-v4-result-loading > .icon-box > .icon-bg {\n background-color: rgba(46, 101, 230, 0.1);\n}\n.paraui-v4-result.paraui-v4-result-loading > .icon-box > .icon-bg > svg {\n transition: all 0.3s ease-in-out;\n animation: rotateLoading 1s infinite linear;\n color: rgb(46, 101, 230);\n}";
|
|
18
|
+
styleInject(css_248z);
|
|
19
|
+
|
|
20
|
+
const iconMapping = {
|
|
21
|
+
success: jsx(Check, {}),
|
|
22
|
+
error: jsx(Close, {}),
|
|
23
|
+
loading: jsx(LoadingIcon, {})
|
|
24
|
+
};
|
|
25
|
+
const Result = props => {
|
|
26
|
+
const {
|
|
27
|
+
className,
|
|
28
|
+
style,
|
|
29
|
+
status,
|
|
30
|
+
icon,
|
|
31
|
+
title,
|
|
32
|
+
subTitle,
|
|
33
|
+
footer
|
|
34
|
+
} = props;
|
|
35
|
+
const handleIcon = () => {
|
|
36
|
+
if (icon) {
|
|
37
|
+
return jsx("div", Object.assign({
|
|
38
|
+
className: 'icon-box'
|
|
39
|
+
}, {
|
|
40
|
+
children: icon
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
if (status) {
|
|
44
|
+
return jsx("div", Object.assign({
|
|
45
|
+
className: 'icon-box'
|
|
46
|
+
}, {
|
|
47
|
+
children: jsx("div", Object.assign({
|
|
48
|
+
className: 'icon-bg'
|
|
49
|
+
}, {
|
|
50
|
+
children: iconMapping[status]
|
|
51
|
+
}))
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const handleTitle = () => {
|
|
56
|
+
if (title) {
|
|
57
|
+
return jsx("div", Object.assign({
|
|
58
|
+
className: 'title'
|
|
59
|
+
}, {
|
|
60
|
+
children: jsx(AutoTips, {
|
|
61
|
+
children: title
|
|
62
|
+
})
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const handleSubTitle = () => {
|
|
67
|
+
if (subTitle) {
|
|
68
|
+
return jsx("div", Object.assign({
|
|
69
|
+
className: 'sub-title'
|
|
70
|
+
}, {
|
|
71
|
+
children: subTitle
|
|
72
|
+
}));
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const handleFooter = () => {
|
|
76
|
+
if (footer) {
|
|
77
|
+
return jsx("div", Object.assign({
|
|
78
|
+
className: 'footer'
|
|
79
|
+
}, {
|
|
80
|
+
children: footer
|
|
81
|
+
}));
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
return jsxs("div", Object.assign({
|
|
85
|
+
className: clsx(className, "".concat($prefixCls, "-result"), {
|
|
86
|
+
["".concat($prefixCls, "-result-").concat(status)]: status
|
|
87
|
+
}),
|
|
88
|
+
style: style
|
|
89
|
+
}, {
|
|
90
|
+
children: [handleIcon(), handleTitle(), handleSubTitle(), handleFooter()]
|
|
91
|
+
}));
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export { Result, Result as default };
|
package/Select/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import Label from '../Label/index.js';
|
|
|
5
5
|
import { D as Dropdown } from '../_verture/index-bde7aabe.js';
|
|
6
6
|
import { UUID, DeepClone } from '@paraview/lib';
|
|
7
7
|
import { G as GlobalContext } from '../_verture/index-ca413216.js';
|
|
8
|
-
import
|
|
8
|
+
import Close from '@para-ui/icons/Close';
|
|
9
9
|
import CloseCircleF from '@para-ui/icons/CloseCircleF';
|
|
10
10
|
import Down from '@para-ui/icons/Down';
|
|
11
11
|
import Check from '@para-ui/icons/Check';
|
|
@@ -869,7 +869,7 @@ const Select = props => {
|
|
|
869
869
|
}, {
|
|
870
870
|
children: handContent(index)
|
|
871
871
|
}))
|
|
872
|
-
}), isClose && jsx(
|
|
872
|
+
}), isClose && jsx(Close, {
|
|
873
873
|
onClick: delItem(listJson[valueCom[index]], valueCom[index])
|
|
874
874
|
})]
|
|
875
875
|
}), index);
|
|
@@ -958,7 +958,7 @@ const Select = props => {
|
|
|
958
958
|
}, {
|
|
959
959
|
children: handContent(index)
|
|
960
960
|
}))
|
|
961
|
-
}), isClose && jsx(
|
|
961
|
+
}), isClose && jsx(Close, {
|
|
962
962
|
onClick: delItem(listJson[valueCom[index]], valueCom[index])
|
|
963
963
|
})]
|
|
964
964
|
}), index);
|