kui-vue 6.3.0 → 6.3.1
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 +6 -6
- package/dist/index.js +2 -2
- package/es/index.js +23 -10
- package/es/locale/de.js +1 -1
- package/es/locale/el.js +1 -1
- package/es/locale/en.js +1 -1
- package/es/locale/fr.js +1 -1
- package/es/locale/it.js +1 -1
- package/es/locale/ja.js +1 -1
- package/es/locale/ko.js +1 -1
- package/es/locale/ru.js +1 -1
- package/es/locale/th.js +1 -1
- package/es/locale/uk.js +1 -1
- package/es/locale/vi.js +1 -1
- package/es/locale/zh-CN.js +1 -1
- package/es/locale/zh-TW.js +1 -1
- 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 +3 -3
- 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 +228 -0
- package/types/color-picker/index.d.ts +4 -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 +166 -0
- package/types/components.d.ts +166 -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 +516 -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/index.d.cts +180 -0
- package/types/input-number/index.d.ts +2 -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 +82 -0
- package/types/popconfirm/index.d.ts +2 -2
- package/types/poptip/index.d.cts +80 -0
- package/types/poptip/index.d.ts +2 -2
- package/types/popup/index.d.cts +251 -0
- package/types/popup/index.d.ts +3 -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 +76 -0
- package/types/tooltip/index.d.ts +2 -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 +16 -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 +4 -4
- package/vetur/web-types.json +5 -5
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { type AppContext, type ComponentInternalInstance, type ComputedRef, type InjectionKey } from "vue";
|
|
2
|
+
import type { MarkThemeType, ShapeType, SizeType, SurfaceThemeType, ThemeType } from "../const/types.cjs";
|
|
3
|
+
/**
|
|
4
|
+
* 没有 ConfigProvider 兜底时用的语言。
|
|
5
|
+
* 默认值只有这一个出处,inject 的地方不许再各自写 zhCN 兜底;要改库级默认就改这里。
|
|
6
|
+
* 选 `en` 与文档口径一致,也和 dayjs 那侧对得上:中文语言包没注册时,月份和星期本来就是英文。
|
|
7
|
+
*/
|
|
8
|
+
export declare const DEFAULT_LOCALE: {
|
|
9
|
+
name: string;
|
|
10
|
+
k: {
|
|
11
|
+
datePicker: {
|
|
12
|
+
year: string;
|
|
13
|
+
month: string;
|
|
14
|
+
selectYear: string;
|
|
15
|
+
selectMonth: string;
|
|
16
|
+
selectDate: string;
|
|
17
|
+
selectTime: string;
|
|
18
|
+
startDate: string;
|
|
19
|
+
endDate: string;
|
|
20
|
+
today: string;
|
|
21
|
+
now: string;
|
|
22
|
+
ok: string;
|
|
23
|
+
back: string;
|
|
24
|
+
};
|
|
25
|
+
form: {
|
|
26
|
+
required: string;
|
|
27
|
+
email: string;
|
|
28
|
+
phone: string;
|
|
29
|
+
number: string;
|
|
30
|
+
num_min: string;
|
|
31
|
+
num_max: string;
|
|
32
|
+
};
|
|
33
|
+
empty: {
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
common: {
|
|
37
|
+
ok: string;
|
|
38
|
+
cancel: string;
|
|
39
|
+
};
|
|
40
|
+
page: {
|
|
41
|
+
page: string;
|
|
42
|
+
pageSize: string;
|
|
43
|
+
goto: string;
|
|
44
|
+
items: string;
|
|
45
|
+
total: string;
|
|
46
|
+
};
|
|
47
|
+
qrcode: {
|
|
48
|
+
expired: string;
|
|
49
|
+
scanned: string;
|
|
50
|
+
refresh: string;
|
|
51
|
+
loading: string;
|
|
52
|
+
};
|
|
53
|
+
select: {
|
|
54
|
+
placeholder: string;
|
|
55
|
+
loading: string;
|
|
56
|
+
emptyText: string;
|
|
57
|
+
};
|
|
58
|
+
table: {
|
|
59
|
+
emptyText: string;
|
|
60
|
+
columnSettings: string;
|
|
61
|
+
resetColumns: string;
|
|
62
|
+
expandRow: string;
|
|
63
|
+
collapseRow: string;
|
|
64
|
+
selectRow: string;
|
|
65
|
+
selectAllRows: string;
|
|
66
|
+
};
|
|
67
|
+
upload: {
|
|
68
|
+
successful: string;
|
|
69
|
+
failed: string;
|
|
70
|
+
errorFileSize: string;
|
|
71
|
+
releaseToUpload: string;
|
|
72
|
+
};
|
|
73
|
+
image: {
|
|
74
|
+
preview: string;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
export interface ConfigProviderContext {
|
|
79
|
+
size: ComputedRef<SizeType | undefined>;
|
|
80
|
+
theme: ComputedRef<ThemeType | undefined>;
|
|
81
|
+
shape: ComputedRef<ShapeType | undefined>;
|
|
82
|
+
}
|
|
83
|
+
export declare const CONFIG_PROVIDER_INJECTION_KEY: InjectionKey<ConfigProviderContext>;
|
|
84
|
+
export declare const useConfigAppearance: <T extends {
|
|
85
|
+
size?: SizeType;
|
|
86
|
+
theme?: ThemeType;
|
|
87
|
+
shape?: ShapeType;
|
|
88
|
+
}>(props: T) => {
|
|
89
|
+
size: ComputedRef<T["size"]>;
|
|
90
|
+
theme: ComputedRef<T["theme"]>;
|
|
91
|
+
shape: ComputedRef<T["shape"]>;
|
|
92
|
+
surfaceShape: ComputedRef<"round" | T["shape"]>;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Every component that paints tier classes resolves its value here instead of copying the comparison.
|
|
96
|
+
* Writing no `theme` at all is how a caller says "listen to the component", and this returns the tier
|
|
97
|
+
* that component was built to look like — the same class it reaches with no `theme`, so the two can
|
|
98
|
+
* never drift. A component's own default differs (input-family is `fill`, `collapse` is `outline`,
|
|
99
|
+
* `image` is `plain`), which is why the fallback is a parameter rather than a constant.
|
|
100
|
+
*/
|
|
101
|
+
export declare function resolveTheme(theme: ThemeType | undefined, fallback: ThemeType): ThemeType;
|
|
102
|
+
/**
|
|
103
|
+
* The other shape of "listen to the component": some components own no tier class for their default
|
|
104
|
+
* look at all. Button's `k-btn-default` is a *type* class, and a tier the stylesheet never paints —
|
|
105
|
+
* `k-btn-underlined`, since an underline only means something on a control you type into — is a dead
|
|
106
|
+
* class. An unguarded `` [`k-<component>-${theme}`]: theme `` ships both, so a component in this shape
|
|
107
|
+
* resolves through here: a value outside the tiers it actually paints yields `undefined`, emits no tier
|
|
108
|
+
* class, and leaves the component's own look in place.
|
|
109
|
+
*/
|
|
110
|
+
export declare function resolvePaintedTheme<T extends ThemeType>(theme: ThemeType | undefined, painted: readonly T[]): T | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* The two painted sets as values, for the components that hand a tier *onward* instead of painting it:
|
|
113
|
+
* a group forwarding to its items, a dropdown forwarding to its buttons, a chip list forwarding to
|
|
114
|
+
* `Tag`. Those callers must vouch for what they pass — `theme` is typed by what the receiver paints —
|
|
115
|
+
* so they run the inherited value through the receiver's guard. A component that paints its own surface
|
|
116
|
+
* keeps a local `PAINTED_THEMES` instead, because the style contract reads that from its source.
|
|
117
|
+
*/
|
|
118
|
+
export declare const SURFACE_THEMES: readonly SurfaceThemeType[];
|
|
119
|
+
export declare const MARK_THEMES: readonly MarkThemeType[];
|
|
120
|
+
interface Point {
|
|
121
|
+
x: number;
|
|
122
|
+
y: number;
|
|
123
|
+
}
|
|
124
|
+
export declare const registerAppContext: (instance: ComponentInternalInstance) => () => void;
|
|
125
|
+
export declare const getAppContext: (instance?: ComponentInternalInstance | null) => AppContext | null;
|
|
126
|
+
export declare const recordMousePoint: () => void;
|
|
127
|
+
export declare const getMousePoint: () => Point;
|
|
128
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AppContext, type ComponentInternalInstance, type ComputedRef, type InjectionKey } from "vue";
|
|
2
|
-
import type { MarkThemeType, ShapeType, SizeType, SurfaceThemeType, ThemeType } from "../const/types";
|
|
2
|
+
import type { MarkThemeType, ShapeType, SizeType, SurfaceThemeType, ThemeType } from "../const/types.js";
|
|
3
3
|
/**
|
|
4
4
|
* 没有 ConfigProvider 兜底时用的语言。
|
|
5
5
|
* 默认值只有这一个出处,inject 的地方不许再各自写 zhCN 兜底;要改库级默认就改这里。
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
+
import type { ShapeType, SizeType, ThemeType } from "../const/types.cjs";
|
|
3
|
+
import { type PopupContainerGetter } from "./popup.cjs";
|
|
4
|
+
declare const configProviderProps: {
|
|
5
|
+
locale: {
|
|
6
|
+
type: ObjectConstructor;
|
|
7
|
+
default: () => null;
|
|
8
|
+
};
|
|
9
|
+
getPopupContainer: PropType<PopupContainerGetter>;
|
|
10
|
+
size: PropType<SizeType>;
|
|
11
|
+
theme: PropType<ThemeType>;
|
|
12
|
+
shape: PropType<ShapeType>;
|
|
13
|
+
};
|
|
14
|
+
export type ConfigProviderProps = Partial<ExtractPropTypes<typeof configProviderProps>>;
|
|
15
|
+
declare const ConfigProvider: import("vue").DefineComponent<ExtractPropTypes<{
|
|
16
|
+
locale: {
|
|
17
|
+
type: ObjectConstructor;
|
|
18
|
+
default: () => null;
|
|
19
|
+
};
|
|
20
|
+
getPopupContainer: PropType<PopupContainerGetter>;
|
|
21
|
+
size: PropType<SizeType>;
|
|
22
|
+
theme: PropType<ThemeType>;
|
|
23
|
+
shape: PropType<ShapeType>;
|
|
24
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
27
|
+
locale: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => null;
|
|
30
|
+
};
|
|
31
|
+
getPopupContainer: PropType<PopupContainerGetter>;
|
|
32
|
+
size: PropType<SizeType>;
|
|
33
|
+
theme: PropType<ThemeType>;
|
|
34
|
+
shape: PropType<ShapeType>;
|
|
35
|
+
}>> & Readonly<{}>, {
|
|
36
|
+
locale: Record<string, any>;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
|
+
export default ConfigProvider;
|
package/types/config/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
2
|
-
import type { ShapeType, SizeType, ThemeType } from "../const/types";
|
|
3
|
-
import { type PopupContainerGetter } from "./popup";
|
|
2
|
+
import type { ShapeType, SizeType, ThemeType } from "../const/types.js";
|
|
3
|
+
import { type PopupContainerGetter } from "./popup.js";
|
|
4
4
|
declare const configProviderProps: {
|
|
5
5
|
locale: {
|
|
6
6
|
type: ObjectConstructor;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type PopupCloser = () => void;
|
|
2
|
+
/** Creates an isolated popup scope for components whose overlays are teleported elsewhere. */
|
|
3
|
+
export declare const providePopupHost: () => () => void;
|
|
4
|
+
/** Registers a teleported popup with its nearest Modal or Drawer. */
|
|
5
|
+
export declare const usePopupHost: (close: PopupCloser) => void;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { PropType } from "vue";
|
|
2
|
+
import type { colors } from "./var.cjs";
|
|
3
|
+
export type PlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-top" | "right-bottom";
|
|
4
|
+
export type DrawerPlacementsType = "left" | "right" | "top" | "bottom";
|
|
5
|
+
export type DropPlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right";
|
|
6
|
+
export type ValueType = "string" | "number" | "boolean";
|
|
7
|
+
export type SizeType = "small" | "medium" | "large";
|
|
8
|
+
export type ShapeType = "circle" | "square" | "round" | "default";
|
|
9
|
+
export type SurfaceShapeType = "square" | "round";
|
|
10
|
+
export type BooleanType = PropType<boolean | undefined>;
|
|
11
|
+
export type ButtonType = "primary" | "danger" | "warning" | "default" | "text" | "link";
|
|
12
|
+
export type ThemeType = "outline" | "fill" | "plain" | "solid" | "dashed" | "underlined";
|
|
13
|
+
/**
|
|
14
|
+
* The five tiers a component that paints a *plate* actually draws: the surfaces (Card, Collapse,
|
|
15
|
+
* Alert, Page, Kanban, Transfer, ListPanel, CheckCard, Image, QRCode, FeedbackPanel) plus Tag and
|
|
16
|
+
* Button. `underlined` belongs to controls you type into, so a surface never accepts it and the
|
|
17
|
+
* guard (`resolvePaintedTheme`) lands anything outside these five on the plate the component was
|
|
18
|
+
* built to look like. `ThemeType` stays the wider vocabulary of `ConfigProvider` and `Form`.
|
|
19
|
+
*/
|
|
20
|
+
export type SurfaceThemeType = "fill" | "outline" | "plain" | "solid" | "dashed";
|
|
21
|
+
/** The two tiers a mark actually draws; anything else lands on `fill`. */
|
|
22
|
+
export type MarkThemeType = "fill" | "outline";
|
|
23
|
+
export type RadioType = "radio" | "button";
|
|
24
|
+
export type DirectionType = "horizontal" | "vertical" | "inline";
|
|
25
|
+
export type AlignType = "start" | "center" | "end";
|
|
26
|
+
export type ColorType = PropType<(typeof colors)[number] | string>;
|
|
27
|
+
export type UploadStatusType = "success" | "error" | "uploading" | "waiting";
|
|
28
|
+
export type SpinModeType = "bounce" | "flip" | "rotate" | "zoom";
|
|
29
|
+
export type TriggerType = "hover" | "click" | "contextmenu";
|
|
30
|
+
export type NoticeType = "info" | "success" | "warning" | "error" | "loading";
|
|
31
|
+
export type BadgeStatusType = "default" | "success" | "error" | "warning";
|
|
32
|
+
export type FeedbackPanelKind = "positive" | "negative" | "caution" | "neutral";
|
|
33
|
+
export type TimelineMode = "left" | "right" | "center" | "alternate";
|
|
34
|
+
export type ResultStatus = "success" | "error" | "info" | "warning" | "403" | "404" | "500";
|
|
35
|
+
export type ProgressStatus = "active" | "exception" | "success" | "normal";
|
|
36
|
+
export type ProgressStroke = "round" | "butt" | "square";
|
|
37
|
+
export type ProgressType = "line" | "circle" | "dashboard";
|
|
38
|
+
export type QRCodeStatus = "active" | "loading" | "expired" | "scanned";
|
|
39
|
+
export type QRCodeErrorLevel = "L" | "M" | "Q" | "H";
|
package/types/const/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropType } from "vue";
|
|
2
|
-
import type { colors } from "./var";
|
|
2
|
+
import type { colors } from "./var.js";
|
|
3
3
|
export type PlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-top" | "right-bottom";
|
|
4
4
|
export type DrawerPlacementsType = "left" | "right" | "top" | "bottom";
|
|
5
5
|
export type DropPlacementsType = "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 预设色值名,`Tag` / `Badge` / `Button` / `Tooltip` 的 `color` 共用这一套。
|
|
3
|
+
* 里面只有能上色的名字:不传 `color` 就是组件自己的那张表面,给它再取一个名字只会让人以为
|
|
4
|
+
* 色板里存在一套跟主题无关的档。
|
|
5
|
+
*/
|
|
6
|
+
export declare const colors: readonly ["red", "orange", "yellow", "olive", "green", "teal", "blue", "volcano", "violet", "cyan", "gold", "lime", "magenta", "purple", "pink", "brown", "gray"];
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue.cjs";
|
|
2
|
+
import { Dayjs } from "dayjs";
|
|
3
|
+
import { type ExtractPropTypes, type PropType } from "vue";
|
|
4
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types.cjs";
|
|
5
|
+
import { type IconType } from "../icon/index.cjs";
|
|
6
|
+
export type DatePickerValueType = "date" | "timestamp" | "unix" | "string";
|
|
7
|
+
export type DatePickerModeType = "year" | "month" | "date" | "time" | "dateTime" | "dateRange" | "dateTimeRange";
|
|
8
|
+
export interface DatePickerPreset {
|
|
9
|
+
label: string;
|
|
10
|
+
value: () => DatePickerInput | DatePickerInput[];
|
|
11
|
+
}
|
|
12
|
+
export type DatePickerInput = string | number | Date | Dayjs;
|
|
13
|
+
export type DatePickerOutput = string | number | Date | null;
|
|
14
|
+
declare const datePickerProps: {
|
|
15
|
+
modelValue: {
|
|
16
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
value: {
|
|
20
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
21
|
+
default: null;
|
|
22
|
+
};
|
|
23
|
+
startDate: {
|
|
24
|
+
type: PropType<DatePickerInput | null>;
|
|
25
|
+
default: null;
|
|
26
|
+
};
|
|
27
|
+
endDate: {
|
|
28
|
+
type: PropType<DatePickerInput | null>;
|
|
29
|
+
default: null;
|
|
30
|
+
};
|
|
31
|
+
valueType: {
|
|
32
|
+
type: PropType<DatePickerValueType>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
mode: {
|
|
36
|
+
type: PropType<DatePickerModeType>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
presets: PropType<DatePickerPreset[]>;
|
|
40
|
+
disabled: {
|
|
41
|
+
type: BooleanType;
|
|
42
|
+
};
|
|
43
|
+
readonly: {
|
|
44
|
+
type: BooleanType;
|
|
45
|
+
};
|
|
46
|
+
opened: {
|
|
47
|
+
type: BooleanType;
|
|
48
|
+
};
|
|
49
|
+
panelOnly: {
|
|
50
|
+
type: BooleanType;
|
|
51
|
+
};
|
|
52
|
+
clearable: {
|
|
53
|
+
type: BooleanType;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
editable: {
|
|
57
|
+
type: BooleanType;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
placeholder: {
|
|
61
|
+
type: PropType<string | string[]>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
format: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: null;
|
|
67
|
+
};
|
|
68
|
+
disabledDate: {
|
|
69
|
+
type: PropType<(date: Date) => boolean>;
|
|
70
|
+
default: () => boolean;
|
|
71
|
+
};
|
|
72
|
+
disabledTime: {
|
|
73
|
+
type: PropType<(date: Date) => boolean>;
|
|
74
|
+
default: () => boolean;
|
|
75
|
+
};
|
|
76
|
+
size: {
|
|
77
|
+
type: PropType<SizeType>;
|
|
78
|
+
};
|
|
79
|
+
dateIcon: {
|
|
80
|
+
type: PropType<IconType[]>;
|
|
81
|
+
};
|
|
82
|
+
theme: {
|
|
83
|
+
type: PropType<ThemeType>;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
shape: {
|
|
87
|
+
type: PropType<ShapeType>;
|
|
88
|
+
};
|
|
89
|
+
bordered: {
|
|
90
|
+
type: BooleanType;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
placement: {
|
|
94
|
+
type: PropType<DropPlacementsType>;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
/** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
|
|
98
|
+
destroyOnClose: {
|
|
99
|
+
type: BooleanType;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
|
104
|
+
type DatePickerModelValue = DatePickerOutput | DatePickerOutput[];
|
|
105
|
+
type DatePickerBoundaryValue<T extends DatePickerModelValue> = T extends readonly (infer Item)[] ? Extract<Item, DatePickerOutput> : Extract<T, DatePickerOutput>;
|
|
106
|
+
type DatePickerPublicProps<T extends DatePickerModelValue, TStart extends DatePickerOutput = DatePickerBoundaryValue<T>, TEnd extends DatePickerOutput = DatePickerBoundaryValue<T>> = Omit<Partial<DatePickerProps>, "modelValue" | "startDate" | "endDate"> & {
|
|
107
|
+
modelValue?: T;
|
|
108
|
+
startDate?: TStart;
|
|
109
|
+
endDate?: TEnd;
|
|
110
|
+
"onUpdate:modelValue"?: (value: T) => void;
|
|
111
|
+
"onUpdate:startDate"?: (value: TStart) => void;
|
|
112
|
+
"onUpdate:endDate"?: (value: TEnd) => void;
|
|
113
|
+
onChange?: (value: T, text: string | string[]) => void;
|
|
114
|
+
onOpenChange?: (open: boolean) => void;
|
|
115
|
+
onClear?: () => void;
|
|
116
|
+
};
|
|
117
|
+
type DatePickerComponent = {
|
|
118
|
+
new <T extends DatePickerModelValue = DatePickerOutput, TStart extends DatePickerOutput = DatePickerBoundaryValue<T>, TEnd extends DatePickerOutput = DatePickerBoundaryValue<T>>(props: DatePickerPublicProps<T, TStart, TEnd>): {
|
|
119
|
+
$props: DatePickerPublicProps<T, TStart, TEnd>;
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
declare const DatePicker: import("vue").DefineComponent<ExtractPropTypes<{
|
|
123
|
+
modelValue: {
|
|
124
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
125
|
+
default: undefined;
|
|
126
|
+
};
|
|
127
|
+
value: {
|
|
128
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
129
|
+
default: null;
|
|
130
|
+
};
|
|
131
|
+
startDate: {
|
|
132
|
+
type: PropType<DatePickerInput | null>;
|
|
133
|
+
default: null;
|
|
134
|
+
};
|
|
135
|
+
endDate: {
|
|
136
|
+
type: PropType<DatePickerInput | null>;
|
|
137
|
+
default: null;
|
|
138
|
+
};
|
|
139
|
+
valueType: {
|
|
140
|
+
type: PropType<DatePickerValueType>;
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
mode: {
|
|
144
|
+
type: PropType<DatePickerModeType>;
|
|
145
|
+
default: string;
|
|
146
|
+
};
|
|
147
|
+
presets: PropType<DatePickerPreset[]>;
|
|
148
|
+
disabled: {
|
|
149
|
+
type: BooleanType;
|
|
150
|
+
};
|
|
151
|
+
readonly: {
|
|
152
|
+
type: BooleanType;
|
|
153
|
+
};
|
|
154
|
+
opened: {
|
|
155
|
+
type: BooleanType;
|
|
156
|
+
};
|
|
157
|
+
panelOnly: {
|
|
158
|
+
type: BooleanType;
|
|
159
|
+
};
|
|
160
|
+
clearable: {
|
|
161
|
+
type: BooleanType;
|
|
162
|
+
default: boolean;
|
|
163
|
+
};
|
|
164
|
+
editable: {
|
|
165
|
+
type: BooleanType;
|
|
166
|
+
default: boolean;
|
|
167
|
+
};
|
|
168
|
+
placeholder: {
|
|
169
|
+
type: PropType<string | string[]>;
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
format: {
|
|
173
|
+
type: StringConstructor;
|
|
174
|
+
default: null;
|
|
175
|
+
};
|
|
176
|
+
disabledDate: {
|
|
177
|
+
type: PropType<(date: Date) => boolean>;
|
|
178
|
+
default: () => boolean;
|
|
179
|
+
};
|
|
180
|
+
disabledTime: {
|
|
181
|
+
type: PropType<(date: Date) => boolean>;
|
|
182
|
+
default: () => boolean;
|
|
183
|
+
};
|
|
184
|
+
size: {
|
|
185
|
+
type: PropType<SizeType>;
|
|
186
|
+
};
|
|
187
|
+
dateIcon: {
|
|
188
|
+
type: PropType<IconType[]>;
|
|
189
|
+
};
|
|
190
|
+
theme: {
|
|
191
|
+
type: PropType<ThemeType>;
|
|
192
|
+
default: string;
|
|
193
|
+
};
|
|
194
|
+
shape: {
|
|
195
|
+
type: PropType<ShapeType>;
|
|
196
|
+
};
|
|
197
|
+
bordered: {
|
|
198
|
+
type: BooleanType;
|
|
199
|
+
default: boolean;
|
|
200
|
+
};
|
|
201
|
+
placement: {
|
|
202
|
+
type: PropType<DropPlacementsType>;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
/** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
|
|
206
|
+
destroyOnClose: {
|
|
207
|
+
type: BooleanType;
|
|
208
|
+
default: boolean;
|
|
209
|
+
};
|
|
210
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
211
|
+
"update:modelValue": (value: DatePickerOutput | DatePickerOutput[]) => boolean;
|
|
212
|
+
"update:startDate": (value: DatePickerOutput) => boolean;
|
|
213
|
+
"update:endDate": (value: DatePickerOutput) => boolean;
|
|
214
|
+
change: (value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => boolean;
|
|
215
|
+
openChange: (open: boolean) => boolean;
|
|
216
|
+
"update:opened": (open: boolean) => boolean;
|
|
217
|
+
clear: () => true;
|
|
218
|
+
}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
219
|
+
modelValue: {
|
|
220
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
221
|
+
default: undefined;
|
|
222
|
+
};
|
|
223
|
+
value: {
|
|
224
|
+
type: PropType<DatePickerInput | DatePickerInput[] | null>;
|
|
225
|
+
default: null;
|
|
226
|
+
};
|
|
227
|
+
startDate: {
|
|
228
|
+
type: PropType<DatePickerInput | null>;
|
|
229
|
+
default: null;
|
|
230
|
+
};
|
|
231
|
+
endDate: {
|
|
232
|
+
type: PropType<DatePickerInput | null>;
|
|
233
|
+
default: null;
|
|
234
|
+
};
|
|
235
|
+
valueType: {
|
|
236
|
+
type: PropType<DatePickerValueType>;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
239
|
+
mode: {
|
|
240
|
+
type: PropType<DatePickerModeType>;
|
|
241
|
+
default: string;
|
|
242
|
+
};
|
|
243
|
+
presets: PropType<DatePickerPreset[]>;
|
|
244
|
+
disabled: {
|
|
245
|
+
type: BooleanType;
|
|
246
|
+
};
|
|
247
|
+
readonly: {
|
|
248
|
+
type: BooleanType;
|
|
249
|
+
};
|
|
250
|
+
opened: {
|
|
251
|
+
type: BooleanType;
|
|
252
|
+
};
|
|
253
|
+
panelOnly: {
|
|
254
|
+
type: BooleanType;
|
|
255
|
+
};
|
|
256
|
+
clearable: {
|
|
257
|
+
type: BooleanType;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
editable: {
|
|
261
|
+
type: BooleanType;
|
|
262
|
+
default: boolean;
|
|
263
|
+
};
|
|
264
|
+
placeholder: {
|
|
265
|
+
type: PropType<string | string[]>;
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
format: {
|
|
269
|
+
type: StringConstructor;
|
|
270
|
+
default: null;
|
|
271
|
+
};
|
|
272
|
+
disabledDate: {
|
|
273
|
+
type: PropType<(date: Date) => boolean>;
|
|
274
|
+
default: () => boolean;
|
|
275
|
+
};
|
|
276
|
+
disabledTime: {
|
|
277
|
+
type: PropType<(date: Date) => boolean>;
|
|
278
|
+
default: () => boolean;
|
|
279
|
+
};
|
|
280
|
+
size: {
|
|
281
|
+
type: PropType<SizeType>;
|
|
282
|
+
};
|
|
283
|
+
dateIcon: {
|
|
284
|
+
type: PropType<IconType[]>;
|
|
285
|
+
};
|
|
286
|
+
theme: {
|
|
287
|
+
type: PropType<ThemeType>;
|
|
288
|
+
default: string;
|
|
289
|
+
};
|
|
290
|
+
shape: {
|
|
291
|
+
type: PropType<ShapeType>;
|
|
292
|
+
};
|
|
293
|
+
bordered: {
|
|
294
|
+
type: BooleanType;
|
|
295
|
+
default: boolean;
|
|
296
|
+
};
|
|
297
|
+
placement: {
|
|
298
|
+
type: PropType<DropPlacementsType>;
|
|
299
|
+
default: string;
|
|
300
|
+
};
|
|
301
|
+
/** 关闭后是否销毁面板内容。默认销毁(重开时重新挂载);设为 false 可保留面板内的表单状态,代价是每个打开过的实例留一份隐藏 DOM。 */
|
|
302
|
+
destroyOnClose: {
|
|
303
|
+
type: BooleanType;
|
|
304
|
+
default: boolean;
|
|
305
|
+
};
|
|
306
|
+
}>> & Readonly<{
|
|
307
|
+
onChange?: ((value: DatePickerOutput | DatePickerOutput[], text: string | string[]) => any) | undefined;
|
|
308
|
+
onClear?: (() => any) | undefined;
|
|
309
|
+
onOpenChange?: ((open: boolean) => any) | undefined;
|
|
310
|
+
"onUpdate:modelValue"?: ((value: DatePickerOutput | DatePickerOutput[]) => any) | undefined;
|
|
311
|
+
"onUpdate:startDate"?: ((value: DatePickerOutput) => any) | undefined;
|
|
312
|
+
"onUpdate:endDate"?: ((value: DatePickerOutput) => any) | undefined;
|
|
313
|
+
"onUpdate:opened"?: ((open: boolean) => any) | undefined;
|
|
314
|
+
}>, {
|
|
315
|
+
mode: DatePickerModeType;
|
|
316
|
+
placement: DropPlacementsType;
|
|
317
|
+
destroyOnClose: boolean | undefined;
|
|
318
|
+
theme: ThemeType;
|
|
319
|
+
value: DatePickerInput | DatePickerInput[] | null;
|
|
320
|
+
bordered: boolean | undefined;
|
|
321
|
+
modelValue: DatePickerInput | DatePickerInput[] | null;
|
|
322
|
+
clearable: boolean | undefined;
|
|
323
|
+
placeholder: string | string[];
|
|
324
|
+
valueType: DatePickerValueType;
|
|
325
|
+
startDate: DatePickerInput | null;
|
|
326
|
+
endDate: DatePickerInput | null;
|
|
327
|
+
editable: boolean | undefined;
|
|
328
|
+
format: string;
|
|
329
|
+
disabledDate: (date: Date) => boolean;
|
|
330
|
+
disabledTime: (date: Date) => boolean;
|
|
331
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
332
|
+
export declare const DatePickerPanel: ForwardedComponent<typeof DatePicker>;
|
|
333
|
+
declare const _default: DatePickerComponent;
|
|
334
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { ForwardedComponent } from "../utils/vue";
|
|
1
|
+
import type { ForwardedComponent } from "../utils/vue.js";
|
|
2
2
|
import { Dayjs } from "dayjs";
|
|
3
3
|
import { type ExtractPropTypes, type PropType } from "vue";
|
|
4
|
-
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types";
|
|
5
|
-
import { type IconType } from "../icon";
|
|
4
|
+
import type { BooleanType, DropPlacementsType, ShapeType, SizeType, ThemeType } from "../const/types.js";
|
|
5
|
+
import { type IconType } from "../icon/index.js";
|
|
6
6
|
export type DatePickerValueType = "date" | "timestamp" | "unix" | "string";
|
|
7
7
|
export type DatePickerModeType = "year" | "month" | "date" | "time" | "dateTime" | "dateRange" | "dateTimeRange";
|
|
8
8
|
export interface DatePickerPreset {
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type PropType, type VNodeChild } from "vue";
|
|
2
|
+
import type { BooleanType, DirectionType } from "../const/types.cjs";
|
|
3
|
+
export interface DescriptionsItemProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
span?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const DescriptionsItem: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
label: PropType<VNodeChild>;
|
|
9
|
+
span: {
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
default: number;
|
|
12
|
+
};
|
|
13
|
+
type: PropType<"label" | "content">;
|
|
14
|
+
bordered: BooleanType;
|
|
15
|
+
layout: PropType<DirectionType>;
|
|
16
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
label: PropType<VNodeChild>;
|
|
18
|
+
span: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
type: PropType<"label" | "content">;
|
|
23
|
+
bordered: BooleanType;
|
|
24
|
+
layout: PropType<DirectionType>;
|
|
25
|
+
}>> & Readonly<{}>, {
|
|
26
|
+
span: number;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
+
export default DescriptionsItem;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType, type VNodeChild } from "vue";
|
|
2
|
-
import type { BooleanType, DirectionType } from "../const/types";
|
|
2
|
+
import type { BooleanType, DirectionType } from "../const/types.js";
|
|
3
3
|
export interface DescriptionsItemProps {
|
|
4
4
|
label?: string;
|
|
5
5
|
span?: number;
|