@aifuxi/semi-ui-vue 0.1.0-alpha.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/LICENSE +21 -0
- package/README.md +22 -0
- package/dist/Button-RCaDTqHh.js +249 -0
- package/dist/Collapsible-DeV0aJ4n.js +199 -0
- package/dist/Cropper-Dy1LPBDN.js +587 -0
- package/dist/Divider-BQmwhGfH.js +57 -0
- package/dist/Input-BYWFIgNn.js +593 -0
- package/dist/InputNumber-BaeViVtG.js +856 -0
- package/dist/Modal-BhmFYVFw.js +975 -0
- package/dist/Pagination-4JvS-gHR.js +572 -0
- package/dist/Progress-BulSV_JR.js +523 -0
- package/dist/SBOM.spdx.json +165 -0
- package/dist/SelectOption-Ce-Lst-e.js +1473 -0
- package/dist/Slider-w9sbxzBw.js +707 -0
- package/dist/Spin-CuFLkqev.js +222 -0
- package/dist/THIRD_PARTY_LICENSES/Semi-Design.txt +83 -0
- package/dist/THIRD_PARTY_LICENSES/async-validator.txt +9 -0
- package/dist/THIRD_PARTY_LICENSES/bezier-easing.txt +22 -0
- package/dist/THIRD_PARTY_LICENSES/date-fns-tz.txt +21 -0
- package/dist/THIRD_PARTY_LICENSES/date-fns.txt +21 -0
- package/dist/THIRD_PARTY_LICENSES/lodash.txt +47 -0
- package/dist/THIRD_PARTY_LICENSES/scroll-into-view-if-needed.txt +21 -0
- package/dist/THIRD_PARTY_NOTICES.md +23 -0
- package/dist/Tooltip-Bq7HZwnS.js +1321 -0
- package/dist/Tree-tqy5xBYJ.js +1275 -0
- package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
- package/dist/anchor/Anchor.vue.d.ts +29 -0
- package/dist/anchor/AnchorLink.vue.d.ts +16 -0
- package/dist/anchor/AnchorNodeRenderer.d.ts +15 -0
- package/dist/anchor/anchor-context.d.ts +18 -0
- package/dist/anchor/index.d.ts +11 -0
- package/dist/anchor/index.js +2 -0
- package/dist/anchor/types.d.ts +43 -0
- package/dist/anchor-DW0p2t-I.js +503 -0
- package/dist/arrayMove-ByVCXfhS.js +7 -0
- package/dist/auto-complete/AutoComplete.vue.d.ts +33 -0
- package/dist/auto-complete/AutoCompleteNodeRenderer.d.ts +15 -0
- package/dist/auto-complete/AutoCompleteOption.vue.d.ts +19 -0
- package/dist/auto-complete/index.d.ts +10 -0
- package/dist/auto-complete/index.js +2 -0
- package/dist/auto-complete/types.d.ts +117 -0
- package/dist/auto-complete/use-auto-complete-foundation.d.ts +40 -0
- package/dist/auto-complete-BeahBlt9.js +765 -0
- package/dist/avatar/Avatar.vue.d.ts +26 -0
- package/dist/avatar/AvatarGroup.d.ts +54 -0
- package/dist/avatar/AvatarNodeRenderer.d.ts +15 -0
- package/dist/avatar/TopSlotSvg.vue.d.ts +7 -0
- package/dist/avatar/index.d.ts +10 -0
- package/dist/avatar/index.js +2 -0
- package/dist/avatar/types.d.ts +86 -0
- package/dist/avatar-B00xjEzD.js +551 -0
- package/dist/back-top/BackTop.vue.d.ts +19 -0
- package/dist/back-top/index.d.ts +3 -0
- package/dist/back-top/index.js +2 -0
- package/dist/back-top/types.d.ts +15 -0
- package/dist/back-top-C2XqUzoN.js +123 -0
- package/dist/badge/Badge.vue.d.ts +23 -0
- package/dist/badge/BadgeNodeRenderer.d.ts +15 -0
- package/dist/badge/index.d.ts +6 -0
- package/dist/badge/index.js +2 -0
- package/dist/badge/types.d.ts +29 -0
- package/dist/badge-gWsDkzyt.js +120 -0
- package/dist/banner/Banner.vue.d.ts +19 -0
- package/dist/banner/BannerNodeRenderer.d.ts +15 -0
- package/dist/banner/index.d.ts +6 -0
- package/dist/banner/index.js +2 -0
- package/dist/banner/types.d.ts +25 -0
- package/dist/banner-B3O4uDoR.js +220 -0
- package/dist/breadcrumb/Breadcrumb.d.ts +129 -0
- package/dist/breadcrumb/BreadcrumbIconRenderer.d.ts +23 -0
- package/dist/breadcrumb/BreadcrumbItem.vue.d.ts +19 -0
- package/dist/breadcrumb/BreadcrumbNodeRenderer.d.ts +15 -0
- package/dist/breadcrumb/BreadcrumbPopover.vue.d.ts +17 -0
- package/dist/breadcrumb/BreadcrumbPopoverArrow.vue.d.ts +3 -0
- package/dist/breadcrumb/breadcrumb-context.d.ts +9 -0
- package/dist/breadcrumb/index.d.ts +11 -0
- package/dist/breadcrumb/index.js +2 -0
- package/dist/breadcrumb/types.d.ts +72 -0
- package/dist/breadcrumb-BmBbFmGK.js +451 -0
- package/dist/button/Button.vue.d.ts +34 -0
- package/dist/button/ButtonAiLoadingIcon.vue.d.ts +3 -0
- package/dist/button/ButtonGroup.d.ts +69 -0
- package/dist/button/ButtonIconRenderer.d.ts +28 -0
- package/dist/button/ButtonLoadingIcon.vue.d.ts +3 -0
- package/dist/button/SplitButtonGroup.vue.d.ts +16 -0
- package/dist/button/index.d.ts +5 -0
- package/dist/button/index.js +3 -0
- package/dist/button/types.d.ts +57 -0
- package/dist/button-Rcn5pYGh.js +134 -0
- package/dist/calendar/Calendar.vue.d.ts +29 -0
- package/dist/calendar/CalendarDay.vue.d.ts +3 -0
- package/dist/calendar/CalendarMonth.vue.d.ts +3 -0
- package/dist/calendar/CalendarNodeRenderer.d.ts +15 -0
- package/dist/calendar/CalendarTimeColumn.vue.d.ts +6 -0
- package/dist/calendar/CalendarWeek.vue.d.ts +8 -0
- package/dist/calendar/index.d.ts +6 -0
- package/dist/calendar/index.js +2 -0
- package/dist/calendar/types.d.ts +67 -0
- package/dist/calendar-CJTrr4y5.js +1172 -0
- package/dist/card/Card.vue.d.ts +16 -0
- package/dist/card/CardGroup.vue.d.ts +13 -0
- package/dist/card/CardMeta.vue.d.ts +11 -0
- package/dist/card/CardNodeRenderer.d.ts +15 -0
- package/dist/card/CardSkeleton.vue.d.ts +3 -0
- package/dist/card/card-content.d.ts +2 -0
- package/dist/card/index.d.ts +11 -0
- package/dist/card/index.js +2 -0
- package/dist/card/types.d.ts +56 -0
- package/dist/card-DwMOFi6_.js +348 -0
- package/dist/carousel/Carousel.vue.d.ts +29 -0
- package/dist/carousel/CarouselArrow.vue.d.ts +15 -0
- package/dist/carousel/CarouselIndicator.vue.d.ts +17 -0
- package/dist/carousel/CarouselItemRenderer.d.ts +34 -0
- package/dist/carousel/CarouselNodeRenderer.d.ts +15 -0
- package/dist/carousel/index.d.ts +6 -0
- package/dist/carousel/index.js +2 -0
- package/dist/carousel/types.d.ts +70 -0
- package/dist/carousel/use-carousel-foundation.d.ts +19 -0
- package/dist/carousel-B4WlIRJH.js +458 -0
- package/dist/cascader/Cascader.vue.d.ts +71 -0
- package/dist/cascader/CascaderNodeRenderer.d.ts +15 -0
- package/dist/cascader/CascaderPanel.vue.d.ts +36 -0
- package/dist/cascader/index.d.ts +6 -0
- package/dist/cascader/index.js +2 -0
- package/dist/cascader/types.d.ts +192 -0
- package/dist/cascader-Ch6clCeh.js +1525 -0
- package/dist/checkbox/Checkbox.vue.d.ts +19 -0
- package/dist/checkbox/CheckboxGroup.d.ts +161 -0
- package/dist/checkbox/CheckboxNodeRenderer.d.ts +15 -0
- package/dist/checkbox/checkbox-context.d.ts +11 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/checkbox/index.js +2 -0
- package/dist/checkbox/types.d.ts +92 -0
- package/dist/checkbox-mJD1ou6k.js +479 -0
- package/dist/collapse/Collapse.vue.d.ts +140 -0
- package/dist/collapse/CollapseNodeRenderer.d.ts +15 -0
- package/dist/collapse/CollapsePanel.vue.d.ts +99 -0
- package/dist/collapse/collapse-context.d.ts +14 -0
- package/dist/collapse/index.d.ts +10 -0
- package/dist/collapse/index.js +2 -0
- package/dist/collapse/types.d.ts +50 -0
- package/dist/collapse-7YtQLWqt.js +278 -0
- package/dist/collapsible/Collapsible.vue.d.ts +136 -0
- package/dist/collapsible/index.d.ts +5 -0
- package/dist/collapsible/index.js +5 -0
- package/dist/collapsible/types.d.ts +28 -0
- package/dist/color-picker/AlphaSlider.vue.d.ts +14 -0
- package/dist/color-picker/ColorChooseArea.vue.d.ts +20 -0
- package/dist/color-picker/ColorDataPart.vue.d.ts +15 -0
- package/dist/color-picker/ColorPicker.vue.d.ts +28 -0
- package/dist/color-picker/ColorPickerNodeRenderer.d.ts +17 -0
- package/dist/color-picker/ColorPickerPanel.vue.d.ts +37 -0
- package/dist/color-picker/ColorSlider.vue.d.ts +13 -0
- package/dist/color-picker/index.d.ts +10 -0
- package/dist/color-picker/index.js +2 -0
- package/dist/color-picker/types.d.ts +67 -0
- package/dist/color-picker-ChC7qsx0.js +885 -0
- package/dist/config-context-CyynTtDb.js +4 -0
- package/dist/config-provider/ConfigConsumer.vue.d.ts +11 -0
- package/dist/config-provider/ConfigProvider.vue.d.ts +16 -0
- package/dist/config-provider/config-context.d.ts +3 -0
- package/dist/config-provider/constants.d.ts +4 -0
- package/dist/config-provider/index.d.ts +13 -0
- package/dist/config-provider/index.js +3 -0
- package/dist/config-provider/semi-global.d.ts +6 -0
- package/dist/config-provider/types.d.ts +74 -0
- package/dist/config-provider/use-responsive-observe.d.ts +6 -0
- package/dist/config-provider-VMfNNSF1.js +188 -0
- package/dist/constants-BF9bZJyc.js +45 -0
- package/dist/constants-BNwzO87W.js +9 -0
- package/dist/cropper/Cropper.vue.d.ts +18 -0
- package/dist/cropper/index.d.ts +4 -0
- package/dist/cropper/index.js +5 -0
- package/dist/cropper/types.d.ts +51 -0
- package/dist/date-picker/DatePicker.vue.d.ts +41 -0
- package/dist/date-picker/DatePickerMonth.vue.d.ts +25 -0
- package/dist/date-picker/DatePickerNodeRenderer.d.ts +17 -0
- package/dist/date-picker/DatePickerPanel.vue.d.ts +33 -0
- package/dist/date-picker/index.d.ts +5 -0
- package/dist/date-picker/index.js +2 -0
- package/dist/date-picker/types.d.ts +211 -0
- package/dist/date-picker-B2lhlKHD.js +2207 -0
- package/dist/descriptions/Descriptions.vue.d.ts +96 -0
- package/dist/descriptions/DescriptionsItem.vue.d.ts +96 -0
- package/dist/descriptions/DescriptionsNodeRenderer.d.ts +15 -0
- package/dist/descriptions/descriptions-context.d.ts +7 -0
- package/dist/descriptions/index.d.ts +10 -0
- package/dist/descriptions/index.js +2 -0
- package/dist/descriptions/types.d.ts +45 -0
- package/dist/descriptions-BU6ahbge.js +272 -0
- package/dist/divider/Divider.vue.d.ts +15 -0
- package/dist/divider/DividerContentRenderer.d.ts +17 -0
- package/dist/divider/index.d.ts +3 -0
- package/dist/divider/index.js +3 -0
- package/dist/divider/types.d.ts +13 -0
- package/dist/divider-DA9U4uOl.js +8 -0
- package/dist/dropdown/Dropdown.vue.d.ts +23 -0
- package/dist/dropdown/DropdownDivider.vue.d.ts +4 -0
- package/dist/dropdown/DropdownItem.vue.d.ts +28 -0
- package/dist/dropdown/DropdownMenu.vue.d.ts +11 -0
- package/dist/dropdown/DropdownNodeRenderer.d.ts +15 -0
- package/dist/dropdown/DropdownTitle.vue.d.ts +11 -0
- package/dist/dropdown/DropdownTriggerRenderer.d.ts +45 -0
- package/dist/dropdown/dropdown-context.d.ts +8 -0
- package/dist/dropdown/index.d.ts +17 -0
- package/dist/dropdown/index.js +2 -0
- package/dist/dropdown/types.d.ts +98 -0
- package/dist/dropdown-D0-UWd65.js +665 -0
- package/dist/empty/Empty.vue.d.ts +13 -0
- package/dist/empty/EmptyNodeRenderer.d.ts +15 -0
- package/dist/empty/index.d.ts +6 -0
- package/dist/empty/index.js +2 -0
- package/dist/empty/types.d.ts +27 -0
- package/dist/empty-Bpms8Z5w.js +152 -0
- package/dist/env-BeIzjQx7.js +4 -0
- package/dist/es-CAWQuPuV.js +93 -0
- package/dist/float-button/FloatButton.vue.d.ts +20 -0
- package/dist/float-button/FloatButtonBadge.vue.d.ts +18 -0
- package/dist/float-button/FloatButtonGroup.vue.d.ts +17 -0
- package/dist/float-button/FloatButtonNodeRenderer.d.ts +17 -0
- package/dist/float-button/index.d.ts +4 -0
- package/dist/float-button/index.js +2 -0
- package/dist/float-button/types.d.ts +59 -0
- package/dist/float-button-qU3b0WBX.js +190 -0
- package/dist/form/ArrayField.d.ts +24 -0
- package/dist/form/Form.vue.d.ts +38 -0
- package/dist/form/FormErrorMessage.vue.d.ts +4 -0
- package/dist/form/FormField.d.ts +9 -0
- package/dist/form/FormInputGroup.d.ts +62 -0
- package/dist/form/FormLabel.vue.d.ts +18 -0
- package/dist/form/FormNodeRenderer.d.ts +15 -0
- package/dist/form/FormSection.vue.d.ts +16 -0
- package/dist/form/FormSlot.d.ts +3 -0
- package/dist/form/form-context.d.ts +4 -0
- package/dist/form/index.d.ts +68 -0
- package/dist/form/index.js +3 -0
- package/dist/form/internal-types.d.ts +67 -0
- package/dist/form/types.d.ts +273 -0
- package/dist/form/use-form.d.ts +11 -0
- package/dist/form/with-form.d.ts +3 -0
- package/dist/form-CLhGuORQ.js +2030 -0
- package/dist/foundation-Cawx37mp.js +1819 -0
- package/dist/grid/Col.vue.d.ts +13 -0
- package/dist/grid/Row.vue.d.ts +14 -0
- package/dist/grid/grid-context.d.ts +6 -0
- package/dist/grid/index.d.ts +5 -0
- package/dist/grid/index.js +2 -0
- package/dist/grid/media-query.d.ts +2 -0
- package/dist/grid/types.d.ts +44 -0
- package/dist/grid-Cn2uBhRd.js +161 -0
- package/dist/highlight/Highlight.vue.d.ts +10 -0
- package/dist/highlight/HighlightNodeRenderer.d.ts +49 -0
- package/dist/highlight/index.d.ts +4 -0
- package/dist/highlight/index.js +2 -0
- package/dist/highlight/internal-types.d.ts +8 -0
- package/dist/highlight/types.d.ts +17 -0
- package/dist/highlight-DHX3RV0C.js +158 -0
- package/dist/icon/index.d.ts +2 -0
- package/dist/icon/index.js +2 -0
- package/dist/image/Image.vue.d.ts +21 -0
- package/dist/image/ImageNodeRenderer.d.ts +15 -0
- package/dist/image/ImagePreview.vue.d.ts +56 -0
- package/dist/image/ImagePreviewFooter.vue.d.ts +38 -0
- package/dist/image/ImagePreviewHeader.vue.d.ts +17 -0
- package/dist/image/ImagePreviewImage.vue.d.ts +27 -0
- package/dist/image/ImagePreviewInner.vue.d.ts +54 -0
- package/dist/image/image-context.d.ts +14 -0
- package/dist/image/index.d.ts +6 -0
- package/dist/image/index.js +2 -0
- package/dist/image/types.d.ts +183 -0
- package/dist/image-C-ifCh_9.js +1615 -0
- package/dist/index.d.ts +68 -0
- package/dist/index.js +75 -0
- package/dist/input/Input.vue.d.ts +58 -0
- package/dist/input/InputGroup.d.ts +69 -0
- package/dist/input/InputNodeRenderer.d.ts +15 -0
- package/dist/input/TextArea.vue.d.ts +50 -0
- package/dist/input/index.d.ts +11 -0
- package/dist/input/index.js +2 -0
- package/dist/input/types.d.ts +168 -0
- package/dist/input-number/InputNumber.vue.d.ts +52 -0
- package/dist/input-number/index.d.ts +10 -0
- package/dist/input-number/index.js +5 -0
- package/dist/input-number/types.d.ts +56 -0
- package/dist/input-wf0nZCRS.js +747 -0
- package/dist/isBefore-BG1hiM9f.js +37 -0
- package/dist/isElement-Cx0AsIov.js +11 -0
- package/dist/isEnterPress-HTy0eCBp.js +8 -0
- package/dist/isNullOrUndefined-Cg6MZ8r3.js +6 -0
- package/dist/isPromise-D2v3Ejff.js +11 -0
- package/dist/keyCode-DMNg63wX.js +110 -0
- package/dist/layout/Layout.vue.d.ts +14 -0
- package/dist/layout/LayoutContent.vue.d.ts +14 -0
- package/dist/layout/LayoutFooter.vue.d.ts +14 -0
- package/dist/layout/LayoutHeader.vue.d.ts +14 -0
- package/dist/layout/LayoutSection.vue.d.ts +17 -0
- package/dist/layout/LayoutSider.vue.d.ts +18 -0
- package/dist/layout/index.d.ts +17 -0
- package/dist/layout/index.js +2 -0
- package/dist/layout/layout-context.d.ts +6 -0
- package/dist/layout/media-query.d.ts +4 -0
- package/dist/layout/types.d.ts +31 -0
- package/dist/layout-tq-_l_O3.js +171 -0
- package/dist/list/List.vue.d.ts +22 -0
- package/dist/list/ListItem.vue.d.ts +88 -0
- package/dist/list/ListNodeRenderer.d.ts +15 -0
- package/dist/list/ListSpin.vue.d.ts +16 -0
- package/dist/list/index.d.ts +10 -0
- package/dist/list/index.js +2 -0
- package/dist/list/list-context.d.ts +8 -0
- package/dist/list/types.d.ts +66 -0
- package/dist/list-DHIOE2Y-.js +387 -0
- package/dist/modal/ConfirmModal.vue.d.ts +14 -0
- package/dist/modal/Modal.vue.d.ts +15 -0
- package/dist/modal/ModalDefaultFooter.vue.d.ts +22 -0
- package/dist/modal/ModalDialog.vue.d.ts +53 -0
- package/dist/modal/ModalInnerContent.vue.d.ts +38 -0
- package/dist/modal/ModalNodeRenderer.d.ts +15 -0
- package/dist/modal/imperative.d.ts +9 -0
- package/dist/modal/index.d.ts +8 -0
- package/dist/modal/index.js +2 -0
- package/dist/modal/types.d.ts +92 -0
- package/dist/modal/use-modal.d.ts +2 -0
- package/dist/modal-YVolL7Hz.js +221 -0
- package/dist/navigation/CollapseButton.vue.d.ts +12 -0
- package/dist/navigation/NavFooter.vue.d.ts +15 -0
- package/dist/navigation/NavHeader.vue.d.ts +13 -0
- package/dist/navigation/NavItem.d.ts +177 -0
- package/dist/navigation/Navigation.vue.d.ts +29 -0
- package/dist/navigation/NavigationContextProvider.d.ts +16 -0
- package/dist/navigation/NavigationIconRenderer.d.ts +45 -0
- package/dist/navigation/NavigationItemTree.vue.d.ts +8 -0
- package/dist/navigation/NavigationNodeRenderer.d.ts +18 -0
- package/dist/navigation/SubNav.vue.d.ts +18 -0
- package/dist/navigation/index.d.ts +14 -0
- package/dist/navigation/index.js +2 -0
- package/dist/navigation/navigation-context.d.ts +35 -0
- package/dist/navigation/types.d.ts +177 -0
- package/dist/navigation-DF8R5jFK.js +1479 -0
- package/dist/notification/NotificationHost.vue.d.ts +7 -0
- package/dist/notification/NotificationNodeRenderer.d.ts +15 -0
- package/dist/notification/NotificationNotice.vue.d.ts +16 -0
- package/dist/notification/imperative.d.ts +12 -0
- package/dist/notification/index.d.ts +6 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/notification-store.d.ts +24 -0
- package/dist/notification/types.d.ts +63 -0
- package/dist/notification/use-notification.d.ts +2 -0
- package/dist/notification-DIsvgiIO.js +445 -0
- package/dist/overflow-list/OverflowList.vue.d.ts +131 -0
- package/dist/overflow-list/OverflowListNodeRenderer.d.ts +35 -0
- package/dist/overflow-list/index.d.ts +5 -0
- package/dist/overflow-list/index.js +2 -0
- package/dist/overflow-list/types.d.ts +35 -0
- package/dist/overflow-list-Df6ixrtB.js +413 -0
- package/dist/pagination/Pagination.vue.d.ts +25 -0
- package/dist/pagination/PaginationNodeRenderer.d.ts +15 -0
- package/dist/pagination/PaginationPopover.vue.d.ts +25 -0
- package/dist/pagination/PaginationRestList.vue.d.ts +11 -0
- package/dist/pagination/index.d.ts +3 -0
- package/dist/pagination/index.js +2 -0
- package/dist/pagination/types.d.ts +46 -0
- package/dist/pin-code/PinCode.vue.d.ts +20 -0
- package/dist/pin-code/index.d.ts +10 -0
- package/dist/pin-code/index.js +2 -0
- package/dist/pin-code/types.d.ts +25 -0
- package/dist/pin-code-wY5g0KLD.js +193 -0
- package/dist/popconfirm/Popconfirm.vue.d.ts +25 -0
- package/dist/popconfirm/PopconfirmNodeRenderer.d.ts +15 -0
- package/dist/popconfirm/index.d.ts +4 -0
- package/dist/popconfirm/index.js +2 -0
- package/dist/popconfirm/types.d.ts +57 -0
- package/dist/popconfirm-DQUtvI0A.js +389 -0
- package/dist/popover/Popover.vue.d.ts +23 -0
- package/dist/popover/PopoverArrow.vue.d.ts +10 -0
- package/dist/popover/index.d.ts +4 -0
- package/dist/popover/index.js +2 -0
- package/dist/popover/types.d.ts +35 -0
- package/dist/popover-hD77YpUM.js +292 -0
- package/dist/progress/Progress.vue.d.ts +24 -0
- package/dist/progress/ProgressCircle.vue.d.ts +26 -0
- package/dist/progress/ProgressLine.vue.d.ts +23 -0
- package/dist/progress/ProgressNodeRenderer.d.ts +15 -0
- package/dist/progress/index.d.ts +6 -0
- package/dist/progress/index.js +2 -0
- package/dist/progress/types.d.ts +44 -0
- package/dist/progress-DIIyWKKD.js +9 -0
- package/dist/radio/Radio.vue.d.ts +30 -0
- package/dist/radio/RadioGroup.d.ts +201 -0
- package/dist/radio/RadioNodeRenderer.d.ts +15 -0
- package/dist/radio/index.d.ts +10 -0
- package/dist/radio/index.js +2 -0
- package/dist/radio/radio-context.d.ts +15 -0
- package/dist/radio/types.d.ts +100 -0
- package/dist/radio-y9iAI359.js +565 -0
- package/dist/rating/Rating.vue.d.ts +39 -0
- package/dist/rating/RatingItem.vue.d.ts +33 -0
- package/dist/rating/RatingNodeRenderer.d.ts +17 -0
- package/dist/rating/index.d.ts +6 -0
- package/dist/rating/index.js +2 -0
- package/dist/rating/types.d.ts +57 -0
- package/dist/rating-CJkb4pkD.js +542 -0
- package/dist/resizable/Resizable.vue.d.ts +31 -0
- package/dist/resizable/ResizableNodeRenderer.d.ts +17 -0
- package/dist/resizable/ResizeGroup.vue.d.ts +13 -0
- package/dist/resizable/ResizeHandler.vue.d.ts +11 -0
- package/dist/resizable/ResizeItem.vue.d.ts +19 -0
- package/dist/resizable/SingleResizeHandle.vue.d.ts +21 -0
- package/dist/resizable/index.d.ts +6 -0
- package/dist/resizable/index.js +2 -0
- package/dist/resizable/resizable-context.d.ts +27 -0
- package/dist/resizable/types.d.ts +87 -0
- package/dist/resizable/use-resize-group.d.ts +21 -0
- package/dist/resizable/use-single-resize.d.ts +30 -0
- package/dist/resizable-CEB0ZdGT.js +814 -0
- package/dist/scroll-list/ScrollItem.vue.d.ts +21 -0
- package/dist/scroll-list/ScrollList.vue.d.ts +11 -0
- package/dist/scroll-list/ScrollListNodeRenderer.d.ts +15 -0
- package/dist/scroll-list/index.d.ts +10 -0
- package/dist/scroll-list/index.js +2 -0
- package/dist/scroll-list/types.d.ts +54 -0
- package/dist/scroll-list-BSXksNOR.js +466 -0
- package/dist/select/Select.vue.d.ts +39 -0
- package/dist/select/SelectFragment.d.ts +4 -0
- package/dist/select/SelectNodeRenderer.d.ts +15 -0
- package/dist/select/SelectOption.vue.d.ts +13 -0
- package/dist/select/SelectOptionCollector.d.ts +13 -0
- package/dist/select/SelectOptionGroup.vue.d.ts +14 -0
- package/dist/select/index.d.ts +12 -0
- package/dist/select/index.js +3 -0
- package/dist/select/types.d.ts +165 -0
- package/dist/select/use-select-foundation.d.ts +64 -0
- package/dist/select-BeM6gxAU.js +40 -0
- package/dist/side-sheet/SideSheet.vue.d.ts +19 -0
- package/dist/side-sheet/SideSheetContent.vue.d.ts +37 -0
- package/dist/side-sheet/SideSheetNodeRenderer.d.ts +15 -0
- package/dist/side-sheet/index.d.ts +4 -0
- package/dist/side-sheet/index.js +2 -0
- package/dist/side-sheet/types.d.ts +46 -0
- package/dist/side-sheet-9CBTk23r.js +542 -0
- package/dist/skeleton/Skeleton.vue.d.ts +15 -0
- package/dist/skeleton/SkeletonAvatar.vue.d.ts +9 -0
- package/dist/skeleton/SkeletonButton.vue.d.ts +7 -0
- package/dist/skeleton/SkeletonImage.vue.d.ts +7 -0
- package/dist/skeleton/SkeletonNodeRenderer.d.ts +15 -0
- package/dist/skeleton/SkeletonParagraph.vue.d.ts +8 -0
- package/dist/skeleton/SkeletonTitle.vue.d.ts +7 -0
- package/dist/skeleton/index.d.ts +18 -0
- package/dist/skeleton/index.js +2 -0
- package/dist/skeleton/types.d.ts +36 -0
- package/dist/skeleton-p61lfhoz.js +302 -0
- package/dist/slider/Slider.vue.d.ts +32 -0
- package/dist/slider/SliderFragment.d.ts +4 -0
- package/dist/slider/index.d.ts +5 -0
- package/dist/slider/index.js +5 -0
- package/dist/slider/types.d.ts +57 -0
- package/dist/slider/use-slider-foundation.d.ts +47 -0
- package/dist/space/Space.vue.d.ts +16 -0
- package/dist/space/index.d.ts +3 -0
- package/dist/space/index.js +2 -0
- package/dist/space/types.d.ts +15 -0
- package/dist/space-DVnFbkCz.js +63 -0
- package/dist/spin/Spin.vue.d.ts +105 -0
- package/dist/spin/SpinNodeRenderer.d.ts +15 -0
- package/dist/spin/index.d.ts +6 -0
- package/dist/spin/index.js +2 -0
- package/dist/spin/types.d.ts +20 -0
- package/dist/spin-D-1P0WMW.js +9 -0
- package/dist/src-DNBBthjO.js +490 -0
- package/dist/steps/Step.vue.d.ts +22 -0
- package/dist/steps/Steps.vue.d.ts +24 -0
- package/dist/steps/StepsNodeRenderer.d.ts +17 -0
- package/dist/steps/index.d.ts +9 -0
- package/dist/steps/index.js +2 -0
- package/dist/steps/steps-context.d.ts +6 -0
- package/dist/steps/types.d.ts +54 -0
- package/dist/steps-6p04q-Lz.js +303 -0
- package/dist/switch/Switch.vue.d.ts +27 -0
- package/dist/switch/SwitchNodeRenderer.d.ts +15 -0
- package/dist/switch/SwitchSpin.vue.d.ts +7 -0
- package/dist/switch/index.d.ts +7 -0
- package/dist/switch/index.js +2 -0
- package/dist/switch/types.d.ts +28 -0
- package/dist/switch-Dte2Fl3l.js +284 -0
- package/dist/table/Table.vue.d.ts +29 -0
- package/dist/table/TableBody.vue.d.ts +70 -0
- package/dist/table/TableCell.vue.d.ts +37 -0
- package/dist/table/TableColumn.d.ts +81 -0
- package/dist/table/TableFilterMenu.vue.d.ts +18 -0
- package/dist/table/TableHeader.vue.d.ts +46 -0
- package/dist/table/TableNativeElement.d.ts +9 -0
- package/dist/table/TableNodeRenderer.d.ts +13 -0
- package/dist/table/TableSpin.vue.d.ts +16 -0
- package/dist/table/index.d.ts +13 -0
- package/dist/table/index.js +2 -0
- package/dist/table/table-utils.d.ts +43 -0
- package/dist/table/types.d.ts +323 -0
- package/dist/table-jZkHjf-W.js +2097 -0
- package/dist/tabs/TabBar.vue.d.ts +38 -0
- package/dist/tabs/TabItem.vue.d.ts +26 -0
- package/dist/tabs/TabPane.vue.d.ts +13 -0
- package/dist/tabs/Tabs.vue.d.ts +36 -0
- package/dist/tabs/TabsDropdown.vue.d.ts +27 -0
- package/dist/tabs/TabsNodeRenderer.d.ts +15 -0
- package/dist/tabs/index.d.ts +6 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/tabs-context.d.ts +12 -0
- package/dist/tabs/types.d.ts +110 -0
- package/dist/tabs-CezuYzIu.js +874 -0
- package/dist/tag/SplitTagGroup.d.ts +36 -0
- package/dist/tag/Tag.vue.d.ts +33 -0
- package/dist/tag/TagGroup.d.ts +115 -0
- package/dist/tag/TagNodeRenderer.d.ts +15 -0
- package/dist/tag/index.d.ts +8 -0
- package/dist/tag/index.js +2 -0
- package/dist/tag/types.d.ts +82 -0
- package/dist/tag-BPD0bELU.js +348 -0
- package/dist/tag-input/TagInput.vue.d.ts +51 -0
- package/dist/tag-input/TagInputNodeRenderer.d.ts +17 -0
- package/dist/tag-input/TagInputRestPopover.vue.d.ts +19 -0
- package/dist/tag-input/TagInputTag.vue.d.ts +27 -0
- package/dist/tag-input/index.d.ts +5 -0
- package/dist/tag-input/index.js +2 -0
- package/dist/tag-input/types.d.ts +95 -0
- package/dist/tag-input/use-tag-input-foundation.d.ts +47 -0
- package/dist/tag-input-SxUfNqF0.js +784 -0
- package/dist/time-picker/TimePicker.vue.d.ts +27 -0
- package/dist/time-picker/TimePickerColumn.vue.d.ts +29 -0
- package/dist/time-picker/TimePickerNodeRenderer.d.ts +17 -0
- package/dist/time-picker/TimePickerPanel.vue.d.ts +32 -0
- package/dist/time-picker/index.d.ts +5 -0
- package/dist/time-picker/index.js +2 -0
- package/dist/time-picker/types.d.ts +146 -0
- package/dist/time-picker/use-time-picker-foundation.d.ts +36 -0
- package/dist/time-picker-D6p36ea8.js +3587 -0
- package/dist/timeline/Timeline.vue.d.ts +69 -0
- package/dist/timeline/TimelineItem.vue.d.ts +100 -0
- package/dist/timeline/TimelineNodeRenderer.d.ts +15 -0
- package/dist/timeline/index.d.ts +10 -0
- package/dist/timeline/index.js +2 -0
- package/dist/timeline/types.d.ts +43 -0
- package/dist/timeline-2D5xCZsU.js +191 -0
- package/dist/toast/ToastHost.vue.d.ts +7 -0
- package/dist/toast/ToastIconRenderer.d.ts +17 -0
- package/dist/toast/ToastNodeRenderer.d.ts +15 -0
- package/dist/toast/ToastNotice.vue.d.ts +20 -0
- package/dist/toast/imperative.d.ts +3 -0
- package/dist/toast/index.d.ts +6 -0
- package/dist/toast/index.js +2 -0
- package/dist/toast/toast-store.d.ts +30 -0
- package/dist/toast/types.d.ts +65 -0
- package/dist/toast/use-toast.d.ts +2 -0
- package/dist/toast-s8nFLf8t.js +523 -0
- package/dist/tooltip/Tooltip.vue.d.ts +23 -0
- package/dist/tooltip/TooltipArrow.vue.d.ts +8 -0
- package/dist/tooltip/TooltipNodeRenderer.d.ts +15 -0
- package/dist/tooltip/TooltipPortal.vue.d.ts +44 -0
- package/dist/tooltip/TooltipTriggerRenderer.d.ts +66 -0
- package/dist/tooltip/index.d.ts +5 -0
- package/dist/tooltip/index.js +3 -0
- package/dist/tooltip/types.d.ts +117 -0
- package/dist/tooltip/use-tooltip-foundation.d.ts +25 -0
- package/dist/tooltip-en9bvXRp.js +28 -0
- package/dist/transfer/Transfer.vue.d.ts +35 -0
- package/dist/transfer/TransferNodeRenderer.d.ts +15 -0
- package/dist/transfer/index.d.ts +5 -0
- package/dist/transfer/index.js +2 -0
- package/dist/transfer/types.d.ts +159 -0
- package/dist/transfer-Doq1sI9z.js +695 -0
- package/dist/tree/Tree.vue.d.ts +73 -0
- package/dist/tree/TreeNode.vue.d.ts +77 -0
- package/dist/tree/TreeNodeMotion.vue.d.ts +20 -0
- package/dist/tree/TreeNodeRenderer.d.ts +15 -0
- package/dist/tree/index.d.ts +9 -0
- package/dist/tree/index.js +5 -0
- package/dist/tree/types.d.ts +180 -0
- package/dist/tree-select/TreeSelect.vue.d.ts +76 -0
- package/dist/tree-select/TreeSelectNodeRenderer.d.ts +15 -0
- package/dist/tree-select/index.d.ts +6 -0
- package/dist/tree-select/index.js +2 -0
- package/dist/tree-select/types.d.ts +156 -0
- package/dist/tree-select-BIu6Owuq.js +1237 -0
- package/dist/treeUtil-IUdRJ6Ws.js +277 -0
- package/dist/typography/Numeral.vue.d.ts +32 -0
- package/dist/typography/Paragraph.vue.d.ts +30 -0
- package/dist/typography/Text.vue.d.ts +30 -0
- package/dist/typography/Title.vue.d.ts +28 -0
- package/dist/typography/Typography.vue.d.ts +13 -0
- package/dist/typography/TypographyBase.vue.d.ts +40 -0
- package/dist/typography/TypographyCopyable.vue.d.ts +29 -0
- package/dist/typography/TypographyDecorations.d.ts +34 -0
- package/dist/typography/TypographyNodeRenderer.d.ts +17 -0
- package/dist/typography/index.d.ts +17 -0
- package/dist/typography/index.js +2 -0
- package/dist/typography/types.d.ts +108 -0
- package/dist/typography/typography-locale.d.ts +5 -0
- package/dist/typography/typography-utils.d.ts +4 -0
- package/dist/typography-DF8KwKuL.js +914 -0
- package/dist/upload/Upload.vue.d.ts +69 -0
- package/dist/upload/UploadFileCard.vue.d.ts +4 -0
- package/dist/upload/UploadNodeRenderer.d.ts +15 -0
- package/dist/upload/index.d.ts +10 -0
- package/dist/upload/index.js +2 -0
- package/dist/upload/types.d.ts +250 -0
- package/dist/upload-BzdpoGJX.js +1777 -0
- package/dist/uuid-BUHV1G8U.js +21 -0
- package/dist/warning-naSiE8G7.js +6 -0
- package/dist/zh-CN-CCu7YvUA.js +1623 -0
- package/package.json +336 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefineComponent } from 'vue';
|
|
2
|
+
import { default as ListBase } from './List.vue';
|
|
3
|
+
import { ListItemProps } from './types';
|
|
4
|
+
export type ListCompoundComponent = typeof ListBase & {
|
|
5
|
+
Item: DefineComponent<ListItemProps>;
|
|
6
|
+
};
|
|
7
|
+
export declare const ListItem: DefineComponent<ListItemProps>;
|
|
8
|
+
export declare const List: ListCompoundComponent;
|
|
9
|
+
export default List;
|
|
10
|
+
export { LIST_ITEM_ALIGNS, LIST_LAYOUTS, LIST_SIZES, type ListEmits, type ListGrid, type ListItemAlign, type ListItemEmits, type ListItemProps, type ListItemSlots, type ListLayout, type ListLocale, type ListProps, type ListSize, type ListSlots, } from './types';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
import { ListGrid } from './types';
|
|
3
|
+
export interface ListContextValue {
|
|
4
|
+
grid: ComputedRef<ListGrid | undefined>;
|
|
5
|
+
onClick: (event: MouseEvent) => void;
|
|
6
|
+
onRightClick: (event: MouseEvent) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const listContextKey: InjectionKey<ListContextValue>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { ColProps, RowProps } from '../grid';
|
|
3
|
+
export declare const LIST_LAYOUTS: readonly ["vertical", "horizontal"];
|
|
4
|
+
export declare const LIST_SIZES: readonly ["small", "default", "large"];
|
|
5
|
+
export declare const LIST_ITEM_ALIGNS: readonly ["flex-start", "flex-end", "center", "baseline", "stretch"];
|
|
6
|
+
export type ListLayout = (typeof LIST_LAYOUTS)[number];
|
|
7
|
+
export type ListSize = (typeof LIST_SIZES)[number];
|
|
8
|
+
export type ListItemAlign = (typeof LIST_ITEM_ALIGNS)[number];
|
|
9
|
+
export interface ListGrid extends Omit<RowProps, 'prefixCls'>, Omit<ColProps, 'prefixCls'> {
|
|
10
|
+
}
|
|
11
|
+
export interface ListProps<T = unknown> {
|
|
12
|
+
bordered?: boolean;
|
|
13
|
+
class?: HTMLAttributes['class'];
|
|
14
|
+
className?: HTMLAttributes['class'];
|
|
15
|
+
dataSource?: readonly T[];
|
|
16
|
+
emptyContent?: VNodeChild;
|
|
17
|
+
footer?: VNodeChild;
|
|
18
|
+
grid?: ListGrid;
|
|
19
|
+
header?: VNodeChild;
|
|
20
|
+
layout?: ListLayout;
|
|
21
|
+
loading?: boolean;
|
|
22
|
+
loadMore?: VNodeChild;
|
|
23
|
+
renderItem?: (item: T, index: number) => VNodeChild;
|
|
24
|
+
size?: ListSize;
|
|
25
|
+
split?: boolean;
|
|
26
|
+
style?: StyleValue;
|
|
27
|
+
}
|
|
28
|
+
export interface ListSlots<T = unknown> {
|
|
29
|
+
default?: () => VNodeChild;
|
|
30
|
+
emptyContent?: () => VNodeChild;
|
|
31
|
+
footer?: () => VNodeChild;
|
|
32
|
+
header?: () => VNodeChild;
|
|
33
|
+
item?: (props: {
|
|
34
|
+
item: T;
|
|
35
|
+
index: number;
|
|
36
|
+
}) => VNodeChild;
|
|
37
|
+
loadMore?: () => VNodeChild;
|
|
38
|
+
}
|
|
39
|
+
export interface ListEmits {
|
|
40
|
+
(event: 'click', mouseEvent: MouseEvent): void;
|
|
41
|
+
(event: 'rightClick', mouseEvent: MouseEvent): void;
|
|
42
|
+
}
|
|
43
|
+
export interface ListItemProps {
|
|
44
|
+
align?: ListItemAlign;
|
|
45
|
+
class?: HTMLAttributes['class'];
|
|
46
|
+
className?: HTMLAttributes['class'];
|
|
47
|
+
extra?: VNodeChild;
|
|
48
|
+
header?: VNodeChild;
|
|
49
|
+
main?: VNodeChild;
|
|
50
|
+
style?: StyleValue;
|
|
51
|
+
}
|
|
52
|
+
export interface ListItemSlots {
|
|
53
|
+
default?: () => VNodeChild;
|
|
54
|
+
extra?: () => VNodeChild;
|
|
55
|
+
header?: () => VNodeChild;
|
|
56
|
+
main?: () => VNodeChild;
|
|
57
|
+
}
|
|
58
|
+
export interface ListItemEmits {
|
|
59
|
+
(event: 'click', mouseEvent: MouseEvent): void;
|
|
60
|
+
(event: 'rightClick', mouseEvent: MouseEvent): void;
|
|
61
|
+
(event: 'mouseEnter', mouseEvent: MouseEvent): void;
|
|
62
|
+
(event: 'mouseLeave', mouseEvent: MouseEvent): void;
|
|
63
|
+
}
|
|
64
|
+
export interface ListLocale {
|
|
65
|
+
emptyText: string;
|
|
66
|
+
}
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { t as e } from "./config-context-CyynTtDb.js";
|
|
2
|
+
import { o as t } from "./config-provider-VMfNNSF1.js";
|
|
3
|
+
import { n, t as r } from "./grid-Cn2uBhRd.js";
|
|
4
|
+
import { Comment as i, Fragment as a, Text as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, inject as g, isVNode as _, mergeProps as v, normalizeClass as y, normalizeProps as b, openBlock as x, provide as S, renderList as C, renderSlot as w, toDisplayString as T, unref as E, useAttrs as D, useId as O, useSlots as k, withCtx as A } from "vue";
|
|
5
|
+
//#region src/list/ListNodeRenderer.ts
|
|
6
|
+
var j = m({
|
|
7
|
+
name: "ListNodeRenderer",
|
|
8
|
+
props: { content: {
|
|
9
|
+
type: null,
|
|
10
|
+
default: void 0
|
|
11
|
+
} },
|
|
12
|
+
setup: (e) => () => e.content
|
|
13
|
+
}), M = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "semi-spin-wrapper"
|
|
16
|
+
}, N = {
|
|
17
|
+
width: "48",
|
|
18
|
+
height: "48",
|
|
19
|
+
viewBox: "0 0 36 36",
|
|
20
|
+
version: "1.1",
|
|
21
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22
|
+
"aria-hidden": "true",
|
|
23
|
+
"data-icon": "spin"
|
|
24
|
+
}, P = {
|
|
25
|
+
stroke: "none",
|
|
26
|
+
"stroke-width": "1",
|
|
27
|
+
fill: "none",
|
|
28
|
+
"fill-rule": "evenodd"
|
|
29
|
+
}, F = ["stroke"], I = {
|
|
30
|
+
class: "semi-spin-children",
|
|
31
|
+
"x-semi-prop": "children"
|
|
32
|
+
}, L = /* @__PURE__ */ m({
|
|
33
|
+
name: "ListSpin",
|
|
34
|
+
__name: "ListSpin",
|
|
35
|
+
props: { spinning: { type: Boolean } },
|
|
36
|
+
setup(e) {
|
|
37
|
+
let t = `linearGradient-semi-list-spin-${O()}`;
|
|
38
|
+
return (n, r) => (x(), u("div", { class: y(["semi-spin semi-spin-large semi-spin-block", { "semi-spin-hidden": !e.spinning }]) }, [e.spinning ? (x(), u("div", M, [(x(), u("svg", N, [d("defs", null, [d("linearGradient", {
|
|
39
|
+
id: t,
|
|
40
|
+
x1: "0%",
|
|
41
|
+
y1: "100%",
|
|
42
|
+
x2: "100%",
|
|
43
|
+
y2: "100%"
|
|
44
|
+
}, [...r[0] ||= [
|
|
45
|
+
d("stop", {
|
|
46
|
+
"stop-color": "currentColor",
|
|
47
|
+
"stop-opacity": "0",
|
|
48
|
+
offset: "0%"
|
|
49
|
+
}, null, -1),
|
|
50
|
+
d("stop", {
|
|
51
|
+
"stop-color": "currentColor",
|
|
52
|
+
"stop-opacity": "0.50",
|
|
53
|
+
offset: "39.9430698%"
|
|
54
|
+
}, null, -1),
|
|
55
|
+
d("stop", {
|
|
56
|
+
"stop-color": "currentColor",
|
|
57
|
+
offset: "100%"
|
|
58
|
+
}, null, -1)
|
|
59
|
+
]])]), d("g", P, [r[1] ||= d("rect", {
|
|
60
|
+
"fill-opacity": "0.01",
|
|
61
|
+
fill: "none",
|
|
62
|
+
x: "0",
|
|
63
|
+
y: "0",
|
|
64
|
+
width: "36",
|
|
65
|
+
height: "36"
|
|
66
|
+
}, null, -1), d("path", {
|
|
67
|
+
d: "M34,18 C34,9.163444 26.836556,2 18,2 C11.6597233,2 6.18078805,5.68784135 3.59122325,11.0354951",
|
|
68
|
+
stroke: `url(#${t})`,
|
|
69
|
+
"stroke-width": "4",
|
|
70
|
+
"stroke-linecap": "round"
|
|
71
|
+
}, null, 8, F)])]))])) : l("", !0), d("div", I, [w(n.$slots, "default")])], 2));
|
|
72
|
+
}
|
|
73
|
+
}), R = Symbol("semi-list-context"), z = {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: "semi-list-header",
|
|
76
|
+
"x-semi-prop": "header"
|
|
77
|
+
}, B = ["x-semi-prop"], V = {
|
|
78
|
+
key: 1,
|
|
79
|
+
class: "semi-list-items"
|
|
80
|
+
}, ee = ["x-semi-prop"], te = {
|
|
81
|
+
key: 1,
|
|
82
|
+
class: "semi-list-footer",
|
|
83
|
+
"x-semi-prop": "footer"
|
|
84
|
+
}, H = /* @__PURE__ */ m({
|
|
85
|
+
name: "List",
|
|
86
|
+
inheritAttrs: !1,
|
|
87
|
+
__name: "List",
|
|
88
|
+
props: {
|
|
89
|
+
bordered: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
class: { type: [
|
|
94
|
+
Boolean,
|
|
95
|
+
null,
|
|
96
|
+
String,
|
|
97
|
+
Object,
|
|
98
|
+
Array
|
|
99
|
+
] },
|
|
100
|
+
className: { type: [
|
|
101
|
+
Boolean,
|
|
102
|
+
null,
|
|
103
|
+
String,
|
|
104
|
+
Object,
|
|
105
|
+
Array
|
|
106
|
+
] },
|
|
107
|
+
dataSource: {},
|
|
108
|
+
emptyContent: { type: [
|
|
109
|
+
Object,
|
|
110
|
+
String,
|
|
111
|
+
Number,
|
|
112
|
+
Boolean,
|
|
113
|
+
null,
|
|
114
|
+
Array
|
|
115
|
+
] },
|
|
116
|
+
footer: { type: [
|
|
117
|
+
Object,
|
|
118
|
+
String,
|
|
119
|
+
Number,
|
|
120
|
+
Boolean,
|
|
121
|
+
null,
|
|
122
|
+
Array
|
|
123
|
+
] },
|
|
124
|
+
grid: {},
|
|
125
|
+
header: { type: [
|
|
126
|
+
Object,
|
|
127
|
+
String,
|
|
128
|
+
Number,
|
|
129
|
+
Boolean,
|
|
130
|
+
null,
|
|
131
|
+
Array
|
|
132
|
+
] },
|
|
133
|
+
layout: { default: "vertical" },
|
|
134
|
+
loading: {
|
|
135
|
+
type: Boolean,
|
|
136
|
+
default: !1
|
|
137
|
+
},
|
|
138
|
+
loadMore: { type: [
|
|
139
|
+
Object,
|
|
140
|
+
String,
|
|
141
|
+
Number,
|
|
142
|
+
Boolean,
|
|
143
|
+
null,
|
|
144
|
+
Array
|
|
145
|
+
] },
|
|
146
|
+
renderItem: {},
|
|
147
|
+
size: { default: "default" },
|
|
148
|
+
split: {
|
|
149
|
+
type: Boolean,
|
|
150
|
+
default: !0
|
|
151
|
+
},
|
|
152
|
+
style: { type: [
|
|
153
|
+
Boolean,
|
|
154
|
+
null,
|
|
155
|
+
String,
|
|
156
|
+
Object,
|
|
157
|
+
Array
|
|
158
|
+
] }
|
|
159
|
+
},
|
|
160
|
+
emits: ["click", "rightClick"],
|
|
161
|
+
setup(n, { emit: d }) {
|
|
162
|
+
let m = n, h = d, y = D(), w = k(), O = g(e, void 0), M = s(() => O?.value.locale ?? t);
|
|
163
|
+
S(R, {
|
|
164
|
+
grid: s(() => m.grid),
|
|
165
|
+
onClick: (e) => h("click", e),
|
|
166
|
+
onRightClick: (e) => h("rightClick", e)
|
|
167
|
+
});
|
|
168
|
+
function N(e) {
|
|
169
|
+
return Array.isArray(e) ? e.some(N) : e == null || e === !1 || e === !0 ? !1 : typeof e == "string" ? e.trim().length > 0 : _(e) ? e.type === i ? !1 : e.type === o ? String(e.children ?? "").trim().length > 0 : e.type !== a || N(e.children) : !0;
|
|
170
|
+
}
|
|
171
|
+
let P = s(() => w.default?.() ?? []), F = s(() => N(P.value)), I = s(() => m.dataSource?.length ? m.dataSource.map((e, t) => {
|
|
172
|
+
let n = w.item?.({
|
|
173
|
+
item: e,
|
|
174
|
+
index: t
|
|
175
|
+
}) ?? m.renderItem?.(e, t);
|
|
176
|
+
return {
|
|
177
|
+
content: n,
|
|
178
|
+
key: _(n) && n.key != null ? n.key : `list-item-${t}`
|
|
179
|
+
};
|
|
180
|
+
}) : []), H = s(() => !m.dataSource?.length && !F.value), U = s(() => w.header?.() ?? m.header), W = s(() => w.footer?.() ?? m.footer), G = s(() => w.loadMore?.() ?? m.loadMore), K = s(() => N(U.value)), q = s(() => N(W.value)), J = s(() => N(G.value)), Y = s(() => w.emptyContent?.() ?? m.emptyContent), X = s(() => N(Y.value)), Z = s(() => M.value.List?.emptyText ?? "暂无数据"), Q = s(() => {
|
|
181
|
+
let e = m.grid;
|
|
182
|
+
return e ? {
|
|
183
|
+
type: e.type ?? "flex",
|
|
184
|
+
...e.align === void 0 ? {} : { align: e.align },
|
|
185
|
+
...e.gutter === void 0 ? {} : { gutter: e.gutter },
|
|
186
|
+
...e.justify === void 0 ? {} : { justify: e.justify }
|
|
187
|
+
} : { type: "flex" };
|
|
188
|
+
}), $ = s(() => Object.fromEntries(Object.entries(y).filter(([e]) => e !== "class" && e !== "style")));
|
|
189
|
+
return (e, t) => (x(), u("div", v($.value, {
|
|
190
|
+
class: ["semi-list", [
|
|
191
|
+
E(y).class,
|
|
192
|
+
m.class,
|
|
193
|
+
m.className,
|
|
194
|
+
`semi-list-${m.size}`,
|
|
195
|
+
{
|
|
196
|
+
"semi-list-flex": m.layout === "horizontal",
|
|
197
|
+
"semi-list-grid": m.grid,
|
|
198
|
+
"semi-list-split": m.split,
|
|
199
|
+
"semi-list-bordered": m.bordered
|
|
200
|
+
}
|
|
201
|
+
]],
|
|
202
|
+
style: [E(y).style, m.style]
|
|
203
|
+
}), [
|
|
204
|
+
K.value ? (x(), u("div", z, [p(E(j), { content: U.value }, null, 8, ["content"])])) : l("", !0),
|
|
205
|
+
p(L, { spinning: m.loading }, {
|
|
206
|
+
default: A(() => [m.grid ? (x(), c(E(r), b(v({ key: 0 }, Q.value)), {
|
|
207
|
+
default: A(() => [
|
|
208
|
+
(x(!0), u(a, null, C(I.value, (e) => (x(), c(E(j), {
|
|
209
|
+
key: e.key,
|
|
210
|
+
content: e.content
|
|
211
|
+
}, null, 8, ["content"]))), 128)),
|
|
212
|
+
H.value ? (x(), u("div", {
|
|
213
|
+
key: 0,
|
|
214
|
+
class: "semi-list-empty",
|
|
215
|
+
"x-semi-prop": X.value ? "emptyContent" : void 0
|
|
216
|
+
}, [X.value ? (x(), c(E(j), {
|
|
217
|
+
key: 0,
|
|
218
|
+
content: Y.value
|
|
219
|
+
}, null, 8, ["content"])) : (x(), u(a, { key: 1 }, [f(T(Z.value), 1)], 64))], 8, B)) : l("", !0),
|
|
220
|
+
p(E(j), { content: P.value }, null, 8, ["content"])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 16)) : (x(), u("ul", V, [
|
|
224
|
+
(x(!0), u(a, null, C(I.value, (e) => (x(), c(E(j), {
|
|
225
|
+
key: e.key,
|
|
226
|
+
content: e.content
|
|
227
|
+
}, null, 8, ["content"]))), 128)),
|
|
228
|
+
H.value ? (x(), u("div", {
|
|
229
|
+
key: 0,
|
|
230
|
+
class: "semi-list-empty",
|
|
231
|
+
"x-semi-prop": X.value ? "emptyContent" : void 0
|
|
232
|
+
}, [X.value ? (x(), c(E(j), {
|
|
233
|
+
key: 0,
|
|
234
|
+
content: Y.value
|
|
235
|
+
}, null, 8, ["content"])) : (x(), u(a, { key: 1 }, [f(T(Z.value), 1)], 64))], 8, ee)) : l("", !0),
|
|
236
|
+
p(E(j), { content: P.value }, null, 8, ["content"])
|
|
237
|
+
]))]),
|
|
238
|
+
_: 1
|
|
239
|
+
}, 8, ["spinning"]),
|
|
240
|
+
q.value ? (x(), u("div", te, [p(E(j), { content: W.value }, null, 8, ["content"])])) : l("", !0),
|
|
241
|
+
J.value ? (x(), c(E(j), {
|
|
242
|
+
key: 2,
|
|
243
|
+
content: G.value
|
|
244
|
+
}, null, 8, ["content"])) : l("", !0)
|
|
245
|
+
], 16));
|
|
246
|
+
}
|
|
247
|
+
}), U = {
|
|
248
|
+
key: 0,
|
|
249
|
+
class: "semi-list-item-body-header"
|
|
250
|
+
}, W = {
|
|
251
|
+
key: 1,
|
|
252
|
+
class: "semi-list-item-body-main"
|
|
253
|
+
}, G = {
|
|
254
|
+
key: 1,
|
|
255
|
+
class: "semi-list-item-extra"
|
|
256
|
+
}, K = {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "semi-list-item-body-header"
|
|
259
|
+
}, q = {
|
|
260
|
+
key: 1,
|
|
261
|
+
class: "semi-list-item-body-main"
|
|
262
|
+
}, J = {
|
|
263
|
+
key: 1,
|
|
264
|
+
class: "semi-list-item-extra"
|
|
265
|
+
}, Y = /* @__PURE__ */ m({
|
|
266
|
+
name: "ListItem",
|
|
267
|
+
inheritAttrs: !1,
|
|
268
|
+
__name: "ListItem",
|
|
269
|
+
props: {
|
|
270
|
+
align: {
|
|
271
|
+
type: String,
|
|
272
|
+
default: "flex-start"
|
|
273
|
+
},
|
|
274
|
+
class: {
|
|
275
|
+
type: null,
|
|
276
|
+
default: void 0
|
|
277
|
+
},
|
|
278
|
+
className: {
|
|
279
|
+
type: null,
|
|
280
|
+
default: void 0
|
|
281
|
+
},
|
|
282
|
+
extra: {
|
|
283
|
+
type: null,
|
|
284
|
+
default: void 0
|
|
285
|
+
},
|
|
286
|
+
header: {
|
|
287
|
+
type: null,
|
|
288
|
+
default: void 0
|
|
289
|
+
},
|
|
290
|
+
main: {
|
|
291
|
+
type: null,
|
|
292
|
+
default: void 0
|
|
293
|
+
},
|
|
294
|
+
style: {
|
|
295
|
+
type: null,
|
|
296
|
+
default: void 0
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
emits: [
|
|
300
|
+
"click",
|
|
301
|
+
"rightClick",
|
|
302
|
+
"mouseEnter",
|
|
303
|
+
"mouseLeave"
|
|
304
|
+
],
|
|
305
|
+
setup(e, { emit: t }) {
|
|
306
|
+
let r = e, i = t, a = D(), o = k(), f = h(), m = g(R, void 0), _ = [
|
|
307
|
+
"span",
|
|
308
|
+
"order",
|
|
309
|
+
"offset",
|
|
310
|
+
"push",
|
|
311
|
+
"pull",
|
|
312
|
+
"xs",
|
|
313
|
+
"sm",
|
|
314
|
+
"md",
|
|
315
|
+
"lg",
|
|
316
|
+
"xl",
|
|
317
|
+
"xxl"
|
|
318
|
+
], S = s(() => o.header?.() ?? r.header), C = s(() => o.main?.() ?? r.main), T = s(() => o.extra?.() ?? r.extra), O = s(() => S.value != null || C.value != null), M = s(() => m?.grid.value), N = s(() => {
|
|
319
|
+
let e = M.value;
|
|
320
|
+
if (!e) return {};
|
|
321
|
+
let t = {};
|
|
322
|
+
for (let n of _) e[n] !== void 0 && Object.assign(t, { [n]: e[n] });
|
|
323
|
+
return t;
|
|
324
|
+
}), P = s(() => Object.fromEntries(Object.entries(a).filter(([e]) => e !== "class" && e !== "style")));
|
|
325
|
+
function F(e) {
|
|
326
|
+
return !!(f?.vnode.props && Object.prototype.hasOwnProperty.call(f.vnode.props, e));
|
|
327
|
+
}
|
|
328
|
+
function I(e) {
|
|
329
|
+
F("onClick") ? i("click", e) : m?.onClick(e);
|
|
330
|
+
}
|
|
331
|
+
function L(e) {
|
|
332
|
+
F("onRightClick") ? i("rightClick", e) : m?.onRightClick(e);
|
|
333
|
+
}
|
|
334
|
+
return (t, o) => M.value ? (x(), c(E(n), b(v({ key: 0 }, N.value)), {
|
|
335
|
+
default: A(() => [d("li", v(P.value, {
|
|
336
|
+
class: ["semi-list-item", [
|
|
337
|
+
E(a).class,
|
|
338
|
+
r.class,
|
|
339
|
+
r.className
|
|
340
|
+
]],
|
|
341
|
+
style: [E(a).style, r.style],
|
|
342
|
+
onClick: I,
|
|
343
|
+
onContextmenu: L,
|
|
344
|
+
onMouseenter: o[0] ||= (e) => i("mouseEnter", e),
|
|
345
|
+
onMouseleave: o[1] ||= (e) => i("mouseLeave", e)
|
|
346
|
+
}), [
|
|
347
|
+
O.value ? (x(), u("div", {
|
|
348
|
+
key: 0,
|
|
349
|
+
class: y(["semi-list-item-body", `semi-list-item-body-${e.align}`])
|
|
350
|
+
}, [S.value == null ? l("", !0) : (x(), u("div", U, [p(E(j), { content: S.value }, null, 8, ["content"])])), C.value == null ? l("", !0) : (x(), u("div", W, [p(E(j), { content: C.value }, null, 8, ["content"])]))], 2)) : l("", !0),
|
|
351
|
+
w(t.$slots, "default"),
|
|
352
|
+
T.value == null ? l("", !0) : (x(), u("div", G, [p(E(j), { content: T.value }, null, 8, ["content"])]))
|
|
353
|
+
], 16)]),
|
|
354
|
+
_: 3
|
|
355
|
+
}, 16)) : (x(), u("li", v({ key: 1 }, P.value, {
|
|
356
|
+
class: ["semi-list-item", [
|
|
357
|
+
E(a).class,
|
|
358
|
+
r.class,
|
|
359
|
+
r.className
|
|
360
|
+
]],
|
|
361
|
+
style: [E(a).style, r.style],
|
|
362
|
+
onClick: I,
|
|
363
|
+
onContextmenu: L,
|
|
364
|
+
onMouseenter: o[2] ||= (e) => i("mouseEnter", e),
|
|
365
|
+
onMouseleave: o[3] ||= (e) => i("mouseLeave", e)
|
|
366
|
+
}), [
|
|
367
|
+
O.value ? (x(), u("div", {
|
|
368
|
+
key: 0,
|
|
369
|
+
class: y(["semi-list-item-body", `semi-list-item-body-${e.align}`])
|
|
370
|
+
}, [S.value == null ? l("", !0) : (x(), u("div", K, [p(E(j), { content: S.value }, null, 8, ["content"])])), C.value == null ? l("", !0) : (x(), u("div", q, [p(E(j), { content: C.value }, null, 8, ["content"])]))], 2)) : l("", !0),
|
|
371
|
+
w(t.$slots, "default"),
|
|
372
|
+
T.value == null ? l("", !0) : (x(), u("div", J, [p(E(j), { content: T.value }, null, 8, ["content"])]))
|
|
373
|
+
], 16));
|
|
374
|
+
}
|
|
375
|
+
}), X = ["vertical", "horizontal"], Z = [
|
|
376
|
+
"small",
|
|
377
|
+
"default",
|
|
378
|
+
"large"
|
|
379
|
+
], Q = [
|
|
380
|
+
"flex-start",
|
|
381
|
+
"flex-end",
|
|
382
|
+
"center",
|
|
383
|
+
"baseline",
|
|
384
|
+
"stretch"
|
|
385
|
+
], $ = Y, ne = Object.assign(H, { Item: $ });
|
|
386
|
+
//#endregion
|
|
387
|
+
export { Z as a, X as i, $ as n, Q as r, ne as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModalConfirmProps } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
config: ModalConfirmProps;
|
|
4
|
+
visible: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
|
+
"update:visible": (visible: boolean) => any;
|
|
8
|
+
closed: () => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
10
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
11
|
+
onClosed?: () => any;
|
|
12
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ModalProps, ModalSlots } from './types';
|
|
2
|
+
type __VLS_Slots = ModalSlots;
|
|
3
|
+
declare const __VLS_base: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
|
+
"update:visible": (visible: boolean) => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
|
|
6
|
+
"onUpdate:visible"?: (visible: boolean) => any;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
|
+
declare const _default: typeof __VLS_export;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
12
|
+
new (): {
|
|
13
|
+
$slots: S;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ModalButtonProps, ModalLocale } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
cancelButtonProps?: ModalButtonProps | undefined;
|
|
4
|
+
cancelLoading: boolean;
|
|
5
|
+
cancelText?: string | undefined;
|
|
6
|
+
footerFill: boolean;
|
|
7
|
+
hasCancel: boolean;
|
|
8
|
+
locale: ModalLocale;
|
|
9
|
+
okButtonProps?: ModalButtonProps | undefined;
|
|
10
|
+
okLoading: boolean;
|
|
11
|
+
okText?: string | undefined;
|
|
12
|
+
okType: 'primary' | 'secondary' | 'tertiary' | 'warning' | 'danger';
|
|
13
|
+
}
|
|
14
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
cancel: (event: MouseEvent) => any;
|
|
16
|
+
ok: (event: MouseEvent) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onCancel?: (event: MouseEvent) => any;
|
|
19
|
+
onOk?: (event: MouseEvent) => any;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: typeof __VLS_export;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { StyleValue, HTMLAttributes, VNodeChild } from 'vue';
|
|
2
|
+
import { ConfigDirection } from '../config-provider';
|
|
3
|
+
import { ModalSize } from './types';
|
|
4
|
+
interface Props {
|
|
5
|
+
body: VNodeChild;
|
|
6
|
+
bodyStyle?: StyleValue | undefined;
|
|
7
|
+
centered: boolean;
|
|
8
|
+
class?: HTMLAttributes['class'];
|
|
9
|
+
closable: boolean;
|
|
10
|
+
closeIcon: VNodeChild;
|
|
11
|
+
closeOnEsc: boolean;
|
|
12
|
+
contentClass: HTMLAttributes['class'];
|
|
13
|
+
customContainer: boolean;
|
|
14
|
+
dataAttrs: Record<string, unknown>;
|
|
15
|
+
direction: ConfigDirection;
|
|
16
|
+
footer: VNodeChild;
|
|
17
|
+
fullScreen: boolean;
|
|
18
|
+
header: VNodeChild;
|
|
19
|
+
headerProvided: boolean;
|
|
20
|
+
height?: string | number | undefined;
|
|
21
|
+
hidden: boolean;
|
|
22
|
+
icon: VNodeChild;
|
|
23
|
+
mask: boolean;
|
|
24
|
+
maskClass: HTMLAttributes['class'];
|
|
25
|
+
maskClosable: boolean;
|
|
26
|
+
maskFixed: boolean;
|
|
27
|
+
maskStyle?: StyleValue | undefined;
|
|
28
|
+
modalRender?: ((dialog: VNodeChild) => VNodeChild) | undefined;
|
|
29
|
+
outerStyle?: StyleValue | undefined;
|
|
30
|
+
preventScroll: boolean;
|
|
31
|
+
size: ModalSize;
|
|
32
|
+
title: VNodeChild;
|
|
33
|
+
visible: boolean;
|
|
34
|
+
width?: string | number | undefined;
|
|
35
|
+
}
|
|
36
|
+
export interface ModalDialogExposed {
|
|
37
|
+
activate: () => Promise<void>;
|
|
38
|
+
deactivate: () => void;
|
|
39
|
+
}
|
|
40
|
+
declare function activate(): Promise<void>;
|
|
41
|
+
declare function deactivate(): void;
|
|
42
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
43
|
+
activate: typeof activate;
|
|
44
|
+
deactivate: typeof deactivate;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
46
|
+
close: (event: MouseEvent | KeyboardEvent) => any;
|
|
47
|
+
animationEnd: (event: AnimationEvent) => any;
|
|
48
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
49
|
+
onClose?: (event: MouseEvent | KeyboardEvent) => any;
|
|
50
|
+
onAnimationEnd?: (event: AnimationEvent) => any;
|
|
51
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
52
|
+
declare const _default: typeof __VLS_export;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HTMLAttributes, StyleValue, VNodeChild } from 'vue';
|
|
2
|
+
import { ModalSize } from './types';
|
|
3
|
+
export interface ModalInnerContentExposed {
|
|
4
|
+
element: HTMLDivElement | null;
|
|
5
|
+
}
|
|
6
|
+
interface Props {
|
|
7
|
+
body: VNodeChild;
|
|
8
|
+
bodyStyle?: StyleValue | undefined;
|
|
9
|
+
centered: boolean;
|
|
10
|
+
closable: boolean;
|
|
11
|
+
closeIcon: VNodeChild;
|
|
12
|
+
contentClass: HTMLAttributes['class'];
|
|
13
|
+
dialogId: string;
|
|
14
|
+
footer: VNodeChild;
|
|
15
|
+
fullScreen: boolean;
|
|
16
|
+
header: VNodeChild;
|
|
17
|
+
headerProvided: boolean;
|
|
18
|
+
height?: string | number | undefined;
|
|
19
|
+
icon: VNodeChild;
|
|
20
|
+
outerStyle?: StyleValue | undefined;
|
|
21
|
+
outerClass?: HTMLAttributes['class'];
|
|
22
|
+
size: ModalSize;
|
|
23
|
+
title: VNodeChild;
|
|
24
|
+
width?: string | number | undefined;
|
|
25
|
+
}
|
|
26
|
+
declare const __VLS_export: import('vue').DefineComponent<Props, {
|
|
27
|
+
element: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
|
|
28
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
+
close: (event: MouseEvent) => any;
|
|
30
|
+
mousedown: (event: MouseEvent) => any;
|
|
31
|
+
animationEnd: (event: AnimationEvent) => any;
|
|
32
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
33
|
+
onClose?: (event: MouseEvent) => any;
|
|
34
|
+
onMousedown?: (event: MouseEvent) => any;
|
|
35
|
+
onAnimationEnd?: (event: AnimationEvent) => any;
|
|
36
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
|
+
declare const _default: typeof __VLS_export;
|
|
38
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
content: {
|
|
4
|
+
type: PropType<VNodeChild>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
}>, () => VNodeChild, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
content: {
|
|
9
|
+
type: PropType<VNodeChild>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
}>> & Readonly<{}>, {
|
|
13
|
+
content: VNodeChild;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ModalHandle, ModalProps } from './types';
|
|
2
|
+
export declare const imperativeMethods: {
|
|
3
|
+
confirm: (config: ModalProps) => ModalHandle;
|
|
4
|
+
error: (config: ModalProps) => ModalHandle;
|
|
5
|
+
info: (config: ModalProps) => ModalHandle;
|
|
6
|
+
success: (config: ModalProps) => ModalHandle;
|
|
7
|
+
warning: (config: ModalProps) => ModalHandle;
|
|
8
|
+
};
|
|
9
|
+
export declare function destroyAll(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as ModalBase } from './Modal.vue';
|
|
2
|
+
import { useModal } from './use-modal';
|
|
3
|
+
import { ModalStaticMethods } from './types';
|
|
4
|
+
export type ModalComponent = typeof ModalBase & ModalStaticMethods;
|
|
5
|
+
export declare const Modal: ModalComponent;
|
|
6
|
+
export default Modal;
|
|
7
|
+
export { useModal };
|
|
8
|
+
export { MODAL_CONFIRM_TYPES, MODAL_SIZES, type ModalActionHandler, type ModalButtonProps, type ModalConfirmProps, type ModalConfirmType, type ModalEmits, type ModalHandle, type ModalLocale, type ModalMethod, type ModalMethods, type ModalProps, type ModalSize, type ModalSlots, type ModalStaticMethods, type ModalUseModalResult, } from './types';
|