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
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { type CascaderOption, type CascaderValue } from "./types.cjs";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import("vue").PropType<CascaderValue>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
value: {
|
|
8
|
+
type: import("vue").PropType<CascaderValue>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
options: {
|
|
12
|
+
type: import("vue").PropType<CascaderOption[]>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
theme: {
|
|
16
|
+
type: import("vue").PropType<import("../index.cjs").ThemeType>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
bordered: {
|
|
20
|
+
type: import("../index.cjs").BooleanType;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
shape: import("vue").PropType<import("../index.cjs").ShapeType>;
|
|
24
|
+
showArrow: {
|
|
25
|
+
type: import("../index.cjs").BooleanType;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
icon: import("vue").PropType<import("../index.cjs").IconType[]>;
|
|
33
|
+
arrowIcon: import("vue").PropType<import("../index.cjs").IconType[]>;
|
|
34
|
+
emptyText: StringConstructor;
|
|
35
|
+
loadData: import("vue").PropType<import("./types.cjs").CascaderLoadData>;
|
|
36
|
+
disabled: BooleanConstructor;
|
|
37
|
+
readonly: BooleanConstructor;
|
|
38
|
+
clearable: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
size: import("vue").PropType<import("../index.cjs").SizeType>;
|
|
43
|
+
expandTrigger: {
|
|
44
|
+
type: import("vue").PropType<"click" | "hover">;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
showAllLevels: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
separator: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
placement: {
|
|
56
|
+
type: import("vue").PropType<import("../index.cjs").DropPlacementsType>;
|
|
57
|
+
default: string;
|
|
58
|
+
};
|
|
59
|
+
destroyOnClose: {
|
|
60
|
+
type: import("../index.cjs").BooleanType;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
64
|
+
"update:modelValue": (value: CascaderValue) => boolean;
|
|
65
|
+
change: (value: CascaderValue) => boolean;
|
|
66
|
+
openChange: (open: boolean) => boolean;
|
|
67
|
+
expandChange: (value: CascaderValue) => boolean;
|
|
68
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
modelValue: {
|
|
70
|
+
type: import("vue").PropType<CascaderValue>;
|
|
71
|
+
default: undefined;
|
|
72
|
+
};
|
|
73
|
+
value: {
|
|
74
|
+
type: import("vue").PropType<CascaderValue>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
options: {
|
|
78
|
+
type: import("vue").PropType<CascaderOption[]>;
|
|
79
|
+
default: () => never[];
|
|
80
|
+
};
|
|
81
|
+
theme: {
|
|
82
|
+
type: import("vue").PropType<import("../index.cjs").ThemeType>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
bordered: {
|
|
86
|
+
type: import("../index.cjs").BooleanType;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
shape: import("vue").PropType<import("../index.cjs").ShapeType>;
|
|
90
|
+
showArrow: {
|
|
91
|
+
type: import("../index.cjs").BooleanType;
|
|
92
|
+
default: boolean;
|
|
93
|
+
};
|
|
94
|
+
placeholder: {
|
|
95
|
+
type: StringConstructor;
|
|
96
|
+
default: string;
|
|
97
|
+
};
|
|
98
|
+
icon: import("vue").PropType<import("../index.cjs").IconType[]>;
|
|
99
|
+
arrowIcon: import("vue").PropType<import("../index.cjs").IconType[]>;
|
|
100
|
+
emptyText: StringConstructor;
|
|
101
|
+
loadData: import("vue").PropType<import("./types.cjs").CascaderLoadData>;
|
|
102
|
+
disabled: BooleanConstructor;
|
|
103
|
+
readonly: BooleanConstructor;
|
|
104
|
+
clearable: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: boolean;
|
|
107
|
+
};
|
|
108
|
+
size: import("vue").PropType<import("../index.cjs").SizeType>;
|
|
109
|
+
expandTrigger: {
|
|
110
|
+
type: import("vue").PropType<"click" | "hover">;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
showAllLevels: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
separator: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
placement: {
|
|
122
|
+
type: import("vue").PropType<import("../index.cjs").DropPlacementsType>;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
destroyOnClose: {
|
|
126
|
+
type: import("../index.cjs").BooleanType;
|
|
127
|
+
default: boolean;
|
|
128
|
+
};
|
|
129
|
+
}>> & Readonly<{
|
|
130
|
+
onChange?: ((value: CascaderValue) => any) | undefined;
|
|
131
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
132
|
+
"onUpdate:modelValue"?: ((value: CascaderValue) => any) | undefined;
|
|
133
|
+
onExpandChange?: ((value: CascaderValue) => any) | undefined;
|
|
134
|
+
}>, {
|
|
135
|
+
separator: string;
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
placement: import("../index.cjs").DropPlacementsType;
|
|
138
|
+
destroyOnClose: boolean | undefined;
|
|
139
|
+
theme: import("../index.cjs").ThemeType;
|
|
140
|
+
value: CascaderValue;
|
|
141
|
+
bordered: boolean | undefined;
|
|
142
|
+
modelValue: CascaderValue;
|
|
143
|
+
readonly: boolean;
|
|
144
|
+
clearable: boolean;
|
|
145
|
+
placeholder: string;
|
|
146
|
+
options: CascaderOption[];
|
|
147
|
+
showArrow: boolean | undefined;
|
|
148
|
+
expandTrigger: "click" | "hover";
|
|
149
|
+
showAllLevels: boolean;
|
|
150
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
151
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CascaderOption, type CascaderValue } from "./types";
|
|
1
|
+
import { type CascaderOption, type CascaderValue } from "./types.js";
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
modelValue: {
|
|
4
4
|
type: import("vue").PropType<CascaderValue>;
|
|
@@ -13,33 +13,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
15
|
theme: {
|
|
16
|
-
type: import("vue").PropType<import("
|
|
16
|
+
type: import("vue").PropType<import("../index.js").ThemeType>;
|
|
17
17
|
default: string;
|
|
18
18
|
};
|
|
19
19
|
bordered: {
|
|
20
|
-
type: import("
|
|
20
|
+
type: import("../index.js").BooleanType;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
|
-
shape: import("vue").PropType<import("
|
|
23
|
+
shape: import("vue").PropType<import("../index.js").ShapeType>;
|
|
24
24
|
showArrow: {
|
|
25
|
-
type: import("
|
|
25
|
+
type: import("../index.js").BooleanType;
|
|
26
26
|
default: boolean;
|
|
27
27
|
};
|
|
28
28
|
placeholder: {
|
|
29
29
|
type: StringConstructor;
|
|
30
30
|
default: string;
|
|
31
31
|
};
|
|
32
|
-
icon: import("vue").PropType<import("
|
|
33
|
-
arrowIcon: import("vue").PropType<import("
|
|
32
|
+
icon: import("vue").PropType<import("../index.js").IconType[]>;
|
|
33
|
+
arrowIcon: import("vue").PropType<import("../index.js").IconType[]>;
|
|
34
34
|
emptyText: StringConstructor;
|
|
35
|
-
loadData: import("vue").PropType<import("./types").CascaderLoadData>;
|
|
35
|
+
loadData: import("vue").PropType<import("./types.js").CascaderLoadData>;
|
|
36
36
|
disabled: BooleanConstructor;
|
|
37
37
|
readonly: BooleanConstructor;
|
|
38
38
|
clearable: {
|
|
39
39
|
type: BooleanConstructor;
|
|
40
40
|
default: boolean;
|
|
41
41
|
};
|
|
42
|
-
size: import("vue").PropType<import("
|
|
42
|
+
size: import("vue").PropType<import("../index.js").SizeType>;
|
|
43
43
|
expandTrigger: {
|
|
44
44
|
type: import("vue").PropType<"click" | "hover">;
|
|
45
45
|
default: string;
|
|
@@ -53,11 +53,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
53
53
|
default: string;
|
|
54
54
|
};
|
|
55
55
|
placement: {
|
|
56
|
-
type: import("vue").PropType<import("
|
|
56
|
+
type: import("vue").PropType<import("../index.js").DropPlacementsType>;
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
destroyOnClose: {
|
|
60
|
-
type: import("
|
|
60
|
+
type: import("../index.js").BooleanType;
|
|
61
61
|
default: boolean;
|
|
62
62
|
};
|
|
63
63
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -79,33 +79,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
79
|
default: () => never[];
|
|
80
80
|
};
|
|
81
81
|
theme: {
|
|
82
|
-
type: import("vue").PropType<import("
|
|
82
|
+
type: import("vue").PropType<import("../index.js").ThemeType>;
|
|
83
83
|
default: string;
|
|
84
84
|
};
|
|
85
85
|
bordered: {
|
|
86
|
-
type: import("
|
|
86
|
+
type: import("../index.js").BooleanType;
|
|
87
87
|
default: boolean;
|
|
88
88
|
};
|
|
89
|
-
shape: import("vue").PropType<import("
|
|
89
|
+
shape: import("vue").PropType<import("../index.js").ShapeType>;
|
|
90
90
|
showArrow: {
|
|
91
|
-
type: import("
|
|
91
|
+
type: import("../index.js").BooleanType;
|
|
92
92
|
default: boolean;
|
|
93
93
|
};
|
|
94
94
|
placeholder: {
|
|
95
95
|
type: StringConstructor;
|
|
96
96
|
default: string;
|
|
97
97
|
};
|
|
98
|
-
icon: import("vue").PropType<import("
|
|
99
|
-
arrowIcon: import("vue").PropType<import("
|
|
98
|
+
icon: import("vue").PropType<import("../index.js").IconType[]>;
|
|
99
|
+
arrowIcon: import("vue").PropType<import("../index.js").IconType[]>;
|
|
100
100
|
emptyText: StringConstructor;
|
|
101
|
-
loadData: import("vue").PropType<import("./types").CascaderLoadData>;
|
|
101
|
+
loadData: import("vue").PropType<import("./types.js").CascaderLoadData>;
|
|
102
102
|
disabled: BooleanConstructor;
|
|
103
103
|
readonly: BooleanConstructor;
|
|
104
104
|
clearable: {
|
|
105
105
|
type: BooleanConstructor;
|
|
106
106
|
default: boolean;
|
|
107
107
|
};
|
|
108
|
-
size: import("vue").PropType<import("
|
|
108
|
+
size: import("vue").PropType<import("../index.js").SizeType>;
|
|
109
109
|
expandTrigger: {
|
|
110
110
|
type: import("vue").PropType<"click" | "hover">;
|
|
111
111
|
default: string;
|
|
@@ -119,11 +119,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
119
119
|
default: string;
|
|
120
120
|
};
|
|
121
121
|
placement: {
|
|
122
|
-
type: import("vue").PropType<import("
|
|
122
|
+
type: import("vue").PropType<import("../index.js").DropPlacementsType>;
|
|
123
123
|
default: string;
|
|
124
124
|
};
|
|
125
125
|
destroyOnClose: {
|
|
126
|
-
type: import("
|
|
126
|
+
type: import("../index.js").BooleanType;
|
|
127
127
|
default: boolean;
|
|
128
128
|
};
|
|
129
129
|
}>> & Readonly<{
|
|
@@ -134,9 +134,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
134
134
|
}>, {
|
|
135
135
|
separator: string;
|
|
136
136
|
disabled: boolean;
|
|
137
|
-
placement: import("
|
|
137
|
+
placement: import("../index.js").DropPlacementsType;
|
|
138
138
|
destroyOnClose: boolean | undefined;
|
|
139
|
-
theme: import("
|
|
139
|
+
theme: import("../index.js").ThemeType;
|
|
140
140
|
value: CascaderValue;
|
|
141
141
|
bordered: boolean | undefined;
|
|
142
142
|
modelValue: CascaderValue;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { IconType } from "../icon/index.cjs";
|
|
4
|
+
export interface CascaderOption {
|
|
5
|
+
value: string | number;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
children?: CascaderOption[];
|
|
9
|
+
isLeaf?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export type CascaderValue = Array<string | number>;
|
|
12
|
+
export type CascaderLoadData = (option: CascaderOption, path: CascaderOption[]) => Promise<CascaderOption[] | void>;
|
|
13
|
+
export declare const cascaderProps: {
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<CascaderValue>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
value: {
|
|
19
|
+
type: PropType<CascaderValue>;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
options: {
|
|
23
|
+
type: PropType<CascaderOption[]>;
|
|
24
|
+
default: () => never[];
|
|
25
|
+
};
|
|
26
|
+
theme: {
|
|
27
|
+
type: PropType<ThemeType>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
bordered: {
|
|
31
|
+
type: BooleanType;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
shape: PropType<ShapeType>;
|
|
35
|
+
showArrow: {
|
|
36
|
+
type: BooleanType;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
placeholder: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
icon: PropType<IconType[]>;
|
|
44
|
+
arrowIcon: PropType<IconType[]>;
|
|
45
|
+
emptyText: StringConstructor;
|
|
46
|
+
loadData: PropType<CascaderLoadData>;
|
|
47
|
+
disabled: BooleanConstructor;
|
|
48
|
+
readonly: BooleanConstructor;
|
|
49
|
+
clearable: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
size: PropType<SizeType>;
|
|
54
|
+
expandTrigger: {
|
|
55
|
+
type: PropType<"click" | "hover">;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
showAllLevels: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
separator: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
placement: {
|
|
67
|
+
type: PropType<DropPlacementsType>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
/** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
|
|
71
|
+
destroyOnClose: {
|
|
72
|
+
type: BooleanType;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export type CascaderProps = ExtractPropTypes<typeof cascaderProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
-
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
-
import type { IconType } from "../icon";
|
|
2
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types.js";
|
|
3
|
+
import type { IconType } from "../icon/index.js";
|
|
4
4
|
export interface CascaderOption {
|
|
5
5
|
value: string | number;
|
|
6
6
|
label: string;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { CheckCardOption, CheckCardValue } from "./types.cjs";
|
|
4
|
+
declare const checkCardGroupProps: {
|
|
5
|
+
modelValue: PropType<CheckCardValue>;
|
|
6
|
+
value: PropType<CheckCardValue>;
|
|
7
|
+
options: PropType<CheckCardOption[]>;
|
|
8
|
+
disabled: BooleanType;
|
|
9
|
+
readonly: BooleanType;
|
|
10
|
+
direction: {
|
|
11
|
+
type: PropType<DirectionType>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
theme: {
|
|
15
|
+
type: PropType<SurfaceThemeType>;
|
|
16
|
+
};
|
|
17
|
+
size: {
|
|
18
|
+
type: PropType<SizeType>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
shape: {
|
|
22
|
+
type: PropType<ShapeType>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export type CheckCardGroupProps = ExtractPropTypes<typeof checkCardGroupProps>;
|
|
27
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
28
|
+
modelValue: PropType<CheckCardValue>;
|
|
29
|
+
value: PropType<CheckCardValue>;
|
|
30
|
+
options: PropType<CheckCardOption[]>;
|
|
31
|
+
disabled: BooleanType;
|
|
32
|
+
readonly: BooleanType;
|
|
33
|
+
direction: {
|
|
34
|
+
type: PropType<DirectionType>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
theme: {
|
|
38
|
+
type: PropType<SurfaceThemeType>;
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
type: PropType<SizeType>;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
shape: {
|
|
45
|
+
type: PropType<ShapeType>;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
49
|
+
"update:modelValue": (value: CheckCardValue) => value is string | number;
|
|
50
|
+
change: (value: CheckCardValue) => value is string | number;
|
|
51
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
52
|
+
modelValue: PropType<CheckCardValue>;
|
|
53
|
+
value: PropType<CheckCardValue>;
|
|
54
|
+
options: PropType<CheckCardOption[]>;
|
|
55
|
+
disabled: BooleanType;
|
|
56
|
+
readonly: BooleanType;
|
|
57
|
+
direction: {
|
|
58
|
+
type: PropType<DirectionType>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
theme: {
|
|
62
|
+
type: PropType<SurfaceThemeType>;
|
|
63
|
+
};
|
|
64
|
+
size: {
|
|
65
|
+
type: PropType<SizeType>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
shape: {
|
|
69
|
+
type: PropType<ShapeType>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
}>> & Readonly<{
|
|
73
|
+
onChange?: ((value: CheckCardValue) => any) | undefined;
|
|
74
|
+
"onUpdate:modelValue"?: ((value: CheckCardValue) => any) | undefined;
|
|
75
|
+
}>, {
|
|
76
|
+
direction: DirectionType;
|
|
77
|
+
size: SizeType;
|
|
78
|
+
shape: ShapeType;
|
|
79
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
|
+
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
|
|
3
|
-
import type { CheckCardOption, CheckCardValue } from "./types";
|
|
2
|
+
import type { BooleanType, DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.js";
|
|
3
|
+
import type { CheckCardOption, CheckCardValue } from "./types.js";
|
|
4
4
|
declare const checkCardGroupProps: {
|
|
5
5
|
modelValue: PropType<CheckCardValue>;
|
|
6
6
|
value: PropType<CheckCardValue>;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.cjs";
|
|
3
|
+
import { type IconType } from "../icon/index.cjs";
|
|
4
|
+
import type { CheckCardChangeEvent, CheckCardValue } from "./types.cjs";
|
|
5
|
+
declare const checkCardProps: {
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
checked: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
value: PropType<CheckCardValue>;
|
|
15
|
+
title: PropType<string | number>;
|
|
16
|
+
description: StringConstructor;
|
|
17
|
+
symbol: PropType<IconType[]>;
|
|
18
|
+
checkedSymbol: PropType<IconType[]>;
|
|
19
|
+
showIndicator: {
|
|
20
|
+
type: BooleanType;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
disabled: BooleanType;
|
|
24
|
+
readonly: BooleanType;
|
|
25
|
+
theme: {
|
|
26
|
+
type: PropType<SurfaceThemeType>;
|
|
27
|
+
};
|
|
28
|
+
size: {
|
|
29
|
+
type: PropType<SizeType>;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
shape: {
|
|
33
|
+
type: PropType<ShapeType>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export type CheckCardProps = ExtractPropTypes<typeof checkCardProps>;
|
|
38
|
+
declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
39
|
+
modelValue: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: undefined;
|
|
42
|
+
};
|
|
43
|
+
checked: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
value: PropType<CheckCardValue>;
|
|
48
|
+
title: PropType<string | number>;
|
|
49
|
+
description: StringConstructor;
|
|
50
|
+
symbol: PropType<IconType[]>;
|
|
51
|
+
checkedSymbol: PropType<IconType[]>;
|
|
52
|
+
showIndicator: {
|
|
53
|
+
type: BooleanType;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
disabled: BooleanType;
|
|
57
|
+
readonly: BooleanType;
|
|
58
|
+
theme: {
|
|
59
|
+
type: PropType<SurfaceThemeType>;
|
|
60
|
+
};
|
|
61
|
+
size: {
|
|
62
|
+
type: PropType<SizeType>;
|
|
63
|
+
default: string;
|
|
64
|
+
};
|
|
65
|
+
shape: {
|
|
66
|
+
type: PropType<ShapeType>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
|
+
"update:modelValue": (checked: boolean) => boolean;
|
|
71
|
+
change: (event: CheckCardChangeEvent) => boolean;
|
|
72
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
73
|
+
modelValue: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
default: undefined;
|
|
76
|
+
};
|
|
77
|
+
checked: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
value: PropType<CheckCardValue>;
|
|
82
|
+
title: PropType<string | number>;
|
|
83
|
+
description: StringConstructor;
|
|
84
|
+
symbol: PropType<IconType[]>;
|
|
85
|
+
checkedSymbol: PropType<IconType[]>;
|
|
86
|
+
showIndicator: {
|
|
87
|
+
type: BooleanType;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
disabled: BooleanType;
|
|
91
|
+
readonly: BooleanType;
|
|
92
|
+
theme: {
|
|
93
|
+
type: PropType<SurfaceThemeType>;
|
|
94
|
+
};
|
|
95
|
+
size: {
|
|
96
|
+
type: PropType<SizeType>;
|
|
97
|
+
default: string;
|
|
98
|
+
};
|
|
99
|
+
shape: {
|
|
100
|
+
type: PropType<ShapeType>;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onChange?: ((event: CheckCardChangeEvent) => any) | undefined;
|
|
105
|
+
"onUpdate:modelValue"?: ((checked: boolean) => any) | undefined;
|
|
106
|
+
}>, {
|
|
107
|
+
size: SizeType;
|
|
108
|
+
shape: ShapeType;
|
|
109
|
+
modelValue: boolean;
|
|
110
|
+
checked: boolean;
|
|
111
|
+
showIndicator: boolean | undefined;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
|
|
3
|
-
import { type IconType } from "../icon";
|
|
4
|
-
import type { CheckCardChangeEvent, CheckCardValue } from "./types";
|
|
2
|
+
import type { BooleanType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.js";
|
|
3
|
+
import { type IconType } from "../icon/index.js";
|
|
4
|
+
import type { CheckCardChangeEvent, CheckCardValue } from "./types.js";
|
|
5
5
|
declare const checkCardProps: {
|
|
6
6
|
modelValue: {
|
|
7
7
|
type: BooleanConstructor;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from "vue";
|
|
2
|
+
import type { ShapeType, SizeType, ThemeType } from "../const/types.cjs";
|
|
3
|
+
import type { CheckCardValue } from "./types.cjs";
|
|
4
|
+
export interface CheckCardRegistryItem {
|
|
5
|
+
element: HTMLElement;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface CheckCardGroupContext {
|
|
9
|
+
modelValue: ComputedRef<CheckCardValue | undefined>;
|
|
10
|
+
disabled: ComputedRef<boolean>;
|
|
11
|
+
readonly: ComputedRef<boolean>;
|
|
12
|
+
theme: ComputedRef<ThemeType | undefined>;
|
|
13
|
+
size: ComputedRef<SizeType>;
|
|
14
|
+
shape: ComputedRef<ShapeType>;
|
|
15
|
+
select: (value: CheckCardValue) => void;
|
|
16
|
+
selectRelative: (value: CheckCardValue, offset: number) => void;
|
|
17
|
+
register: (value: CheckCardValue, item: CheckCardRegistryItem) => void;
|
|
18
|
+
unregister: (value: CheckCardValue) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const checkCardGroupKey: InjectionKey<CheckCardGroupContext>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComputedRef, InjectionKey } from "vue";
|
|
2
|
-
import type { ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
-
import type { CheckCardValue } from "./types";
|
|
2
|
+
import type { ShapeType, SizeType, ThemeType } from "../const/types.js";
|
|
3
|
+
import type { CheckCardValue } from "./types.js";
|
|
4
4
|
export interface CheckCardRegistryItem {
|
|
5
5
|
element: HTMLElement;
|
|
6
6
|
disabled: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import CheckCard from "./check-card.cjs";
|
|
2
|
+
import CheckCardGroup from "./check-card-group.cjs";
|
|
3
|
+
export type { CheckCardGroupProps } from "./check-card-group.cjs";
|
|
4
|
+
export type { CheckCardProps } from "./check-card.cjs";
|
|
5
|
+
export type { CheckCardChangeEvent, CheckCardOption, CheckCardValue } from "./types.cjs";
|
|
6
|
+
export { CheckCard, CheckCardGroup };
|
|
7
|
+
export default CheckCard;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import CheckCard from "./check-card";
|
|
2
|
-
import CheckCardGroup from "./check-card-group";
|
|
3
|
-
export type { CheckCardGroupProps } from "./check-card-group";
|
|
4
|
-
export type { CheckCardProps } from "./check-card";
|
|
5
|
-
export type { CheckCardChangeEvent, CheckCardOption, CheckCardValue } from "./types";
|
|
1
|
+
import CheckCard from "./check-card.js";
|
|
2
|
+
import CheckCardGroup from "./check-card-group.js";
|
|
3
|
+
export type { CheckCardGroupProps } from "./check-card-group.js";
|
|
4
|
+
export type { CheckCardProps } from "./check-card.js";
|
|
5
|
+
export type { CheckCardChangeEvent, CheckCardOption, CheckCardValue } from "./types.js";
|
|
6
6
|
export { CheckCard, CheckCardGroup };
|
|
7
7
|
export default CheckCard;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.cjs";
|
|
2
|
+
import type { IconType } from "../icon/index.cjs";
|
|
3
|
+
export type CheckCardValue = string | number;
|
|
4
|
+
export interface CheckCardOption {
|
|
5
|
+
value: CheckCardValue;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
readonly?: boolean;
|
|
10
|
+
symbol?: IconType[];
|
|
11
|
+
checkedSymbol?: IconType[];
|
|
12
|
+
}
|
|
13
|
+
export interface CheckCardChangeEvent {
|
|
14
|
+
checked: boolean;
|
|
15
|
+
value?: CheckCardValue;
|
|
16
|
+
}
|
|
17
|
+
export interface CheckCardAppearance {
|
|
18
|
+
theme?: SurfaceThemeType;
|
|
19
|
+
size?: SizeType;
|
|
20
|
+
shape?: ShapeType;
|
|
21
|
+
direction?: DirectionType;
|
|
22
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types";
|
|
2
|
-
import type { IconType } from "../icon";
|
|
1
|
+
import type { DirectionType, ShapeType, SizeType, SurfaceThemeType } from "../const/types.js";
|
|
2
|
+
import type { IconType } from "../icon/index.js";
|
|
3
3
|
export type CheckCardValue = string | number;
|
|
4
4
|
export interface CheckCardOption {
|
|
5
5
|
value: CheckCardValue;
|