@para-ui/core 3.0.105 → 3.0.107-rc
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/AutoBox/index.js +5 -9
- package/AutoTips/index.js +4 -11
- package/Breadcrumbs/index.js +7 -11
- package/Button/index.js +8 -12
- package/ButtonGroup/index.js +8 -12
- package/Carousel/index.js +4 -8
- package/Cascader/index.js +7 -11
- package/Checkbox/index.js +4 -8
- package/CheckboxGroup/index.js +4 -8
- package/Collapse/index.js +1 -5
- package/CollapseBox/index.js +4 -8
- package/CollapseLayout/index.js +6 -10
- package/ColorPicker/index.js +0 -2
- package/ComboSelect/index.js +14 -18
- package/Container/index.js +1 -5
- package/DatePicker/index.js +10 -14
- package/Desktop/index.js +10 -14
- package/DragVerify/index.js +6 -10
- package/Drawer/index.js +8 -12
- package/Dropdown/index.js +3 -4
- package/DynamicMultiBox/index.js +15 -19
- package/Empty/index.js +3 -7
- package/Form/index.js +15 -16
- package/FormItem/index.js +15 -16
- package/FunctionModal/index.js +14 -15
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +4 -8
- package/HelperText/index.js +1 -5
- package/InputLang/index.js +11 -15
- package/InputNumber/index.js +4 -8
- package/Label/index.js +4 -8
- package/Loading/index.js +1 -5
- package/Menu/index.js +5 -9
- package/Message/index.js +4 -8
- package/Modal/index.js +10 -17
- package/MultiBox/index.js +10 -14
- package/Notification/index.js +3 -7
- package/OperateBtn/index.js +9 -13
- package/PageHeader/index.js +9 -13
- package/Pagination/index.js +11 -15
- package/ParauiProvider/index.d.ts +1 -0
- package/ParauiProvider/index.js +3 -7
- package/PasswordRules/index.js +3 -7
- package/PopConfirm/index.js +8 -12
- package/Popover/index.js +5 -9
- package/Progress/index.js +2 -6
- package/Querying/index.js +3 -7
- package/README.md +10 -0
- package/Radio/index.js +4 -8
- package/RadioGroup/index.js +4 -8
- package/Search/index.js +9 -13
- package/Select/index.js +11 -15
- package/SelectInput/index.js +11 -12
- package/Selector/index.js +11 -24
- package/SelectorPicker/index.js +12 -16
- package/SingleBox/index.js +10 -14
- package/Slider/index.js +6 -10
- package/Split/index.js +4 -8
- package/Status/index.js +1 -5
- package/Stepper/index.js +3 -7
- package/Styles/theme/theme-api.scss +75 -0
- package/Styles/theme/theme-default.scss +74 -0
- package/Styles/theme/theme-shrcb.scss +80 -0
- package/Styles/theme.scss +1 -69
- package/Switch/index.js +6 -10
- package/Table/index.js +16 -39
- package/Tabs/index.js +9 -13
- package/Tag/index.js +7 -11
- package/TextEditor/index.js +5 -12
- package/TextField/index.js +8 -12
- package/TimePicker/index.js +10 -11
- package/Timeline/index.js +4 -8
- package/Title/index.js +1 -5
- package/ToggleButton/index.js +9 -13
- package/Tooltip/index.js +4 -8
- package/Transfer/index.js +13 -17
- package/Tree/index.js +12 -13
- package/Upload/ImageUpload/index.d.ts +2 -7
- package/Upload/index.js +113 -57
- package/Upload/interface.d.ts +18 -0
- package/_verture/{index-f4f86121.js → closestPolyfill-aa558c48.js} +8 -15
- package/_verture/closestPolyfill-e4aed056.js +1354 -0
- package/_verture/constant-8992bf83.js +10 -0
- package/_verture/{defineProperty-62acccfc.js → defineProperty-19daf078.js} +1 -1
- package/_verture/defineProperty-dbb356cd.js +34 -0
- package/_verture/{index-effca97a.js → index-5ca0cf2c.js} +4 -11
- package/_verture/{index-77f9e0fb.js → index-6217784a.js} +2 -6
- package/_verture/index-78f024fe.js +757 -0
- package/_verture/index-82ba60b5.js +232 -0
- package/_verture/index-8b6ea6cc.js +340 -0
- package/_verture/index-d7a0e820.js +18 -0
- package/_verture/{intl-4a9f1b44.js → intl-1d1097e2.js} +1 -1
- package/_verture/intl-23fe77b7.js +81 -0
- package/_verture/{modalContext-c04790c8.js → modalContext-32a590e2.js} +4 -8
- package/_verture/modalContext-d13603c6.js +197 -0
- package/_verture/{slicedToArray-76060636.js → slicedToArray-d0df4205.js} +1 -1
- package/_verture/slicedToArray-d0e9ca41.js +43 -0
- package/_verture/sortable.esm-476eb33a.js +3791 -0
- package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-0e19ce18.js} +1 -1
- package/_verture/toConsumableArray-d872f770.js +19 -0
- package/_verture/tslib.es6-85d7d0d5.js +38 -0
- package/_verture/typeof-efd93d53.js +11 -0
- package/_verture/unsupportedIterableToArray-eba4c7dc.js +16 -0
- package/_verture/useFormatMessage-df50b866.js +20 -0
- package/_verture/useGlobalProps-277b28c9.js +11 -0
- package/_verture/usePopupContainer-f7dd18e3.js +68 -0
- package/_verture/util-fb1ffb04.js +18 -0
- package/_verture/{utils-1ffeadec.js → utils-8c2aabfe.js} +1 -1
- package/_verture/utils-a36cfe72.js +92 -0
- package/index.js +20 -22
- package/package.json +4 -1
- package/theme/theme-shrcb.css +14616 -0
- package/theme/theme.css +15012 -0
- package/umd/Breadcrumbs.js +1 -1
- package/umd/Button.js +1 -1
- package/umd/ButtonGroup.js +1 -1
- package/umd/Checkbox.js +1 -1
- package/umd/CheckboxGroup.js +1 -1
- package/umd/CollapseLayout.js +3 -3
- package/umd/ComboSelect.js +2 -2
- package/umd/DatePicker.js +1 -1
- package/umd/Desktop.js +1 -1
- package/umd/DragVerify.js +1 -1
- package/umd/Drawer.js +1 -1
- package/umd/DynamicMultiBox.js +2 -2
- package/umd/Empty.js +1 -1
- package/umd/Form.js +2 -2
- package/umd/FormItem.js +2 -2
- package/umd/FunctionModal.js +4 -4
- package/umd/Help.js +1 -1
- package/umd/InputLang.js +1 -1
- package/umd/InputNumber.js +1 -1
- package/umd/Label.js +1 -1
- package/umd/Menu.js +3 -3
- package/umd/Message.js +1 -1
- package/umd/Modal.js +3 -3
- package/umd/MultiBox.js +1 -1
- package/umd/Notification.js +1 -1
- package/umd/OperateBtn.js +1 -1
- package/umd/PageHeader.js +7 -7
- package/umd/Pagination.js +4 -4
- package/umd/ParauiProvider.js +1 -1
- package/umd/PopConfirm.js +1 -1
- package/umd/Progress.js +1 -1
- package/umd/Radio.js +1 -1
- package/umd/RadioGroup.js +1 -1
- package/umd/Search.js +1 -1
- package/umd/Select.js +1 -1
- package/umd/SelectInput.js +1 -1
- package/umd/Selector.js +1 -1
- package/umd/SelectorPicker.js +1 -1
- package/umd/SingleBox.js +1 -1
- package/umd/Slider.js +1 -1
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +2 -2
- package/umd/Tabs.js +1 -1
- package/umd/Tag.js +1 -1
- package/umd/TextEditor.js +1 -1
- package/umd/TextField.js +1 -1
- package/umd/TimePicker.js +1 -1
- package/umd/Timeline.js +1 -1
- package/umd/Title.js +1 -1
- package/umd/ToggleButton.js +1 -1
- package/umd/Transfer.js +1 -1
- package/umd/Tree.js +1 -1
- package/umd/Upload.js +5 -5
- package/_verture/index-a369ca3f.js +0 -4
- package/_verture/style-inject.es-300983ab.js +0 -28
- /package/_verture/{constant-66aa48a1.js → constant-0ef8de65.js} +0 -0
- /package/_verture/{index-65bbd1e4.js → index-178adec2.js} +0 -0
- /package/_verture/{index-beef914f.js → index-485070a0.js} +0 -0
- /package/_verture/{sortable.esm-49896035.js → sortable.esm-30288b43.js} +0 -0
- /package/_verture/{tslib.es6-55ed4bd2.js → tslib.es6-575049a5.js} +0 -0
- /package/_verture/{typeof-498dd2b1.js → typeof-d4922fc6.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-cb478f24.js → unsupportedIterableToArray-878ef803.js} +0 -0
- /package/_verture/{useFormatMessage-703f8b20.js → useFormatMessage-24a86ca6.js} +0 -0
- /package/_verture/{useGlobalProps-1b846a65.js → useGlobalProps-13b65974.js} +0 -0
- /package/_verture/{usePopupContainer-87febeb9.js → usePopupContainer-6db7e9f3.js} +0 -0
- /package/_verture/{util-7e1fb1e2.js → util-10192b53.js} +0 -0
package/Tree/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/
|
|
2
|
-
export { T as default } from '../_verture/
|
|
3
|
-
import '../_verture/toConsumableArray-
|
|
4
|
-
import '../_verture/unsupportedIterableToArray-
|
|
5
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/typeof-
|
|
7
|
-
import '../_verture/slicedToArray-
|
|
8
|
-
import '../_verture/index-
|
|
9
|
-
import '../_verture/tslib.es6-
|
|
1
|
+
import { T as Tree } from '../_verture/closestPolyfill-aa558c48.js';
|
|
2
|
+
export { T as default } from '../_verture/closestPolyfill-aa558c48.js';
|
|
3
|
+
import '../_verture/toConsumableArray-0e19ce18.js';
|
|
4
|
+
import '../_verture/unsupportedIterableToArray-eba4c7dc.js';
|
|
5
|
+
import '../_verture/defineProperty-dbb356cd.js';
|
|
6
|
+
import '../_verture/typeof-efd93d53.js';
|
|
7
|
+
import '../_verture/slicedToArray-d0df4205.js';
|
|
8
|
+
import '../_verture/index-485070a0.js';
|
|
9
|
+
import '../_verture/tslib.es6-85d7d0d5.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
|
12
12
|
import 'rc-tree';
|
|
@@ -20,8 +20,7 @@ import '../Help/index.js';
|
|
|
20
20
|
import '../Tooltip/index.js';
|
|
21
21
|
import 'rc-tooltip';
|
|
22
22
|
import 'rc-tooltip/lib/placements';
|
|
23
|
-
import '../_verture/constant-
|
|
24
|
-
import '../_verture/style-inject.es-300983ab.js';
|
|
23
|
+
import '../_verture/constant-8992bf83.js';
|
|
25
24
|
import '@para-ui/icons/Help';
|
|
26
25
|
import 'react-dom';
|
|
27
26
|
import '@para-ui/icons/EditFile';
|
|
@@ -29,10 +28,10 @@ import '@para-ui/icons/PlusCircle';
|
|
|
29
28
|
import '@para-ui/icons/Delete';
|
|
30
29
|
import '@para-ui/icons/Forbid';
|
|
31
30
|
import '@paraview/lib';
|
|
32
|
-
import '../_verture/useFormatMessage-
|
|
31
|
+
import '../_verture/useFormatMessage-24a86ca6.js';
|
|
33
32
|
import '@para-ui/core/GlobalContext';
|
|
34
33
|
import '@para-ui/icons/MoreCircle';
|
|
35
34
|
import '../Empty/index.js';
|
|
36
|
-
import '../_verture/useGlobalProps-
|
|
35
|
+
import '../_verture/useGlobalProps-277b28c9.js';
|
|
37
36
|
import '../Loading/index.js';
|
|
38
37
|
import '../AutoTips/index.js';
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { FunctionComponent } from 'react';
|
|
2
|
-
import { UploadProps } from '../interface';
|
|
2
|
+
import { UploadProps, DefaultImage } from '../interface';
|
|
3
3
|
import './index.scss';
|
|
4
4
|
export type ImageUploadProps = Omit<UploadProps, 'type'> & {
|
|
5
5
|
/** 默认图片 showUploadList为false时有效 */
|
|
6
|
-
defaultImage?:
|
|
7
|
-
/** 图片地址 */
|
|
8
|
-
imageUrl: string;
|
|
9
|
-
/** 图片名称 */
|
|
10
|
-
imageName?: string;
|
|
11
|
-
};
|
|
6
|
+
defaultImage?: DefaultImage;
|
|
12
7
|
/** 用于控制这个组件只回显图片 不能上传和删除 */
|
|
13
8
|
readonly?: boolean;
|
|
14
9
|
};
|
package/Upload/index.js
CHANGED
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
import { _ as _defineProperty } from '../_verture/defineProperty-
|
|
2
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
3
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
4
|
-
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-
|
|
1
|
+
import { _ as _defineProperty } from '../_verture/defineProperty-dbb356cd.js';
|
|
2
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-0e19ce18.js';
|
|
3
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-d0df4205.js';
|
|
4
|
+
import { a as __awaiter, _ as __rest } from '../_verture/tslib.es6-85d7d0d5.js';
|
|
5
5
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
6
6
|
import { useState, useEffect, useRef, memo, forwardRef, useCallback, useImperativeHandle, useMemo } from 'react';
|
|
7
7
|
import RcUpload from 'rc-upload';
|
|
8
8
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
9
9
|
import LoadingIcon from '@para-ui/icons/Loading';
|
|
10
|
-
import { _ as _typeof } from '../_verture/typeof-
|
|
11
|
-
import { r as regenerator } from '../_verture/index-
|
|
10
|
+
import { _ as _typeof } from '../_verture/typeof-efd93d53.js';
|
|
11
|
+
import { r as regenerator } from '../_verture/index-485070a0.js';
|
|
12
12
|
import Delete from '@para-ui/icons/Delete';
|
|
13
13
|
import TextIcon from '@para-ui/icons/Text';
|
|
14
14
|
import PhotoIcon from '@para-ui/icons/Photo';
|
|
15
15
|
import clsx from 'clsx';
|
|
16
|
-
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-
|
|
17
|
-
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
16
|
+
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-8992bf83.js';
|
|
18
17
|
import Forbid from '@para-ui/icons/Forbid';
|
|
19
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-703f8b20.js';
|
|
20
|
-
import EditOutline from '@para-ui/icons/EditOutline';
|
|
21
18
|
import { Button } from '../Button/index.js';
|
|
19
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-24a86ca6.js';
|
|
20
|
+
import EditOutline from '@para-ui/icons/EditOutline';
|
|
21
|
+
import CloseIcon from '@para-ui/icons/Close';
|
|
22
22
|
import { Slider } from '../Slider/index.js';
|
|
23
23
|
import Cropper from 'react-easy-crop';
|
|
24
24
|
import { Modal } from '../Modal/index.js';
|
|
25
|
-
import '../_verture/unsupportedIterableToArray-
|
|
26
|
-
import '@para-ui/core/GlobalContext';
|
|
25
|
+
import '../_verture/unsupportedIterableToArray-eba4c7dc.js';
|
|
27
26
|
import '@para-ui/icons/LoadingF';
|
|
28
27
|
import '../Tooltip/index.js';
|
|
29
28
|
import 'rc-tooltip';
|
|
30
29
|
import 'rc-tooltip/lib/placements';
|
|
31
30
|
import '@para-ui/icons/Down';
|
|
32
|
-
import '../_verture/index-
|
|
31
|
+
import '../_verture/index-6217784a.js';
|
|
33
32
|
import 'rc-dropdown';
|
|
34
|
-
import '../_verture/usePopupContainer-
|
|
33
|
+
import '../_verture/usePopupContainer-6db7e9f3.js';
|
|
35
34
|
import 'dayjs';
|
|
36
35
|
import '@paraview/lib';
|
|
36
|
+
import '@para-ui/core/GlobalContext';
|
|
37
37
|
import 'rc-slider';
|
|
38
38
|
import 'rc-dialog';
|
|
39
|
-
import '
|
|
40
|
-
import '../_verture/index-65bbd1e4.js';
|
|
39
|
+
import '../_verture/index-178adec2.js';
|
|
41
40
|
import 'react-dom';
|
|
42
41
|
import '../AutoTips/index.js';
|
|
43
42
|
import '@para-ui/icons/CheckCircleF';
|
|
@@ -45,9 +44,6 @@ import '@para-ui/icons/CloseCircleF';
|
|
|
45
44
|
import '@para-ui/icons/WarningCircle';
|
|
46
45
|
import '@para-ui/icons/WarningCircleF';
|
|
47
46
|
|
|
48
|
-
var css_248z$4 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午3:08\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-upload-list-text .upload-list-item {\n margin-top: 8px;\n}\n.paraui-v3-upload-list-text .upload-list-item-info {\n display: flex;\n align-items: center;\n padding: 0 8px;\n line-height: 28px;\n font-size: 14px;\n color: rgb(46, 55, 67);\n border-radius: 4px;\n transition: background-color 0.3s;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text {\n position: relative;\n display: inline-flex;\n align-items: center;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text .upload-list-fileicon {\n line-height: 0;\n opacity: 1;\n transition: opacity 0.3s;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text .upload-list-fileicon svg {\n color: inherit;\n font-size: inherit;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text-name {\n margin-left: 10px;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text .upload-list-actions {\n position: absolute;\n opacity: 0;\n visibility: hidden;\n line-height: 0;\n transition: opacity 0.3s;\n cursor: pointer;\n}\n.paraui-v3-upload-list-text .upload-list-item-info .upload-list-text .upload-list-actions svg {\n color: rgb(235, 96, 84);\n font-size: inherit;\n}\n.paraui-v3-upload-list-text .upload-list-item-info:hover {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-upload-list-text .upload-list-item-info:hover .upload-list-text .upload-list-actions {\n visibility: visible;\n opacity: 1;\n}\n.paraui-v3-upload-list-text .upload-list-item-info:hover .upload-list-text .upload-list-fileicon-active {\n opacity: 0;\n}\n.paraui-v3-upload-list-picture {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item {\n position: relative;\n display: inline-block;\n width: 100px;\n height: 100px;\n margin-right: 16px;\n border-radius: 4px;\n cursor: default;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item::before {\n content: \" \";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background-color: rgba(46, 55, 67, 0.7);\n border-radius: 4px;\n opacity: 0;\n transition: 0.3s;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item .upload-list-picture-name {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 10px;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n background-color: rgba(46, 55, 67, 0.7);\n border-radius: 0 0 4px 4px;\n color: rgb(255, 255, 255);\n transition: 0.3s;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item .upload-list-actions {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n line-height: 0;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item .upload-list-actions svg {\n color: rgb(255, 255, 255);\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly)::before {\n opacity: 1;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly) .upload-list-actions {\n opacity: 1;\n}\n.paraui-v3-upload-list-picture .upload-list-picture-item:hover:not(.upload-list-picture-item-readonly) .upload-list-picture-name {\n opacity: 0;\n}";
|
|
49
|
-
styleInject(css_248z$4);
|
|
50
|
-
|
|
51
47
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
52
48
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
53
49
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -232,9 +228,6 @@ var UploadList = function UploadList(props) {
|
|
|
232
228
|
});
|
|
233
229
|
};
|
|
234
230
|
|
|
235
|
-
var css_248z$3 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/15 下午7:12\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-upload-error {\n position: absolute;\n left: 0;\n top: 100%;\n margin-top: 12px;\n display: inline-flex;\n align-items: center;\n padding: 0 12px;\n line-height: 28px;\n background-color: #FDF6F5;\n color: rgb(235, 96, 84);\n font-size: 14px;\n white-space: nowrap;\n border-radius: 4px;\n z-index: 1;\n}\n.paraui-v3-upload-error svg {\n margin-right: 4px;\n font-size: inherit;\n color: inherit;\n}\n.paraui-v3-upload-error-image {\n margin-top: 8px;\n}\n.paraui-v3-upload-error-drag {\n top: 20px;\n left: 50%;\n margin-top: 0;\n transform: translateX(-50%);\n}";
|
|
236
|
-
styleInject(css_248z$3);
|
|
237
|
-
|
|
238
231
|
//error tip
|
|
239
232
|
var ErrorTip = function ErrorTip(props) {
|
|
240
233
|
return jsxs("div", Object.assign({
|
|
@@ -273,9 +266,6 @@ var localeJson = {
|
|
|
273
266
|
en: en
|
|
274
267
|
};
|
|
275
268
|
|
|
276
|
-
var css_248z$2 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午7:31\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-upload-image {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v3-upload-image .upload-image-select {\n position: relative;\n width: 100px;\n height: 100px;\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v3-upload-image .upload-image-select-loading {\n pointer-events: none;\n}\n.paraui-v3-upload-image .upload-image-select .component-upload {\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-upload-image .upload-image-select:hover {\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-upload-image .upload-image-select:hover .upload-image-picture-card {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-upload-image .upload-image-picture-card {\n display: inline-flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n align-items: center;\n justify-content: center;\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n cursor: default;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper::before {\n content: \" \";\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n background-color: rgba(46, 55, 67, 0.7);\n border-radius: 4px;\n opacity: 0;\n transition: 0.3s;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper-name {\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n padding: 0 10px;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n background-color: rgba(46, 55, 67, 0.7);\n border-radius: 0 0 4px 4px;\n color: rgb(255, 255, 255);\n transition: 0.3s;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper-action {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n opacity: 0;\n line-height: 0;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper-action svg {\n color: rgb(255, 255, 255);\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper:hover::before {\n opacity: 1;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-name {\n opacity: 0;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-action {\n opacity: 1;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-image-icon {\n color: rgb(54, 102, 214);\n font-size: 30px;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-image-loading {\n color: rgb(54, 102, 214);\n font-size: 30px;\n animation: imageLoadingCircle 1s infinite linear;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-image-text {\n margin-top: 6px;\n color: inherit;\n transition: 0.3s;\n text-align: center;\n}\n.paraui-v3-upload-image .upload-image-picture-card .upload-image-text-loading {\n color: rgb(54, 102, 214);\n}\n@keyframes imageLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
|
|
277
|
-
styleInject(css_248z$2);
|
|
278
|
-
|
|
279
269
|
//ImageUpload
|
|
280
270
|
var ImageUpload = function ImageUpload(props) {
|
|
281
271
|
var className = props.className,
|
|
@@ -308,7 +298,8 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
308
298
|
showLoadingProp = _props$showLoading === void 0 ? false : _props$showLoading,
|
|
309
299
|
defaultImage = props.defaultImage,
|
|
310
300
|
readonly = props.readonly,
|
|
311
|
-
|
|
301
|
+
avatarProps = props.avatarProps,
|
|
302
|
+
restProps = __rest(props, ["className", "style", "onStart", "onSuccess", "onError", "onProgress", "onRemove", "beforeUpload", "onChange", "defaultFileList", "fileList", "showUploadList", "maxCount", "children", "itemRender", "showUploadError", "stash", "uploading", "loading", "showLoading", "defaultImage", "readonly", "avatarProps"]);
|
|
312
303
|
var intl = useFormatMessage('Upload', localeJson);
|
|
313
304
|
var _useState = useState(defaultFileList),
|
|
314
305
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -316,18 +307,34 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
316
307
|
setUploadFileList = _useState2[1]; //文件列表
|
|
317
308
|
var _useState3 = useState(false),
|
|
318
309
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
var _useState5 = useState(
|
|
310
|
+
showResetBtn = _useState4[0],
|
|
311
|
+
setShowResetBtn = _useState4[1]; // 是否展示重置按钮-默认不展示
|
|
312
|
+
var _useState5 = useState(),
|
|
322
313
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
var _useState7 = useState(
|
|
314
|
+
borderRadius = _useState6[0],
|
|
315
|
+
setBorderRadius = _useState6[1]; // border-radius样式
|
|
316
|
+
var _useState7 = useState(false),
|
|
317
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
318
|
+
isAvatar = _useState8[0],
|
|
319
|
+
setIsAvatar = _useState8[1]; // 是否为头像组件
|
|
320
|
+
var _useState9 = useState(true),
|
|
321
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
322
|
+
showPicName = _useState10[0],
|
|
323
|
+
setShowPicName = _useState10[1]; // 是否展示图片名称
|
|
324
|
+
var _useState11 = useState(false),
|
|
325
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
326
|
+
showLoading = _useState12[0],
|
|
327
|
+
setShowLoading = _useState12[1]; //upload loading
|
|
328
|
+
var _useState13 = useState(false),
|
|
329
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
330
|
+
errTip = _useState14[0],
|
|
331
|
+
setErrTip = _useState14[1]; //upload error tip
|
|
332
|
+
var _useState15 = useState({
|
|
326
333
|
imageUrl: ''
|
|
327
334
|
}),
|
|
328
|
-
|
|
329
|
-
avatar =
|
|
330
|
-
setAvatar =
|
|
335
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
336
|
+
avatar = _useState16[0],
|
|
337
|
+
setAvatar = _useState16[1]; //不显示列表时上传头像
|
|
331
338
|
var _ref = typeof showUploadList === 'boolean' ? {} : showUploadList,
|
|
332
339
|
showRemoveIcon = _ref.showRemoveIcon,
|
|
333
340
|
removeIcon = _ref.removeIcon; //显示上传列表
|
|
@@ -339,6 +346,39 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
339
346
|
_ref2$leaveDelay = _ref2.leaveDelay,
|
|
340
347
|
leaveDelay = _ref2$leaveDelay === void 0 ? 2000 : _ref2$leaveDelay; //错误信息提示
|
|
341
348
|
var cropFileRef = useRef(); //裁剪文件
|
|
349
|
+
useEffect(function () {
|
|
350
|
+
if (avatarProps && Object.prototype.toString.call(avatarProps) === "[object Object]" && Object.keys(avatarProps).length > 0) {
|
|
351
|
+
var _ref3 = avatarProps || {},
|
|
352
|
+
_ref3$showReset = _ref3.showReset,
|
|
353
|
+
showReset = _ref3$showReset === void 0 ? false : _ref3$showReset,
|
|
354
|
+
_ref3$borderRadius = _ref3.borderRadius,
|
|
355
|
+
borderRadiusVal = _ref3$borderRadius === void 0 ? "50%" : _ref3$borderRadius,
|
|
356
|
+
avatarDefaultImage = _ref3.defaultImage,
|
|
357
|
+
_ref3$showName = _ref3.showName,
|
|
358
|
+
showName = _ref3$showName === void 0 ? false : _ref3$showName;
|
|
359
|
+
setShowResetBtn(showReset);
|
|
360
|
+
setBorderRadius(String(borderRadiusVal).includes("px") || String(borderRadiusVal).includes("%") ? String(borderRadiusVal) : "".concat(borderRadiusVal, "px"));
|
|
361
|
+
setIsAvatar(true);
|
|
362
|
+
setShowPicName(showName);
|
|
363
|
+
var nextAvatarDefaultImage = avatarDefaultImage || defaultImage || {
|
|
364
|
+
imageUrl: ''
|
|
365
|
+
};
|
|
366
|
+
setAvatar(Object.assign({}, nextAvatarDefaultImage));
|
|
367
|
+
} else if (typeof avatarProps === "boolean" && avatarProps) {
|
|
368
|
+
setBorderRadius("50%");
|
|
369
|
+
setIsAvatar(true);
|
|
370
|
+
setShowPicName(false);
|
|
371
|
+
if (defaultImage) {
|
|
372
|
+
setAvatar(Object.assign({}, defaultImage));
|
|
373
|
+
}
|
|
374
|
+
} else {
|
|
375
|
+
setIsAvatar(false);
|
|
376
|
+
setShowPicName(true);
|
|
377
|
+
if (defaultImage) {
|
|
378
|
+
setAvatar(Object.assign({}, defaultImage));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}, [avatarProps, defaultImage]);
|
|
342
382
|
useEffect(function () {
|
|
343
383
|
setShowLoading(loading);
|
|
344
384
|
}, [loading]);
|
|
@@ -434,13 +474,13 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
434
474
|
case 0:
|
|
435
475
|
cloneList = _toConsumableArray(changedFileList);
|
|
436
476
|
if (showUploadList) {
|
|
437
|
-
_context2.next =
|
|
477
|
+
_context2.next = 17;
|
|
438
478
|
break;
|
|
439
479
|
}
|
|
440
480
|
//不显示上传列表
|
|
441
481
|
file = cloneList.slice(-1)[0];
|
|
442
482
|
if (!file) {
|
|
443
|
-
_context2.next =
|
|
483
|
+
_context2.next = 14;
|
|
444
484
|
break;
|
|
445
485
|
}
|
|
446
486
|
_context2.next = 6;
|
|
@@ -451,10 +491,17 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
451
491
|
avatar.imageUrl = imageUrl;
|
|
452
492
|
avatar.imageName = file.name;
|
|
453
493
|
setAvatar(Object.assign({}, avatar));
|
|
454
|
-
case 11:
|
|
455
494
|
onChange === null || onChange === void 0 ? void 0 : onChange([file]);
|
|
495
|
+
_context2.next = 16;
|
|
496
|
+
break;
|
|
497
|
+
case 14:
|
|
498
|
+
setAvatar({
|
|
499
|
+
imageUrl: ''
|
|
500
|
+
});
|
|
501
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([]);
|
|
502
|
+
case 16:
|
|
456
503
|
return _context2.abrupt("return");
|
|
457
|
-
case
|
|
504
|
+
case 17:
|
|
458
505
|
if (maxCount === 1) {
|
|
459
506
|
cloneList = cloneList.slice(-1);
|
|
460
507
|
} else if (maxCount) {
|
|
@@ -462,7 +509,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
462
509
|
}
|
|
463
510
|
onChange === null || onChange === void 0 ? void 0 : onChange(cloneList);
|
|
464
511
|
setUploadFileList(cloneList);
|
|
465
|
-
case
|
|
512
|
+
case 20:
|
|
466
513
|
case "end":
|
|
467
514
|
return _context2.stop();
|
|
468
515
|
}
|
|
@@ -546,11 +593,6 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
546
593
|
setUploadFileList(_toConsumableArray(fileList));
|
|
547
594
|
}
|
|
548
595
|
}, [fileList]);
|
|
549
|
-
useEffect(function () {
|
|
550
|
-
if (defaultImage) {
|
|
551
|
-
setAvatar(Object.assign({}, defaultImage));
|
|
552
|
-
}
|
|
553
|
-
}, [defaultImage]);
|
|
554
596
|
//渲染上传列表
|
|
555
597
|
var renderUploadList = function renderUploadList() {
|
|
556
598
|
return showUploadList && jsx(UploadList, {
|
|
@@ -566,14 +608,19 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
566
608
|
//渲染内容
|
|
567
609
|
var renderUploadContent = function renderUploadContent() {
|
|
568
610
|
var _a;
|
|
611
|
+
var borderRadiusStyle = borderRadius ? {
|
|
612
|
+
borderRadius: borderRadius
|
|
613
|
+
} : {};
|
|
569
614
|
if (!showUploadList && avatar.imageUrl && !showLoading) {
|
|
570
615
|
return jsxs("div", Object.assign({
|
|
571
|
-
className: 'upload-img-wrapper'
|
|
616
|
+
className: 'upload-img-wrapper',
|
|
617
|
+
style: borderRadiusStyle
|
|
572
618
|
}, {
|
|
573
619
|
children: [jsx("img", {
|
|
574
620
|
src: avatar.imageUrl,
|
|
575
|
-
alt: (_a = avatar.imageName) !== null && _a !== void 0 ? _a : ''
|
|
576
|
-
|
|
621
|
+
alt: (_a = avatar.imageName) !== null && _a !== void 0 ? _a : '',
|
|
622
|
+
style: borderRadiusStyle
|
|
623
|
+
}), avatar.imageName && showPicName && jsx("span", Object.assign({
|
|
577
624
|
className: "upload-img-wrapper-name"
|
|
578
625
|
}, {
|
|
579
626
|
children: avatar.imageName
|
|
@@ -600,9 +647,11 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
600
647
|
};
|
|
601
648
|
//渲染上传控件
|
|
602
649
|
var renderUploadSelector = function renderUploadSelector() {
|
|
603
|
-
if (readonly) return null;
|
|
604
650
|
return jsxs("div", Object.assign({
|
|
605
|
-
className: clsx('upload-image-select', showLoading && 'upload-image-select-loading')
|
|
651
|
+
className: clsx(['upload-image-select', showLoading && 'upload-image-select-loading', isAvatar && 'is-avatar']),
|
|
652
|
+
style: borderRadius ? {
|
|
653
|
+
borderRadius: borderRadius
|
|
654
|
+
} : {}
|
|
606
655
|
}, {
|
|
607
656
|
children: [jsx(RcUpload, Object.assign({}, overrideProps, {
|
|
608
657
|
prefixCls: "".concat($rcPrefixCls, "-upload")
|
|
@@ -618,11 +667,24 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
618
667
|
})]
|
|
619
668
|
}));
|
|
620
669
|
};
|
|
670
|
+
var handleReset = function handleReset() {
|
|
671
|
+
handleRemove(uploadFileList[0]);
|
|
672
|
+
};
|
|
621
673
|
return jsxs("div", Object.assign({
|
|
622
674
|
className: clsx("".concat($prefixCls, "-upload-image"), className),
|
|
623
675
|
style: style
|
|
624
676
|
}, {
|
|
625
|
-
children: [renderUploadList(),
|
|
677
|
+
children: [renderUploadList(), !readonly ? showResetBtn && avatar.imageUrl ? jsxs("div", Object.assign({
|
|
678
|
+
className: "upload-img-wrapper-container"
|
|
679
|
+
}, {
|
|
680
|
+
children: [jsx(Button, Object.assign({
|
|
681
|
+
className: "upload-img-wrapper-container__del-btn",
|
|
682
|
+
variant: "text",
|
|
683
|
+
onClick: handleReset
|
|
684
|
+
}, {
|
|
685
|
+
children: jsx(CloseIcon, {})
|
|
686
|
+
})), renderUploadSelector()]
|
|
687
|
+
})) : renderUploadSelector() : jsx(Fragment, {})]
|
|
626
688
|
}));
|
|
627
689
|
};
|
|
628
690
|
|
|
@@ -788,9 +850,6 @@ var EasyCrop = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
788
850
|
});
|
|
789
851
|
var EasyCrop$1 = /*#__PURE__*/memo(EasyCrop);
|
|
790
852
|
|
|
791
|
-
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2022/4/20 下午4:44\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-container {\n position: relative;\n width: 100%;\n height: 40vh;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control {\n display: flex;\n align-items: center;\n width: 60%;\n margin-left: auto;\n margin-right: auto;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control:first-of-type {\n margin-top: 16px;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control:last-of-type {\n margin-bottom: -8px;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control button {\n display: flex;\n justify-content: center;\n align-items: center;\n width: 34px;\n height: 34px;\n padding: 0;\n font-style: normal;\n background: transparent;\n border: 0;\n outline: 0;\n cursor: pointer;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control button[disabled] {\n cursor: default;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control button + div:only-of-type {\n flex: 1;\n margin: 0 8px;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control-zoom button {\n font-size: 18px;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control-rotate button {\n font-size: 16px;\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control-rotate button:first-of-type {\n transform: rotate(-20deg);\n}\n.paraui-v3-img-crop-modal .paraui-v3-img-crop-control-rotate button:last-of-type {\n transform: rotate(20deg);\n}";
|
|
792
|
-
styleInject(css_248z$1);
|
|
793
|
-
|
|
794
853
|
//图片裁剪组件
|
|
795
854
|
var ImgCrop = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
796
855
|
var _props$aspect = props.aspect,
|
|
@@ -1127,9 +1186,6 @@ var ImgCrop = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1127
1186
|
});
|
|
1128
1187
|
});
|
|
1129
1188
|
|
|
1130
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午1:40\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-upload .component-upload {\n position: relative;\n display: inline-block;\n}\n.paraui-v3-upload-loading {\n pointer-events: none;\n}\n.paraui-v3-upload .paraui-v3-button {\n color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-upload .paraui-v3-button:hover {\n border-color: rgba(54, 102, 214, 0.8);\n color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-upload .paraui-v3-button-loading .button-icon {\n animation: uploadLoadingCircle 1s infinite linear;\n}\n.paraui-v3-upload-drag {\n position: relative;\n}\n.paraui-v3-upload-drag .component-upload {\n display: block;\n}\n.paraui-v3-upload-drag-loading {\n pointer-events: none;\n}\n.paraui-v3-upload-drag-hover .upload-drag-container {\n border-color: rgba(54, 102, 214, 0.4);\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-upload-drag .upload-drag-container {\n display: inline-flex;\n width: 100%;\n max-width: 960px;\n height: 220px;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n font-size: 14px;\n line-height: 1;\n border: 2px dashed rgba(171, 176, 185, 0.4);\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n cursor: pointer;\n transition: 0.3s;\n}\n.paraui-v3-upload-drag .upload-drag-container:hover {\n border-color: rgba(54, 102, 214, 0.4);\n background-color: rgba(54, 102, 214, 0.05);\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-icon {\n line-height: 0;\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-icon svg {\n font-size: 48px;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-icon .upload-drag-loading {\n animation: uploadLoadingCircle 1s infinite linear;\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-text {\n margin: 20px 0 12px 0;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-text-loading {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-text-filename {\n margin-right: 5px;\n color: rgb(46, 55, 67);\n}\n.paraui-v3-upload-drag .upload-drag-container .upload-drag-hint {\n color: rgba(46, 55, 67, 0.7);\n padding: 0 20px;\n text-align: center;\n}\n@keyframes uploadLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
|
|
1131
|
-
styleInject(css_248z);
|
|
1132
|
-
|
|
1133
1189
|
//upload
|
|
1134
1190
|
var InternalUpload = function InternalUpload(props) {
|
|
1135
1191
|
var _props$type = props.type,
|
package/Upload/interface.d.ts
CHANGED
|
@@ -32,6 +32,22 @@ export interface IShowUploadList {
|
|
|
32
32
|
removeIcon?: React.ReactNode;
|
|
33
33
|
}
|
|
34
34
|
type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
|
|
35
|
+
export interface DefaultImage {
|
|
36
|
+
/** 图片地址 */
|
|
37
|
+
imageUrl: string;
|
|
38
|
+
/** 图片名称 */
|
|
39
|
+
imageName?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface AvatarProps {
|
|
42
|
+
/** 圆角 */
|
|
43
|
+
borderRadius?: string | number;
|
|
44
|
+
/** 是否展示重置按钮 */
|
|
45
|
+
showReset?: boolean;
|
|
46
|
+
/** 图片地址 */
|
|
47
|
+
defaultImage?: DefaultImage;
|
|
48
|
+
/** 是否展示图片名称 */
|
|
49
|
+
showName?: boolean;
|
|
50
|
+
}
|
|
35
51
|
export interface UploadProps<T = any> {
|
|
36
52
|
/**上传类型*/
|
|
37
53
|
type?: UploadType;
|
|
@@ -59,6 +75,8 @@ export interface UploadProps<T = any> {
|
|
|
59
75
|
accept?: string;
|
|
60
76
|
/**是否支持多选文件,开启后按住 ctrl 可选择多个文件*/
|
|
61
77
|
multiple?: boolean;
|
|
78
|
+
/** 头像 */
|
|
79
|
+
avatarProps?: boolean | AvatarProps;
|
|
62
80
|
/**上传文件改变时的状态*/
|
|
63
81
|
onChange?: (info: UploadFile[]) => void;
|
|
64
82
|
/**上传开始*/
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
4
|
-
import { r as regenerator } from './index-
|
|
5
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-0e19ce18.js';
|
|
2
|
+
import { _ as _defineProperty } from './defineProperty-dbb356cd.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-d0df4205.js';
|
|
4
|
+
import { r as regenerator } from './index-485070a0.js';
|
|
5
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-85d7d0d5.js';
|
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
8
8
|
import RcTree from 'rc-tree';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { _ as _typeof } from './typeof-
|
|
10
|
+
import { _ as _typeof } from './typeof-efd93d53.js';
|
|
11
11
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
12
12
|
import FileOutlined from '@para-ui/icons/Document';
|
|
13
13
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
|
14
14
|
import { Radio } from '../Radio/index.js';
|
|
15
|
-
import { $ as $prefixCls } from './constant-
|
|
15
|
+
import { $ as $prefixCls } from './constant-8992bf83.js';
|
|
16
16
|
import ReactDOM from 'react-dom';
|
|
17
17
|
import EditOutlinedIcon from '@para-ui/icons/EditFile';
|
|
18
18
|
import AddOutlinedIcon from '@para-ui/icons/PlusCircle';
|
|
@@ -20,8 +20,7 @@ import Delete from '@para-ui/icons/Delete';
|
|
|
20
20
|
import Forbid from '@para-ui/icons/Forbid';
|
|
21
21
|
import { Tooltip } from '../Tooltip/index.js';
|
|
22
22
|
import { UUID, Request } from '@paraview/lib';
|
|
23
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
24
|
-
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
23
|
+
import { u as useFormatMessage } from './useFormatMessage-24a86ca6.js';
|
|
25
24
|
import MoreOutlinedIcon from '@para-ui/icons/MoreCircle';
|
|
26
25
|
import Empty from '../Empty/index.js';
|
|
27
26
|
import { Loading } from '../Loading/index.js';
|
|
@@ -265,9 +264,6 @@ var localeJson = {
|
|
|
265
264
|
en: en
|
|
266
265
|
};
|
|
267
266
|
|
|
268
|
-
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.sector-container {\n position: relative;\n z-index: 1500;\n}\n.sector-container .sector-item-container {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n padding: 0;\n}\n.sector-container .sector-item-container .sector-item {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n height: 24px;\n background-color: rgb(255, 255, 255);\n border-radius: 50%;\n box-shadow: 4px 4px 6px rgba(70, 75, 105, 0.2), -4px -4px 6px rgba(0, 0, 0, 0.06);\n cursor: pointer;\n opacity: 0;\n}\n.sector-container .sector-item-container .sector-item svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.sector-container .sector-item-container .sector-item:hover {\n color: rgb(54, 102, 214);\n}\n.sector-container .sector-item-container .sector-item:hover svg {\n color: inherit;\n}\n.sector-container .sector-item-container .sector-item--del:hover {\n color: rgb(235, 96, 84);\n}\n.sector-container .sector-item-container .sector-item--del:hover svg {\n color: inherit;\n}";
|
|
269
|
-
styleInject(css_248z$1);
|
|
270
|
-
|
|
271
267
|
//默认扇形按钮图标
|
|
272
268
|
var getIconMap = function getIconMap(intl) {
|
|
273
269
|
return {
|
|
@@ -1355,7 +1351,4 @@ if (!Element.prototype.closest) {
|
|
|
1355
1351
|
};
|
|
1356
1352
|
}
|
|
1357
1353
|
|
|
1358
|
-
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-tree-treenode-leaf-last .paraui-v3-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n\n@keyframes treeCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.paraui-v3-tree-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before .paraui-v3-tree-rtl.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v3-tree-checkbox .paraui-v3-tree-rtl.paraui-v3-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-select-dropdown-rtl .paraui-v3-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox-input:focus + .paraui-v3-tree-checkbox-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(54, 102, 214);\n border-radius: 2px;\n visibility: hidden;\n animation: treeCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: \"\";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v3-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: rgb(255, 255, 255);\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 21.5%;\n display: table;\n width: 6px;\n height: 9px;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: \" \";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: \" \";\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n\n.paraui-v3-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v3-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper.paraui-v3-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-wrapper + .paraui-v3-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v3-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v3-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-block;\n}\n.paraui-v3-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v3-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v3-tree-checkbox-group-item + .paraui-v3-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 2px;\n background-color: rgb(255, 255, 255);\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: \" \";\n}\n.paraui-v3-tree-checkbox-indeterminate.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n\n.paraui-v3-tree-wrapper .paraui-v3-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v3-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n background: rgb(255, 255, 255);\n border-radius: 2px;\n transition: background-color 0.3s;\n}\n.paraui-v3-tree-focused:not(:hover):not(.paraui-v3-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v3-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-active .paraui-v3-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode:not(.paraui-v3-tree .paraui-v3-tree-treenode-disabled).filter-node .paraui-v3-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v3-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v3-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v3-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon {\n display: inline-block;\n font-size: 14px;\n vertical-align: middle;\n transition: transform 0.3s;\n color: inherit;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon svg,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher-loading-icon {\n color: rgb(54, 102, 214);\n will-change: transform;\n transition: transform 0.3s ease-in-out;\n animation: treeLoadingCircle 1s infinite linear;\n vertical-align: middle;\n font-size: 14px !important;\n}\n@keyframes treeLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v3-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 2px 0 0 0;\n padding: 0 6px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 2px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper:hover {\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper.paraui-v3-tree-node-selected {\n background-color: transparent;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n margin-left: -6px;\n line-height: 26px;\n text-align: center;\n vertical-align: top;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle:empty {\n display: none;\n}\n.paraui-v3-tree-unselectable .paraui-v3-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(54, 102, 214);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid rgb(54, 102, 214);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v3-tree .paraui-v3-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(54, 102, 214);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: \"\";\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v3-tree-node-content-wrapper {\n overflow: hidden;\n display: flex;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-title {\n display: flex;\n align-items: center;\n width: 100%;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-treenode-more-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active {\n background-color: rgba(171, 176, 185, 0.12) !important;\n border-radius: 4px !important;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 6px;\n overflow: hidden;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor {\n position: relative;\n width: 14px;\n height: 14px;\n margin: 1px 0 0 18px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor:before {\n content: \" \";\n position: absolute;\n left: -9px;\n top: 0;\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.2);\n pointer-events: none;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox {\n display: none !important;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox-checked + .paraui-v3-tree-node-content-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable-showradio .paraui-v3-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v3-tree-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}";
|
|
1359
|
-
styleInject(css_248z);
|
|
1360
|
-
|
|
1361
1354
|
export { Tree as T };
|