aot-ui 0.1.0 → 0.2.0
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/README.md +26 -20
- package/dist-lib/aot-ui.css +1 -1
- package/dist-lib/aot-ui.js +30263 -19141
- package/dist-lib/index.d.ts +22 -3
- package/dist-lib/modules/affix/components/Affix.d.ts +3 -6
- package/dist-lib/modules/affix/index.d.ts +1 -1
- package/dist-lib/modules/affix/types.d.ts +21 -5
- package/dist-lib/modules/alert/components/Alert.d.ts +1 -1
- package/dist-lib/modules/alert/index.d.ts +1 -1
- package/dist-lib/modules/alert/types.d.ts +39 -2
- package/dist-lib/modules/anchor/components/Anchor.d.ts +3 -2
- package/dist-lib/modules/anchor/index.d.ts +1 -1
- package/dist-lib/modules/anchor/types.d.ts +26 -4
- package/dist-lib/modules/arc-progress/components/ArcProgress.d.ts +5 -0
- package/dist-lib/modules/arc-progress/constants.d.ts +6 -0
- package/dist-lib/modules/arc-progress/index.d.ts +3 -0
- package/dist-lib/modules/arc-progress/types.d.ts +22 -0
- package/dist-lib/modules/autocomplete/components/Autocomplete.d.ts +2 -2
- package/dist-lib/modules/autocomplete/index.d.ts +1 -1
- package/dist-lib/modules/autocomplete/types.d.ts +103 -13
- package/dist-lib/modules/avatar/components/Avatar.d.ts +1 -1
- package/dist-lib/modules/avatar/components/AvatarGroup.d.ts +2 -0
- package/dist-lib/modules/avatar/context.d.ts +3 -0
- package/dist-lib/modules/avatar/index.d.ts +2 -1
- package/dist-lib/modules/avatar/types.d.ts +74 -3
- package/dist-lib/modules/back-top/components/BackTop.d.ts +1 -1
- package/dist-lib/modules/back-top/types.d.ts +22 -3
- package/dist-lib/modules/badge/components/Badge.d.ts +1 -1
- package/dist-lib/modules/badge/index.d.ts +1 -1
- package/dist-lib/modules/badge/types.d.ts +49 -3
- package/dist-lib/modules/border/components/Border.d.ts +5 -0
- package/dist-lib/modules/border/constants.d.ts +4 -0
- package/dist-lib/modules/border/index.d.ts +3 -0
- package/dist-lib/modules/border/types.d.ts +34 -0
- package/dist-lib/modules/breadcrumb/components/Breadcrumb.d.ts +1 -1
- package/dist-lib/modules/breadcrumb/index.d.ts +1 -1
- package/dist-lib/modules/breadcrumb/types.d.ts +30 -2
- package/dist-lib/modules/button/components/Button.d.ts +1 -1
- package/dist-lib/modules/button/components/ButtonGroup.d.ts +5 -0
- package/dist-lib/modules/button/context.d.ts +3 -0
- package/dist-lib/modules/button/index.d.ts +2 -1
- package/dist-lib/modules/button/types.d.ts +68 -6
- package/dist-lib/modules/button-fill/components/ButtonFill.d.ts +6 -0
- package/dist-lib/modules/button-fill/constants.d.ts +2 -0
- package/dist-lib/modules/button-fill/index.d.ts +3 -0
- package/dist-lib/modules/button-fill/types.d.ts +28 -0
- package/dist-lib/modules/card/components/Card.d.ts +1 -1
- package/dist-lib/modules/card/index.d.ts +1 -1
- package/dist-lib/modules/card/types.d.ts +33 -6
- package/dist-lib/modules/carousel/components/Carousel.d.ts +2 -2
- package/dist-lib/modules/carousel/components/CarouselItem.d.ts +6 -0
- package/dist-lib/modules/carousel/index.d.ts +4 -1
- package/dist-lib/modules/carousel/types.d.ts +100 -4
- package/dist-lib/modules/cascader/components/Cascader.d.ts +2 -2
- package/dist-lib/modules/cascader/components/CascaderPanel.d.ts +6 -0
- package/dist-lib/modules/cascader/index.d.ts +2 -1
- package/dist-lib/modules/cascader/pathUtils.d.ts +14 -2
- package/dist-lib/modules/cascader/types.d.ts +186 -17
- package/dist-lib/modules/collapse/components/Collapse.d.ts +2 -2
- package/dist-lib/modules/collapse/components/CollapseItem.d.ts +6 -0
- package/dist-lib/modules/collapse/index.d.ts +4 -1
- package/dist-lib/modules/collapse/types.d.ts +57 -7
- package/dist-lib/modules/color/components/Color.d.ts +5 -0
- package/dist-lib/modules/color/index.d.ts +3 -0
- package/dist-lib/modules/color/palette.d.ts +48 -0
- package/dist-lib/modules/color/types.d.ts +49 -0
- package/dist-lib/modules/color-picker/colorUtils.d.ts +35 -0
- package/dist-lib/modules/color-picker/components/ColorPicker.d.ts +2 -2
- package/dist-lib/modules/color-picker/components/ColorPickerPanel.d.ts +2 -0
- package/dist-lib/modules/color-picker/index.d.ts +2 -1
- package/dist-lib/modules/color-picker/types.d.ts +82 -3
- package/dist-lib/modules/config-provider/components/ConfigProvider.d.ts +11 -2
- package/dist-lib/modules/config-provider/index.d.ts +3 -2
- package/dist-lib/modules/config-provider/locale/enUS.d.ts +2 -0
- package/dist-lib/modules/config-provider/types.d.ts +93 -5
- package/dist-lib/modules/date-picker/components/DatePicker.d.ts +2 -2
- package/dist-lib/modules/date-picker/components/DatePickerPanel.d.ts +2 -0
- package/dist-lib/modules/date-picker/index.d.ts +2 -1
- package/dist-lib/modules/date-picker/types.d.ts +89 -14
- package/dist-lib/modules/date-picker/utils.d.ts +17 -0
- package/dist-lib/modules/datetime-picker/components/DateTimePicker.d.ts +2 -2
- package/dist-lib/modules/datetime-picker/index.d.ts +1 -1
- package/dist-lib/modules/datetime-picker/types.d.ts +81 -7
- package/dist-lib/modules/datetime-picker/utils.d.ts +5 -1
- package/dist-lib/modules/descriptions/components/Descriptions.d.ts +4 -1
- package/dist-lib/modules/descriptions/components/DescriptionsItem.d.ts +6 -0
- package/dist-lib/modules/descriptions/index.d.ts +4 -1
- package/dist-lib/modules/descriptions/types.d.ts +61 -8
- package/dist-lib/modules/divider/components/Divider.d.ts +1 -1
- package/dist-lib/modules/divider/index.d.ts +1 -1
- package/dist-lib/modules/divider/types.d.ts +7 -1
- package/dist-lib/modules/download/components/Download.d.ts +2 -0
- package/dist-lib/modules/download/constants.d.ts +20 -0
- package/dist-lib/modules/download/index.d.ts +3 -0
- package/dist-lib/modules/download/resumeStorage.d.ts +12 -0
- package/dist-lib/modules/download/types.d.ts +67 -0
- package/dist-lib/modules/drawer/components/Drawer.d.ts +1 -3
- package/dist-lib/modules/drawer/index.d.ts +1 -1
- package/dist-lib/modules/drawer/types.d.ts +55 -4
- package/dist-lib/modules/dropdown/components/Dropdown.d.ts +3 -2
- package/dist-lib/modules/dropdown/index.d.ts +1 -1
- package/dist-lib/modules/dropdown/types.d.ts +49 -3
- package/dist-lib/modules/fluid-progress/components/FluidProgress.d.ts +5 -0
- package/dist-lib/modules/fluid-progress/constants.d.ts +3 -0
- package/dist-lib/modules/fluid-progress/index.d.ts +3 -0
- package/dist-lib/modules/fluid-progress/types.d.ts +25 -0
- package/dist-lib/modules/form/components/Form.d.ts +2 -2
- package/dist-lib/modules/form/index.d.ts +2 -2
- package/dist-lib/modules/form/types.d.ts +111 -6
- package/dist-lib/modules/form/useForm.d.ts +18 -2
- package/dist-lib/modules/fox-progress/components/FoxProgress.d.ts +5 -0
- package/dist-lib/modules/fox-progress/constants.d.ts +1 -0
- package/dist-lib/modules/fox-progress/index.d.ts +3 -0
- package/dist-lib/modules/fox-progress/types.d.ts +19 -0
- package/dist-lib/modules/image/components/Image.d.ts +2 -2
- package/dist-lib/modules/image/components/ImageLightbox.d.ts +4 -10
- package/dist-lib/modules/image/components/ImagePreviewGroup.d.ts +1 -1
- package/dist-lib/modules/image/index.d.ts +2 -2
- package/dist-lib/modules/image/types.d.ts +145 -22
- package/dist-lib/modules/input/components/Input.d.ts +2 -2
- package/dist-lib/modules/input/index.d.ts +1 -1
- package/dist-lib/modules/input/types.d.ts +70 -5
- package/dist-lib/modules/input-number/components/InputNumber.d.ts +2 -2
- package/dist-lib/modules/input-number/index.d.ts +1 -1
- package/dist-lib/modules/input-number/types.d.ts +74 -5
- package/dist-lib/modules/input-otp/components/InputOtp.d.ts +2 -0
- package/dist-lib/modules/input-otp/index.d.ts +2 -0
- package/dist-lib/modules/input-otp/types.d.ts +67 -0
- package/dist-lib/modules/input-tag/components/InputTag.d.ts +2 -0
- package/dist-lib/modules/input-tag/index.d.ts +2 -0
- package/dist-lib/modules/input-tag/types.d.ts +114 -0
- package/dist-lib/modules/layout/components/Layout.d.ts +20 -5
- package/dist-lib/modules/layout/components/Row.d.ts +867 -2
- package/dist-lib/modules/layout/index.d.ts +1 -1
- package/dist-lib/modules/layout/types.d.ts +86 -5
- package/dist-lib/modules/link/components/Link.d.ts +1 -1
- package/dist-lib/modules/link/index.d.ts +1 -1
- package/dist-lib/modules/link/types.d.ts +44 -2
- package/dist-lib/modules/liquid-progress/components/LiquidProgress.d.ts +5 -0
- package/dist-lib/modules/liquid-progress/constants.d.ts +2 -0
- package/dist-lib/modules/liquid-progress/index.d.ts +3 -0
- package/dist-lib/modules/liquid-progress/types.d.ts +22 -0
- package/dist-lib/modules/mention/components/Mention.d.ts +2 -2
- package/dist-lib/modules/mention/index.d.ts +1 -1
- package/dist-lib/modules/mention/types.d.ts +105 -5
- package/dist-lib/modules/menu/components/Menu.d.ts +1 -1
- package/dist-lib/modules/menu/types.d.ts +31 -0
- package/dist-lib/modules/message-box/components/MessageBoxView.d.ts +1 -1
- package/dist-lib/modules/message-box/index.d.ts +1 -1
- package/dist-lib/modules/message-box/types.d.ts +40 -2
- package/dist-lib/modules/modal/components/Modal.d.ts +2 -2
- package/dist-lib/modules/modal/index.d.ts +1 -1
- package/dist-lib/modules/modal/types.d.ts +61 -1
- package/dist-lib/modules/notification/components/NotificationProvider.d.ts +1 -1
- package/dist-lib/modules/notification/index.d.ts +1 -1
- package/dist-lib/modules/notification/types.d.ts +31 -1
- package/dist-lib/modules/pagination/components/Pagination.d.ts +4 -1
- package/dist-lib/modules/pagination/index.d.ts +1 -1
- package/dist-lib/modules/pagination/math.d.ts +2 -3
- package/dist-lib/modules/pagination/types.d.ts +76 -16
- package/dist-lib/modules/panel-morph/constants.d.ts +2 -1
- package/dist-lib/modules/photo-upload/components/PhotoUpload.d.ts +1 -1
- package/dist-lib/modules/photo-upload/constants.d.ts +4 -0
- package/dist-lib/modules/photo-upload/index.d.ts +1 -0
- package/dist-lib/modules/photo-upload/types.d.ts +14 -0
- package/dist-lib/modules/popconfirm/components/Popconfirm.d.ts +1 -1
- package/dist-lib/modules/popconfirm/types.d.ts +9 -2
- package/dist-lib/modules/popover/components/Popover.d.ts +1 -1
- package/dist-lib/modules/popover/types.d.ts +12 -2
- package/dist-lib/modules/progress/components/Progress.d.ts +4 -1
- package/dist-lib/modules/progress/index.d.ts +1 -1
- package/dist-lib/modules/progress/types.d.ts +82 -9
- package/dist-lib/modules/radio/components/Radio.d.ts +2 -0
- package/dist-lib/modules/radio/components/RadioButton.d.ts +5 -0
- package/dist-lib/modules/radio/components/RadioGroup.d.ts +1 -1
- package/dist-lib/modules/radio/context.d.ts +3 -0
- package/dist-lib/modules/radio/index.d.ts +3 -1
- package/dist-lib/modules/radio/types.d.ts +100 -5
- package/dist-lib/modules/range-picker/components/RangePicker.d.ts +1 -1
- package/dist-lib/modules/range-picker/index.d.ts +1 -1
- package/dist-lib/modules/range-picker/types.d.ts +29 -2
- package/dist-lib/modules/rate/components/Rate.d.ts +2 -2
- package/dist-lib/modules/rate/index.d.ts +1 -1
- package/dist-lib/modules/rate/types.d.ts +100 -1
- package/dist-lib/modules/result/components/Result.d.ts +4 -1
- package/dist-lib/modules/result/index.d.ts +1 -1
- package/dist-lib/modules/result/types.d.ts +15 -2
- package/dist-lib/modules/scrollbar/components/Scrollbar.d.ts +2 -2
- package/dist-lib/modules/scrollbar/index.d.ts +1 -1
- package/dist-lib/modules/scrollbar/types.d.ts +86 -1
- package/dist-lib/modules/search/components/Search.d.ts +2 -0
- package/dist-lib/modules/search/index.d.ts +2 -0
- package/dist-lib/modules/search/types.d.ts +20 -0
- package/dist-lib/modules/segmented/components/Segmented.d.ts +2 -1
- package/dist-lib/modules/segmented/index.d.ts +1 -1
- package/dist-lib/modules/segmented/types.d.ts +31 -8
- package/dist-lib/modules/select/components/Select.d.ts +2 -2
- package/dist-lib/modules/select/index.d.ts +1 -1
- package/dist-lib/modules/select/types.d.ts +112 -16
- package/dist-lib/modules/skeleton/components/Skeleton.d.ts +4 -1
- package/dist-lib/modules/skeleton/components/SkeletonItem.d.ts +5 -0
- package/dist-lib/modules/skeleton/index.d.ts +2 -1
- package/dist-lib/modules/skeleton/types.d.ts +55 -3
- package/dist-lib/modules/slider/components/Slider.d.ts +2 -0
- package/dist-lib/modules/slider/index.d.ts +3 -2
- package/dist-lib/modules/slider/types.d.ts +102 -0
- package/dist-lib/modules/space/components/Space.d.ts +1 -1
- package/dist-lib/modules/space/index.d.ts +1 -1
- package/dist-lib/modules/space/types.d.ts +47 -4
- package/dist-lib/modules/spin/components/Spin.d.ts +1 -1
- package/dist-lib/modules/spin/components/loadingService.d.ts +44 -0
- package/dist-lib/modules/spin/index.d.ts +2 -0
- package/dist-lib/modules/spin/types.d.ts +26 -1
- package/dist-lib/modules/splash-intro/components/AppSplash.d.ts +25 -0
- package/dist-lib/modules/splash-intro/components/SplashIntro.d.ts +38 -0
- package/dist-lib/modules/splash-intro/components/SplashLogo.d.ts +2 -0
- package/dist-lib/modules/splash-intro/components/SplashStagger.d.ts +14 -0
- package/dist-lib/modules/splash-intro/constants.d.ts +8 -0
- package/dist-lib/modules/splash-intro/context.d.ts +13 -0
- package/dist-lib/modules/splash-intro/index.d.ts +10 -0
- package/dist-lib/modules/splash-intro/types.d.ts +4 -0
- package/dist-lib/modules/splitter/components/Splitter.d.ts +7 -1
- package/dist-lib/modules/splitter/index.d.ts +1 -1
- package/dist-lib/modules/splitter/types.d.ts +75 -9
- package/dist-lib/modules/statistic/components/Countdown.d.ts +3 -0
- package/dist-lib/modules/statistic/components/Statistic.d.ts +3 -2
- package/dist-lib/modules/statistic/index.d.ts +2 -1
- package/dist-lib/modules/statistic/types.d.ts +28 -3
- package/dist-lib/modules/steps/components/Steps.d.ts +1 -1
- package/dist-lib/modules/steps/types.d.ts +17 -0
- package/dist-lib/modules/storybook-welcome/components/StorybookWelcome.d.ts +1 -1
- package/dist-lib/modules/storybook-welcome/types.d.ts +22 -2
- package/dist-lib/modules/switch/components/Switch.d.ts +2 -2
- package/dist-lib/modules/switch/index.d.ts +1 -1
- package/dist-lib/modules/switch/types.d.ts +100 -3
- package/dist-lib/modules/table/components/Table.d.ts +6 -2
- package/dist-lib/modules/table/index.d.ts +1 -1
- package/dist-lib/modules/table/types.d.ts +129 -22
- package/dist-lib/modules/table-v2/components/AutoResizer.d.ts +3 -0
- package/dist-lib/modules/table-v2/components/TableV2.d.ts +6 -0
- package/dist-lib/modules/table-v2/index.d.ts +3 -0
- package/dist-lib/modules/table-v2/types.d.ts +161 -0
- package/dist-lib/modules/tabs/components/Tabs.d.ts +1 -1
- package/dist-lib/modules/tabs/types.d.ts +18 -2
- package/dist-lib/modules/tag/components/CheckTag.d.ts +3 -0
- package/dist-lib/modules/tag/components/Tag.d.ts +2 -1
- package/dist-lib/modules/tag/index.d.ts +2 -1
- package/dist-lib/modules/tag/types.d.ts +32 -3
- package/dist-lib/modules/text/components/Text.d.ts +2 -0
- package/dist-lib/modules/text/index.d.ts +2 -0
- package/dist-lib/modules/text/types.d.ts +37 -0
- package/dist-lib/modules/thread-expand/components/ThreadExpand.d.ts +1 -1
- package/dist-lib/modules/thread-expand/constants.d.ts +28 -0
- package/dist-lib/modules/thread-expand/index.d.ts +1 -1
- package/dist-lib/modules/thread-expand/types.d.ts +14 -0
- package/dist-lib/modules/timeline/components/Timeline.d.ts +2 -1
- package/dist-lib/modules/timeline/index.d.ts +1 -1
- package/dist-lib/modules/timeline/types.d.ts +35 -1
- package/dist-lib/modules/toast/components/ToastProvider.d.ts +1 -1
- package/dist-lib/modules/toast/index.d.ts +1 -1
- package/dist-lib/modules/toast/types.d.ts +39 -1
- package/dist-lib/modules/tooltip/components/Tooltip.d.ts +1 -1
- package/dist-lib/modules/tooltip/index.d.ts +1 -1
- package/dist-lib/modules/tooltip/types.d.ts +15 -3
- package/dist-lib/modules/tour/components/Tour.d.ts +2 -1
- package/dist-lib/modules/tour/index.d.ts +1 -1
- package/dist-lib/modules/tour/types.d.ts +60 -6
- package/dist-lib/modules/transfer/components/Transfer.d.ts +2 -2
- package/dist-lib/modules/transfer/components/TransferVirtualBody.d.ts +10 -0
- package/dist-lib/modules/transfer/index.d.ts +1 -1
- package/dist-lib/modules/transfer/types.d.ts +111 -18
- package/dist-lib/modules/transition/components/CollapseTransition.d.ts +5 -0
- package/dist-lib/modules/transition/components/Transition.d.ts +6 -0
- package/dist-lib/modules/transition/constants.d.ts +9 -0
- package/dist-lib/modules/transition/index.d.ts +5 -0
- package/dist-lib/modules/transition/types.d.ts +59 -0
- package/dist-lib/modules/tree/checkUtils.d.ts +3 -0
- package/dist-lib/modules/tree/components/Tree.d.ts +3 -2
- package/dist-lib/modules/tree/dragUtils.d.ts +5 -2
- package/dist-lib/modules/tree/index.d.ts +1 -1
- package/dist-lib/modules/tree/types.d.ts +93 -51
- package/dist-lib/modules/tree-select/components/TreeSelect.d.ts +2 -2
- package/dist-lib/modules/tree-select/index.d.ts +1 -1
- package/dist-lib/modules/tree-select/types.d.ts +85 -13
- package/dist-lib/modules/tree-select/utils.d.ts +14 -3
- package/dist-lib/modules/tree-v2/components/TreeV2.d.ts +3 -0
- package/dist-lib/modules/tree-v2/index.d.ts +2 -0
- package/dist-lib/modules/tree-v2/types.d.ts +97 -0
- package/dist-lib/modules/tree-v2/utils.d.ts +24 -0
- package/dist-lib/modules/typography/components/Typography.d.ts +9 -4
- package/dist-lib/modules/typography/constants.d.ts +27 -0
- package/dist-lib/modules/typography/index.d.ts +2 -1
- package/dist-lib/modules/typography/types.d.ts +14 -0
- package/dist-lib/modules/upload/ajaxUpload.d.ts +2 -0
- package/dist-lib/modules/upload/chunkUpload.d.ts +6 -0
- package/dist-lib/modules/upload/components/Upload.d.ts +2 -2
- package/dist-lib/modules/upload/index.d.ts +2 -1
- package/dist-lib/modules/upload/resumeStorage.d.ts +16 -0
- package/dist-lib/modules/upload/types.d.ts +160 -24
- package/package.json +80 -73
|
@@ -2,7 +2,5 @@ import { DrawerProps } from '../types';
|
|
|
2
2
|
/**
|
|
3
3
|
* Side drawer: page stays visible under a light mask.
|
|
4
4
|
* Enter/leave both slide via CSS transition.
|
|
5
|
-
* Enter only flips `data-show` after the off-screen pose has been painted
|
|
6
|
-
* (avoids the mount-and-already-visible skip that kills enter transitions).
|
|
7
5
|
*/
|
|
8
|
-
export declare function Drawer({ open, onClose, title, children, footer, side, closeOnMask, keyboard, size, borderRadius, destroyOnClose, className, "aria-label": ariaLabel, }: DrawerProps): import('react').ReactPortal | null;
|
|
6
|
+
export declare function Drawer({ open, onClose, title, header, children, footer, side, beforeClose, closeOnMask, modal, modalPenetrable, openDelay, closeDelay, resizable, onResizeStart, onResize, onResizeEnd, withHeader, showClose, keyboard, size, borderRadius, destroyOnClose, className, "aria-label": ariaLabel, }: DrawerProps): import('react').ReactPortal | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Drawer } from './components/Drawer';
|
|
2
2
|
export { resolveDrawerRadii } from './types';
|
|
3
|
-
export type { DrawerBorderRadius, DrawerCornerRadii, DrawerProps, DrawerSide, } from './types';
|
|
3
|
+
export type { DrawerBeforeClose, DrawerBorderRadius, DrawerCornerRadii, DrawerProps, DrawerSide, } from './types';
|
|
4
4
|
export { DRAWER_MOTION_MS } from './constants';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type DrawerSide = "left" | "right";
|
|
2
|
+
export type DrawerSide = "left" | "right" | "top" | "bottom";
|
|
3
3
|
/** Per-corner radius; omitted corners fall back to the shared default. */
|
|
4
4
|
export type DrawerCornerRadii = {
|
|
5
5
|
topLeft?: number | string;
|
|
@@ -8,23 +8,74 @@ export type DrawerCornerRadii = {
|
|
|
8
8
|
bottomLeft?: number | string;
|
|
9
9
|
};
|
|
10
10
|
export type DrawerBorderRadius = number | string | DrawerCornerRadii;
|
|
11
|
+
export type DrawerBeforeClose = (done: () => void) => void;
|
|
11
12
|
export type DrawerProps = {
|
|
12
13
|
open: boolean;
|
|
13
14
|
onClose: () => void;
|
|
14
|
-
title?:
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
/** 自定义头部(覆盖 title 文案,不移除关闭按钮) */
|
|
17
|
+
header?: ReactNode;
|
|
15
18
|
children?: ReactNode;
|
|
16
19
|
footer?: ReactNode;
|
|
17
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* 滑入方向(对齐 Element direction:ltr/rtl/ttb/btt → left/right/top/bottom)
|
|
22
|
+
* @default right
|
|
23
|
+
*/
|
|
18
24
|
side?: DrawerSide;
|
|
25
|
+
/**
|
|
26
|
+
* 关闭前回调;调用 done() 后才会真正关闭(对齐 Element before-close)
|
|
27
|
+
*/
|
|
28
|
+
beforeClose?: DrawerBeforeClose;
|
|
19
29
|
/** Click dimmed mask to close. Default: true. */
|
|
20
30
|
closeOnMask?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* 是否需要遮罩层
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
modal?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* 遮罩可穿透(点击/滚动穿透到下层)。modal 须为 false。
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
|
+
modalPenetrable?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 打开延时(ms)
|
|
43
|
+
* @default 0
|
|
44
|
+
*/
|
|
45
|
+
openDelay?: number;
|
|
46
|
+
/**
|
|
47
|
+
* 关闭延时(ms)
|
|
48
|
+
* @default 0
|
|
49
|
+
*/
|
|
50
|
+
closeDelay?: number;
|
|
51
|
+
/**
|
|
52
|
+
* 拖拽边缘调整大小
|
|
53
|
+
* @default false
|
|
54
|
+
*/
|
|
55
|
+
resizable?: boolean;
|
|
56
|
+
/** 开始调整大小 */
|
|
57
|
+
onResizeStart?: (size: number) => void;
|
|
58
|
+
/** 调整大小中 */
|
|
59
|
+
onResize?: (size: number) => void;
|
|
60
|
+
/** 结束调整大小 */
|
|
61
|
+
onResizeEnd?: (size: number) => void;
|
|
62
|
+
/**
|
|
63
|
+
* 是否显示 header
|
|
64
|
+
* @default true
|
|
65
|
+
*/
|
|
66
|
+
withHeader?: boolean;
|
|
67
|
+
/**
|
|
68
|
+
* 是否显示关闭按钮
|
|
69
|
+
* @default true
|
|
70
|
+
*/
|
|
71
|
+
showClose?: boolean;
|
|
21
72
|
/**
|
|
22
73
|
* 是否支持 Esc 关闭
|
|
23
74
|
* @default true
|
|
24
75
|
*/
|
|
25
76
|
keyboard?: boolean;
|
|
26
77
|
/**
|
|
27
|
-
*
|
|
78
|
+
* 面板大小;左右为宽度,上下为高度;number 为 px
|
|
28
79
|
* @default 360
|
|
29
80
|
*/
|
|
30
81
|
size?: number | string;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { DropdownProps } from '../types';
|
|
2
|
-
export declare
|
|
1
|
+
import { DropdownExposes, DropdownProps } from '../types';
|
|
2
|
+
export declare const Dropdown: import('react').ForwardRefExoticComponent<DropdownProps & import('react').RefAttributes<DropdownExposes>>;
|
|
3
|
+
export default Dropdown;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Dropdown } from './components/Dropdown';
|
|
2
|
-
export type { DropdownItem, DropdownProps } from './types';
|
|
2
|
+
export type { DropdownExposes, DropdownItem, DropdownProps, DropdownTrigger, } from './types';
|
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
|
+
import { ButtonSize, ButtonTone } from '../button/types';
|
|
2
3
|
import { PopoverPlacement } from '../popover/types';
|
|
3
4
|
export type DropdownItem = {
|
|
4
5
|
key: string;
|
|
5
6
|
label: ReactNode;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
danger?: boolean;
|
|
9
|
+
/** 分隔线(忽略 label) */
|
|
8
10
|
divider?: boolean;
|
|
11
|
+
icon?: ReactNode;
|
|
9
12
|
};
|
|
10
|
-
export type DropdownTrigger = "click" | "hover";
|
|
13
|
+
export type DropdownTrigger = "click" | "hover" | "contextmenu";
|
|
11
14
|
export type DropdownProps = {
|
|
12
15
|
items: DropdownItem[];
|
|
13
|
-
|
|
16
|
+
/** split-button 时可不传;否则为触发元素 */
|
|
17
|
+
children?: ReactNode;
|
|
14
18
|
disabled?: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* 触发方式
|
|
@@ -22,6 +26,48 @@ export type DropdownProps = {
|
|
|
22
26
|
* @default bottom-start
|
|
23
27
|
*/
|
|
24
28
|
placement?: PopoverPlacement;
|
|
29
|
+
/**
|
|
30
|
+
* 点击菜单项后是否隐藏
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
hideOnClick?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* 下拉触发元素呈现为按钮组(左功能 + 右箭头)
|
|
36
|
+
* @default false
|
|
37
|
+
*/
|
|
38
|
+
splitButton?: boolean;
|
|
39
|
+
/** split-button 左侧按钮文案;默认取 children */
|
|
40
|
+
splitButtonText?: ReactNode;
|
|
41
|
+
/** split-button 时左侧按钮 tone(同 Button) */
|
|
42
|
+
type?: ButtonTone;
|
|
43
|
+
/** split-button 时按钮尺寸 */
|
|
44
|
+
size?: ButtonSize;
|
|
45
|
+
/** 菜单最大高度 */
|
|
46
|
+
maxHeight?: number | string;
|
|
47
|
+
/**
|
|
48
|
+
* 是否 portal 到 appendTo
|
|
49
|
+
* @default true
|
|
50
|
+
*/
|
|
51
|
+
teleported?: boolean;
|
|
52
|
+
/** portal 挂载点 */
|
|
53
|
+
appendTo?: string | HTMLElement;
|
|
54
|
+
/**
|
|
55
|
+
* 虚拟触发:不渲染默认触发器,依赖 virtualRef
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
virtualTriggering?: boolean;
|
|
59
|
+
/** 虚拟触发参考元素 */
|
|
60
|
+
virtualRef?: RefObject<HTMLElement | null> | HTMLElement | null;
|
|
25
61
|
className?: string;
|
|
62
|
+
popperClass?: string;
|
|
63
|
+
popperStyle?: CSSProperties;
|
|
26
64
|
onSelect?: (key: string) => void;
|
|
65
|
+
/** split-button 时点击左侧按钮 */
|
|
66
|
+
onClick?: () => void;
|
|
67
|
+
/** 菜单出现 / 消失 */
|
|
68
|
+
onVisibleChange?: (visible: boolean) => void;
|
|
69
|
+
};
|
|
70
|
+
export type DropdownExposes = {
|
|
71
|
+
handleOpen: () => void;
|
|
72
|
+
handleClose: () => void;
|
|
27
73
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FluidProgressProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Fluid progress: translucent gel flowing through a glass tube.
|
|
4
|
+
*/
|
|
5
|
+
export declare function FluidProgress({ className, percent: percentProp, defaultPercent, height, color, status, showInfo, label, autoPlay, durationMs, onChange, onComplete, }: FluidProgressProps): import('react').JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export type FluidProgressStatus = "normal" | "paused" | "exception";
|
|
2
|
+
export type FluidProgressProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
/** 0–100 */
|
|
5
|
+
percent?: number;
|
|
6
|
+
/** 非受控初始值 */
|
|
7
|
+
defaultPercent?: number;
|
|
8
|
+
/** 轨道高度(px) */
|
|
9
|
+
height?: number;
|
|
10
|
+
/** 流体主色 */
|
|
11
|
+
color?: string;
|
|
12
|
+
/**
|
|
13
|
+
* 状态:paused 冻结流动;exception 失败红流体
|
|
14
|
+
* @default normal
|
|
15
|
+
*/
|
|
16
|
+
status?: FluidProgressStatus;
|
|
17
|
+
/** 是否显示百分比 */
|
|
18
|
+
showInfo?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
/** 自动演示 */
|
|
21
|
+
autoPlay?: boolean;
|
|
22
|
+
durationMs?: number;
|
|
23
|
+
onChange?: (percent: number) => void;
|
|
24
|
+
onComplete?: () => void;
|
|
25
|
+
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FormItemProps, FormProps } from '../types';
|
|
2
|
-
export declare function Form({ form, initialValues, onFinish, onFinishFailed, onValuesChange, children, className, layout, validateOnBlur, validateOnChange, }: FormProps): import('react').JSX.Element;
|
|
3
|
-
export declare function FormItem({ name, label, rules, help, children, className, }: FormItemProps): import('react').JSX.Element;
|
|
2
|
+
export declare function Form({ form, model, initialValues, rules: formRules, onFinish, onFinishFailed, onValuesChange, onValidate, children, className, layout, labelPosition: labelPositionProp, labelWidth, labelSuffix, inline, hideRequiredAsterisk, requireAsteriskPosition, showMessage, inlineMessage, statusIcon, validateOnRuleChange, size, disabled, scrollToError, scrollIntoViewOptions, validateOnBlur, validateOnChange, }: FormProps): import('react').JSX.Element;
|
|
3
|
+
export declare function FormItem({ name, label, labelPosition: itemLabelPosition, labelWidth: itemLabelWidth, rules, required: requiredProp, error: errorProp, showMessage: showMessageProp, inlineMessage: inlineMessageProp, size: itemSize, validateStatus: validateStatusProp, htmlFor, help, labelSlot, errorSlot, children, className, }: FormItemProps): import('react').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Form, FormItem } from './components/Form';
|
|
2
2
|
export { useForm } from './useForm';
|
|
3
|
-
export type { FormInstance } from './useForm';
|
|
4
|
-
export type { FormContextValue, FormItemProps, FormProps, FormRule, } from './types';
|
|
3
|
+
export type { FormInstance, FormValidateCallback } from './useForm';
|
|
4
|
+
export type { FormContextValue, FormFieldContext, FormItemProps, FormLabelPosition, FormProps, FormRule, FormRuleTrigger, FormSize, FormValidateStatus, } from './types';
|
|
@@ -1,37 +1,130 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FormInstance } from './useForm';
|
|
3
|
+
export type FormSize = "large" | "default" | "small";
|
|
4
|
+
export type FormLabelPosition = "left" | "right" | "top";
|
|
5
|
+
export type FormValidateStatus = "" | "success" | "warning" | "error" | "validating";
|
|
6
|
+
export type FormRuleTrigger = "blur" | "change";
|
|
3
7
|
export type FormRule = {
|
|
4
8
|
required?: boolean;
|
|
5
9
|
message?: string;
|
|
6
10
|
min?: number;
|
|
7
11
|
max?: number;
|
|
12
|
+
type?: "string" | "number" | "array" | "boolean";
|
|
8
13
|
pattern?: RegExp;
|
|
9
|
-
|
|
14
|
+
trigger?: FormRuleTrigger | FormRuleTrigger[];
|
|
15
|
+
validator?: (value: unknown, values: Record<string, unknown>) => string | null | Promise<string | null>;
|
|
10
16
|
};
|
|
11
17
|
export type FormItemProps = {
|
|
12
18
|
name: string;
|
|
13
|
-
label?:
|
|
19
|
+
label?: ReactNode;
|
|
20
|
+
/** 覆盖 Form 的 labelPosition */
|
|
21
|
+
labelPosition?: FormLabelPosition | "";
|
|
22
|
+
labelWidth?: string | number;
|
|
14
23
|
rules?: FormRule[];
|
|
24
|
+
/** 手动指定必填星号;不设则根据 rules */
|
|
25
|
+
required?: boolean;
|
|
26
|
+
/** 手动错误文案(强制 error 状态) */
|
|
27
|
+
error?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
showMessage?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
35
|
+
inlineMessage?: boolean;
|
|
36
|
+
size?: FormSize;
|
|
37
|
+
validateStatus?: FormValidateStatus;
|
|
38
|
+
/** 等价原生 label[for];默认关联子控件 id */
|
|
39
|
+
htmlFor?: string;
|
|
15
40
|
/** 额外说明(无错误时显示) */
|
|
16
41
|
help?: ReactNode;
|
|
42
|
+
/** 自定义 label 区域 */
|
|
43
|
+
labelSlot?: ReactNode;
|
|
44
|
+
/** 自定义错误展示 */
|
|
45
|
+
errorSlot?: (message: string) => ReactNode;
|
|
17
46
|
children: ReactNode;
|
|
18
47
|
className?: string;
|
|
19
48
|
};
|
|
49
|
+
export type FormFieldContext = {
|
|
50
|
+
prop: string;
|
|
51
|
+
value: unknown;
|
|
52
|
+
validateMessage: string;
|
|
53
|
+
validateState: FormValidateStatus;
|
|
54
|
+
};
|
|
20
55
|
export type FormProps = {
|
|
21
56
|
/** useForm() 返回的表单实例 */
|
|
22
57
|
form?: FormInstance;
|
|
58
|
+
/** 表单数据对象(受控);不传则用内部 state + initialValues */
|
|
59
|
+
model?: Record<string, unknown>;
|
|
23
60
|
initialValues?: Record<string, unknown>;
|
|
61
|
+
/** 表单级校验规则(与 FormItem.rules 合并,Item 优先) */
|
|
62
|
+
rules?: Record<string, FormRule | FormRule[]>;
|
|
24
63
|
onFinish?: (values: Record<string, unknown>) => void;
|
|
25
64
|
onFinishFailed?: (errors: Record<string, string>) => void;
|
|
26
|
-
/** 字段值变化回调 */
|
|
27
65
|
onValuesChange?: (changed: Record<string, unknown>, all: Record<string, unknown>) => void;
|
|
66
|
+
/** 任一字段校验后触发 */
|
|
67
|
+
onValidate?: (prop: string, isValid: boolean, message: string) => void;
|
|
28
68
|
children?: ReactNode;
|
|
29
69
|
className?: string;
|
|
30
70
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @default vertical
|
|
71
|
+
* @deprecated 使用 labelPosition;vertical=top,horizontal=right
|
|
33
72
|
*/
|
|
34
73
|
layout?: "vertical" | "horizontal";
|
|
74
|
+
/**
|
|
75
|
+
* 标签位置
|
|
76
|
+
* @default "top"
|
|
77
|
+
*/
|
|
78
|
+
labelPosition?: FormLabelPosition;
|
|
79
|
+
/**
|
|
80
|
+
* 标签宽度(left/right 时建议设置)
|
|
81
|
+
* @default "auto"
|
|
82
|
+
*/
|
|
83
|
+
labelWidth?: string | number;
|
|
84
|
+
/** 标签后缀,如 ":" */
|
|
85
|
+
labelSuffix?: string;
|
|
86
|
+
/**
|
|
87
|
+
* 行内表单
|
|
88
|
+
* @default false
|
|
89
|
+
*/
|
|
90
|
+
inline?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* @default false
|
|
93
|
+
*/
|
|
94
|
+
hideRequiredAsterisk?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* @default "left"
|
|
97
|
+
*/
|
|
98
|
+
requireAsteriskPosition?: "left" | "right";
|
|
99
|
+
/**
|
|
100
|
+
* @default true
|
|
101
|
+
*/
|
|
102
|
+
showMessage?: boolean;
|
|
103
|
+
/**
|
|
104
|
+
* @default false
|
|
105
|
+
*/
|
|
106
|
+
inlineMessage?: boolean;
|
|
107
|
+
/**
|
|
108
|
+
* 输入框旁校验状态图标
|
|
109
|
+
* @default false
|
|
110
|
+
*/
|
|
111
|
+
statusIcon?: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
validateOnRuleChange?: boolean;
|
|
116
|
+
size?: FormSize;
|
|
117
|
+
disabled?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* 校验失败滚动到首个错误项
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
scrollToError?: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* 滚动到错误项时传给 scrollIntoView 的选项;false 时不滚动动画细节
|
|
125
|
+
* @default { behavior: "smooth", block: "center" }
|
|
126
|
+
*/
|
|
127
|
+
scrollIntoViewOptions?: ScrollIntoViewOptions | boolean;
|
|
35
128
|
/**
|
|
36
129
|
* 失焦时校验
|
|
37
130
|
* @default true
|
|
@@ -46,10 +139,22 @@ export type FormProps = {
|
|
|
46
139
|
export type FormContextValue = {
|
|
47
140
|
values: Record<string, unknown>;
|
|
48
141
|
errors: Record<string, string>;
|
|
142
|
+
statuses: Record<string, FormValidateStatus>;
|
|
49
143
|
setFieldValue: (name: string, value: unknown) => void;
|
|
50
144
|
setFieldError: (name: string, error: string) => void;
|
|
51
|
-
validateField: (name: string) => boolean
|
|
145
|
+
validateField: (name: string) => Promise<boolean>;
|
|
52
146
|
validateOnBlur: boolean;
|
|
53
147
|
validateOnChange: boolean;
|
|
148
|
+
labelPosition: FormLabelPosition;
|
|
149
|
+
labelWidth: string | number;
|
|
150
|
+
labelSuffix: string;
|
|
151
|
+
hideRequiredAsterisk: boolean;
|
|
152
|
+
requireAsteriskPosition: "left" | "right";
|
|
153
|
+
showMessage: boolean;
|
|
154
|
+
inlineMessage: boolean;
|
|
155
|
+
statusIcon: boolean;
|
|
156
|
+
size?: FormSize;
|
|
157
|
+
disabled: boolean;
|
|
158
|
+
formRules?: Record<string, FormRule | FormRule[]>;
|
|
54
159
|
};
|
|
55
160
|
export type { FormInstance };
|
|
@@ -1,19 +1,35 @@
|
|
|
1
|
+
import { FormFieldContext } from './types';
|
|
1
2
|
export type FormInstance = {
|
|
2
|
-
validate: () => Promise<Record<string, unknown>>;
|
|
3
|
+
validate: (callback?: FormValidateCallback) => Promise<Record<string, unknown>>;
|
|
4
|
+
validateField: (name: string | string[], callback?: FormValidateCallback) => Promise<boolean>;
|
|
3
5
|
resetFields: (names?: string[]) => void;
|
|
6
|
+
clearValidate: (names?: string | string[]) => void;
|
|
7
|
+
scrollToField: (name: string) => void;
|
|
4
8
|
setFieldsValue: (values: Record<string, unknown>) => void;
|
|
5
9
|
getFieldsValue: () => Record<string, unknown>;
|
|
10
|
+
setInitialValues: (values: Record<string, unknown>) => void;
|
|
11
|
+
/** 获取全部字段上下文 */
|
|
12
|
+
fields: () => FormFieldContext[];
|
|
13
|
+
/** 获取单个字段上下文 */
|
|
14
|
+
getField: (name: string) => FormFieldContext | undefined;
|
|
6
15
|
/** @internal */
|
|
7
16
|
__INTERNAL__: {
|
|
8
17
|
bind: (api: FormInternalApi) => void;
|
|
9
18
|
unbind: () => void;
|
|
10
19
|
};
|
|
11
20
|
};
|
|
21
|
+
export type FormValidateCallback = (isValid: boolean, invalidFields?: Record<string, string>) => void | Promise<void>;
|
|
12
22
|
export type FormInternalApi = {
|
|
13
|
-
validate: () => Promise<Record<string, unknown>>;
|
|
23
|
+
validate: (callback?: FormValidateCallback) => Promise<Record<string, unknown>>;
|
|
24
|
+
validateField: (name: string | string[], callback?: FormValidateCallback) => Promise<boolean>;
|
|
14
25
|
resetFields: (names?: string[]) => void;
|
|
26
|
+
clearValidate: (names?: string | string[]) => void;
|
|
27
|
+
scrollToField: (name: string) => void;
|
|
15
28
|
setFieldsValue: (values: Record<string, unknown>) => void;
|
|
16
29
|
getFieldsValue: () => Record<string, unknown>;
|
|
30
|
+
setInitialValues: (values: Record<string, unknown>) => void;
|
|
31
|
+
fields: () => FormFieldContext[];
|
|
32
|
+
getField: (name: string) => FormFieldContext | undefined;
|
|
17
33
|
};
|
|
18
34
|
/** Create a form store for imperative validate / reset / setValues. */
|
|
19
35
|
export declare function useForm(): [FormInstance];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FoxProgressProps } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Fox loader: cartoon fox runs along the bar; legs swing while moving.
|
|
4
|
+
*/
|
|
5
|
+
export declare function FoxProgress({ className, percent: percentProp, defaultPercent, status, autoPlay, durationMs, label, onChange, onComplete, }: FoxProgressProps): import('react').JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FX_DURATION_MS = 4800;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type FoxProgressStatus = "normal" | "paused" | "exception";
|
|
2
|
+
export type FoxProgressProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
/** 0–100 */
|
|
5
|
+
percent?: number;
|
|
6
|
+
defaultPercent?: number;
|
|
7
|
+
/**
|
|
8
|
+
* 状态:paused 狐狸停下;exception 失败红条
|
|
9
|
+
* @default normal
|
|
10
|
+
*/
|
|
11
|
+
status?: FoxProgressStatus;
|
|
12
|
+
/** 自动演示跑动 */
|
|
13
|
+
autoPlay?: boolean;
|
|
14
|
+
/** 自动跑一圈毫秒 */
|
|
15
|
+
durationMs?: number;
|
|
16
|
+
label?: string;
|
|
17
|
+
onChange?: (percent: number) => void;
|
|
18
|
+
onComplete?: () => void;
|
|
19
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ImageProps } from '../types';
|
|
2
|
-
export declare
|
|
1
|
+
import { ImageProps, ImageRef } from '../types';
|
|
2
|
+
export declare const Image: import('react').ForwardRefExoticComponent<ImageProps & import('react').RefAttributes<ImageRef>>;
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
index: number;
|
|
6
|
-
onIndexChange: (index: number) => void;
|
|
7
|
-
onClose: () => void;
|
|
8
|
-
zIndex?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare function ImageLightbox({ open, items, index, onIndexChange, onClose, zIndex, }: ImageLightboxProps): import('react').ReactPortal | null;
|
|
1
|
+
import { ImageLightboxProps, ImageLightboxRef } from '../types';
|
|
2
|
+
export declare const ImageLightbox: import('react').ForwardRefExoticComponent<ImageLightboxProps & import('react').RefAttributes<ImageLightboxRef>>;
|
|
3
|
+
/** Element 命名别名 */
|
|
4
|
+
export declare const ImageViewer: import('react').ForwardRefExoticComponent<ImageLightboxProps & import('react').RefAttributes<ImageLightboxRef>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ImagePreviewGroupProps } from '../types';
|
|
2
|
-
export declare function ImagePreviewGroup({ children, items: itemsProp, zIndex, className, }: ImagePreviewGroupProps): import('react').JSX.Element;
|
|
2
|
+
export declare function ImagePreviewGroup({ children, items: itemsProp, zIndex, className, hideOnClickModal, closeOnPressEscape, infinite, zoomRate, scale, minScale, maxScale, showProgress, toolbar, progress, viewerError, onSwitch, onClose, onShow, }: ImagePreviewGroupProps): import('react').JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Image } from './components/Image';
|
|
2
|
-
export { ImageLightbox } from './components/ImageLightbox';
|
|
2
|
+
export { ImageLightbox, ImageViewer, } from './components/ImageLightbox';
|
|
3
3
|
export { ImagePreviewGroup } from './components/ImagePreviewGroup';
|
|
4
|
-
export type { ImageFit, ImagePreviewGroupProps, ImagePreviewItem, ImageProps, } from './types';
|
|
4
|
+
export type { ImageFit, ImageLightboxProps, ImageLightboxRef, ImageLoading, ImagePreviewGroupProps, ImagePreviewItem, ImageProps, ImageRef, ImageViewerAction, ImageViewerActionOptions, ImageViewerErrorCtx, ImageViewerProgressCtx, ImageViewerToolbarCtx, } from './types';
|