@unicom-cloud/ui 0.8.55 → 0.8.57
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/Affix.js +36 -36
- package/Alert.js +41 -45
- package/Anchor.js +1 -1
- package/AutoComplete.js +40 -40
- package/Avatar.js +36 -36
- package/BackTop.js +26 -26
- package/Badge.js +43 -43
- package/Breadcrumb.js +17 -17
- package/Button.js +42 -42
- package/Calendar.js +54 -56
- package/Card.js +28 -28
- package/Carousel.js +42 -43
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +11 -580
- package/Comment.js +14 -14
- package/ConfigProvider.js +2 -2
- package/Copy.js +26 -26
- package/DatePicker.js +661 -670
- package/Descriptions.js +53 -53
- package/Divider.js +15 -15
- package/Draggable.js +16 -16
- package/Drawer.js +1 -1
- package/Dropdown.js +10 -10
- package/Empty.js +3 -3
- package/Form.js +10 -1410
- package/Grid.js +49 -49
- package/Icon.js +10 -10
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/Input.js +1 -1
- package/InputNumber.js +7 -7
- package/InputTag.js +1 -1
- package/Layout.js +34 -34
- package/Link.js +26 -26
- package/List.js +39 -39
- package/Mentions.js +17 -17
- package/Menu.js +1 -1
- package/Message.js +3 -3
- package/Modal.js +1 -1
- package/Notice.js +4 -10
- package/Notification.js +3 -3
- package/OverflowEllipsis.js +18 -18
- package/PageHeader.js +26 -27
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +15 -15
- package/Popover.js +22 -22
- package/Progress.js +18 -18
- package/Radio.js +2 -2
- package/Rate.js +40 -43
- package/ResizeBox.js +191 -192
- package/Result.js +17 -17
- package/Select.js +1 -1
- package/SelectView.js +56 -56
- package/Skeleton.js +35 -35
- package/Slider.js +81 -81
- package/Space.js +27 -27
- package/SpeechSynthesis.js +29 -32
- package/Spin.js +15 -15
- package/Statistic.js +54 -54
- package/Steps.js +44 -44
- package/Switch.js +39 -38
- package/Table.js +488 -488
- package/Tabs.js +1 -1
- package/Tag.js +13 -14
- package/TimePicker.js +68 -68
- package/Timeline.js +1 -1
- package/Tooltip.js +27 -28
- package/Transfer.js +29 -30
- package/Tree.js +1 -1
- package/TreeSelect.js +1 -1
- package/Trigger.js +53 -52
- package/Typography.js +2 -737
- package/Upload.js +1 -1
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/1mEO29GP.js +23 -0
- package/chunk/5pZ3ayqs.js +29 -0
- package/chunk/9Gh1afjL.js +23 -0
- package/chunk/B1S1OEw6.js +29 -0
- package/chunk/B45v5S9k.js +209 -0
- package/chunk/B6fn5y_s.js +23 -0
- package/chunk/B9PsJar0.js +118 -0
- package/chunk/BA02BFUV.js +41 -0
- package/chunk/BCk8e9fj.js +29 -0
- package/chunk/BHK9zpXn.js +207 -0
- package/chunk/BHLTzWzi.js +29 -0
- package/chunk/BK1FKNAX.js +41 -0
- package/chunk/BM6dpkeM.js +32 -0
- package/chunk/{BC0PujUD.js → BMvZCjSU.js} +118 -120
- package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
- package/chunk/BWx1cVT_.js +66 -0
- package/chunk/BbI3gqVr.js +23 -0
- package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
- package/chunk/Be7oeWU8.js +34 -0
- package/chunk/BeM2hfks.js +88 -0
- package/chunk/BkHxm4sv.js +41 -0
- package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
- package/chunk/BlKc_pDZ.js +678 -0
- package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
- package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
- package/chunk/BqxwlITu.js +52 -0
- package/chunk/BuEC_zcc.js +278 -0
- package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
- package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
- package/chunk/C2fspJbE.js +23 -0
- package/chunk/C7Okdv4u.js +34 -0
- package/chunk/C95ipQ6b.js +41 -0
- package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
- package/chunk/CPl52AZh.js +206 -0
- package/chunk/CR4u270n.js +284 -0
- package/chunk/CXNW5Y2a.js +23 -0
- package/chunk/Cb_oWoGj.js +40 -0
- package/chunk/CcX2pBUh.js +46 -0
- package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
- package/chunk/CkAOsst1.js +73 -0
- package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
- package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
- package/chunk/{RRWbBHK-.js → D5p8q9Pa.js} +221 -221
- package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
- package/chunk/D6mVoX-C.js +116 -0
- package/chunk/D9TqtOhq.js +40 -0
- package/chunk/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
- package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
- package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
- package/chunk/{Niaq_og8.js → DMWMrXg1.js} +220 -226
- package/chunk/DPvnQJ-H.js +52 -0
- package/chunk/DQXq1QT0.js +58 -0
- package/chunk/DUxWiN2U.js +1465 -0
- package/chunk/DYZzQ2uT.js +29 -0
- package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
- package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
- package/chunk/Dbk4DVhB.js +855 -0
- package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
- package/chunk/DhLbnw3R.js +29 -0
- package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
- package/chunk/Do1aMgY3.js +12 -0
- package/chunk/Dtnux4qL.js +38 -0
- package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
- package/chunk/HlP8inLK.js +1796 -0
- package/chunk/Lk60-jkf.js +1098 -0
- package/chunk/V_IcWDFx.js +49 -0
- package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
- package/chunk/{Dki1RB5p.js → aM2ePYrq.js} +154 -155
- package/chunk/bsawGxt8.js +32 -0
- package/chunk/cUuQh7L_.js +46 -0
- package/chunk/fqgc8r6C.js +29 -0
- package/chunk/m_kOQCiU.js +29 -0
- package/chunk/sl8s35SK.js +29 -0
- package/hooks/index.js +52 -246
- package/hooks/useForceUpdate.js +6 -6
- package/hooks/useIntersectionObserver.js +12 -10
- package/hooks/useKeyboardEvent.js +7 -7
- package/hooks/useMedia.js +9 -12
- package/hooks/useMergeValue.js +10 -8
- package/hooks/useResizeObserver.js +16 -0
- package/hooks/useUpdateEffect.js +7 -9
- package/hooks/useWindowSize.js +16 -20
- package/icons.js +6003 -0
- package/index.js +377 -472
- package/locale/en-US.js +20 -6
- package/locale/ja-JP.js +4 -2
- package/locale/ko-KR.js +2 -2
- package/locale/pt-BR.js +3 -3
- package/locale/pt-PT.js +3 -3
- package/locale/tr-TR.js +11 -3
- package/locale/zh-CN.js +6 -0
- package/locale/zh-HK.js +2 -0
- package/locale/zh-TW.js +2 -0
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -0
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/hooks/index.d.ts +3 -101
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useIntersectionObserver.d.ts +1 -1
- package/types/hooks/useKeyboardEvent.d.ts +2 -2
- package/types/hooks/useMergeProps.d.ts +1 -1
- package/types/hooks/useResizeObserver.d.ts +5 -0
- package/types/hooks/useUpdateEffect.d.ts +2 -3
- package/types/hooks/useWindowSize.d.ts +1 -1
- package/types/icons.d.ts +4 -0
- package/types/index.d.ts +12 -2
- package/types/locale/en-US.d.ts +4 -0
- package/types/locale/interface.d.ts +2 -0
- package/types/locale/ja-JP.d.ts +4 -0
- package/types/locale/zh-CN.d.ts +4 -0
- package/types/locale/zh-HK.d.ts +4 -0
- package/types/locale/zh-TW.d.ts +4 -0
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +1 -1
- package/utils/className.js +2 -3
- package/utils/contextHolder.js +2 -2
- package/utils/copy.js +2 -3
- package/utils/is.js +127 -90
- package/utils/reactDOM.js +17 -15
- package/utils/responsiveObserve.js +16 -16
- package/utils/saveAs.js +2 -3
- package/chunk/BdYAMaw9.js +0 -6
- package/chunk/DdtfPvgk.js +0 -272
- package/chunk/I4RV9SKZ.js +0 -135
- package/chunk/TXCrI0jN.js +0 -20
- package/chunk/i1A7W8Qt.js +0 -277
- package/chunk/xPzFRQJn.js +0 -740
- package/hooks/useAsync.js +0 -13
- package/hooks/useAsyncFn.js +0 -15
- package/hooks/useAsyncRetry.js +0 -17
- package/hooks/useAudio.js +0 -5
- package/hooks/useBeforeUnload.js +0 -18
- package/hooks/useBoolean.js +0 -4
- package/hooks/useClickAway.js +0 -22
- package/hooks/useCopyToClipboard.js +0 -51
- package/hooks/useCounter.js +0 -45
- package/hooks/useCreation.js +0 -17
- package/hooks/useCustomCompareEffect.js +0 -15
- package/hooks/useDebounce.js +0 -9
- package/hooks/useDefault.js +0 -10
- package/hooks/useDrop.js +0 -44
- package/hooks/useDropArea.js +0 -45
- package/hooks/useEffectOnce.js +0 -7
- package/hooks/useEffectState.js +0 -9
- package/hooks/useEnsuredForwardedRef.js +0 -17
- package/hooks/useError.js +0 -13
- package/hooks/useEvent.js +0 -13
- package/hooks/useEventListener.js +0 -39
- package/hooks/useFavicon.js +0 -16
- package/hooks/useFirstMountState.js +0 -8
- package/hooks/useFullscreen.js +0 -39
- package/hooks/useGeolocation.js +0 -38
- package/hooks/useGetSet.js +0 -18
- package/hooks/useGetSetState.js +0 -12
- package/hooks/useHash.js +0 -26
- package/hooks/useHover.js +0 -16
- package/hooks/useHoverDirty.js +0 -17
- package/hooks/useIdle.js +0 -34
- package/hooks/useIntersection.js +0 -19
- package/hooks/useIsomorphicLayoutEffect2.js +0 -6
- package/hooks/useKey.js +0 -16
- package/hooks/useKeyPress.js +0 -13
- package/hooks/useKeyPressEvent.js +0 -11
- package/hooks/useLatest.js +0 -8
- package/hooks/useLifecycles.js +0 -9
- package/hooks/useList.js +0 -67
- package/hooks/useLocalStorage.js +0 -42
- package/hooks/useLocation.js +0 -51
- package/hooks/useLockBodyScroll.js +0 -55
- package/hooks/useLogger.js +0 -10
- package/hooks/useLongPress.js +0 -24
- package/hooks/useMap.js +0 -31
- package/hooks/useMeasure.js +0 -34
- package/hooks/useMeasureDirty.js +0 -24
- package/hooks/useMediaDevices.js +0 -26
- package/hooks/useMediatedState.js +0 -14
- package/hooks/useMethods.js +0 -14
- package/hooks/useMotion.js +0 -56
- package/hooks/useMount.js +0 -9
- package/hooks/useMountedState.js +0 -10
- package/hooks/useMouse.js +0 -44
- package/hooks/useMouseHovered.js +0 -9
- package/hooks/useMouseWheel.js +0 -14
- package/hooks/useMultiStateValidator.js +0 -19
- package/hooks/useNetworkState.js +0 -31
- package/hooks/useNumber.js +0 -4
- package/hooks/useObservable.js +0 -12
- package/hooks/useOrientation.js +0 -30
- package/hooks/usePageLeave.js +0 -19
- package/hooks/usePermission.js +0 -19
- package/hooks/usePinchZoom.js +0 -40
- package/hooks/usePreviousDistinct.js +0 -10
- package/hooks/usePromise.js +0 -19
- package/hooks/useQueue.js +0 -25
- package/hooks/useRaf.js +0 -24
- package/hooks/useRafLoop.js +0 -24
- package/hooks/useRafState.js +0 -15
- package/hooks/useReactive.js +0 -21
- package/hooks/useRendersCount.js +0 -7
- package/hooks/useScroll.js +0 -27
- package/hooks/useScrolling.js +0 -23
- package/hooks/useSearchParam.js +0 -18
- package/hooks/useSessionStorage.js +0 -29
- package/hooks/useSet.js +0 -15
- package/hooks/useSetState.js +0 -16
- package/hooks/useSize.js +0 -58
- package/hooks/useSlider.js +0 -48
- package/hooks/useSpeech.js +0 -45
- package/hooks/useStartTyping.js +0 -30
- package/hooks/useStateList.js +0 -37
- package/hooks/useStateValidator.js +0 -17
- package/hooks/useStateWithHistory.js +0 -46
- package/hooks/useSyncState.js +0 -14
- package/hooks/useThrottle.js +0 -21
- package/hooks/useThrottleFn.js +0 -21
- package/hooks/useTimeout.js +0 -17
- package/hooks/useTimeoutFn.js +0 -16
- package/hooks/useTitle.js +0 -18
- package/hooks/useToggle.js +0 -5
- package/hooks/useTween.js +0 -11
- package/hooks/useUnmount.js +0 -9
- package/hooks/useUnmountPromise.js +0 -20
- package/hooks/useUpdate.js +0 -10
- package/hooks/useUpdateTimeout.js +0 -9
- package/hooks/useUpsert.js +0 -16
- package/hooks/useVibrate.js +0 -21
- package/hooks/useVideo.js +0 -5
- package/hooks/useWindowScroll.js +0 -29
- package/types/hooks/component/UseKey.d.ts +0 -2
- package/types/hooks/factory/createBreakpoint.d.ts +0 -4
- package/types/hooks/factory/createGlobalState.d.ts +0 -7
- package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
- package/types/hooks/factory/createMemo.d.ts +0 -2
- package/types/hooks/factory/createReducer.d.ts +0 -8
- package/types/hooks/factory/createReducerContext.d.ts +0 -5
- package/types/hooks/factory/createRenderProp.d.ts +0 -1
- package/types/hooks/factory/createRouter.d.ts +0 -7
- package/types/hooks/factory/createStateContext.d.ts +0 -5
- package/types/hooks/misc/hookState.d.ts +0 -8
- package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
- package/types/hooks/misc/types.d.ts +0 -2
- package/types/hooks/misc/util.d.ts +0 -5
- package/types/hooks/useAsync.d.ts +0 -20
- package/types/hooks/useAsyncFn.d.ts +0 -23
- package/types/hooks/useAsyncRetry.d.ts +0 -27
- package/types/hooks/useAudio.d.ts +0 -11
- package/types/hooks/useBeforeUnload.d.ts +0 -2
- package/types/hooks/useBoolean.d.ts +0 -2
- package/types/hooks/useClickAway.d.ts +0 -3
- package/types/hooks/useCopyToClipboard.d.ts +0 -7
- package/types/hooks/useCounter.d.ts +0 -9
- package/types/hooks/useCreation.d.ts +0 -2
- package/types/hooks/useCustomCompareEffect.d.ts +0 -4
- package/types/hooks/useDebounce.d.ts +0 -3
- package/types/hooks/useDefault.d.ts +0 -2
- package/types/hooks/useDrop.d.ts +0 -17
- package/types/hooks/useDropArea.d.ts +0 -18
- package/types/hooks/useEffectOnce.d.ts +0 -3
- package/types/hooks/useEffectState.d.ts +0 -2
- package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
- package/types/hooks/useError.d.ts +0 -2
- package/types/hooks/useEvent.d.ts +0 -13
- package/types/hooks/useEventListener.d.ts +0 -2
- package/types/hooks/useFavicon.d.ts +0 -2
- package/types/hooks/useFirstMountState.d.ts +0 -1
- package/types/hooks/useFullscreen.d.ts +0 -10
- package/types/hooks/useGeolocation.d.ts +0 -21
- package/types/hooks/useGetSet.d.ts +0 -3
- package/types/hooks/useGetSetState.d.ts +0 -2
- package/types/hooks/useHash.d.ts +0 -2
- package/types/hooks/useHover.d.ts +0 -4
- package/types/hooks/useHoverDirty.d.ts +0 -3
- package/types/hooks/useIdle.d.ts +0 -2
- package/types/hooks/useIntersection.d.ts +0 -3
- package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
- package/types/hooks/useKey.d.ts +0 -12
- package/types/hooks/useKeyPress.d.ts +0 -3
- package/types/hooks/useKeyPressEvent.d.ts +0 -3
- package/types/hooks/useLatest.d.ts +0 -4
- package/types/hooks/useLifecycles.d.ts +0 -2
- package/types/hooks/useList.d.ts +0 -18
- package/types/hooks/useLocalStorage.d.ts +0 -10
- package/types/hooks/useLocation.d.ts +0 -16
- package/types/hooks/useLockBodyScroll.d.ts +0 -8
- package/types/hooks/useLogger.d.ts +0 -2
- package/types/hooks/useLongPress.d.ts +0 -12
- package/types/hooks/useMap.d.ts +0 -11
- package/types/hooks/useMeasure.d.ts +0 -9
- package/types/hooks/useMeasureDirty.d.ts +0 -11
- package/types/hooks/useMediaDevices.d.ts +0 -2
- package/types/hooks/useMediatedState.d.ts +0 -9
- package/types/hooks/useMethods.d.ts +0 -8
- package/types/hooks/useMotion.d.ts +0 -20
- package/types/hooks/useMount.d.ts +0 -2
- package/types/hooks/useMountedState.d.ts +0 -1
- package/types/hooks/useMouse.d.ts +0 -13
- package/types/hooks/useMouseHovered.d.ts +0 -8
- package/types/hooks/useMouseWheel.d.ts +0 -2
- package/types/hooks/useMultiStateValidator.d.ts +0 -9
- package/types/hooks/useNetworkState.d.ts +0 -22
- package/types/hooks/useNumber.d.ts +0 -2
- package/types/hooks/useObservable.d.ts +0 -8
- package/types/hooks/useOrientation.d.ts +0 -6
- package/types/hooks/usePageLeave.d.ts +0 -2
- package/types/hooks/usePermission.d.ts +0 -16
- package/types/hooks/usePinchZoom.d.ts +0 -18
- package/types/hooks/usePreviousDistinct.d.ts +0 -2
- package/types/hooks/usePromise.d.ts +0 -3
- package/types/hooks/useQueue.d.ts +0 -9
- package/types/hooks/useRaf.d.ts +0 -2
- package/types/hooks/useRafLoop.d.ts +0 -2
- package/types/hooks/useRafState.d.ts +0 -3
- package/types/hooks/useReactive.d.ts +0 -2
- package/types/hooks/useRendersCount.d.ts +0 -1
- package/types/hooks/useScroll.d.ts +0 -7
- package/types/hooks/useScrolling.d.ts +0 -3
- package/types/hooks/useSearchParam.d.ts +0 -3
- package/types/hooks/useSessionStorage.d.ts +0 -2
- package/types/hooks/useSet.d.ts +0 -11
- package/types/hooks/useSetState.d.ts +0 -2
- package/types/hooks/useSize.d.ts +0 -8
- package/types/hooks/useSlider.d.ts +0 -15
- package/types/hooks/useSpeech.d.ts +0 -16
- package/types/hooks/useStartTyping.d.ts +0 -2
- package/types/hooks/useStateList.d.ts +0 -9
- package/types/hooks/useStateValidator.d.ts +0 -8
- package/types/hooks/useStateWithHistory.d.ts +0 -18
- package/types/hooks/useSyncState.d.ts +0 -3
- package/types/hooks/useThrottle.d.ts +0 -2
- package/types/hooks/useThrottleFn.d.ts +0 -2
- package/types/hooks/useTimeout.d.ts +0 -2
- package/types/hooks/useTimeoutFn.d.ts +0 -2
- package/types/hooks/useTitle.d.ts +0 -6
- package/types/hooks/useToggle.d.ts +0 -2
- package/types/hooks/useTween.d.ts +0 -3
- package/types/hooks/useUnmount.d.ts +0 -2
- package/types/hooks/useUnmountPromise.d.ts +0 -3
- package/types/hooks/useUpdate.d.ts +0 -2
- package/types/hooks/useUpdateTimeout.d.ts +0 -2
- package/types/hooks/useUpsert.d.ts +0 -6
- package/types/hooks/useVibrate.d.ts +0 -4
- package/types/hooks/useVideo.d.ts +0 -11
- package/types/hooks/useWindowScroll.d.ts +0 -6
|
@@ -1,69 +1,63 @@
|
|
|
1
|
-
import { jsxs as L, Fragment as
|
|
1
|
+
import { jsxs as L, Fragment as M, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import F from "lodash/isFunction";
|
|
3
|
-
import
|
|
4
|
-
import ee, { useContext as z, forwardRef as W, isValidElement as
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import K from "
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { b as
|
|
11
|
-
import { a as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
3
|
+
import ue from "lodash/isNumber";
|
|
4
|
+
import ee, { useContext as z, forwardRef as W, isValidElement as ve, useState as B, useMemo as Ue, useEffect as Ie, useRef as te, useImperativeHandle as me } from "react";
|
|
5
|
+
import { b as J, I as xe } from "./DUxWiN2U.js";
|
|
6
|
+
import $e from "../hooks/useMergeProps.js";
|
|
7
|
+
import { y as K } from "./Do1aMgY3.js";
|
|
8
|
+
import ye from "../utils/omit.js";
|
|
9
|
+
import se from "../utils/warning.js";
|
|
10
|
+
import { b as we, P as ie } from "./BP7xX86Q.js";
|
|
11
|
+
import { a as Pe } from "./CwXmtKib.js";
|
|
12
|
+
import { I as fe } from "./sl8s35SK.js";
|
|
13
|
+
import { I as Ne } from "./C7Okdv4u.js";
|
|
14
|
+
import { I as Re } from "./CPl52AZh.js";
|
|
15
|
+
import { I as re, a as Le, b as Ce, c as ge, d as Fe, e as Ee, f as De } from "./BHK9zpXn.js";
|
|
16
16
|
import X from "../hooks/useKeyboardEvent.js";
|
|
17
17
|
import "../utils/is.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import Oe from "@unicom-cloud/icons/IconUiPlayArrowFill";
|
|
21
|
-
import De from "../Progress.js";
|
|
18
|
+
import { I as Oe } from "./CXNW5Y2a.js";
|
|
19
|
+
import Te from "../Progress.js";
|
|
22
20
|
import ne from "../Tooltip.js";
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import ae from "lodash/isPlainObject";
|
|
31
|
-
import ue from "@unicom-cloud/icons/IconUiPlus";
|
|
32
|
-
import Ae from "../Button.js";
|
|
33
|
-
import Ve from "lodash/isArray";
|
|
21
|
+
import { H as ke } from "./BeM2hfks.js";
|
|
22
|
+
import V from "lodash/isPlainObject";
|
|
23
|
+
import { b as je } from "./B45v5S9k.js";
|
|
24
|
+
import { I as Se } from "./DYZzQ2uT.js";
|
|
25
|
+
import { I as ce } from "./B6fn5y_s.js";
|
|
26
|
+
import qe from "../Button.js";
|
|
27
|
+
import Ae from "lodash/isArray";
|
|
34
28
|
import { NOOP as Y } from "../utils/constant.js";
|
|
35
29
|
const y = {
|
|
36
30
|
init: "init",
|
|
37
31
|
uploading: "uploading",
|
|
38
32
|
success: "done",
|
|
39
33
|
fail: "error"
|
|
40
|
-
},
|
|
34
|
+
}, he = (e) => {
|
|
41
35
|
var U, n, g, P, o, b;
|
|
42
|
-
const d = X(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = z(J), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {},
|
|
36
|
+
const d = X(), { file: u, prefixCls: s, progressProps: t, progressRender: a } = e, { locale: i } = z(J), { status: l, percent: m = 0 } = u, f = `${s}-list`, h = t && t.width ? { width: t.width } : {}, x = /* @__PURE__ */ L(M, { children: [
|
|
43
37
|
l === y.fail && e.reuploadIcon !== null && /* @__PURE__ */ r(
|
|
44
38
|
"span",
|
|
45
39
|
{
|
|
46
40
|
className: `${s}-list-reupload-icon`,
|
|
47
41
|
onClick: () => {
|
|
48
|
-
var
|
|
49
|
-
(
|
|
42
|
+
var I;
|
|
43
|
+
(I = e.onReupload) == null || I.call(e, u);
|
|
50
44
|
},
|
|
51
45
|
tabIndex: 0,
|
|
52
46
|
role: "button",
|
|
53
47
|
"aria-label": (U = i == null ? void 0 : i.Upload) == null ? void 0 : U.reupload,
|
|
54
48
|
...d({
|
|
55
49
|
onPressEnter: () => {
|
|
56
|
-
var
|
|
57
|
-
(
|
|
50
|
+
var I;
|
|
51
|
+
(I = e.onReupload) == null || I.call(e, u);
|
|
58
52
|
}
|
|
59
53
|
}),
|
|
60
|
-
children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(
|
|
54
|
+
children: e.reuploadIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(re, {}) : (n = i == null ? void 0 : i.Upload) == null ? void 0 : n.reupload)
|
|
61
55
|
}
|
|
62
56
|
),
|
|
63
|
-
l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(
|
|
57
|
+
l === y.success && e.successIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-success-icon`, children: e.successIcon || /* @__PURE__ */ r(Oe, {}) }),
|
|
64
58
|
l !== y.success && /* @__PURE__ */ L("div", { className: `${f}-status`, style: h, children: [
|
|
65
59
|
/* @__PURE__ */ r(
|
|
66
|
-
|
|
60
|
+
Te,
|
|
67
61
|
{
|
|
68
62
|
showText: !1,
|
|
69
63
|
className: `${f}-progress`,
|
|
@@ -82,16 +76,16 @@ const y = {
|
|
|
82
76
|
"aria-label": (g = i == null ? void 0 : i.Upload) == null ? void 0 : g.start,
|
|
83
77
|
className: `${s}-list-start-icon`,
|
|
84
78
|
onClick: () => {
|
|
85
|
-
var
|
|
86
|
-
(
|
|
79
|
+
var I;
|
|
80
|
+
(I = e.onUpload) == null || I.call(e, u);
|
|
87
81
|
},
|
|
88
82
|
...d({
|
|
89
83
|
onPressEnter: () => {
|
|
90
|
-
var
|
|
91
|
-
(
|
|
84
|
+
var I;
|
|
85
|
+
(I = e.onUpload) == null || I.call(e, u);
|
|
92
86
|
}
|
|
93
87
|
}),
|
|
94
|
-
children: e.startIcon || /* @__PURE__ */ r(ne, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(
|
|
88
|
+
children: e.startIcon || /* @__PURE__ */ r(ne, { content: (P = i == null ? void 0 : i.Upload) == null ? void 0 : P.start, children: /* @__PURE__ */ r(Le, {}) })
|
|
95
89
|
}
|
|
96
90
|
),
|
|
97
91
|
l === y.uploading && e.cancelIcon !== null && /* @__PURE__ */ r(
|
|
@@ -99,27 +93,27 @@ const y = {
|
|
|
99
93
|
{
|
|
100
94
|
className: `${e.prefixCls}-list-cancel-icon`,
|
|
101
95
|
onClick: () => {
|
|
102
|
-
var
|
|
103
|
-
(
|
|
96
|
+
var I;
|
|
97
|
+
(I = e.onAbort) == null || I.call(e, u);
|
|
104
98
|
},
|
|
105
99
|
tabIndex: 0,
|
|
106
100
|
"aria-label": (o = i == null ? void 0 : i.Upload) == null ? void 0 : o.cancel,
|
|
107
101
|
...d({
|
|
108
102
|
onPressEnter: () => {
|
|
109
|
-
var
|
|
110
|
-
(
|
|
103
|
+
var I;
|
|
104
|
+
(I = e.onAbort) == null || I.call(e, u);
|
|
111
105
|
}
|
|
112
106
|
}),
|
|
113
|
-
children: e.cancelIcon || /* @__PURE__ */ r(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(
|
|
107
|
+
children: e.cancelIcon || /* @__PURE__ */ r(ne, { content: (b = i == null ? void 0 : i.Upload) == null ? void 0 : b.cancel, children: /* @__PURE__ */ r(Ce, {}) })
|
|
114
108
|
}
|
|
115
109
|
)
|
|
116
110
|
] })
|
|
117
111
|
] });
|
|
118
|
-
return F(a) ? a(u,
|
|
112
|
+
return F(a) ? a(u, x) : x;
|
|
119
113
|
}, He = (e, d) => {
|
|
120
|
-
const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = X(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t,
|
|
114
|
+
const { disabled: u, prefixCls: s, file: t, showUploadList: a, locale: i } = e, l = X(), m = `${s}-list-item-picture`, { status: f, originFile: h } = t, x = t.url !== void 0 ? t.url : h && F(URL.createObjectURL) && URL.createObjectURL(h), U = V(a) ? a : {};
|
|
121
115
|
return /* @__PURE__ */ r("div", { className: m, ref: d, children: f === y.uploading ? /* @__PURE__ */ r(
|
|
122
|
-
|
|
116
|
+
he,
|
|
123
117
|
{
|
|
124
118
|
onReupload: e.onReupload,
|
|
125
119
|
onUpload: e.onUpload,
|
|
@@ -130,10 +124,10 @@ const y = {
|
|
|
130
124
|
progressProps: e.progressProps,
|
|
131
125
|
...U
|
|
132
126
|
}
|
|
133
|
-
) : /* @__PURE__ */ L(
|
|
134
|
-
F(U.imageRender) ? U.imageRender(t) : /* @__PURE__ */ r("img", { src:
|
|
127
|
+
) : /* @__PURE__ */ L(M, { children: [
|
|
128
|
+
F(U.imageRender) ? U.imageRender(t) : /* @__PURE__ */ r("img", { src: x, alt: t.name }),
|
|
135
129
|
/* @__PURE__ */ L("div", { className: `${m}-mask`, role: "radiogroup", children: [
|
|
136
|
-
t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(
|
|
130
|
+
t.status === y.fail && /* @__PURE__ */ r("div", { className: `${m}-error-tip`, children: U.errorIcon !== null && /* @__PURE__ */ r("span", { className: `${s}-list-error-icon`, children: U.errorIcon || /* @__PURE__ */ r(Re, {}) }) }),
|
|
137
131
|
/* @__PURE__ */ L("div", { className: `${m}-operation`, children: [
|
|
138
132
|
t.status !== y.fail && U.previewIcon !== null && /* @__PURE__ */ r(
|
|
139
133
|
"span",
|
|
@@ -152,7 +146,7 @@ const y = {
|
|
|
152
146
|
var n;
|
|
153
147
|
(n = e.onPreview) == null || n.call(e, t);
|
|
154
148
|
},
|
|
155
|
-
children: U.previewIcon || /* @__PURE__ */ r(
|
|
149
|
+
children: U.previewIcon || /* @__PURE__ */ r(Ne, {})
|
|
156
150
|
}
|
|
157
151
|
),
|
|
158
152
|
t.status === y.fail && U.reuploadIcon !== null && /* @__PURE__ */ r(
|
|
@@ -172,7 +166,7 @@ const y = {
|
|
|
172
166
|
(n = e.onReupload) == null || n.call(e, t);
|
|
173
167
|
}
|
|
174
168
|
}),
|
|
175
|
-
children: U.reuploadIcon || /* @__PURE__ */ r(
|
|
169
|
+
children: U.reuploadIcon || /* @__PURE__ */ r(re, {})
|
|
176
170
|
}
|
|
177
171
|
),
|
|
178
172
|
!u && U.removeIcon !== null && /* @__PURE__ */ r(
|
|
@@ -192,13 +186,13 @@ const y = {
|
|
|
192
186
|
(n = e.onRemove) == null || n.call(e, t);
|
|
193
187
|
}
|
|
194
188
|
}),
|
|
195
|
-
children: U.removeIcon || /* @__PURE__ */ r(
|
|
189
|
+
children: U.removeIcon || /* @__PURE__ */ r(fe, {})
|
|
196
190
|
}
|
|
197
191
|
)
|
|
198
192
|
] })
|
|
199
193
|
] })
|
|
200
194
|
] }) });
|
|
201
|
-
},
|
|
195
|
+
}, Ve = W(He), pe = (e) => {
|
|
202
196
|
let d = "";
|
|
203
197
|
if (e.originFile && e.originFile.type)
|
|
204
198
|
d = e.originFile.type;
|
|
@@ -206,9 +200,9 @@ const y = {
|
|
|
206
200
|
const s = (e.name || "").split(".").pop() || "";
|
|
207
201
|
d = s, ["png", "jpg", "jpeg", "bmp", "gif"].indexOf(s) > -1 ? d = "image" : ["mp4", "m2v", "mkv"].indexOf(s) > -1 ? d = "video" : ["mp3", "wav", "wmv"].indexOf(s) > -1 && (d = "audio");
|
|
208
202
|
}
|
|
209
|
-
return d.indexOf("image") > -1 ?
|
|
210
|
-
},
|
|
211
|
-
const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = X(), m =
|
|
203
|
+
return d.indexOf("image") > -1 ? ge : d.indexOf("pdf") > -1 ? Fe : d.indexOf("audio") > -1 ? Ee : d.indexOf("video") > -1 ? De : Se;
|
|
204
|
+
}, Ge = (e, d) => {
|
|
205
|
+
const { prefixCls: u, disabled: s, file: t, locale: a } = e, i = `${u}-list-item-text`, l = X(), m = pe(t), f = V(e.showUploadList) ? e.showUploadList : {}, h = V(f) ? f : {}, x = t.name || t.originFile && t.originFile.name, U = t.url !== void 0 ? t.url : t.originFile && F(URL.createObjectURL) && URL.createObjectURL(t.originFile);
|
|
212
206
|
let n = {};
|
|
213
207
|
return t.status !== y.fail && (n = {
|
|
214
208
|
popupVisible: !1
|
|
@@ -230,21 +224,21 @@ const y = {
|
|
|
230
224
|
target: "_blank",
|
|
231
225
|
rel: "noreferrer",
|
|
232
226
|
className: `${i}-name-link`,
|
|
233
|
-
children:
|
|
227
|
+
children: x
|
|
234
228
|
}
|
|
235
|
-
) : /* @__PURE__ */ r("span", { className: `${i}-name-text`, children:
|
|
229
|
+
) : /* @__PURE__ */ r("span", { className: `${i}-name-text`, children: x }),
|
|
236
230
|
t.status === y.fail && h.errorIcon !== null && /* @__PURE__ */ r(
|
|
237
231
|
ne,
|
|
238
232
|
{
|
|
239
|
-
content: (typeof t.response == "object" ?
|
|
233
|
+
content: (typeof t.response == "object" ? ve(t.response) && t.response : t.response) || a.Upload.error,
|
|
240
234
|
...n,
|
|
241
235
|
disabled: t.status !== y.fail,
|
|
242
|
-
children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(
|
|
236
|
+
children: /* @__PURE__ */ r("span", { className: `${e.prefixCls}-list-error-icon`, children: h.errorIcon || (e.listType === "picture-card" ? /* @__PURE__ */ r(ge, {}) : /* @__PURE__ */ r(je, {})) })
|
|
243
237
|
}
|
|
244
238
|
)
|
|
245
239
|
] }),
|
|
246
240
|
/* @__PURE__ */ r(
|
|
247
|
-
|
|
241
|
+
he,
|
|
248
242
|
{
|
|
249
243
|
file: t,
|
|
250
244
|
prefixCls: u,
|
|
@@ -258,7 +252,7 @@ const y = {
|
|
|
258
252
|
] })
|
|
259
253
|
] }),
|
|
260
254
|
/* @__PURE__ */ r("div", { className: `${u}-list-item-operation`, children: !s && h.removeIcon !== null && /* @__PURE__ */ r(
|
|
261
|
-
|
|
255
|
+
xe,
|
|
262
256
|
{
|
|
263
257
|
className: `${u}-list-remove-icon-hover`,
|
|
264
258
|
onClick: () => {
|
|
@@ -273,13 +267,13 @@ const y = {
|
|
|
273
267
|
(g = e.onRemove) == null || g.call(e, t);
|
|
274
268
|
}
|
|
275
269
|
}),
|
|
276
|
-
children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(
|
|
270
|
+
children: /* @__PURE__ */ r("span", { className: `${u}-list-remove-icon`, children: h.removeIcon || /* @__PURE__ */ r(fe, {}) })
|
|
277
271
|
}
|
|
278
272
|
) })
|
|
279
273
|
]
|
|
280
274
|
}
|
|
281
275
|
);
|
|
282
|
-
},
|
|
276
|
+
}, Be = W(Ge), be = (e) => {
|
|
283
277
|
const { locale: d, rtl: u } = z(J), {
|
|
284
278
|
listType: s,
|
|
285
279
|
fileList: t,
|
|
@@ -287,7 +281,7 @@ const y = {
|
|
|
287
281
|
renderUploadItem: i,
|
|
288
282
|
prefixCls: l,
|
|
289
283
|
...m
|
|
290
|
-
} = e, [f, h] =
|
|
284
|
+
} = e, [f, h] = B(-1), x = Ue(() => t.map((n) => {
|
|
291
285
|
let g = n.url;
|
|
292
286
|
return n.url === void 0 && [y.init, y.success].indexOf(n.status) > -1 && (g = n.originFile && F(URL.createObjectURL) && URL.createObjectURL(n.originFile)), g;
|
|
293
287
|
}).filter(Boolean), [t]);
|
|
@@ -296,9 +290,9 @@ const y = {
|
|
|
296
290
|
const U = (n) => {
|
|
297
291
|
e.imagePreview && h(n);
|
|
298
292
|
};
|
|
299
|
-
return /* @__PURE__ */ L(
|
|
293
|
+
return /* @__PURE__ */ L(M, { children: [
|
|
300
294
|
/* @__PURE__ */ r(
|
|
301
|
-
|
|
295
|
+
we,
|
|
302
296
|
{
|
|
303
297
|
className: K(
|
|
304
298
|
`${l}-list`,
|
|
@@ -313,7 +307,7 @@ const y = {
|
|
|
313
307
|
{
|
|
314
308
|
className: `${l}-list-item ${l}-list-item-${n.status}`,
|
|
315
309
|
children: /* @__PURE__ */ r(
|
|
316
|
-
|
|
310
|
+
Ve,
|
|
317
311
|
{
|
|
318
312
|
...e,
|
|
319
313
|
onPreview: (o) => {
|
|
@@ -325,7 +319,7 @@ const y = {
|
|
|
325
319
|
}
|
|
326
320
|
)
|
|
327
321
|
}
|
|
328
|
-
) : /* @__PURE__ */ r(
|
|
322
|
+
) : /* @__PURE__ */ r(Be, { ...e, file: n, locale: d });
|
|
329
323
|
return F(i) && (P = i(P, n, t)), s === "picture-card" ? /* @__PURE__ */ r(
|
|
330
324
|
ie,
|
|
331
325
|
{
|
|
@@ -368,9 +362,9 @@ const y = {
|
|
|
368
362
|
}
|
|
369
363
|
),
|
|
370
364
|
s === "picture-card" && e.imagePreview && /* @__PURE__ */ r(
|
|
371
|
-
|
|
365
|
+
Pe,
|
|
372
366
|
{
|
|
373
|
-
srcList:
|
|
367
|
+
srcList: x,
|
|
374
368
|
visible: f !== -1,
|
|
375
369
|
current: f,
|
|
376
370
|
onChange: U,
|
|
@@ -381,11 +375,11 @@ const y = {
|
|
|
381
375
|
)
|
|
382
376
|
] });
|
|
383
377
|
};
|
|
384
|
-
|
|
385
|
-
const
|
|
386
|
-
const u =
|
|
387
|
-
if (!(
|
|
388
|
-
const t =
|
|
378
|
+
be.displayName = "FileList";
|
|
379
|
+
const ae = (e, d) => {
|
|
380
|
+
const u = V(d) ? d == null ? void 0 : d.type : d;
|
|
381
|
+
if (!(V(d) && d.strict === !1) && u && e) {
|
|
382
|
+
const t = Ae(u) ? u : u.split(",").map((i) => i.trim()).filter((i) => i), a = (e.name.indexOf(".") > -1 ? `.${e.name.split(".").pop()}` : "").toLowerCase();
|
|
389
383
|
return t.some((i) => {
|
|
390
384
|
const l = i && i.toLowerCase(), m = (e.type || "").toLowerCase(), f = m.split("/")[0];
|
|
391
385
|
if (l === m || `${f}${a.replace(".", "/")}` === l || /^\*(\/\*)?$/.test(l))
|
|
@@ -400,12 +394,12 @@ const le = (e, d) => {
|
|
|
400
394
|
});
|
|
401
395
|
}
|
|
402
396
|
return !!e;
|
|
403
|
-
},
|
|
397
|
+
}, Me = (e, d) => {
|
|
404
398
|
if (!e)
|
|
405
399
|
return;
|
|
406
400
|
let u = [].slice.call(e);
|
|
407
|
-
return d && (u = u.filter((s) =>
|
|
408
|
-
},
|
|
401
|
+
return d && (u = u.filter((s) => ae(s, d))), u;
|
|
402
|
+
}, _e = (e, d, u) => {
|
|
409
403
|
const s = [];
|
|
410
404
|
let t = 0;
|
|
411
405
|
const a = () => {
|
|
@@ -413,7 +407,7 @@ const le = (e, d) => {
|
|
|
413
407
|
}, i = (m) => {
|
|
414
408
|
if (t += 1, m != null && m.isFile) {
|
|
415
409
|
m.file((f) => {
|
|
416
|
-
t -= 1,
|
|
410
|
+
t -= 1, ae(f, d) && (Object.defineProperty(f, "webkitRelativePath", {
|
|
417
411
|
value: m.fullPath.replace(/^\//, "")
|
|
418
412
|
}), s.push(f)), a();
|
|
419
413
|
});
|
|
@@ -422,12 +416,12 @@ const le = (e, d) => {
|
|
|
422
416
|
if (m != null && m.isDirectory) {
|
|
423
417
|
const f = m.createReader();
|
|
424
418
|
let h = !1;
|
|
425
|
-
const
|
|
419
|
+
const x = () => {
|
|
426
420
|
f.readEntries((U) => {
|
|
427
|
-
h || (t -= 1, h = !0), U.length === 0 ? a() : (
|
|
421
|
+
h || (t -= 1, h = !0), U.length === 0 ? a() : (x(), U.forEach(i));
|
|
428
422
|
});
|
|
429
423
|
};
|
|
430
|
-
|
|
424
|
+
x();
|
|
431
425
|
return;
|
|
432
426
|
}
|
|
433
427
|
t -= 1, a();
|
|
@@ -435,12 +429,12 @@ const le = (e, d) => {
|
|
|
435
429
|
[].slice.call(e).forEach((m) => {
|
|
436
430
|
m.webkitGetAsEntry && i(m.webkitGetAsEntry());
|
|
437
431
|
});
|
|
438
|
-
},
|
|
439
|
-
const u = X(), { locale: s } = z(J), [t, a] =
|
|
432
|
+
}, Ke = (e, d) => {
|
|
433
|
+
const u = X(), { locale: s } = z(J), [t, a] = B(!1), [i, l] = B(0), {
|
|
440
434
|
tip: m,
|
|
441
435
|
children: f,
|
|
442
436
|
disabled: h,
|
|
443
|
-
drag:
|
|
437
|
+
drag: x,
|
|
444
438
|
listType: U,
|
|
445
439
|
prefixCls: n,
|
|
446
440
|
accept: g,
|
|
@@ -466,32 +460,32 @@ const le = (e, d) => {
|
|
|
466
460
|
l(i + 1);
|
|
467
461
|
},
|
|
468
462
|
onDragLeave: (b) => {
|
|
469
|
-
var
|
|
470
|
-
b.preventDefault(), i === 0 ? (a(!1), !h && ((
|
|
463
|
+
var I;
|
|
464
|
+
b.preventDefault(), i === 0 ? (a(!1), !h && ((I = e.onDragLeave) == null || I.call(e, b))) : l(i - 1);
|
|
471
465
|
},
|
|
472
466
|
onDrop: (b) => {
|
|
473
|
-
var
|
|
467
|
+
var I, q;
|
|
474
468
|
if (b.preventDefault(), !h && e.drag !== !1) {
|
|
475
469
|
if (a(!1), e.directory)
|
|
476
|
-
|
|
477
|
-
var
|
|
478
|
-
(
|
|
470
|
+
_e(b.dataTransfer.items, g, (k) => {
|
|
471
|
+
var O;
|
|
472
|
+
(O = e.onDragFiles) == null || O.call(e, k);
|
|
479
473
|
});
|
|
480
474
|
else {
|
|
481
|
-
const
|
|
482
|
-
if (
|
|
483
|
-
const c =
|
|
484
|
-
return c != null && c.isDirectory ? [...
|
|
475
|
+
const k = [].slice.call(b.dataTransfer.items || []).reduce((A, S, p) => {
|
|
476
|
+
if (S.webkitGetAsEntry) {
|
|
477
|
+
const c = S.webkitGetAsEntry();
|
|
478
|
+
return c != null && c.isDirectory ? [...A, p] : A;
|
|
485
479
|
}
|
|
486
|
-
}, []),
|
|
487
|
-
|
|
480
|
+
}, []), O = [].slice.call(b.dataTransfer.files || []).filter((A, S) => !k.includes(S)), j = Me(O, g);
|
|
481
|
+
j.length > 0 && ((I = e.onDragFiles) == null || I.call(e, P ? j : j.slice(0, 1)));
|
|
488
482
|
}
|
|
489
|
-
(
|
|
483
|
+
(q = e.onDrop) == null || q.call(e, b);
|
|
490
484
|
}
|
|
491
485
|
},
|
|
492
486
|
onDragOver: (b) => {
|
|
493
|
-
var
|
|
494
|
-
b.preventDefault(), !h && !t && (a(!0), (
|
|
487
|
+
var I;
|
|
488
|
+
b.preventDefault(), !h && !t && (a(!0), (I = e.onDragOver) == null || I.call(e, b));
|
|
495
489
|
},
|
|
496
490
|
children: ee.isValidElement(f) ? /* @__PURE__ */ r(
|
|
497
491
|
"div",
|
|
@@ -505,9 +499,9 @@ const le = (e, d) => {
|
|
|
505
499
|
className: `${n}-trigger-picture`,
|
|
506
500
|
tabIndex: 0,
|
|
507
501
|
"aria-label": s.Upload.upload,
|
|
508
|
-
children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(
|
|
502
|
+
children: /* @__PURE__ */ r("div", { className: `${n}-trigger-picture-text`, children: e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}) })
|
|
509
503
|
}
|
|
510
|
-
) }) :
|
|
504
|
+
) }) : x ? /* @__PURE__ */ L(
|
|
511
505
|
"div",
|
|
512
506
|
{
|
|
513
507
|
className: K(`${n}-trigger-drag`, {
|
|
@@ -516,30 +510,30 @@ const le = (e, d) => {
|
|
|
516
510
|
tabIndex: 0,
|
|
517
511
|
"aria-label": s.Upload.drag,
|
|
518
512
|
children: [
|
|
519
|
-
e.triggerPictureIcon ?? /* @__PURE__ */ r(
|
|
513
|
+
e.triggerPictureIcon ?? /* @__PURE__ */ r(ce, {}),
|
|
520
514
|
/* @__PURE__ */ r("p", { className: `${n}-trigger-drag-text`, children: t ? s.Upload.dragHover : s.Upload.drag }),
|
|
521
515
|
m && /* @__PURE__ */ r("div", { className: `${n}-trigger-tip`, children: m })
|
|
522
516
|
]
|
|
523
517
|
}
|
|
524
518
|
) : /* @__PURE__ */ L(
|
|
525
|
-
|
|
519
|
+
qe,
|
|
526
520
|
{
|
|
527
521
|
...o,
|
|
528
522
|
"aria-label": s.Upload.upload,
|
|
529
523
|
type: "primary",
|
|
530
524
|
className: `${n}-trigger-with-icon`,
|
|
531
525
|
children: [
|
|
532
|
-
/* @__PURE__ */ r(
|
|
526
|
+
/* @__PURE__ */ r(re, {}),
|
|
533
527
|
s.Upload.upload
|
|
534
528
|
]
|
|
535
529
|
}
|
|
536
530
|
)
|
|
537
531
|
}
|
|
538
532
|
);
|
|
539
|
-
},
|
|
540
|
-
|
|
533
|
+
}, ze = W(
|
|
534
|
+
Ke
|
|
541
535
|
);
|
|
542
|
-
function
|
|
536
|
+
function de(e) {
|
|
543
537
|
const d = e.responseText || e.response;
|
|
544
538
|
if (!d)
|
|
545
539
|
return d;
|
|
@@ -549,7 +543,7 @@ function me(e) {
|
|
|
549
543
|
return d;
|
|
550
544
|
}
|
|
551
545
|
}
|
|
552
|
-
const
|
|
546
|
+
const We = function(e) {
|
|
553
547
|
const {
|
|
554
548
|
onProgress: d = Y,
|
|
555
549
|
onError: u = Y,
|
|
@@ -562,10 +556,10 @@ const Xe = function(e) {
|
|
|
562
556
|
data: f = {},
|
|
563
557
|
withCredentials: h = !1
|
|
564
558
|
} = e;
|
|
565
|
-
function
|
|
559
|
+
function x(o) {
|
|
566
560
|
return typeof o == "function" ? o(m) : o;
|
|
567
561
|
}
|
|
568
|
-
const U =
|
|
562
|
+
const U = x(l), n = x(f), g = new XMLHttpRequest();
|
|
569
563
|
d && g.upload && (g.upload.onprogress = function(o) {
|
|
570
564
|
let b;
|
|
571
565
|
o.total > 0 && (b = o.loaded / o.total * 100), d(parseInt(b, 10), o);
|
|
@@ -573,8 +567,8 @@ const Xe = function(e) {
|
|
|
573
567
|
u(b);
|
|
574
568
|
}, g.onload = function() {
|
|
575
569
|
if (g.status < 200 || g.status >= 300)
|
|
576
|
-
return u(
|
|
577
|
-
s(
|
|
570
|
+
return u(de(g));
|
|
571
|
+
s(de(g));
|
|
578
572
|
};
|
|
579
573
|
const P = new FormData();
|
|
580
574
|
n && Object.keys(n).map((o) => P.append(o, n[o])), P.append(U || "file", m), g.open(a, t, !0), h && "withCredentials" in g && (g.withCredentials = !0);
|
|
@@ -586,33 +580,33 @@ const Xe = function(e) {
|
|
|
586
580
|
}
|
|
587
581
|
};
|
|
588
582
|
};
|
|
589
|
-
function
|
|
590
|
-
const u = te(null), [s, t] =
|
|
583
|
+
function Je(e, d) {
|
|
584
|
+
const u = te(null), [s, t] = B({ uploadRequests: {} });
|
|
591
585
|
function a(c) {
|
|
592
|
-
|
|
586
|
+
x(c);
|
|
593
587
|
}
|
|
594
588
|
function i(c) {
|
|
595
589
|
var R;
|
|
596
|
-
const
|
|
597
|
-
|
|
590
|
+
const $ = s.uploadRequests[c.uid];
|
|
591
|
+
$ && ((R = $.abort) == null || R.call($), f({
|
|
598
592
|
...c,
|
|
599
593
|
status: y.fail
|
|
600
594
|
}), m(c.uid));
|
|
601
595
|
}
|
|
602
596
|
function l(c) {
|
|
603
|
-
|
|
597
|
+
x({
|
|
604
598
|
...c,
|
|
605
599
|
percent: 0,
|
|
606
600
|
status: y.uploading
|
|
607
601
|
});
|
|
608
602
|
}
|
|
609
603
|
function m(c) {
|
|
610
|
-
const
|
|
611
|
-
delete
|
|
612
|
-
uploadRequests:
|
|
604
|
+
const $ = { ...s.uploadRequests };
|
|
605
|
+
delete $[c], t({
|
|
606
|
+
uploadRequests: $
|
|
613
607
|
});
|
|
614
608
|
}
|
|
615
|
-
|
|
609
|
+
me(d, () => ({
|
|
616
610
|
// 提供 ref 调用
|
|
617
611
|
upload: a,
|
|
618
612
|
abort: i,
|
|
@@ -620,39 +614,39 @@ function Qe(e, d) {
|
|
|
620
614
|
// 删除上传(手动上传时,文件会出现在上传列表,但属于init状态)
|
|
621
615
|
delete: m
|
|
622
616
|
}));
|
|
623
|
-
function f(c,
|
|
617
|
+
function f(c, $ = e.fileList) {
|
|
624
618
|
const { onFileStatusChange: R } = e, C = "uid" in c ? "uid" : "name";
|
|
625
619
|
R == null || R(
|
|
626
|
-
|
|
620
|
+
$.map((v) => v[C] === c[C] ? c : v),
|
|
627
621
|
c
|
|
628
622
|
);
|
|
629
623
|
}
|
|
630
624
|
function h(c) {
|
|
631
|
-
const
|
|
632
|
-
return e.fileList.find((C) => C[
|
|
625
|
+
const $ = "uid" in c ? "uid" : "name";
|
|
626
|
+
return e.fileList.find((C) => C[$] === c[$]);
|
|
633
627
|
}
|
|
634
|
-
async function
|
|
628
|
+
async function x(c) {
|
|
635
629
|
const {
|
|
636
|
-
action:
|
|
630
|
+
action: $,
|
|
637
631
|
headers: R,
|
|
638
632
|
name: C,
|
|
639
633
|
data: v,
|
|
640
634
|
withCredentials: N,
|
|
641
635
|
customRequest: w,
|
|
642
636
|
method: E
|
|
643
|
-
} = e,
|
|
644
|
-
onProgress: (
|
|
645
|
-
var
|
|
646
|
-
const
|
|
647
|
-
|
|
637
|
+
} = e, oe = {
|
|
638
|
+
onProgress: (G, D) => {
|
|
639
|
+
var le;
|
|
640
|
+
const _ = h(c);
|
|
641
|
+
_ && (_.status = y.uploading, _.percent = G, (le = e == null ? void 0 : e.onProgress) == null || le.call(e, _, D));
|
|
648
642
|
},
|
|
649
|
-
onSuccess: (
|
|
650
|
-
const
|
|
651
|
-
|
|
643
|
+
onSuccess: (G) => {
|
|
644
|
+
const D = h(c);
|
|
645
|
+
D && (D.status = y.success, D.response = G, f(D)), m(c.uid);
|
|
652
646
|
},
|
|
653
|
-
onError: (
|
|
654
|
-
const
|
|
655
|
-
|
|
647
|
+
onError: (G) => {
|
|
648
|
+
const D = h(c);
|
|
649
|
+
D && (D.status = y.fail, D.response = G, f(D)), m(c.uid);
|
|
656
650
|
},
|
|
657
651
|
headers: R,
|
|
658
652
|
name: C,
|
|
@@ -662,7 +656,7 @@ function Qe(e, d) {
|
|
|
662
656
|
};
|
|
663
657
|
f(c);
|
|
664
658
|
let Q;
|
|
665
|
-
|
|
659
|
+
$ ? Q = We({ ...oe, action: $, method: E }) : w && (Q = await w(oe)), t({
|
|
666
660
|
uploadRequests: {
|
|
667
661
|
...s.uploadRequests,
|
|
668
662
|
[c.uid]: Q
|
|
@@ -670,32 +664,32 @@ function Qe(e, d) {
|
|
|
670
664
|
});
|
|
671
665
|
}
|
|
672
666
|
function U(c) {
|
|
673
|
-
const { limit:
|
|
674
|
-
if (
|
|
667
|
+
const { limit: $, fileList: R, onExceedLimit: C, autoUpload: v } = e;
|
|
668
|
+
if (ue($) && $ < R.length + c.length)
|
|
675
669
|
return C == null ? void 0 : C(c, R);
|
|
676
670
|
const N = (w, E) => {
|
|
677
|
-
const
|
|
671
|
+
const T = e.fileList || [], H = {
|
|
678
672
|
uid: `${String(+/* @__PURE__ */ new Date())}${E}`,
|
|
679
673
|
originFile: w,
|
|
680
674
|
percent: 0,
|
|
681
675
|
status: y.init,
|
|
682
676
|
name: w.name
|
|
683
677
|
};
|
|
684
|
-
f(
|
|
685
|
-
|
|
686
|
-
...
|
|
678
|
+
f(H), T.push(H), f(H, T), v && setTimeout(() => {
|
|
679
|
+
x({
|
|
680
|
+
...H,
|
|
687
681
|
status: y.uploading
|
|
688
682
|
});
|
|
689
683
|
}, 0);
|
|
690
684
|
};
|
|
691
685
|
c.forEach((w, E) => {
|
|
692
|
-
|
|
693
|
-
if (
|
|
694
|
-
const
|
|
695
|
-
N(
|
|
686
|
+
ae(w, e.accept) && (F(e.beforeUpload) ? Promise.resolve(e.beforeUpload(w, c)).then((T) => {
|
|
687
|
+
if (T !== !1) {
|
|
688
|
+
const H = ke(T) ? T : w;
|
|
689
|
+
N(H, E);
|
|
696
690
|
}
|
|
697
|
-
}).catch((
|
|
698
|
-
console.error(
|
|
691
|
+
}).catch((T) => {
|
|
692
|
+
console.error(T);
|
|
699
693
|
}) : N(w, E));
|
|
700
694
|
});
|
|
701
695
|
}
|
|
@@ -705,16 +699,16 @@ function Qe(e, d) {
|
|
|
705
699
|
children: P,
|
|
706
700
|
prefixCls: o,
|
|
707
701
|
tip: b,
|
|
708
|
-
disabled:
|
|
709
|
-
drag:
|
|
710
|
-
listType:
|
|
711
|
-
hide:
|
|
712
|
-
directory:
|
|
713
|
-
onDrop:
|
|
714
|
-
onDragOver:
|
|
715
|
-
onDragLeave:
|
|
702
|
+
disabled: I,
|
|
703
|
+
drag: q,
|
|
704
|
+
listType: k,
|
|
705
|
+
hide: O,
|
|
706
|
+
directory: j,
|
|
707
|
+
onDrop: A,
|
|
708
|
+
onDragOver: S,
|
|
709
|
+
onDragLeave: p
|
|
716
710
|
} = e;
|
|
717
|
-
return /* @__PURE__ */ L(
|
|
711
|
+
return /* @__PURE__ */ L(M, { children: [
|
|
718
712
|
/* @__PURE__ */ r(
|
|
719
713
|
"input",
|
|
720
714
|
{
|
|
@@ -728,12 +722,12 @@ function Qe(e, d) {
|
|
|
728
722
|
zIndex: -999999
|
|
729
723
|
},
|
|
730
724
|
type: "file",
|
|
731
|
-
accept:
|
|
725
|
+
accept: V(n) ? n == null ? void 0 : n.type : n,
|
|
732
726
|
multiple: g,
|
|
733
|
-
...
|
|
727
|
+
...j ? { webkitdirectory: "true" } : {},
|
|
734
728
|
onChange: (c) => {
|
|
735
|
-
const
|
|
736
|
-
|
|
729
|
+
const $ = c.target.files;
|
|
730
|
+
$ && (U([].slice.call($)), u.current.value = "");
|
|
737
731
|
},
|
|
738
732
|
onClick: (c) => {
|
|
739
733
|
c.stopPropagation();
|
|
@@ -744,28 +738,28 @@ function Qe(e, d) {
|
|
|
744
738
|
/* @__PURE__ */ r(
|
|
745
739
|
ie,
|
|
746
740
|
{
|
|
747
|
-
in: !
|
|
741
|
+
in: !O,
|
|
748
742
|
timeout: 100,
|
|
749
743
|
unmountOnExit: !0,
|
|
750
744
|
classNames: "fadeIn",
|
|
751
745
|
children: /* @__PURE__ */ r(
|
|
752
|
-
|
|
746
|
+
ze,
|
|
753
747
|
{
|
|
754
|
-
directory:
|
|
748
|
+
directory: j,
|
|
755
749
|
tip: b,
|
|
756
750
|
multiple: g,
|
|
757
751
|
accept: n,
|
|
758
|
-
disabled:
|
|
759
|
-
drag:
|
|
760
|
-
listType:
|
|
752
|
+
disabled: I,
|
|
753
|
+
drag: q,
|
|
754
|
+
listType: k,
|
|
761
755
|
triggerPictureIcon: e.triggerPictureIcon,
|
|
762
|
-
onDrop:
|
|
763
|
-
onDragOver:
|
|
764
|
-
onDragLeave:
|
|
756
|
+
onDrop: A,
|
|
757
|
+
onDragOver: S,
|
|
758
|
+
onDragLeave: p,
|
|
765
759
|
onDragFiles: U,
|
|
766
760
|
onClick: () => {
|
|
767
|
-
var c,
|
|
768
|
-
!
|
|
761
|
+
var c, $;
|
|
762
|
+
!I && (($ = (c = u.current) == null ? void 0 : c.click) == null || $.call(c));
|
|
769
763
|
},
|
|
770
764
|
prefixCls: o,
|
|
771
765
|
children: F(P) ? P({ fileList: e.fileList }) : P
|
|
@@ -774,17 +768,17 @@ function Qe(e, d) {
|
|
|
774
768
|
},
|
|
775
769
|
"trigger-node"
|
|
776
770
|
),
|
|
777
|
-
b &&
|
|
771
|
+
b && k !== "picture-card" && !q ? /* @__PURE__ */ r("div", { className: `${o}-trigger-tip`, children: b }, "trigger-tip") : null
|
|
778
772
|
] });
|
|
779
773
|
}
|
|
780
|
-
const
|
|
774
|
+
const Xe = ee.forwardRef(Je), Z = function(e) {
|
|
781
775
|
const d = [].concat(e || []).filter(Boolean);
|
|
782
776
|
return d.reduce((u, s, t) => {
|
|
783
777
|
if (s.uid) {
|
|
784
778
|
const a = d.findIndex(
|
|
785
779
|
(l) => s.uid === l.uid && s !== l
|
|
786
780
|
);
|
|
787
|
-
|
|
781
|
+
se(a !== -1, "[Upload]: duplicate uid");
|
|
788
782
|
const i = {
|
|
789
783
|
status: y.success,
|
|
790
784
|
percent: 100,
|
|
@@ -792,7 +786,7 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
792
786
|
};
|
|
793
787
|
a === -1 ? u.push(i) : u.splice(a, 1, i);
|
|
794
788
|
} else {
|
|
795
|
-
|
|
789
|
+
se(!0, "[Upload]: uid is required");
|
|
796
790
|
const a = `${String(+/* @__PURE__ */ new Date())}${t}`;
|
|
797
791
|
u.push({
|
|
798
792
|
uid: a,
|
|
@@ -803,18 +797,18 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
803
797
|
}
|
|
804
798
|
return u;
|
|
805
799
|
}, []);
|
|
806
|
-
},
|
|
800
|
+
}, Qe = {
|
|
807
801
|
listType: "text",
|
|
808
802
|
autoUpload: !0,
|
|
809
803
|
showUploadList: !0,
|
|
810
804
|
beforeUpload: () => !0,
|
|
811
805
|
method: "post"
|
|
812
|
-
},
|
|
813
|
-
const { getPrefixCls: u, componentConfig: s, rtl: t } = z(J), a =
|
|
806
|
+
}, Ye = (e, d) => {
|
|
807
|
+
const { getPrefixCls: u, componentConfig: s, rtl: t } = z(J), a = $e(
|
|
814
808
|
e,
|
|
815
|
-
|
|
809
|
+
Qe,
|
|
816
810
|
s == null ? void 0 : s.Upload
|
|
817
|
-
), i = u("upload"), l = te(), m = te(), [f, h] =
|
|
811
|
+
), i = u("upload"), l = te(), m = te(), [f, h] = B(() => "fileList" in a ? Z(a.fileList) : "defaultFileList" in a ? Z(a.defaultFileList) : []), x = "fileList" in a ? Z(a.fileList) : f, U = (v, N) => {
|
|
818
812
|
var w;
|
|
819
813
|
"fileList" in a || h(v), (w = a.onChange) == null || w.call(a, v, N);
|
|
820
814
|
}, n = (v) => {
|
|
@@ -828,10 +822,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
828
822
|
if (v) {
|
|
829
823
|
const { onRemove: N } = a;
|
|
830
824
|
Promise.resolve(
|
|
831
|
-
F(N) ? N(v,
|
|
825
|
+
F(N) ? N(v, x) : N
|
|
832
826
|
).then((w) => {
|
|
833
827
|
w !== !1 && (l.current && l.current.abort(v), U(
|
|
834
|
-
|
|
828
|
+
x.filter((E) => E.uid !== v.uid),
|
|
835
829
|
v
|
|
836
830
|
));
|
|
837
831
|
}).catch((w) => {
|
|
@@ -841,10 +835,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
841
835
|
}, o = (v) => {
|
|
842
836
|
v && l.current && l.current.abort(v);
|
|
843
837
|
};
|
|
844
|
-
|
|
838
|
+
me(d, () => ({
|
|
845
839
|
submit: (v) => {
|
|
846
840
|
let N = [];
|
|
847
|
-
v ? N = [v] : N =
|
|
841
|
+
v ? N = [v] : N = x.filter((w) => w.status === y.init), N.forEach((w) => {
|
|
848
842
|
n(w);
|
|
849
843
|
});
|
|
850
844
|
},
|
|
@@ -860,18 +854,18 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
860
854
|
}));
|
|
861
855
|
const {
|
|
862
856
|
listType: b,
|
|
863
|
-
className:
|
|
864
|
-
style:
|
|
865
|
-
renderUploadItem:
|
|
866
|
-
showUploadList:
|
|
867
|
-
renderUploadList:
|
|
868
|
-
progressProps:
|
|
869
|
-
imagePreview:
|
|
870
|
-
...
|
|
871
|
-
} = a, c =
|
|
857
|
+
className: I,
|
|
858
|
+
style: q,
|
|
859
|
+
renderUploadItem: k,
|
|
860
|
+
showUploadList: O,
|
|
861
|
+
renderUploadList: j,
|
|
862
|
+
progressProps: A,
|
|
863
|
+
imagePreview: S,
|
|
864
|
+
...p
|
|
865
|
+
} = a, c = ue(a.limit) ? { hideOnExceedLimit: !0, maxCount: a.limit } : { hideOnExceedLimit: !0, ...a.limit }, $ = c.maxCount && c.maxCount <= x.length, R = "disabled" in a ? a.disabled : !c.hideOnExceedLimit && $, C = /* @__PURE__ */ r(
|
|
872
866
|
"div",
|
|
873
867
|
{
|
|
874
|
-
...
|
|
868
|
+
...ye(p, [
|
|
875
869
|
"disabled",
|
|
876
870
|
"directory",
|
|
877
871
|
"onReupload",
|
|
@@ -909,27 +903,27 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
909
903
|
[`${i}-type-${b}`]: b,
|
|
910
904
|
[`${i}-drag`]: a.drag,
|
|
911
905
|
[`${i}-disabled`]: R,
|
|
912
|
-
[`${i}-hide`]: c.hideOnExceedLimit &&
|
|
906
|
+
[`${i}-hide`]: c.hideOnExceedLimit && $,
|
|
913
907
|
[`${i}-rtl`]: t
|
|
914
908
|
},
|
|
915
|
-
|
|
909
|
+
I
|
|
916
910
|
),
|
|
917
|
-
style:
|
|
911
|
+
style: q,
|
|
918
912
|
ref: m,
|
|
919
913
|
children: /* @__PURE__ */ r(
|
|
920
|
-
|
|
914
|
+
Xe,
|
|
921
915
|
{
|
|
922
916
|
ref: l,
|
|
923
917
|
...a,
|
|
924
918
|
limit: c.maxCount,
|
|
925
|
-
hide: c.hideOnExceedLimit &&
|
|
919
|
+
hide: c.hideOnExceedLimit && $,
|
|
926
920
|
disabled: R,
|
|
927
921
|
prefixCls: i,
|
|
928
|
-
fileList:
|
|
922
|
+
fileList: x,
|
|
929
923
|
onProgress: (v, N) => {
|
|
930
924
|
var w;
|
|
931
925
|
v && ("fileList" in a || h(
|
|
932
|
-
|
|
926
|
+
x.map((E) => E.uid === v.uid ? v : E)
|
|
933
927
|
), (w = a.onProgress) == null || w.call(a, v, N));
|
|
934
928
|
},
|
|
935
929
|
onFileStatusChange: U
|
|
@@ -937,19 +931,19 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
937
931
|
)
|
|
938
932
|
}
|
|
939
933
|
);
|
|
940
|
-
return /* @__PURE__ */ L(
|
|
934
|
+
return /* @__PURE__ */ L(M, { children: [
|
|
941
935
|
b !== "picture-card" && C,
|
|
942
|
-
|
|
943
|
-
|
|
936
|
+
O && /* @__PURE__ */ r(
|
|
937
|
+
be,
|
|
944
938
|
{
|
|
945
|
-
imagePreview:
|
|
946
|
-
progressProps:
|
|
947
|
-
showUploadList:
|
|
939
|
+
imagePreview: S,
|
|
940
|
+
progressProps: A,
|
|
941
|
+
showUploadList: O,
|
|
948
942
|
disabled: a.disabled,
|
|
949
943
|
listType: b,
|
|
950
|
-
fileList:
|
|
951
|
-
renderUploadItem:
|
|
952
|
-
renderUploadList:
|
|
944
|
+
fileList: x,
|
|
945
|
+
renderUploadItem: k,
|
|
946
|
+
renderUploadList: j,
|
|
953
947
|
onUpload: n,
|
|
954
948
|
onAbort: o,
|
|
955
949
|
onRemove: P,
|
|
@@ -961,10 +955,10 @@ const Ye = ee.forwardRef(Qe), Z = function(e) {
|
|
|
961
955
|
b === "picture-card" && C,
|
|
962
956
|
a.tip && b === "picture-card" && /* @__PURE__ */ r("div", { className: `${i}-trigger-tip`, children: a.tip })
|
|
963
957
|
] });
|
|
964
|
-
},
|
|
965
|
-
|
|
958
|
+
}, Ze = W(
|
|
959
|
+
Ye
|
|
966
960
|
);
|
|
967
|
-
|
|
961
|
+
Ze.displayName = "Upload";
|
|
968
962
|
export {
|
|
969
|
-
|
|
963
|
+
Ze as U
|
|
970
964
|
};
|