kui-vue 6.3.0 → 6.4.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/ai/kui-components.json +376 -7
- package/dist/index.js +2 -2
- package/es/index.js +1008 -479
- package/es/locale/de.js +2 -3
- package/es/locale/el.js +2 -3
- package/es/locale/en.js +2 -3
- package/es/locale/fr.js +2 -3
- package/es/locale/it.js +2 -3
- package/es/locale/ja.js +2 -3
- package/es/locale/ko.js +2 -3
- package/es/locale/ru.js +2 -3
- package/es/locale/th.js +2 -3
- package/es/locale/uk.js +2 -3
- package/es/locale/vi.js +2 -3
- package/es/locale/zh-CN.js +2 -3
- package/es/locale/zh-TW.js +2 -3
- package/lib/index.cjs +2 -2
- package/lib/locale/de.cjs +1 -1
- package/lib/locale/el.cjs +1 -1
- package/lib/locale/en.cjs +1 -1
- package/lib/locale/fr.cjs +1 -1
- package/lib/locale/it.cjs +1 -1
- package/lib/locale/ja.cjs +1 -1
- package/lib/locale/ko.cjs +1 -1
- package/lib/locale/ru.cjs +1 -1
- package/lib/locale/th.cjs +1 -1
- package/lib/locale/uk.cjs +1 -1
- package/lib/locale/vi.cjs +1 -1
- package/lib/locale/zh-CN.cjs +1 -1
- package/lib/locale/zh-TW.cjs +1 -1
- package/package.json +24 -24
- package/style/base.css +1 -1
- package/style/components.css +2 -2
- package/style/index.css +2 -2
- package/style/motion.css +1 -1
- package/style/theme.css +1 -1
- package/types/affix/index.d.cts +42 -0
- package/types/alert/index.d.cts +84 -0
- package/types/alert/index.d.ts +2 -2
- package/types/anchor/anchor-link.d.cts +23 -0
- package/types/anchor/anchor.d.cts +58 -0
- package/types/anchor/anchor.d.ts +1 -1
- package/types/anchor/context.d.cts +8 -0
- package/types/anchor/index.d.cts +5 -0
- package/types/anchor/index.d.ts +4 -4
- package/types/auto-complete/index.d.cts +181 -0
- package/types/auto-complete/index.d.ts +1 -1
- package/types/avatar/avatar-group.d.cts +42 -0
- package/types/avatar/avatar-group.d.ts +1 -1
- package/types/avatar/avatar.d.cts +49 -0
- package/types/avatar/avatar.d.ts +2 -2
- package/types/avatar/context.d.cts +8 -0
- package/types/avatar/index.d.cts +5 -0
- package/types/avatar/index.d.ts +4 -4
- package/types/back-top/index.d.cts +60 -0
- package/types/badge/index.d.cts +45 -0
- package/types/badge/index.d.ts +2 -2
- package/types/base/transition.d.cts +3 -0
- package/types/breadcrumb/breadcrumb-item.d.cts +25 -0
- package/types/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/types/breadcrumb/breadcrumb.d.cts +22 -0
- package/types/breadcrumb/index.d.cts +5 -0
- package/types/breadcrumb/index.d.ts +4 -4
- package/types/button/button-group.d.cts +21 -0
- package/types/button/button-group.d.ts +1 -1
- package/types/button/button.d.cts +38 -0
- package/types/button/button.d.ts +2 -2
- package/types/button/index.d.cts +5 -0
- package/types/button/index.d.ts +4 -4
- package/types/calendar/index.d.cts +93 -0
- package/types/card/card-meta.d.cts +17 -0
- package/types/card/index.d.cts +76 -0
- package/types/card/index.d.ts +4 -4
- package/types/carousel/carousel-item.d.cts +2 -0
- package/types/carousel/carousel.d.cts +116 -0
- package/types/carousel/carousel.d.ts +1 -1
- package/types/carousel/drag.d.cts +19 -0
- package/types/carousel/index.d.cts +4 -0
- package/types/carousel/index.d.ts +3 -3
- package/types/cascader/index.d.cts +151 -0
- package/types/cascader/index.d.ts +23 -23
- package/types/cascader/types.d.cts +76 -0
- package/types/cascader/types.d.ts +2 -2
- package/types/check-card/check-card-group.d.cts +80 -0
- package/types/check-card/check-card-group.d.ts +2 -2
- package/types/check-card/check-card.d.cts +113 -0
- package/types/check-card/check-card.d.ts +3 -3
- package/types/check-card/context.d.cts +20 -0
- package/types/check-card/context.d.ts +2 -2
- package/types/check-card/index.d.cts +7 -0
- package/types/check-card/index.d.ts +5 -5
- package/types/check-card/types.d.cts +22 -0
- package/types/check-card/types.d.ts +2 -2
- package/types/checkbox/checkbox-group.d.cts +87 -0
- package/types/checkbox/checkbox-group.d.ts +2 -2
- package/types/checkbox/checkbox.d.cts +68 -0
- package/types/checkbox/checkbox.d.ts +2 -2
- package/types/checkbox/index.d.cts +7 -0
- package/types/checkbox/index.d.ts +5 -5
- package/types/checkbox/types.d.cts +12 -0
- package/types/collapse/collapse-panel.d.cts +21 -0
- package/types/collapse/collapse-panel.d.ts +1 -1
- package/types/collapse/collapse.d.cts +62 -0
- package/types/collapse/collapse.d.ts +2 -2
- package/types/collapse/context.d.cts +7 -0
- package/types/collapse/index.d.cts +6 -0
- package/types/collapse/index.d.ts +4 -4
- package/types/color-picker/alpha.d.cts +22 -0
- package/types/color-picker/hue.d.cts +21 -0
- package/types/color-picker/index.d.cts +233 -0
- package/types/color-picker/index.d.ts +9 -4
- package/types/color-picker/mode.d.cts +28 -0
- package/types/color-picker/mode.d.ts +2 -2
- package/types/color-picker/paint.d.cts +40 -0
- package/types/color-picker/presets.d.cts +22 -0
- package/types/color-picker/types.d.cts +1 -0
- package/types/components.d.cts +169 -0
- package/types/components.d.ts +169 -166
- package/types/config/context.d.cts +128 -0
- package/types/config/context.d.ts +1 -1
- package/types/config/index.d.cts +38 -0
- package/types/config/index.d.ts +2 -2
- package/types/config/popup-host.d.cts +6 -0
- package/types/config/popup.d.cts +4 -0
- package/types/const/types.d.cts +39 -0
- package/types/const/types.d.ts +1 -1
- package/types/const/var.d.cts +6 -0
- package/types/date-picker/index.d.cts +334 -0
- package/types/date-picker/index.d.ts +3 -3
- package/types/descriptions/descriptions-item.d.cts +28 -0
- package/types/descriptions/descriptions-item.d.ts +1 -1
- package/types/descriptions/descriptions.d.cts +69 -0
- package/types/descriptions/descriptions.d.ts +1 -1
- package/types/descriptions/index.d.cts +6 -0
- package/types/descriptions/index.d.ts +4 -4
- package/types/directives/outsiteclick.d.cts +2 -0
- package/types/directives/resize.d.cts +3 -0
- package/types/directives/scroll.d.cts +2 -0
- package/types/divider/index.d.cts +42 -0
- package/types/divider/index.d.ts +1 -1
- package/types/drawer/index.d.cts +197 -0
- package/types/drawer/index.d.ts +1 -1
- package/types/dropdown/dropdown-button.d.cts +65 -0
- package/types/dropdown/dropdown-button.d.ts +2 -2
- package/types/dropdown/dropdown-context.d.cts +16 -0
- package/types/dropdown/dropdown.d.cts +80 -0
- package/types/dropdown/dropdown.d.ts +1 -1
- package/types/dropdown/index.d.cts +6 -0
- package/types/dropdown/index.d.ts +4 -4
- package/types/dropdown/trigger.d.cts +13 -0
- package/types/dropdown/trigger.d.ts +2 -2
- package/types/empty/index.d.cts +12 -0
- package/types/feature-card/index.d.cts +101 -0
- package/types/feature-card/index.d.ts +2 -2
- package/types/feedback-panel/feedback-panel.d.cts +64 -0
- package/types/feedback-panel/feedback-panel.d.ts +3 -3
- package/types/feedback-panel/index.d.cts +4 -0
- package/types/feedback-panel/index.d.ts +3 -3
- package/types/flame-wrap/engine.d.cts +83 -0
- package/types/flame-wrap/index.d.cts +81 -0
- package/types/flame-wrap/index.d.ts +1 -1
- package/types/flex/index.d.cts +44 -0
- package/types/flex/index.d.ts +3 -3
- package/types/flex/types.d.cts +4 -0
- package/types/flex/types.d.ts +1 -1
- package/types/form/context.d.cts +68 -0
- package/types/form/context.d.ts +2 -2
- package/types/form/form-item.d.cts +39 -0
- package/types/form/form-item.d.ts +2 -2
- package/types/form/form.d.cts +87 -0
- package/types/form/form.d.ts +2 -2
- package/types/form/index.d.cts +8 -0
- package/types/form/index.d.ts +6 -6
- package/types/form/types.d.cts +27 -0
- package/types/global.d.cts +532 -0
- package/types/global.d.ts +16 -0
- package/types/gradient-picker/corners.d.cts +39 -0
- package/types/gradient-picker/corners.d.ts +39 -0
- package/types/gradient-picker/index.d.cts +87 -0
- package/types/gradient-picker/index.d.ts +87 -0
- package/types/gradient-picker/stops.d.cts +39 -0
- package/types/gradient-picker/stops.d.ts +39 -0
- package/types/gradient-picker/types.d.cts +34 -0
- package/types/gradient-picker/types.d.ts +34 -0
- package/types/grid/grid-item.d.cts +25 -0
- package/types/grid/grid-item.d.ts +1 -1
- package/types/grid/grid.d.cts +44 -0
- package/types/grid/grid.d.ts +2 -2
- package/types/grid/index.d.cts +6 -0
- package/types/grid/index.d.ts +5 -5
- package/types/grid/useBreakpoint.d.cts +9 -0
- package/types/icon/index.d.cts +62 -0
- package/types/icon/index.d.ts +3 -3
- package/types/icon/types.d.cts +4 -0
- package/types/image/context.d.cts +9 -0
- package/types/image/context.d.ts +1 -1
- package/types/image/group.d.cts +11 -0
- package/types/image/image.d.cts +73 -0
- package/types/image/image.d.ts +2 -2
- package/types/image/index.d.cts +6 -0
- package/types/image/index.d.ts +5 -5
- package/types/image/instance.d.cts +17 -0
- package/types/image/instance.d.ts +1 -1
- package/types/image/preview.d.cts +47 -0
- package/types/image/preview.d.ts +1 -1
- package/types/image/utils.d.cts +6 -0
- package/types/index.d.cts +1 -1
- package/types/index.d.ts +1 -1
- package/types/input/index.d.cts +8 -0
- package/types/input/index.d.ts +6 -6
- package/types/input/input-base.d.cts +186 -0
- package/types/input/input-base.d.ts +2 -2
- package/types/input/input-box.d.cts +47 -0
- package/types/input/input-box.d.ts +1 -1
- package/types/input/input-group.d.cts +54 -0
- package/types/input/input-group.d.ts +1 -1
- package/types/input/input.d.cts +114 -0
- package/types/input/input.d.ts +19 -19
- package/types/input/textarea.d.cts +81 -0
- package/types/input/textarea.d.ts +1 -1
- package/types/input-number/drag.d.cts +9 -0
- package/types/input-number/drag.d.ts +9 -0
- package/types/input-number/index.d.cts +193 -0
- package/types/input-number/index.d.ts +15 -2
- package/types/input-otp/index.d.cts +4 -0
- package/types/input-otp/index.d.ts +3 -3
- package/types/input-otp/input-otp.d.cts +113 -0
- package/types/input-otp/input-otp.d.ts +3 -3
- package/types/input-otp/types.d.cts +1 -0
- package/types/input-tag/index.d.cts +118 -0
- package/types/input-tag/index.d.ts +1 -1
- package/types/kanban/index.d.cts +124 -0
- package/types/kanban/index.d.ts +1 -1
- package/types/layout/index.d.cts +136 -0
- package/types/layout/index.d.ts +1 -1
- package/types/list-panel/index.d.cts +79 -0
- package/types/list-panel/index.d.ts +3 -3
- package/types/loading/index.d.cts +11 -0
- package/types/mentions/index.d.cts +167 -0
- package/types/mentions/index.d.ts +1 -1
- package/types/menu/index.d.cts +8 -0
- package/types/menu/index.d.ts +6 -6
- package/types/menu/menu-context.d.cts +23 -0
- package/types/menu/menu-context.d.ts +1 -1
- package/types/menu/menu-divider.d.cts +2 -0
- package/types/menu/menu-group.d.cts +11 -0
- package/types/menu/menu-item.d.cts +23 -0
- package/types/menu/menu-item.d.ts +2 -2
- package/types/menu/menu-keyboard.d.cts +30 -0
- package/types/menu/menu.d.cts +99 -0
- package/types/menu/menu.d.ts +3 -3
- package/types/menu/recursive-menu.d.cts +14 -0
- package/types/menu/recursive-menu.d.ts +1 -1
- package/types/menu/sub-menu.d.cts +19 -0
- package/types/menu/sub-menu.d.ts +2 -2
- package/types/menu/types.d.cts +14 -0
- package/types/menu/types.d.ts +1 -1
- package/types/message/index.d.cts +26 -0
- package/types/message/index.d.ts +2 -2
- package/types/modal/index.d.cts +38 -0
- package/types/modal/index.d.ts +3 -3
- package/types/modal/modal.d.cts +178 -0
- package/types/modal/modal.d.ts +2 -2
- package/types/modal/toast.d.cts +37 -0
- package/types/modal/toast.d.ts +2 -2
- package/types/notice/container.d.cts +6 -0
- package/types/notice/content.d.cts +64 -0
- package/types/notice/content.d.ts +3 -3
- package/types/notice/index.d.cts +24 -0
- package/types/notice/index.d.ts +2 -2
- package/types/notice/instance.d.cts +8 -0
- package/types/notice/instance.d.ts +1 -1
- package/types/page/index.d.cts +143 -0
- package/types/page/index.d.ts +1 -1
- package/types/page/responsive.d.cts +1 -0
- package/types/page-header/index.d.cts +14 -0
- package/types/popconfirm/index.d.cts +85 -0
- package/types/popconfirm/index.d.ts +5 -2
- package/types/poptip/index.d.cts +83 -0
- package/types/poptip/index.d.ts +5 -2
- package/types/popup/index.d.cts +255 -0
- package/types/popup/index.d.ts +7 -3
- package/types/popup/layers.d.cts +11 -0
- package/types/popup/types.d.cts +15 -0
- package/types/progress/index.d.cts +123 -0
- package/types/progress/index.d.ts +2 -2
- package/types/qrcode/index.d.cts +195 -0
- package/types/qrcode/index.d.ts +2 -2
- package/types/radio/index.d.cts +9 -0
- package/types/radio/index.d.ts +8 -8
- package/types/radio/radio-button.d.cts +84 -0
- package/types/radio/radio-button.d.ts +3 -3
- package/types/radio/radio-group.d.cts +36 -0
- package/types/radio/radio-group.d.ts +2 -2
- package/types/radio/radio.d.cts +84 -0
- package/types/radio/radio.d.ts +2 -2
- package/types/radio/types.d.cts +12 -0
- package/types/radio/types.d.ts +1 -1
- package/types/rate/index.d.cts +102 -0
- package/types/rate/index.d.ts +2 -2
- package/types/rate/star.d.cts +70 -0
- package/types/rate/star.d.ts +2 -2
- package/types/result/index.d.cts +4 -0
- package/types/result/index.d.ts +3 -3
- package/types/result/result.d.cts +34 -0
- package/types/result/result.d.ts +3 -3
- package/types/ripple/engine.d.cts +66 -0
- package/types/ripple/index.d.cts +42 -0
- package/types/ripple/index.d.ts +1 -1
- package/types/row-col/col.d.cts +52 -0
- package/types/row-col/index.d.cts +5 -0
- package/types/row-col/index.d.ts +4 -4
- package/types/row-col/row.d.cts +38 -0
- package/types/segmented/index.d.cts +49 -0
- package/types/segmented/index.d.ts +4 -3
- package/types/select/index.d.cts +6 -0
- package/types/select/index.d.ts +5 -5
- package/types/select/option.d.cts +53 -0
- package/types/select/option.d.ts +3 -3
- package/types/select/select.d.cts +81 -0
- package/types/select/select.d.ts +4 -4
- package/types/select/types.d.cts +12 -0
- package/types/skeleton/index.d.cts +11 -0
- package/types/skeleton/index.d.ts +10 -10
- package/types/skeleton/skeleton-avatar.d.cts +27 -0
- package/types/skeleton/skeleton-avatar.d.ts +9 -9
- package/types/skeleton/skeleton-button.d.cts +29 -0
- package/types/skeleton/skeleton-button.d.ts +11 -11
- package/types/skeleton/skeleton-image.d.cts +25 -0
- package/types/skeleton/skeleton-image.d.ts +5 -5
- package/types/skeleton/skeleton-text.d.cts +25 -0
- package/types/skeleton/skeleton-text.d.ts +7 -7
- package/types/skeleton/skeleton.d.cts +53 -0
- package/types/skeleton/skeleton.d.ts +9 -9
- package/types/skeleton/types.d.cts +71 -0
- package/types/skeleton/types.d.ts +1 -1
- package/types/skeleton/use-skeleton-loading.d.cts +2 -0
- package/types/slider/index.d.cts +66 -0
- package/types/slider/index.d.ts +1 -1
- package/types/slider/thumb.d.cts +70 -0
- package/types/slider/thumb.d.ts +1 -1
- package/types/space/index.d.cts +54 -0
- package/types/space/index.d.ts +1 -1
- package/types/spin/index.d.cts +71 -0
- package/types/spin/index.d.ts +1 -1
- package/types/splitter/index.d.cts +4 -0
- package/types/splitter/index.d.ts +2 -2
- package/types/splitter/splitter-panel.d.cts +35 -0
- package/types/splitter/splitter.d.cts +31 -0
- package/types/splitter/splitter.d.ts +1 -1
- package/types/stat-card/countup.d.cts +56 -0
- package/types/stat-card/index.d.cts +6 -0
- package/types/stat-card/index.d.ts +5 -5
- package/types/stat-card/rollup.d.cts +34 -0
- package/types/stat-card/stat-card.d.cts +120 -0
- package/types/stat-card/stat-card.d.ts +3 -3
- package/types/stat-card/stat-number.d.cts +110 -0
- package/types/stat-card/stat-number.d.ts +1 -1
- package/types/stat-card/types.d.cts +15 -0
- package/types/stat-card/utils/countup.d.cts +128 -0
- package/types/stat-card/utils/odometer.d.cts +17 -0
- package/types/stat-card/utils/odometer.d.ts +1 -1
- package/types/stat-card/utils/stat-item-key.d.cts +11 -0
- package/types/steps/index.d.cts +86 -0
- package/types/switch/index.d.cts +63 -0
- package/types/switch/index.d.ts +1 -1
- package/types/table/column-setting.d.cts +78 -0
- package/types/table/column-setting.d.ts +2 -2
- package/types/table/index.d.cts +262 -0
- package/types/table/index.d.ts +5 -5
- package/types/table/types.d.cts +39 -0
- package/types/table/utils.d.cts +89 -0
- package/types/table/utils.d.ts +1 -1
- package/types/tabs/index.d.cts +6 -0
- package/types/tabs/index.d.ts +5 -5
- package/types/tabs/tab-panel.d.cts +22 -0
- package/types/tabs/tab-panel.d.ts +2 -2
- package/types/tabs/tabs.d.cts +51 -0
- package/types/tabs/tabs.d.ts +1 -1
- package/types/tabs/types.d.cts +16 -0
- package/types/tabs/types.d.ts +1 -1
- package/types/tag/index.d.cts +58 -0
- package/types/tag/index.d.ts +2 -2
- package/types/time-line/index.d.cts +6 -0
- package/types/time-line/index.d.ts +5 -5
- package/types/time-line/timeline-item.d.cts +21 -0
- package/types/time-line/timeline-item.d.ts +1 -1
- package/types/time-line/timeline.d.cts +27 -0
- package/types/time-line/timeline.d.ts +2 -2
- package/types/tooltip/index.d.cts +79 -0
- package/types/tooltip/index.d.ts +5 -2
- package/types/tour/index.d.cts +122 -0
- package/types/transfer/index.d.cts +129 -0
- package/types/transfer/index.d.ts +1 -1
- package/types/tree/context.d.cts +6 -0
- package/types/tree/index.d.cts +166 -0
- package/types/tree/index.d.ts +5 -5
- package/types/tree/types.d.cts +27 -0
- package/types/tree/types.d.ts +1 -1
- package/types/tree/utils.d.cts +33 -0
- package/types/tree/utils.d.ts +1 -1
- package/types/tree-select/index.d.cts +96 -0
- package/types/tree-select/index.d.ts +4 -4
- package/types/typography/index.d.cts +316 -0
- package/types/upload/file-list.d.cts +101 -0
- package/types/upload/file-list.d.ts +3 -3
- package/types/upload/index.d.cts +229 -0
- package/types/upload/index.d.ts +4 -4
- package/types/upload/picture-sort.d.cts +2 -0
- package/types/upload/selector.d.cts +82 -0
- package/types/upload/selector.d.ts +4 -4
- package/types/upload/types.d.cts +39 -0
- package/types/upload/types.d.ts +1 -1
- package/types/utils/checked.d.cts +2 -0
- package/types/utils/checked.d.ts +1 -1
- package/types/utils/color.d.cts +14 -0
- package/types/utils/css.d.cts +2 -0
- package/types/utils/element.d.cts +17 -0
- package/types/utils/focus.d.cts +5 -0
- package/types/utils/model-value.d.cts +10 -0
- package/types/utils/mouse.d.cts +1 -0
- package/types/utils/number.d.cts +6 -0
- package/types/utils/number.d.ts +1 -1
- package/types/utils/overlay-order.d.cts +6 -0
- package/types/utils/overlay-stack.d.cts +13 -0
- package/types/utils/placement.d.cts +17 -0
- package/types/utils/placement.d.ts +2 -1
- package/types/utils/popup-arrow.d.cts +5 -0
- package/types/utils/popup-arrow.d.ts +5 -0
- package/types/utils/popup.d.cts +11 -0
- package/types/utils/promise.d.cts +5 -0
- package/types/utils/selection-tags.d.cts +18 -0
- package/types/utils/selection-tags.d.ts +1 -1
- package/types/utils/share.d.cts +12 -0
- package/types/utils/theme.d.cts +5 -0
- package/types/utils/vnode.d.cts +33 -0
- package/types/utils/vue.d.cts +17 -0
- package/types/virtual-list/index.d.cts +76 -0
- package/types/virtual-list/index.d.ts +1 -1
- package/types/virtual-list/range.d.cts +15 -0
- package/types/watermark/index.d.cts +188 -0
- package/types/watermark/index.d.ts +3 -3
- package/types/watermark/types.d.cts +11 -0
- package/vetur/attributes.json +212 -4
- package/vetur/tags.json +66 -0
- package/vetur/web-types.json +337 -5
package/types/menu/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import Menu, { type MenuProps } from "./menu";
|
|
2
|
-
import type { MenuOptionsProps, MenuSelectEvent } from "./types";
|
|
3
|
-
import MenuDivider from "./menu-divider";
|
|
4
|
-
import MenuGroup, { type MenuGroupProps } from "./menu-group";
|
|
5
|
-
import MenuItem, { type MenuItemProps } from "./menu-item";
|
|
6
|
-
import SubMenu, { type SubMenuProps } from "./sub-menu";
|
|
1
|
+
import Menu, { type MenuProps } from "./menu.js";
|
|
2
|
+
import type { MenuOptionsProps, MenuSelectEvent } from "./types.js";
|
|
3
|
+
import MenuDivider from "./menu-divider.js";
|
|
4
|
+
import MenuGroup, { type MenuGroupProps } from "./menu-group.js";
|
|
5
|
+
import MenuItem, { type MenuItemProps } from "./menu-item.js";
|
|
6
|
+
import SubMenu, { type SubMenuProps } from "./sub-menu.js";
|
|
7
7
|
export { Menu, MenuDivider, MenuGroup, MenuItem, SubMenu };
|
|
8
8
|
export type { MenuGroupProps, MenuItemProps, MenuOptionsProps, MenuProps, MenuSelectEvent, SubMenuProps, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { InjectionKey } from "vue";
|
|
2
|
+
import type { DirectionType } from "../const/types.cjs";
|
|
3
|
+
export interface MenuContext {
|
|
4
|
+
theme?: "light" | "dark";
|
|
5
|
+
openKeys: string[];
|
|
6
|
+
selectedKeys: string[];
|
|
7
|
+
mode: DirectionType;
|
|
8
|
+
inlineCollapsed: boolean;
|
|
9
|
+
collapsedTooltip: boolean;
|
|
10
|
+
popupInlineCollapsed: boolean;
|
|
11
|
+
inlineTransition: boolean;
|
|
12
|
+
inlineOpenKeys: string[];
|
|
13
|
+
dropdown: boolean;
|
|
14
|
+
openKeysChange: (key: string, opened: boolean, keyPath: string[]) => void;
|
|
15
|
+
selectedKeysChange: (key: string, selected: boolean, keyPath: string[]) => void;
|
|
16
|
+
}
|
|
17
|
+
export interface SubMenuContext {
|
|
18
|
+
keyPath: string[];
|
|
19
|
+
clearPopTimer: () => void;
|
|
20
|
+
hidePopTimer: () => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const MenuContextKey: InjectionKey<MenuContext>;
|
|
23
|
+
export declare const SubMenuContextKey: InjectionKey<SubMenuContext>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const MenuDivider: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default MenuDivider;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
declare const menuGroupProps: {
|
|
3
|
+
title: PropType<VNodeChild>;
|
|
4
|
+
};
|
|
5
|
+
export type MenuGroupProps = ExtractPropTypes<typeof menuGroupProps>;
|
|
6
|
+
declare const MenuGroup: import("vue").DefineComponent<ExtractPropTypes<{
|
|
7
|
+
title: PropType<VNodeChild>;
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
9
|
+
title: PropType<VNodeChild>;
|
|
10
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default MenuGroup;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
3
|
+
import { type IconType } from "../icon/index.cjs";
|
|
4
|
+
declare const menuItemProps: {
|
|
5
|
+
icon: PropType<IconType[]>;
|
|
6
|
+
title: PropType<VNodeChild>;
|
|
7
|
+
disabled: BooleanType;
|
|
8
|
+
};
|
|
9
|
+
export type MenuItemProps = ExtractPropTypes<typeof menuItemProps>;
|
|
10
|
+
declare const MenuItem: import("vue").DefineComponent<ExtractPropTypes<{
|
|
11
|
+
icon: PropType<IconType[]>;
|
|
12
|
+
title: PropType<VNodeChild>;
|
|
13
|
+
disabled: BooleanType;
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
click: (event: MouseEvent) => boolean;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
17
|
+
icon: PropType<IconType[]>;
|
|
18
|
+
title: PropType<VNodeChild>;
|
|
19
|
+
disabled: BooleanType;
|
|
20
|
+
}>> & Readonly<{
|
|
21
|
+
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
22
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default MenuItem;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import type { BooleanType } from "../const/types";
|
|
3
|
-
import { type IconType } from "../icon";
|
|
2
|
+
import type { BooleanType } from "../const/types.js";
|
|
3
|
+
import { type IconType } from "../icon/index.js";
|
|
4
4
|
declare const menuItemProps: {
|
|
5
5
|
icon: PropType<IconType[]>;
|
|
6
6
|
title: PropType<VNodeChild>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
interface MenuKeyboardEvent {
|
|
2
|
+
key: string;
|
|
3
|
+
currentTarget: EventTarget | null;
|
|
4
|
+
preventDefault: () => void;
|
|
5
|
+
stopPropagation: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const handleMenuItemKeydown: (event: MenuKeyboardEvent, activate: () => void) => void;
|
|
8
|
+
/**
|
|
9
|
+
* The first menu item directly inside `list`. Nested submenu lists and group lists own
|
|
10
|
+
* their items, so they are skipped. Unlike sibling navigation this does not require a
|
|
11
|
+
* laid-out box, because it runs right after the list has just been opened.
|
|
12
|
+
*/
|
|
13
|
+
export declare const firstMenuItemOf: (list: HTMLElement | null) => HTMLElement | null;
|
|
14
|
+
/**
|
|
15
|
+
* Expands a submenu with the arrow that belongs to the orientation of the list holding it
|
|
16
|
+
* (ArrowDown inside a horizontal menubar, ArrowRight inside a vertical/inline menu), and
|
|
17
|
+
* with Enter/Space while it is still closed. Returns `true` when the event was consumed.
|
|
18
|
+
*/
|
|
19
|
+
export declare const handleSubMenuTitleKeydown: (event: MenuKeyboardEvent, state: {
|
|
20
|
+
isMenubarItem: boolean;
|
|
21
|
+
opened: boolean;
|
|
22
|
+
}, actions: {
|
|
23
|
+
expandAndFocusFirst: () => void;
|
|
24
|
+
}) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Escape inside an open submenu closes just that level and hands focus back to its
|
|
27
|
+
* trigger, so nested levels unwind one step at a time.
|
|
28
|
+
*/
|
|
29
|
+
export declare const handleSubMenuListKeydown: (event: MenuKeyboardEvent, closeAndRefocusTrigger: () => void) => boolean;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, DirectionType } from "../const/types.cjs";
|
|
3
|
+
import type { MenuOptionsProps, MenuSelectEvent } from "./types.cjs";
|
|
4
|
+
declare const menuProps: {
|
|
5
|
+
theme: PropType<"light" | "dark">;
|
|
6
|
+
mode: {
|
|
7
|
+
type: PropType<DirectionType>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: PropType<string[]>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
15
|
+
type: PropType<string[]>;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
accordion: BooleanType;
|
|
19
|
+
items: PropType<MenuOptionsProps[]>;
|
|
20
|
+
inlineCollapsed: BooleanType;
|
|
21
|
+
collapsedTooltip: {
|
|
22
|
+
type: BooleanType;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
openKeys: {
|
|
26
|
+
type: PropType<string[]>;
|
|
27
|
+
default: () => never[];
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export type MenuProps = ExtractPropTypes<typeof menuProps>;
|
|
31
|
+
declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
32
|
+
theme: PropType<"light" | "dark">;
|
|
33
|
+
mode: {
|
|
34
|
+
type: PropType<DirectionType>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
modelValue: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
value: {
|
|
42
|
+
type: PropType<string[]>;
|
|
43
|
+
default: () => never[];
|
|
44
|
+
};
|
|
45
|
+
accordion: BooleanType;
|
|
46
|
+
items: PropType<MenuOptionsProps[]>;
|
|
47
|
+
inlineCollapsed: BooleanType;
|
|
48
|
+
collapsedTooltip: {
|
|
49
|
+
type: BooleanType;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
openKeys: {
|
|
53
|
+
type: PropType<string[]>;
|
|
54
|
+
default: () => never[];
|
|
55
|
+
};
|
|
56
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
57
|
+
"update:modelValue": (keys: string[]) => boolean;
|
|
58
|
+
"update:openKeys": (keys: string[]) => boolean;
|
|
59
|
+
select: (event: MenuSelectEvent) => boolean;
|
|
60
|
+
openChange: (keys: string[]) => boolean;
|
|
61
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
62
|
+
theme: PropType<"light" | "dark">;
|
|
63
|
+
mode: {
|
|
64
|
+
type: PropType<DirectionType>;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
modelValue: {
|
|
68
|
+
type: PropType<string[]>;
|
|
69
|
+
default: undefined;
|
|
70
|
+
};
|
|
71
|
+
value: {
|
|
72
|
+
type: PropType<string[]>;
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
accordion: BooleanType;
|
|
76
|
+
items: PropType<MenuOptionsProps[]>;
|
|
77
|
+
inlineCollapsed: BooleanType;
|
|
78
|
+
collapsedTooltip: {
|
|
79
|
+
type: BooleanType;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
openKeys: {
|
|
83
|
+
type: PropType<string[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{
|
|
87
|
+
onSelect?: ((event: MenuSelectEvent) => any) | undefined;
|
|
88
|
+
onOpenChange?: ((keys: string[]) => any) | undefined;
|
|
89
|
+
"onUpdate:modelValue"?: ((keys: string[]) => any) | undefined;
|
|
90
|
+
"onUpdate:openKeys"?: ((keys: string[]) => any) | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
mode: DirectionType;
|
|
93
|
+
value: string[];
|
|
94
|
+
modelValue: string[];
|
|
95
|
+
openKeys: string[];
|
|
96
|
+
collapsedTooltip: boolean | undefined;
|
|
97
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
|
+
export default Menu;
|
|
99
|
+
export type { MenuOptionsProps, MenuSelectEvent } from "./types.cjs";
|
package/types/menu/menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, DirectionType } from "../const/types";
|
|
3
|
-
import type { MenuOptionsProps, MenuSelectEvent } from "./types";
|
|
2
|
+
import type { BooleanType, DirectionType } from "../const/types.js";
|
|
3
|
+
import type { MenuOptionsProps, MenuSelectEvent } from "./types.js";
|
|
4
4
|
declare const menuProps: {
|
|
5
5
|
theme: PropType<"light" | "dark">;
|
|
6
6
|
mode: {
|
|
@@ -96,4 +96,4 @@ declare const Menu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
96
96
|
collapsedTooltip: boolean | undefined;
|
|
97
97
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
98
98
|
export default Menu;
|
|
99
|
-
export type { MenuOptionsProps, MenuSelectEvent } from "./types";
|
|
99
|
+
export type { MenuOptionsProps, MenuSelectEvent } from "./types.js";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type PropType } from "vue";
|
|
2
|
+
import type { MenuOptionsProps } from "./types.cjs";
|
|
3
|
+
declare const RecursiveMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
item: {
|
|
5
|
+
type: PropType<MenuOptionsProps>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
item: {
|
|
10
|
+
type: PropType<MenuOptionsProps>;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default RecursiveMenu;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from "vue";
|
|
2
|
-
import type { MenuOptionsProps } from "./types";
|
|
2
|
+
import type { MenuOptionsProps } from "./types.js";
|
|
3
3
|
declare const RecursiveMenu: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
item: {
|
|
5
5
|
type: PropType<MenuOptionsProps>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
3
|
+
import { type IconType } from "../icon/index.cjs";
|
|
4
|
+
declare const submenuProps: {
|
|
5
|
+
disabled: BooleanType;
|
|
6
|
+
title: PropType<VNodeChild>;
|
|
7
|
+
icon: PropType<IconType[]>;
|
|
8
|
+
};
|
|
9
|
+
export type SubMenuProps = ExtractPropTypes<typeof submenuProps>;
|
|
10
|
+
declare const SubMenu: import("vue").DefineComponent<ExtractPropTypes<{
|
|
11
|
+
disabled: BooleanType;
|
|
12
|
+
title: PropType<VNodeChild>;
|
|
13
|
+
icon: PropType<IconType[]>;
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
15
|
+
disabled: BooleanType;
|
|
16
|
+
title: PropType<VNodeChild>;
|
|
17
|
+
icon: PropType<IconType[]>;
|
|
18
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default SubMenu;
|
package/types/menu/sub-menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import type { BooleanType } from "../const/types";
|
|
3
|
-
import { type IconType } from "../icon";
|
|
2
|
+
import type { BooleanType } from "../const/types.js";
|
|
3
|
+
import { type IconType } from "../icon/index.js";
|
|
4
4
|
declare const submenuProps: {
|
|
5
5
|
disabled: BooleanType;
|
|
6
6
|
title: PropType<VNodeChild>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { VNodeChild } from "vue";
|
|
2
|
+
import type { IconType } from "../icon/index.cjs";
|
|
3
|
+
export interface MenuSelectEvent {
|
|
4
|
+
key: string;
|
|
5
|
+
keyPath: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface MenuOptionsProps {
|
|
8
|
+
icon?: IconType[];
|
|
9
|
+
title?: VNodeChild;
|
|
10
|
+
key: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
children?: MenuOptionsProps[];
|
|
13
|
+
[key: string]: unknown;
|
|
14
|
+
}
|
package/types/menu/types.d.ts
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { VNode } from "vue";
|
|
2
|
+
import type { NoticeType } from "../const/types.cjs";
|
|
3
|
+
import type { IconType } from "../icon/index.cjs";
|
|
4
|
+
export interface MessageOptions {
|
|
5
|
+
type?: NoticeType;
|
|
6
|
+
content?: string | VNode;
|
|
7
|
+
duration?: number;
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
icon?: IconType[];
|
|
10
|
+
color?: string;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
/** 相同 grouping 的通知会复用同一条目,只更新内容和重置计时器,不会新增 */
|
|
13
|
+
grouping?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface MessageApi {
|
|
16
|
+
name: "message";
|
|
17
|
+
info(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
18
|
+
success(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
19
|
+
warning(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
20
|
+
error(content: string | VNode, duration?: number, onClose?: () => void): void;
|
|
21
|
+
loading(content: string | VNode, duration?: number): () => void;
|
|
22
|
+
show(options: MessageOptions): () => void;
|
|
23
|
+
destroy(): void;
|
|
24
|
+
}
|
|
25
|
+
declare const message: MessageApi;
|
|
26
|
+
export default message;
|
package/types/message/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { VNode } from "vue";
|
|
2
|
-
import type { NoticeType } from "../const/types";
|
|
3
|
-
import type { IconType } from "../icon";
|
|
2
|
+
import type { NoticeType } from "../const/types.js";
|
|
3
|
+
import type { IconType } from "../icon/index.js";
|
|
4
4
|
export interface MessageOptions {
|
|
5
5
|
type?: NoticeType;
|
|
6
6
|
content?: string | VNode;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type VNodeChild } from "vue";
|
|
2
|
+
import type { IconType } from "../icon/index.cjs";
|
|
3
|
+
import Modal, { ModalPanel } from "./modal.cjs";
|
|
4
|
+
export type { ModalProps } from "./modal.cjs";
|
|
5
|
+
export { ModalPanel };
|
|
6
|
+
export interface ModalInstance {
|
|
7
|
+
show: () => void;
|
|
8
|
+
hide: () => void;
|
|
9
|
+
destroy: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ModalApiProps {
|
|
12
|
+
/**
|
|
13
|
+
* 标题:字符串之外还能给 VNode / 渲染函数产出的任意内容(VNodeChild)。
|
|
14
|
+
* react 侧同一字段是 ReactNode(见 kui-react/components/modal/api.tsx),两边到这里对齐。
|
|
15
|
+
*/
|
|
16
|
+
title?: VNodeChild;
|
|
17
|
+
okText?: string;
|
|
18
|
+
cancelText?: string;
|
|
19
|
+
/** 正文,同 title:不再限定字符串 */
|
|
20
|
+
content?: VNodeChild;
|
|
21
|
+
color?: string;
|
|
22
|
+
icon?: IconType[];
|
|
23
|
+
onOk?: () => void | PromiseLike<unknown>;
|
|
24
|
+
onCancel?: () => void;
|
|
25
|
+
type?: "info" | "success" | "error" | "warning" | "confirm";
|
|
26
|
+
}
|
|
27
|
+
export interface ModalApi {
|
|
28
|
+
name?: "modal";
|
|
29
|
+
show(props: ModalApiProps): ModalInstance | null;
|
|
30
|
+
info(props: ModalApiProps): ModalInstance | null;
|
|
31
|
+
success(props: ModalApiProps): ModalInstance | null;
|
|
32
|
+
warning(props: ModalApiProps): ModalInstance | null;
|
|
33
|
+
confirm(props: ModalApiProps): ModalInstance | null;
|
|
34
|
+
error(props: ModalApiProps): ModalInstance | null;
|
|
35
|
+
destroyAll(): void;
|
|
36
|
+
}
|
|
37
|
+
export declare const modal: ModalApi;
|
|
38
|
+
export default Modal;
|
package/types/modal/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type VNodeChild } from "vue";
|
|
2
|
-
import type { IconType } from "../icon";
|
|
3
|
-
import Modal, { ModalPanel } from "./modal";
|
|
4
|
-
export type { ModalProps } from "./modal";
|
|
2
|
+
import type { IconType } from "../icon/index.js";
|
|
3
|
+
import Modal, { ModalPanel } from "./modal.js";
|
|
4
|
+
export type { ModalProps } from "./modal.js";
|
|
5
5
|
export { ModalPanel };
|
|
6
6
|
export interface ModalInstance {
|
|
7
7
|
show: () => void;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue.cjs";
|
|
2
|
+
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
3
|
+
import type { BooleanType } from "../const/types.cjs";
|
|
4
|
+
declare const modalProps: {
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: BooleanType;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
value: BooleanType;
|
|
10
|
+
title: {
|
|
11
|
+
type: PropType<string | VNodeChild>;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
okText: StringConstructor;
|
|
15
|
+
cancelText: StringConstructor;
|
|
16
|
+
width: {
|
|
17
|
+
type: PropType<number | string>;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
top: {
|
|
21
|
+
type: PropType<number>;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
mask: {
|
|
25
|
+
type: BooleanType;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
maskClosable: {
|
|
29
|
+
type: BooleanType;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
maximized: BooleanType;
|
|
33
|
+
centered: BooleanType;
|
|
34
|
+
draggable: BooleanType;
|
|
35
|
+
showClose: {
|
|
36
|
+
type: BooleanType;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
loading: BooleanType;
|
|
40
|
+
footer: {
|
|
41
|
+
type: BooleanType;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
escKey: {
|
|
45
|
+
type: BooleanType;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
panelOnly: BooleanType;
|
|
49
|
+
destroyOnClose: {
|
|
50
|
+
type: BooleanType;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export type ModalProps = ExtractPropTypes<typeof modalProps>;
|
|
55
|
+
declare const Modal: import("vue").DefineComponent<ExtractPropTypes<{
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: BooleanType;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
value: BooleanType;
|
|
61
|
+
title: {
|
|
62
|
+
type: PropType<string | VNodeChild>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
okText: StringConstructor;
|
|
66
|
+
cancelText: StringConstructor;
|
|
67
|
+
width: {
|
|
68
|
+
type: PropType<number | string>;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
top: {
|
|
72
|
+
type: PropType<number>;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
mask: {
|
|
76
|
+
type: BooleanType;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
maskClosable: {
|
|
80
|
+
type: BooleanType;
|
|
81
|
+
default: boolean;
|
|
82
|
+
};
|
|
83
|
+
maximized: BooleanType;
|
|
84
|
+
centered: BooleanType;
|
|
85
|
+
draggable: BooleanType;
|
|
86
|
+
showClose: {
|
|
87
|
+
type: BooleanType;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
loading: BooleanType;
|
|
91
|
+
footer: {
|
|
92
|
+
type: BooleanType;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
escKey: {
|
|
96
|
+
type: BooleanType;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
panelOnly: BooleanType;
|
|
100
|
+
destroyOnClose: {
|
|
101
|
+
type: BooleanType;
|
|
102
|
+
default: boolean;
|
|
103
|
+
};
|
|
104
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
105
|
+
"update:modelValue": (visible: boolean) => boolean;
|
|
106
|
+
openChange: (visible: boolean) => boolean;
|
|
107
|
+
ok: () => true;
|
|
108
|
+
cancel: () => true;
|
|
109
|
+
close: () => true;
|
|
110
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
111
|
+
modelValue: {
|
|
112
|
+
type: BooleanType;
|
|
113
|
+
default: undefined;
|
|
114
|
+
};
|
|
115
|
+
value: BooleanType;
|
|
116
|
+
title: {
|
|
117
|
+
type: PropType<string | VNodeChild>;
|
|
118
|
+
default: undefined;
|
|
119
|
+
};
|
|
120
|
+
okText: StringConstructor;
|
|
121
|
+
cancelText: StringConstructor;
|
|
122
|
+
width: {
|
|
123
|
+
type: PropType<number | string>;
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
126
|
+
top: {
|
|
127
|
+
type: PropType<number>;
|
|
128
|
+
default: number;
|
|
129
|
+
};
|
|
130
|
+
mask: {
|
|
131
|
+
type: BooleanType;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
134
|
+
maskClosable: {
|
|
135
|
+
type: BooleanType;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
138
|
+
maximized: BooleanType;
|
|
139
|
+
centered: BooleanType;
|
|
140
|
+
draggable: BooleanType;
|
|
141
|
+
showClose: {
|
|
142
|
+
type: BooleanType;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
loading: BooleanType;
|
|
146
|
+
footer: {
|
|
147
|
+
type: BooleanType;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
escKey: {
|
|
151
|
+
type: BooleanType;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
panelOnly: BooleanType;
|
|
155
|
+
destroyOnClose: {
|
|
156
|
+
type: BooleanType;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
159
|
+
}>> & Readonly<{
|
|
160
|
+
onCancel?: (() => any) | undefined;
|
|
161
|
+
onClose?: (() => any) | undefined;
|
|
162
|
+
onOpenChange?: ((visible: boolean) => any) | undefined;
|
|
163
|
+
"onUpdate:modelValue"?: ((visible: boolean) => any) | undefined;
|
|
164
|
+
onOk?: (() => any) | undefined;
|
|
165
|
+
}>, {
|
|
166
|
+
top: number;
|
|
167
|
+
width: string | number;
|
|
168
|
+
mask: boolean | undefined;
|
|
169
|
+
footer: boolean | undefined;
|
|
170
|
+
title: VNodeChild;
|
|
171
|
+
destroyOnClose: boolean | undefined;
|
|
172
|
+
modelValue: boolean | undefined;
|
|
173
|
+
maskClosable: boolean | undefined;
|
|
174
|
+
escKey: boolean | undefined;
|
|
175
|
+
showClose: boolean | undefined;
|
|
176
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
177
|
+
export declare const ModalPanel: ForwardedComponent<typeof Modal>;
|
|
178
|
+
export default Modal;
|
package/types/modal/modal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ForwardedComponent } from "../utils/vue";
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue.js";
|
|
2
2
|
import { type ExtractPropTypes, type PropType, type VNodeChild } from "vue";
|
|
3
|
-
import type { BooleanType } from "../const/types";
|
|
3
|
+
import type { BooleanType } from "../const/types.js";
|
|
4
4
|
declare const modalProps: {
|
|
5
5
|
modelValue: {
|
|
6
6
|
type: BooleanType;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import { type IconType } from "../icon/index.cjs";
|
|
3
|
+
import type { ModalApiProps } from "./index.cjs";
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
title: PropType<VNodeChild>;
|
|
6
|
+
okText: StringConstructor;
|
|
7
|
+
cancelText: StringConstructor;
|
|
8
|
+
content: PropType<VNodeChild>;
|
|
9
|
+
color: StringConstructor;
|
|
10
|
+
icon: PropType<IconType[]>;
|
|
11
|
+
onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
|
|
12
|
+
onCancel: PropType<NonNullable<ModalApiProps["onCancel"]>>;
|
|
13
|
+
type: {
|
|
14
|
+
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
destroy: () => true;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
title: PropType<VNodeChild>;
|
|
21
|
+
okText: StringConstructor;
|
|
22
|
+
cancelText: StringConstructor;
|
|
23
|
+
content: PropType<VNodeChild>;
|
|
24
|
+
color: StringConstructor;
|
|
25
|
+
icon: PropType<IconType[]>;
|
|
26
|
+
onOk: PropType<NonNullable<ModalApiProps["onOk"]>>;
|
|
27
|
+
onCancel: PropType<NonNullable<ModalApiProps["onCancel"]>>;
|
|
28
|
+
type: {
|
|
29
|
+
type: PropType<"info" | "success" | "error" | "warning" | "confirm">;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
onDestroy?: (() => any) | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
type: "error" | "warning" | "success" | "info" | "confirm";
|
|
36
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
37
|
+
export default _default;
|
package/types/modal/toast.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import { type IconType } from "../icon";
|
|
3
|
-
import type { ModalApiProps } from "./index";
|
|
2
|
+
import { type IconType } from "../icon/index.js";
|
|
3
|
+
import type { ModalApiProps } from "./index.js";
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
title: PropType<VNodeChild>;
|
|
6
6
|
okText: StringConstructor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
type: StringConstructor;
|
|
3
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
6
|
+
export default _default;
|