@para-ui/core 4.0.30 → 4.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoButton/index.d.ts +41 -0
- package/AutoButton/index.js +213 -0
- package/AutoButton/lang/en_US.d.ts +4 -0
- package/AutoButton/lang/index.d.ts +9 -0
- package/AutoButton/lang/zh_CN.d.ts +4 -0
- package/Badge/index.d.ts +3 -1
- package/Badge/index.js +15 -5
- package/Card/index.d.ts +53 -0
- package/Card/index.js +218 -0
- package/Card/lang/en_US.d.ts +5 -0
- package/Card/lang/index.d.ts +11 -0
- package/Card/lang/zh_CN.d.ts +5 -0
- package/Cascader/index.js +8 -8
- package/ComboSelect/index.js +7 -7
- package/CycleSelector/index.js +4 -1
- package/DatePicker/index.js +4 -1
- package/DragVerify/index.js +7 -2
- package/DynamicMultiBox/index.js +8 -8
- package/Form/index.js +8 -8
- package/FormItem/index.js +8 -8
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +5 -5
- package/PopConfirm/index.js +2 -2
- package/PopMenu/index.js +16 -5
- package/QuickReply/index.js +1 -1
- package/README.md +10 -0
- package/RangeInput/index.d.ts +4 -0
- package/RangeInput/index.js +32 -8
- package/Select/index.js +2 -2
- package/Selector/index.js +282 -225
- package/SelectorPicker/index.js +5 -6
- package/SingleBox/index.js +2 -2
- package/SortBox/index.d.ts +27 -0
- package/SortBox/index.js +64 -0
- package/Stepper/index.js +1 -1
- package/Switch/index.js +2 -2
- package/Table/index.js +471 -409
- package/Tabs/index.js +2 -2
- package/Tag/index.js +82 -53
- package/TextEditor/index.js +3 -3
- package/TimePicker/index.js +4 -1
- package/Timeline/index.js +14 -20
- package/ToggleButton/index.js +25 -26
- package/Tooltip/index.js +26 -27
- package/Transfer/index.js +1 -2
- package/Tree/index.js +8 -8
- package/Upload/ImageUpload/index.d.ts +2 -7
- package/Upload/index.js +114 -37
- package/Upload/interface.d.ts +18 -0
- package/_verture/{Portal-5bf66fed.js → Portal-edd94cac.js} +4 -3
- package/_verture/{defineProperty-f0e15205.js → defineProperty-6f62bb2a.js} +2 -10
- package/_verture/{index-33866394.js → index-3795d730.js} +1 -1
- package/_verture/{index-28edf318.js → index-567b5779.js} +5 -4
- package/_verture/{index-8ec857b4.js → index-8752ccab.js} +6 -6
- package/_verture/{index-8ac46bd9.js → index-94e24006.js} +1 -1
- package/_verture/{slicedToArray-a8206399.js → slicedToArray-75fa4188.js} +15 -2
- package/_verture/{toConsumableArray-8f4c9589.js → toConsumableArray-c7a8028f.js} +1 -1
- package/_verture/typeof-adeedc13.js +11 -0
- package/index.d.ts +6 -0
- package/index.js +18 -14
- package/locale/en-US.d.ts +7 -0
- package/locale/index.d.ts +14 -0
- package/locale/index.js +14 -0
- package/locale/zh-CN.d.ts +7 -0
- package/package.json +2 -3
- package/umd/AutoButton.js +43 -0
- package/umd/Badge.js +1 -1
- package/umd/Card.js +1 -0
- package/umd/DragVerify.js +1 -1
- package/umd/FunctionModal.js +3 -3
- package/umd/Modal.js +2 -2
- package/umd/PopMenu.js +2 -2
- package/umd/RangeInput.js +2 -2
- package/umd/SortBox.js +41 -0
- package/umd/Upload.js +4 -4
- package/umd/locale.js +1 -1
- package/_verture/unsupportedIterableToArray-cb478f24.js +0 -16
- /package/_verture/{index-0f5ee6f7.js → index-c8cb6751.js} +0 -0
- /package/_verture/{modalContext-c57b51b7.js → modalContext-10f0c5aa.js} +0 -0
- /package/_verture/{typeof-6ec38efd.js → typeof-4646b22c.js} +0 -0
package/Tree/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { T as Tree } from '../_verture/index-
|
|
2
|
-
export { T as default } from '../_verture/index-
|
|
3
|
-
import '../_verture/toConsumableArray-
|
|
4
|
-
import '../_verture/
|
|
5
|
-
import '../_verture/defineProperty-
|
|
6
|
-
import '../_verture/
|
|
7
|
-
import '../_verture/index-
|
|
8
|
-
import '../_verture/typeof-
|
|
1
|
+
import { T as Tree } from '../_verture/index-567b5779.js';
|
|
2
|
+
export { T as default } from '../_verture/index-567b5779.js';
|
|
3
|
+
import '../_verture/toConsumableArray-c7a8028f.js';
|
|
4
|
+
import '../_verture/slicedToArray-75fa4188.js';
|
|
5
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
6
|
+
import '../_verture/typeof-adeedc13.js';
|
|
7
|
+
import '../_verture/index-94e24006.js';
|
|
8
|
+
import '../_verture/typeof-4646b22c.js';
|
|
9
9
|
import '../_verture/tslib.es6-55ed4bd2.js';
|
|
10
10
|
import 'react/jsx-runtime';
|
|
11
11
|
import 'react';
|
|
@@ -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
|
@@ -5,11 +5,12 @@ import RcUpload from 'rc-upload';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
7
|
import LoadingIcon from '@para-ui/icons/Loading';
|
|
8
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
9
|
-
import { _ as _typeof } from '../_verture/
|
|
10
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
11
|
-
import { r as regenerator } from '../_verture/index-
|
|
8
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-c7a8028f.js';
|
|
9
|
+
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
10
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-75fa4188.js';
|
|
11
|
+
import { r as regenerator } from '../_verture/index-94e24006.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
|
+
import CloseIcon from '@para-ui/icons/Close';
|
|
13
14
|
import Delete from '@para-ui/icons/Delete';
|
|
14
15
|
import FileOutlined from '@para-ui/icons/Document';
|
|
15
16
|
import PhotoIcon from '@para-ui/icons/Photo';
|
|
@@ -22,8 +23,8 @@ import OperateBtn from '../OperateBtn/index.js';
|
|
|
22
23
|
import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-5317fc89.js';
|
|
23
24
|
import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
|
|
24
25
|
import Forbid from '@para-ui/icons/Forbid';
|
|
25
|
-
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
26
26
|
import { Button } from '../Button/index.js';
|
|
27
|
+
import { u as useFormatMessage } from '../_verture/useFormatMessage-1fc7c957.js';
|
|
27
28
|
import Cropper from 'react-easy-crop';
|
|
28
29
|
import PlusCircle from '@para-ui/icons/PlusCircle';
|
|
29
30
|
import MinusCircle from '@para-ui/icons/MinusCircle';
|
|
@@ -31,13 +32,13 @@ import TurnRight from '@para-ui/icons/TurnRight';
|
|
|
31
32
|
import TurnLeft from '@para-ui/icons/TurnLeft';
|
|
32
33
|
import { Slider } from '../Slider/index.js';
|
|
33
34
|
import { Modal } from '../Modal/index.js';
|
|
34
|
-
import '../_verture/
|
|
35
|
-
import '../_verture/typeof-6ec38efd.js';
|
|
35
|
+
import '../_verture/typeof-4646b22c.js';
|
|
36
36
|
import 'rc-tooltip';
|
|
37
37
|
import 'rc-tooltip/lib/placements';
|
|
38
38
|
import '@paraview/lib';
|
|
39
|
-
import '../_verture/Portal-
|
|
39
|
+
import '../_verture/Portal-edd94cac.js';
|
|
40
40
|
import 'react-dom';
|
|
41
|
+
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
42
|
import 'rc-dialog';
|
|
42
43
|
import 'rc-motion';
|
|
43
44
|
import '@para-ui/icons/Sort';
|
|
@@ -58,7 +59,6 @@ import 'rc-dropdown';
|
|
|
58
59
|
import 'dayjs';
|
|
59
60
|
import '../_verture/index-ca413216.js';
|
|
60
61
|
import 'rc-slider';
|
|
61
|
-
import '@para-ui/icons/Close';
|
|
62
62
|
|
|
63
63
|
var extname = function extname() {
|
|
64
64
|
var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
@@ -591,7 +591,7 @@ var localeJson = {
|
|
|
591
591
|
en: en
|
|
592
592
|
};
|
|
593
593
|
|
|
594
|
-
var css_248z$2 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午7:31\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-upload-image {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v4-upload-image .upload-image-select {\n position: relative;\n width: 100px;\n height: 100px;\n cursor: pointer;\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-select-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload {\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled {\n color: rgb(92, 101, 115);\n cursor: not-allowed;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled .upload-image-picture-card {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-upload-image .upload-image-select:hover .component-upload:not(.component-upload-disabled) .upload-image-picture-card {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-image .upload-image-select:hover .component-upload:not(.component-upload-disabled) .upload-image-picture-card .upload-image-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-image .upload-image-picture-card {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n font-size: 14px;\n color: rgb(29, 33, 38);\n border: 1px dashed rgb(212, 218, 227);\n border-radius: 4px;\n}\n.paraui-v4-upload-image .upload-image-picture-card.is-avatar {\n border: none;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-select-tooltip-wrapper {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n cursor: default;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \" \";\n background-color: rgb(29, 33, 38);\n border-radius: 4px;\n opacity: 0;\n transition: 0.3s;\n}\n.paraui-v4-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 overflow: hidden;\n font-size: 12px;\n line-height: 24px;\n color: rgb(255, 255, 255);\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n background-color: rgb(29, 33, 38);\n border-radius: 0 0 4px 4px;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper-action {\n position: absolute;\n top: 50%;\n left: 50%;\n line-height: 0;\n cursor: pointer;\n opacity: 0;\n transition: 0.3s;\n transform: translate(-50%, -50%);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper-action svg {\n color: rgb(255, 255, 255);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover::before {\n opacity: 1;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-name {\n opacity: 0;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-action {\n opacity: 1;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-icon {\n font-size: 30px;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-loading {\n font-size: 30px;\n color: rgb(46, 101, 230);\n animation: imageLoadingCircle 1s infinite linear;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-text {\n margin-top: 6px;\n color: inherit;\n text-align: center;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-text-loading {\n color: rgb(46, 101, 230);\n}\n@keyframes imageLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
|
|
594
|
+
var css_248z$2 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/11 下午7:31\n* @description\n*/\n/**\n* @author linhd\n* @date 2023/4/11 14:16\n* @description 最新色卡\n*/\n.paraui-v4-upload-image {\n display: inline-flex;\n align-items: center;\n}\n.paraui-v4-upload-image .upload-img-wrapper-container {\n position: relative;\n}\n.paraui-v4-upload-image .upload-img-wrapper-container__del-btn {\n display: none;\n position: absolute;\n top: 10px;\n right: 10px;\n margin: 0;\n width: 14px;\n height: 14px;\n text-align: center;\n border-radius: 50%;\n background: #fff;\n box-shadow: 0px 0px 4px 0px rgba(29, 33, 38, 0.4);\n z-index: 1;\n color: rgb(29, 33, 38);\n}\n.paraui-v4-upload-image .upload-img-wrapper-container__del-btn .svg-icon {\n margin-top: 1px;\n vertical-align: top;\n font-size: 12px;\n}\n.paraui-v4-upload-image .upload-img-wrapper-container__del-btn:hover .svg-icon {\n color: rgba(29, 33, 38, 0.4);\n}\n.paraui-v4-upload-image .upload-img-wrapper-container:hover .upload-img-wrapper-container__del-btn {\n display: block;\n}\n.paraui-v4-upload-image .upload-image-select {\n position: relative;\n width: 100px;\n height: 100px;\n cursor: pointer;\n background-color: rgb(247, 248, 250);\n border-radius: 4px;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-select-loading {\n pointer-events: none;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload {\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled {\n color: rgb(92, 101, 115);\n cursor: not-allowed;\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled svg {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-upload-image .upload-image-select .component-upload-disabled .upload-image-picture-card {\n color: rgb(92, 101, 115);\n}\n.paraui-v4-upload-image .upload-image-select:hover .component-upload:not(.component-upload-disabled) .upload-image-picture-card {\n color: rgb(46, 101, 230);\n border-color: rgb(87, 131, 235);\n}\n.paraui-v4-upload-image .upload-image-select:hover .component-upload:not(.component-upload-disabled) .upload-image-picture-card .upload-image-text {\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-image .upload-image-picture-card {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n font-size: 14px;\n color: rgb(29, 33, 38);\n border: 1px dashed rgb(212, 218, 227);\n border-radius: 4px;\n}\n.paraui-v4-upload-image .upload-image-picture-card.is-avatar {\n border: none;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-select-tooltip-wrapper {\n display: inline-flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper {\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n cursor: default;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper img {\n width: 100%;\n height: 100%;\n border-radius: 4px;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n content: \" \";\n background-color: rgb(29, 33, 38);\n border-radius: 4px;\n opacity: 0;\n transition: 0.3s;\n}\n.paraui-v4-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 overflow: hidden;\n font-size: 12px;\n line-height: 24px;\n color: rgb(255, 255, 255);\n text-align: center;\n text-overflow: ellipsis;\n white-space: nowrap;\n background-color: rgb(29, 33, 38);\n border-radius: 0 0 4px 4px;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper-action {\n position: absolute;\n top: 50%;\n left: 50%;\n line-height: 0;\n cursor: pointer;\n opacity: 0;\n transition: 0.3s;\n transform: translate(-50%, -50%);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper-action svg {\n color: rgb(255, 255, 255);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover::before {\n opacity: 1;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-name {\n opacity: 0;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-img-wrapper:hover .upload-img-wrapper-action {\n opacity: 1;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-icon {\n font-size: 30px;\n color: rgb(46, 101, 230);\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-loading {\n font-size: 30px;\n color: rgb(46, 101, 230);\n animation: imageLoadingCircle 1s infinite linear;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-text {\n margin-top: 6px;\n color: inherit;\n text-align: center;\n transition: 0.3s;\n}\n.paraui-v4-upload-image .upload-image-picture-card .upload-image-text-loading {\n color: rgb(46, 101, 230);\n}\n@keyframes imageLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}";
|
|
595
595
|
styleInject(css_248z$2);
|
|
596
596
|
|
|
597
597
|
//ImageUpload
|
|
@@ -631,7 +631,8 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
631
631
|
operateBtnProps = props.operateBtnProps,
|
|
632
632
|
disabledTooltip = props.disabledTooltip,
|
|
633
633
|
removeErrorTip = props.removeErrorTip,
|
|
634
|
-
|
|
634
|
+
avatarProps = props.avatarProps,
|
|
635
|
+
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", "onPreview", "actionRender", "operateBtnProps", "disabledTooltip", "removeErrorTip", "avatarProps"]);
|
|
635
636
|
var intl = useFormatMessage('Upload', localeJson);
|
|
636
637
|
var _useState = useState(defaultFileList),
|
|
637
638
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -639,18 +640,34 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
639
640
|
setUploadFileList = _useState2[1]; //文件列表
|
|
640
641
|
var _useState3 = useState(false),
|
|
641
642
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
var _useState5 = useState(
|
|
643
|
+
showResetBtn = _useState4[0],
|
|
644
|
+
setShowResetBtn = _useState4[1]; // 是否展示重置按钮-默认不展示
|
|
645
|
+
var _useState5 = useState(),
|
|
645
646
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
var _useState7 = useState(
|
|
647
|
+
borderRadius = _useState6[0],
|
|
648
|
+
setBorderRadius = _useState6[1]; // border-radius样式
|
|
649
|
+
var _useState7 = useState(false),
|
|
650
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
651
|
+
isAvatar = _useState8[0],
|
|
652
|
+
setIsAvatar = _useState8[1]; // 是否为头像组件
|
|
653
|
+
var _useState9 = useState(true),
|
|
654
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
655
|
+
showPicName = _useState10[0],
|
|
656
|
+
setShowPicName = _useState10[1]; // 是否展示图片名称
|
|
657
|
+
var _useState11 = useState(false),
|
|
658
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
659
|
+
showLoading = _useState12[0],
|
|
660
|
+
setShowLoading = _useState12[1]; //upload loading
|
|
661
|
+
var _useState13 = useState(false),
|
|
662
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
663
|
+
errTip = _useState14[0],
|
|
664
|
+
setErrTip = _useState14[1]; //upload error tip
|
|
665
|
+
var _useState15 = useState({
|
|
649
666
|
imageUrl: ''
|
|
650
667
|
}),
|
|
651
|
-
|
|
652
|
-
avatar =
|
|
653
|
-
setAvatar =
|
|
668
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
669
|
+
avatar = _useState16[0],
|
|
670
|
+
setAvatar = _useState16[1]; //不显示列表时上传头像
|
|
654
671
|
var _ref = typeof showUploadList === 'boolean' ? {} : showUploadList,
|
|
655
672
|
showRemoveIcon = _ref.showRemoveIcon,
|
|
656
673
|
removeIcon = _ref.removeIcon,
|
|
@@ -667,6 +684,39 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
667
684
|
var isAvatarMode = useMemo(function () {
|
|
668
685
|
return !showUploadList && avatar.imageUrl && !showLoading;
|
|
669
686
|
}, [showUploadList, avatar.imageUrl, showLoading]);
|
|
687
|
+
useEffect(function () {
|
|
688
|
+
if (avatarProps && Object.prototype.toString.call(avatarProps) === '[object Object]' && Object.keys(avatarProps).length > 0) {
|
|
689
|
+
var _ref3 = avatarProps || {},
|
|
690
|
+
_ref3$showReset = _ref3.showReset,
|
|
691
|
+
showReset = _ref3$showReset === void 0 ? false : _ref3$showReset,
|
|
692
|
+
_ref3$borderRadius = _ref3.borderRadius,
|
|
693
|
+
borderRadiusVal = _ref3$borderRadius === void 0 ? '50%' : _ref3$borderRadius,
|
|
694
|
+
avatarDefaultImage = _ref3.defaultImage,
|
|
695
|
+
_ref3$showName = _ref3.showName,
|
|
696
|
+
showName = _ref3$showName === void 0 ? false : _ref3$showName;
|
|
697
|
+
setShowResetBtn(showReset);
|
|
698
|
+
setBorderRadius(String(borderRadiusVal).includes('px') || String(borderRadiusVal).includes('%') ? String(borderRadiusVal) : "".concat(borderRadiusVal, "px"));
|
|
699
|
+
setIsAvatar(true);
|
|
700
|
+
setShowPicName(showName);
|
|
701
|
+
var nextAvatarDefaultImage = avatarDefaultImage || defaultImage || {
|
|
702
|
+
imageUrl: ''
|
|
703
|
+
};
|
|
704
|
+
setAvatar(Object.assign({}, nextAvatarDefaultImage));
|
|
705
|
+
} else if (typeof avatarProps === 'boolean' && avatarProps) {
|
|
706
|
+
setBorderRadius('50%');
|
|
707
|
+
setIsAvatar(true);
|
|
708
|
+
setShowPicName(false);
|
|
709
|
+
if (defaultImage) {
|
|
710
|
+
setAvatar(Object.assign({}, defaultImage));
|
|
711
|
+
}
|
|
712
|
+
} else {
|
|
713
|
+
setIsAvatar(false);
|
|
714
|
+
setShowPicName(true);
|
|
715
|
+
if (defaultImage) {
|
|
716
|
+
setAvatar(Object.assign({}, defaultImage));
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}, [avatarProps, defaultImage]);
|
|
670
720
|
useEffect(function () {
|
|
671
721
|
setShowLoading(loading);
|
|
672
722
|
}, [loading]);
|
|
@@ -768,13 +818,13 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
768
818
|
case 0:
|
|
769
819
|
cloneList = _toConsumableArray(changedFileList);
|
|
770
820
|
if (showUploadList) {
|
|
771
|
-
_context2.next =
|
|
821
|
+
_context2.next = 17;
|
|
772
822
|
break;
|
|
773
823
|
}
|
|
774
824
|
//不显示上传列表
|
|
775
825
|
file = cloneList.slice(-1)[0];
|
|
776
826
|
if (!file) {
|
|
777
|
-
_context2.next =
|
|
827
|
+
_context2.next = 14;
|
|
778
828
|
break;
|
|
779
829
|
}
|
|
780
830
|
_context2.next = 6;
|
|
@@ -785,10 +835,17 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
785
835
|
avatar.imageUrl = imageUrl;
|
|
786
836
|
avatar.imageName = file.name;
|
|
787
837
|
setAvatar(Object.assign({}, avatar));
|
|
788
|
-
case 11:
|
|
789
838
|
onChange === null || onChange === void 0 ? void 0 : onChange([file]);
|
|
839
|
+
_context2.next = 16;
|
|
840
|
+
break;
|
|
841
|
+
case 14:
|
|
842
|
+
setAvatar({
|
|
843
|
+
imageUrl: ''
|
|
844
|
+
});
|
|
845
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([]);
|
|
846
|
+
case 16:
|
|
790
847
|
return _context2.abrupt("return");
|
|
791
|
-
case
|
|
848
|
+
case 17:
|
|
792
849
|
if (maxCount === 1) {
|
|
793
850
|
cloneList = cloneList.slice(-1);
|
|
794
851
|
} else if (maxCount) {
|
|
@@ -796,7 +853,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
796
853
|
}
|
|
797
854
|
onChange === null || onChange === void 0 ? void 0 : onChange(cloneList);
|
|
798
855
|
setUploadFileList(cloneList);
|
|
799
|
-
case
|
|
856
|
+
case 20:
|
|
800
857
|
case "end":
|
|
801
858
|
return _context2.stop();
|
|
802
859
|
}
|
|
@@ -880,11 +937,6 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
880
937
|
setUploadFileList(_toConsumableArray(fileList));
|
|
881
938
|
}
|
|
882
939
|
}, [fileList]);
|
|
883
|
-
useEffect(function () {
|
|
884
|
-
if (defaultImage) {
|
|
885
|
-
setAvatar(Object.assign({}, defaultImage));
|
|
886
|
-
}
|
|
887
|
-
}, [defaultImage]);
|
|
888
940
|
//渲染上传列表
|
|
889
941
|
var renderUploadList = function renderUploadList() {
|
|
890
942
|
return showUploadList && jsx(UploadList, {
|
|
@@ -906,12 +958,18 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
906
958
|
var renderUploadContent = function renderUploadContent() {
|
|
907
959
|
var _a;
|
|
908
960
|
var avatarUploadNode = jsxs("div", Object.assign({
|
|
909
|
-
className: 'upload-img-wrapper'
|
|
961
|
+
className: 'upload-img-wrapper',
|
|
962
|
+
style: borderRadius ? {
|
|
963
|
+
borderRadius: borderRadius
|
|
964
|
+
} : {}
|
|
910
965
|
}, {
|
|
911
966
|
children: [jsx("img", {
|
|
912
967
|
src: avatar.imageUrl,
|
|
913
|
-
alt: (_a = avatar.imageName) !== null && _a !== void 0 ? _a : ''
|
|
914
|
-
|
|
968
|
+
alt: (_a = avatar.imageName) !== null && _a !== void 0 ? _a : '',
|
|
969
|
+
style: borderRadius ? {
|
|
970
|
+
borderRadius: borderRadius
|
|
971
|
+
} : {}
|
|
972
|
+
}), avatar.imageName && showPicName && jsx("span", Object.assign({
|
|
915
973
|
className: 'upload-img-wrapper-name'
|
|
916
974
|
}, {
|
|
917
975
|
children: avatar.imageName
|
|
@@ -954,15 +1012,20 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
954
1012
|
};
|
|
955
1013
|
//渲染上传控件
|
|
956
1014
|
var renderUploadSelector = function renderUploadSelector() {
|
|
957
|
-
if (readonly) return null;
|
|
958
1015
|
return jsxs("div", Object.assign({
|
|
959
|
-
className: clsx('upload-image-select', showLoading && 'upload-image-select-loading')
|
|
1016
|
+
className: clsx('upload-image-select', showLoading && 'upload-image-select-loading', isAvatar && 'is-avatar'),
|
|
1017
|
+
style: borderRadius ? {
|
|
1018
|
+
borderRadius: borderRadius
|
|
1019
|
+
} : {}
|
|
960
1020
|
}, {
|
|
961
1021
|
children: [jsx(RcUpload, Object.assign({}, overrideProps, {
|
|
962
1022
|
prefixCls: "".concat($rcPrefixCls, "-upload")
|
|
963
1023
|
}, {
|
|
964
1024
|
children: jsx("div", Object.assign({
|
|
965
|
-
className: "".concat(isAvatarMode ? 'is-avatar ' : '', "upload-image-picture-card")
|
|
1025
|
+
className: "".concat(isAvatarMode ? 'is-avatar ' : '', "upload-image-picture-card"),
|
|
1026
|
+
style: borderRadius ? {
|
|
1027
|
+
borderRadius: borderRadius
|
|
1028
|
+
} : {}
|
|
966
1029
|
}, {
|
|
967
1030
|
children: renderUploadContent()
|
|
968
1031
|
}))
|
|
@@ -972,11 +1035,25 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
972
1035
|
})]
|
|
973
1036
|
}));
|
|
974
1037
|
};
|
|
1038
|
+
var handleReset = function handleReset() {
|
|
1039
|
+
handleRemove(uploadFileList[0]);
|
|
1040
|
+
};
|
|
975
1041
|
return jsxs("div", Object.assign({
|
|
976
1042
|
className: clsx("".concat($prefixCls, "-upload-image"), className),
|
|
977
1043
|
style: style
|
|
978
1044
|
}, {
|
|
979
|
-
children: [renderUploadList(),
|
|
1045
|
+
children: [renderUploadList(), !readonly ? showResetBtn && avatar.imageUrl ? jsxs("div", Object.assign({
|
|
1046
|
+
className: "upload-img-wrapper-container"
|
|
1047
|
+
}, {
|
|
1048
|
+
children: [jsx(Button.IconButton, Object.assign({
|
|
1049
|
+
className: "upload-img-wrapper-container__del-btn",
|
|
1050
|
+
variant: "text",
|
|
1051
|
+
size: "small",
|
|
1052
|
+
onClick: handleReset
|
|
1053
|
+
}, {
|
|
1054
|
+
children: jsx(CloseIcon, {})
|
|
1055
|
+
})), renderUploadSelector()]
|
|
1056
|
+
})) : renderUploadSelector() : jsx(Fragment, {})]
|
|
980
1057
|
}));
|
|
981
1058
|
};
|
|
982
1059
|
|
package/Upload/interface.d.ts
CHANGED
|
@@ -44,6 +44,22 @@ export interface IShowUploadList {
|
|
|
44
44
|
previewIcon?: React.ReactNode;
|
|
45
45
|
}
|
|
46
46
|
type ItemRender<T = any> = (file: UploadFile, fileList?: Array<UploadFile<T>>) => React.ReactNode;
|
|
47
|
+
export interface DefaultImage {
|
|
48
|
+
/** 图片地址 */
|
|
49
|
+
imageUrl: string;
|
|
50
|
+
/** 图片名称 */
|
|
51
|
+
imageName?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface AvatarProps {
|
|
54
|
+
/** 圆角 */
|
|
55
|
+
borderRadius?: string | number;
|
|
56
|
+
/** 是否展示重置按钮 */
|
|
57
|
+
showReset?: boolean;
|
|
58
|
+
/** 图片地址 */
|
|
59
|
+
defaultImage?: DefaultImage;
|
|
60
|
+
/** 是否展示图片名称 */
|
|
61
|
+
showName?: boolean;
|
|
62
|
+
}
|
|
47
63
|
export interface UploadProps<T = any> {
|
|
48
64
|
/**上传类型*/
|
|
49
65
|
type?: UploadType;
|
|
@@ -73,6 +89,8 @@ export interface UploadProps<T = any> {
|
|
|
73
89
|
accept?: string;
|
|
74
90
|
/**是否支持多选文件,开启后按住 ctrl 可选择多个文件*/
|
|
75
91
|
multiple?: boolean;
|
|
92
|
+
/** 头像 */
|
|
93
|
+
avatarProps?: boolean | AvatarProps;
|
|
76
94
|
/**上传文件改变时的状态*/
|
|
77
95
|
onChange?: (info: UploadFile[]) => void;
|
|
78
96
|
/**上传开始*/
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
|
-
import {
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
4
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
5
|
+
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
6
|
+
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
6
7
|
|
|
7
8
|
function _extends() {
|
|
8
9
|
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function (o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
1
|
+
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
10
2
|
|
|
11
3
|
function toPrimitive(t, r) {
|
|
12
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
@@ -39,4 +31,4 @@ function _defineProperty(obj, key, value) {
|
|
|
39
31
|
return obj;
|
|
40
32
|
}
|
|
41
33
|
|
|
42
|
-
export {
|
|
34
|
+
export { _defineProperty as _, toPropertyKey as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { TextField } from '../TextField/index.js';
|
|
4
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
4
|
+
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
5
5
|
import { RadioGroup } from '../RadioGroup/index.js';
|
|
6
6
|
import Select from '../Select/index.js';
|
|
7
7
|
import { CheckboxGroup } from '../CheckboxGroup/index.js';
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
4
|
-
import { r as regenerator } from './index-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-c7a8028f.js';
|
|
2
|
+
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-75fa4188.js';
|
|
4
|
+
import { r as regenerator } from './index-94e24006.js';
|
|
5
5
|
import { _ as __rest, a as __awaiter } from './tslib.es6-55ed4bd2.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-adeedc13.js';
|
|
10
11
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
11
12
|
import FileOutlined from '@para-ui/icons/Document';
|
|
12
13
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { _ as __rest } from './tslib.es6-55ed4bd2.js';
|
|
2
2
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-
|
|
4
|
-
import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-
|
|
5
|
-
import {
|
|
6
|
-
import { _ as _slicedToArray, a as _arrayWithHoles, b as _nonIterableRest } from './slicedToArray-
|
|
3
|
+
import { c as clsx, _ as _objectSpread2, r as reactIs, s as supportRef, u as useComposeRef, w as warning, a as _extends, b as _objectWithoutProperties, d as wrapperRaf, e as useEvent$2, f as useLayoutEffect$3, g as composeRef, K as KeyCode, h as fillRef, P as Portal, i as warningOnce, j as useMergedState$2, k as canUseDom$1, l as useMemo$1, n as noteOnce } from './Portal-edd94cac.js';
|
|
4
|
+
import { _ as _toConsumableArray, a as _iterableToArray } from './toConsumableArray-c7a8028f.js';
|
|
5
|
+
import { t as toPropertyKey, _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
6
|
+
import { _ as _slicedToArray, a as _arrayWithHoles, b as _unsupportedIterableToArray, c as _nonIterableRest } from './slicedToArray-75fa4188.js';
|
|
7
|
+
import { _ as _typeof$1 } from './typeof-adeedc13.js';
|
|
7
8
|
import * as React$4 from 'react';
|
|
8
9
|
import React__default, { useState as useState$1, useMemo, useCallback, useRef, useEffect } from 'react';
|
|
9
10
|
import ReactDOM, { unstable_batchedUpdates, flushSync } from 'react-dom';
|
|
10
11
|
import CSSMotion from 'rc-motion';
|
|
11
|
-
import { _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cb478f24.js';
|
|
12
12
|
import clsx$1 from 'clsx';
|
|
13
|
-
import { _ as _typeof$2 } from './typeof-
|
|
13
|
+
import { _ as _typeof$2 } from './typeof-4646b22c.js';
|
|
14
14
|
import { conductCheck } from 'rc-tree/lib/utils/conductUtil';
|
|
15
15
|
import Right from '@para-ui/icons/Right';
|
|
16
16
|
import Down from '@para-ui/icons/Down';
|
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
function _arrayLikeToArray(arr, len) {
|
|
2
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
3
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
4
|
+
return arr2;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
8
|
+
if (!o) return;
|
|
9
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
10
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
11
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
12
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
13
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
14
|
+
}
|
|
2
15
|
|
|
3
16
|
function _arrayWithHoles(arr) {
|
|
4
17
|
if (Array.isArray(arr)) return arr;
|
|
@@ -40,4 +53,4 @@ function _slicedToArray(arr, i) {
|
|
|
40
53
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
41
54
|
}
|
|
42
55
|
|
|
43
|
-
export { _slicedToArray as _, _arrayWithHoles as a,
|
|
56
|
+
export { _slicedToArray as _, _arrayWithHoles as a, _unsupportedIterableToArray as b, _nonIterableRest as c, _arrayLikeToArray as d };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-75fa4188.js';
|
|
2
2
|
|
|
3
3
|
function _arrayWithoutHoles(arr) {
|
|
4
4
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _typeof as _ };
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as AutoBox } from './AutoBox';
|
|
2
2
|
export * from './AutoBox';
|
|
3
|
+
export { default as AutoButton } from './AutoButton';
|
|
4
|
+
export * from './AutoButton';
|
|
3
5
|
export { default as AutoTips } from './AutoTips';
|
|
4
6
|
export * from './AutoTips';
|
|
5
7
|
export { default as Badge } from './Badge';
|
|
@@ -10,6 +12,8 @@ export { default as Button } from './Button';
|
|
|
10
12
|
export * from './Button';
|
|
11
13
|
export { default as ButtonGroup } from './ButtonGroup';
|
|
12
14
|
export * from './ButtonGroup';
|
|
15
|
+
export { default as Card } from './Card';
|
|
16
|
+
export * from './Card';
|
|
13
17
|
export { default as Carousel } from './Carousel';
|
|
14
18
|
export * from './Carousel';
|
|
15
19
|
export { default as Cascader } from './Cascader';
|
|
@@ -128,6 +132,8 @@ export { default as SingleBox } from './SingleBox';
|
|
|
128
132
|
export * from './SingleBox';
|
|
129
133
|
export { default as Slider } from './Slider';
|
|
130
134
|
export * from './Slider';
|
|
135
|
+
export { default as SortBox } from './SortBox';
|
|
136
|
+
export * from './SortBox';
|
|
131
137
|
export { default as Status } from './Status';
|
|
132
138
|
export * from './Status';
|
|
133
139
|
export { default as Stepper } from './Stepper';
|
package/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export { AutoBox } from './AutoBox/index.js';
|
|
2
|
+
export { AutoButton } from './AutoButton/index.js';
|
|
2
3
|
export { default as AutoTips, AutoTipsMultiline } from './AutoTips/index.js';
|
|
3
4
|
export { Badge } from './Badge/index.js';
|
|
4
5
|
export { Breadcrumbs } from './Breadcrumbs/index.js';
|
|
5
6
|
export { Button } from './Button/index.js';
|
|
6
7
|
export { ButtonGroup } from './ButtonGroup/index.js';
|
|
8
|
+
export { Card } from './Card/index.js';
|
|
7
9
|
export { Carousel } from './Carousel/index.js';
|
|
8
|
-
export { C as Cascader } from './_verture/index-
|
|
10
|
+
export { C as Cascader } from './_verture/index-8752ccab.js';
|
|
9
11
|
export { Checkbox } from './Checkbox/index.js';
|
|
10
12
|
export { CheckboxGroup } from './CheckboxGroup/index.js';
|
|
11
13
|
export { Collapse } from './Collapse/index.js';
|
|
@@ -26,8 +28,8 @@ export { D as Dropdown } from './_verture/index-bde7aabe.js';
|
|
|
26
28
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
27
29
|
export { default as Empty } from './Empty/index.js';
|
|
28
30
|
export { default as Form } from './Form/index.js';
|
|
29
|
-
export { F as FormItem } from './_verture/index-
|
|
30
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
31
|
+
export { F as FormItem } from './_verture/index-3795d730.js';
|
|
32
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-10f0c5aa.js';
|
|
31
33
|
export { G as GlobalContext, c as changeConfirmLocale, g as getConfirmLocale } from './_verture/index-ca413216.js';
|
|
32
34
|
export { default as Help } from './Help/index.js';
|
|
33
35
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -63,6 +65,7 @@ export { default as Selector, handFieldConfig } from './Selector/index.js';
|
|
|
63
65
|
export { default as SelectorPicker } from './SelectorPicker/index.js';
|
|
64
66
|
export { SingleBox } from './SingleBox/index.js';
|
|
65
67
|
export { Slider } from './Slider/index.js';
|
|
68
|
+
export { SortBox } from './SortBox/index.js';
|
|
66
69
|
export { Status } from './Status/index.js';
|
|
67
70
|
export { Stepper } from './Stepper/index.js';
|
|
68
71
|
export { Switch } from './Switch/index.js';
|
|
@@ -77,7 +80,7 @@ export { Title } from './Title/index.js';
|
|
|
77
80
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
78
81
|
export { Tooltip } from './Tooltip/index.js';
|
|
79
82
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
80
|
-
export { T as Tree } from './_verture/index-
|
|
83
|
+
export { T as Tree } from './_verture/index-567b5779.js';
|
|
81
84
|
export { default as Upload } from './Upload/index.js';
|
|
82
85
|
export { default as Utils, getDateYYYYMMddHHMM, pixelReplacement } from './Utils/index.js';
|
|
83
86
|
export { default as locale } from './locale/index.js';
|
|
@@ -88,23 +91,24 @@ import '@paraview/lib';
|
|
|
88
91
|
import './_verture/constant-5317fc89.js';
|
|
89
92
|
import '@para-ui/icons/More';
|
|
90
93
|
import './_verture/style-inject.es-300983ab.js';
|
|
94
|
+
import './_verture/tslib.es6-55ed4bd2.js';
|
|
95
|
+
import '@para-ui/icons/MoreVert';
|
|
91
96
|
import 'clsx';
|
|
92
|
-
import '@para-ui/icons/Return';
|
|
93
97
|
import './_verture/useFormatMessage-1fc7c957.js';
|
|
94
|
-
import '
|
|
98
|
+
import '@para-ui/icons/Return';
|
|
95
99
|
import '@para-ui/icons/LoadingF';
|
|
96
100
|
import '@para-ui/icons/Down';
|
|
97
101
|
import '@para-ui/icons/Forbid';
|
|
98
102
|
import 'react-slick';
|
|
99
103
|
import '@para-ui/icons/RightCircleF';
|
|
100
104
|
import '@para-ui/icons/LeftCircleF';
|
|
101
|
-
import './_verture/Portal-
|
|
102
|
-
import './_verture/slicedToArray-
|
|
103
|
-
import './_verture/
|
|
104
|
-
import './_verture/
|
|
105
|
-
import './_verture/
|
|
105
|
+
import './_verture/Portal-edd94cac.js';
|
|
106
|
+
import './_verture/slicedToArray-75fa4188.js';
|
|
107
|
+
import './_verture/typeof-adeedc13.js';
|
|
108
|
+
import './_verture/toConsumableArray-c7a8028f.js';
|
|
109
|
+
import './_verture/defineProperty-6f62bb2a.js';
|
|
106
110
|
import 'rc-motion';
|
|
107
|
-
import './_verture/typeof-
|
|
111
|
+
import './_verture/typeof-4646b22c.js';
|
|
108
112
|
import 'rc-tree/lib/utils/conductUtil';
|
|
109
113
|
import '@para-ui/icons/Right';
|
|
110
114
|
import '@para-ui/icons/CloseCircleF';
|
|
@@ -142,7 +146,7 @@ import '@para-ui/icons/Panel';
|
|
|
142
146
|
import '@para-ui/icons/PlusCircleF';
|
|
143
147
|
import '@para-ui/icons/Delete';
|
|
144
148
|
import '@para-ui/icons/Drag';
|
|
145
|
-
import './_verture/index-
|
|
149
|
+
import './_verture/index-c8cb6751.js';
|
|
146
150
|
import './_verture/sortable.esm-76fe46a4.js';
|
|
147
151
|
import '@para-ui/icons/LinkGroup';
|
|
148
152
|
import '@para-ui/icons/UploadFile';
|
|
@@ -170,7 +174,7 @@ import '@para-ui/icons/Plus';
|
|
|
170
174
|
import '@para-ui/icons/EditOutline';
|
|
171
175
|
import '@para-ui/icons/Message';
|
|
172
176
|
import '@para-ui/icons/Set';
|
|
173
|
-
import './_verture/index-
|
|
177
|
+
import './_verture/index-94e24006.js';
|
|
174
178
|
import 'rc-slider';
|
|
175
179
|
import './_verture/tinycolor-ece3542d.js';
|
|
176
180
|
import 'rc-steps';
|