@vaebe/ccui 2.0.1-beta.2 → 2.0.1-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/affix/index.d.ts +10 -0
- package/affix/src/affix-types.d.ts +20 -0
- package/affix/src/affix.d.ts +20 -0
- package/alert/index.d.ts +10 -0
- package/alert/src/alert-types.d.ts +48 -0
- package/alert/src/alert.d.ts +36 -0
- package/anchor/index.d.ts +10 -0
- package/anchor/src/anchor-types.d.ts +37 -0
- package/anchor/src/anchor.d.ts +31 -0
- package/auto-complete/index.d.ts +10 -0
- package/auto-complete/index.es.js +1986 -0
- package/auto-complete/index.umd.js +1 -0
- package/auto-complete/src/auto-complete-types.d.ts +134 -0
- package/auto-complete/src/auto-complete.d.ts +94 -0
- package/auto-complete/style.css +2 -0
- package/avatar/index.d.ts +10 -0
- package/avatar/src/avatar-types.d.ts +53 -0
- package/avatar/src/avatar.d.ts +36 -0
- package/avatar/src/components/icon-body.d.ts +4 -0
- package/avatar/src/components/icon-img-error.d.ts +4 -0
- package/avatar/src/components/icon-nobody.d.ts +4 -0
- package/avatar/src/composables/use-get-background-color.d.ts +1 -0
- package/avatar/src/composables/use-get-display-name.d.ts +1 -0
- package/avatar-group/index.d.ts +12 -0
- package/avatar-group/index.es.js +119 -0
- package/avatar-group/index.umd.js +1 -0
- package/avatar-group/src/avatar-group-types.d.ts +56 -0
- package/avatar-group/src/avatar-group.d.ts +27 -0
- package/avatar-group/style.css +2 -0
- package/badge/index.d.ts +10 -0
- package/badge/src/badge-types.d.ts +52 -0
- package/badge/src/badge.d.ts +36 -0
- package/badge-ribbon/index.d.ts +12 -0
- package/badge-ribbon/index.es.js +84 -0
- package/badge-ribbon/index.umd.js +1 -0
- package/badge-ribbon/src/badge-ribbon-types.d.ts +30 -0
- package/badge-ribbon/src/badge-ribbon.d.ts +17 -0
- package/badge-ribbon/style.css +2 -0
- package/breadcrumb/index.d.ts +10 -0
- package/breadcrumb/src/breadcrumb-types.d.ts +29 -0
- package/breadcrumb/src/breadcrumb.d.ts +21 -0
- package/button/index.d.ts +12 -0
- package/button/src/button-group.d.ts +12 -0
- package/button/src/button-types.d.ts +168 -0
- package/button/src/button.d.ts +75 -0
- package/button-3d/index.d.ts +10 -0
- package/button-3d/src/button-3d-types.d.ts +27 -0
- package/button-3d/src/button-3d.d.ts +23 -0
- package/calendar/index.d.ts +10 -0
- package/calendar/src/calendar-types.d.ts +56 -0
- package/calendar/src/calendar.d.ts +27 -0
- package/card/index.d.ts +10 -0
- package/card/src/card-types.d.ts +34 -0
- package/card/src/card.d.ts +21 -0
- package/card-meta/index.d.ts +11 -0
- package/card-meta/index.es.js +53 -0
- package/card-meta/index.umd.js +1 -0
- package/card-meta/src/card-meta-types.d.ts +19 -0
- package/card-meta/src/card-meta.d.ts +14 -0
- package/card-meta/style.css +2 -0
- package/carousel/index.d.ts +10 -0
- package/carousel/index.es.js +306 -0
- package/carousel/index.umd.js +1 -0
- package/carousel/src/carousel-types.d.ts +72 -0
- package/carousel/src/carousel.d.ts +58 -0
- package/carousel/style.css +2 -0
- package/cascader/index.d.ts +12 -0
- package/cascader/index.es.js +2267 -0
- package/cascader/index.umd.js +1 -0
- package/cascader/src/cascader-types.d.ts +214 -0
- package/cascader/src/cascader.d.ts +133 -0
- package/cascader/style.css +2 -0
- package/check-box/index.d.ts +10 -0
- package/check-box/src/check-box-group.d.ts +31 -0
- package/check-box/src/check-box-types.d.ts +74 -0
- package/check-box/src/check-box.d.ts +28 -0
- package/check-box/src/components/icon-active.d.ts +2 -0
- package/check-box/src/components/icon-default.d.ts +2 -0
- package/checkable-tag/index.d.ts +13 -0
- package/checkable-tag/index.es.js +141 -0
- package/checkable-tag/index.umd.js +1 -0
- package/checkable-tag/src/checkable-tag-group.d.ts +26 -0
- package/checkable-tag/src/checkable-tag-types.d.ts +83 -0
- package/checkable-tag/src/checkable-tag.d.ts +20 -0
- package/checkable-tag/style.css +2 -0
- package/collapse/index.d.ts +11 -0
- package/collapse/src/collapse-item.d.ts +16 -0
- package/collapse/src/collapse-types.d.ts +52 -0
- package/collapse/src/collapse.d.ts +24 -0
- package/color-picker/index.d.ts +10 -0
- package/color-picker/index.es.js +1881 -0
- package/color-picker/index.umd.js +1 -0
- package/color-picker/src/color-picker-types.d.ts +121 -0
- package/color-picker/src/color-picker.d.ts +75 -0
- package/color-picker/style.css +2 -0
- package/config-provider/index.d.ts +10 -0
- package/config-provider/src/config-provider-types.d.ts +131 -0
- package/config-provider/src/config-provider.d.ts +24 -0
- package/date-picker/index.d.ts +10 -0
- package/date-picker/src/date-picker-types.d.ts +179 -0
- package/date-picker/src/date-picker.d.ts +113 -0
- package/descriptions/index.d.ts +11 -0
- package/descriptions/src/descriptions-item.d.ts +19 -0
- package/descriptions/src/descriptions-types.d.ts +64 -0
- package/descriptions/src/descriptions.d.ts +31 -0
- package/divider/index.d.ts +10 -0
- package/divider/src/divider-types.d.ts +31 -0
- package/divider/src/divider.d.ts +24 -0
- package/drawer/index.d.ts +10 -0
- package/drawer/src/drawer-types.d.ts +155 -0
- package/drawer/src/drawer.d.ts +79 -0
- package/dropdown/index.d.ts +10 -0
- package/dropdown/index.es.js +2 -2
- package/dropdown/index.umd.js +1 -1
- package/dropdown/src/dropdown-types.d.ts +41 -0
- package/dropdown/src/dropdown.d.ts +32 -0
- package/empty/index.d.ts +10 -0
- package/empty/src/empty-types.d.ts +16 -0
- package/empty/src/empty.d.ts +15 -0
- package/flex/index.d.ts +10 -0
- package/flex/src/flex-types.d.ts +36 -0
- package/flex/src/flex.d.ts +29 -0
- package/float-button/index.d.ts +11 -0
- package/float-button/src/back-top.d.ts +26 -0
- package/float-button/src/float-button-types.d.ts +65 -0
- package/float-button/src/float-button.d.ts +32 -0
- package/form/index.d.ts +14 -0
- package/form/src/form-item.d.ts +72 -0
- package/form/src/form-list.d.ts +12 -0
- package/form/src/form-provider.d.ts +7 -0
- package/form/src/form-types.d.ts +360 -0
- package/form/src/form.d.ts +64 -0
- package/form/src/utils.d.ts +10 -0
- package/grid/index.d.ts +10 -0
- package/grid/src/grid-types.d.ts +90 -0
- package/grid/src/grid.d.ts +58 -0
- package/icon/index.d.ts +12 -0
- package/icon/src/icon-registry.d.ts +5 -0
- package/icon/src/icon-types.d.ts +95 -0
- package/icon/src/icon.d.ts +63 -0
- package/image/index.d.ts +10 -0
- package/image/src/image-types.d.ts +56 -0
- package/image/src/image.d.ts +42 -0
- package/image-preview-group/index.d.ts +11 -0
- package/image-preview-group/index.es.js +162 -0
- package/image-preview-group/index.umd.js +1 -0
- package/image-preview-group/src/image-preview-group-types.d.ts +51 -0
- package/image-preview-group/src/image-preview-group.d.ts +25 -0
- package/image-preview-group/style.css +2 -0
- package/index.d.ts +93 -7
- package/input/index.d.ts +10 -0
- package/input/src/input-types.d.ts +164 -0
- package/input/src/input.d.ts +74 -0
- package/input-number/index.d.ts +10 -0
- package/input-number/src/input-number-types.d.ts +165 -0
- package/input-number/src/input-number.d.ts +66 -0
- package/input-otp/index.d.ts +11 -0
- package/input-otp/index.es.js +186 -0
- package/input-otp/index.umd.js +1 -0
- package/input-otp/src/input-otp-types.d.ts +68 -0
- package/input-otp/src/input-otp.d.ts +40 -0
- package/input-otp/style.css +2 -0
- package/input-search/index.d.ts +11 -0
- package/input-search/index.es.js +1228 -0
- package/input-search/index.umd.js +1 -0
- package/input-search/src/input-search-types.d.ts +106 -0
- package/input-search/src/input-search.d.ts +84 -0
- package/input-search/style.css +2 -0
- package/layout/index.d.ts +10 -0
- package/layout/src/layout-types.d.ts +70 -0
- package/layout/src/layout.d.ts +56 -0
- package/masonry/index.d.ts +10 -0
- package/masonry/src/masonry-types.d.ts +19 -0
- package/masonry/src/masonry.d.ts +16 -0
- package/mentions/index.d.ts +10 -0
- package/mentions/index.es.js +711 -0
- package/mentions/index.umd.js +1 -0
- package/mentions/src/mentions-types.d.ts +124 -0
- package/mentions/src/mentions.d.ts +79 -0
- package/mentions/style.css +2 -0
- package/menu/index.d.ts +10 -0
- package/menu/src/menu-types.d.ts +109 -0
- package/menu/src/menu.d.ts +63 -0
- package/message/index.d.ts +22 -0
- package/message/src/message-item.d.ts +46 -0
- package/message/src/message-types.d.ts +86 -0
- package/message/src/message.d.ts +21 -0
- package/message/src/use-message.d.ts +35 -0
- package/modal/index.d.ts +24 -0
- package/modal/src/confirm-types.d.ts +30 -0
- package/modal/src/confirm.d.ts +17 -0
- package/modal/src/modal-types.d.ts +175 -0
- package/modal/src/modal.d.ts +99 -0
- package/modal/src/use-modal.d.ts +34 -0
- package/notification/index.d.ts +21 -0
- package/notification/src/notification-item.d.ts +49 -0
- package/notification/src/notification-types.d.ts +91 -0
- package/notification/src/notification.d.ts +20 -0
- package/notification/src/use-notification.d.ts +34 -0
- package/package.json +611 -12
- package/pagination/index.d.ts +10 -0
- package/pagination/index.es.js +4 -2
- package/pagination/index.umd.js +1 -1
- package/pagination/src/pagination-types.d.ts +49 -0
- package/pagination/src/pagination.d.ts +43 -0
- package/popconfirm/index.d.ts +10 -0
- package/popconfirm/src/popconfirm-types.d.ts +82 -0
- package/popconfirm/src/popconfirm.d.ts +55 -0
- package/popover/index.d.ts +10 -0
- package/popover/src/popover-types.d.ts +235 -0
- package/popover/src/popover.d.ts +130 -0
- package/progress/index.d.ts +10 -0
- package/progress/src/progress-types.d.ts +48 -0
- package/progress/src/progress.d.ts +37 -0
- package/radio/index.d.ts +11 -0
- package/radio/src/components/icon-active.d.ts +2 -0
- package/radio/src/components/icon-circle.d.ts +2 -0
- package/radio/src/radio-group.d.ts +21 -0
- package/radio/src/radio-types.d.ts +55 -0
- package/radio/src/radio.d.ts +24 -0
- package/range-picker/index.d.ts +10 -0
- package/range-picker/index.es.js +2415 -0
- package/range-picker/index.umd.js +1 -0
- package/range-picker/src/range-picker-types.d.ts +169 -0
- package/range-picker/src/range-picker.d.ts +112 -0
- package/range-picker/style.css +2 -0
- package/rate/index.d.ts +10 -0
- package/rate/src/components/icon-default.d.ts +2 -0
- package/rate/src/rate-types.d.ts +34 -0
- package/rate/src/rate.d.ts +30 -0
- package/result/index.d.ts +10 -0
- package/result/src/result-types.d.ts +21 -0
- package/result/src/result.d.ts +18 -0
- package/segmented/index.d.ts +10 -0
- package/segmented/src/segmented-types.d.ts +32 -0
- package/segmented/src/segmented.d.ts +25 -0
- package/select/index.d.ts +10 -0
- package/select/src/composables/use-select.d.ts +29 -0
- package/select/src/select-types.d.ts +215 -0
- package/select/src/select.d.ts +149 -0
- package/skeleton/index.d.ts +10 -0
- package/skeleton/src/skeleton-types.d.ts +39 -0
- package/skeleton/src/skeleton.d.ts +27 -0
- package/skeleton-node/index.d.ts +11 -0
- package/skeleton-node/index.es.js +71 -0
- package/skeleton-node/index.umd.js +1 -0
- package/skeleton-node/src/skeleton-node-types.d.ts +23 -0
- package/skeleton-node/src/skeleton-node.d.ts +17 -0
- package/skeleton-node/style.css +2 -0
- package/slider/index.d.ts +10 -0
- package/slider/index.es.js +3 -3
- package/slider/index.umd.js +1 -1
- package/slider/src/composables/use-slider-tooltip.d.ts +18 -0
- package/slider/src/composables/use-slider.d.ts +68 -0
- package/slider/src/slider-types.d.ts +112 -0
- package/slider/src/slider.d.ts +149 -0
- package/space/index.d.ts +10 -0
- package/space/src/space-types.d.ts +28 -0
- package/space/src/space.d.ts +21 -0
- package/space-compact/index.d.ts +11 -0
- package/space-compact/index.es.js +59 -0
- package/space-compact/index.umd.js +1 -0
- package/space-compact/src/space-compact-types.d.ts +27 -0
- package/space-compact/src/space-compact.d.ts +15 -0
- package/space-compact/style.css +2 -0
- package/spin/index.d.ts +10 -0
- package/spin/src/spin-types.d.ts +29 -0
- package/spin/src/spin.d.ts +24 -0
- package/splitter/index.d.ts +10 -0
- package/splitter/src/splitter-types.d.ts +70 -0
- package/splitter/src/splitter.d.ts +62 -0
- package/status/index.d.ts +10 -0
- package/status/src/status-types.d.ts +10 -0
- package/status/src/status.d.ts +9 -0
- package/steps/index.d.ts +10 -0
- package/steps/src/steps-types.d.ts +48 -0
- package/steps/src/steps.d.ts +34 -0
- package/style.css +2 -0
- package/switch/index.d.ts +10 -0
- package/switch/src/switch-types.d.ts +45 -0
- package/switch/src/switch.d.ts +37 -0
- package/table/index.d.ts +11 -0
- package/table/src/table-types.d.ts +172 -0
- package/table/src/table.d.ts +67 -0
- package/table-column/index.d.ts +11 -0
- package/table-column/index.es.js +155 -0
- package/table-column/index.umd.js +1 -0
- package/table-column/src/table-column-types.d.ts +75 -0
- package/table-column/src/table-column.d.ts +63 -0
- package/table-column-group/index.d.ts +11 -0
- package/table-column-group/index.es.js +80 -0
- package/table-column-group/index.umd.js +1 -0
- package/table-column-group/src/table-column-group-types.d.ts +36 -0
- package/table-column-group/src/table-column-group.d.ts +20 -0
- package/table-summary/index.d.ts +11 -0
- package/table-summary/index.es.js +30 -0
- package/table-summary/index.umd.js +1 -0
- package/table-summary/src/table-summary-types.d.ts +29 -0
- package/table-summary/src/table-summary.d.ts +8 -0
- package/tabs/index.d.ts +11 -0
- package/tabs/src/components/tab/tab-types.d.ts +18 -0
- package/tabs/src/components/tab/tab.d.ts +15 -0
- package/tabs/src/components/tabs-nav/index.d.ts +26 -0
- package/tabs/src/tabs-types.d.ts +49 -0
- package/tabs/src/tabs.d.ts +27 -0
- package/tag/index.d.ts +10 -0
- package/tag/src/tag-types.d.ts +41 -0
- package/tag/src/tag.d.ts +24 -0
- package/textarea/index.d.ts +11 -0
- package/textarea/index.es.js +1241 -0
- package/textarea/index.umd.js +1 -0
- package/textarea/src/textarea-types.d.ts +150 -0
- package/textarea/src/textarea.d.ts +63 -0
- package/textarea/style.css +2 -0
- package/time-picker/index.d.ts +10 -0
- package/time-picker/index.es.js +2325 -0
- package/time-picker/index.umd.js +1 -0
- package/time-picker/src/time-picker-types.d.ts +168 -0
- package/time-picker/src/time-picker.d.ts +127 -0
- package/time-picker/style.css +2 -0
- package/time-range-picker/index.d.ts +10 -0
- package/time-range-picker/index.es.js +2568 -0
- package/time-range-picker/index.umd.js +1 -0
- package/time-range-picker/src/time-range-picker-types.d.ts +147 -0
- package/time-range-picker/src/time-range-picker.d.ts +124 -0
- package/time-range-picker/style.css +2 -0
- package/timeline/index.d.ts +11 -0
- package/timeline/src/timeline-item.d.ts +31 -0
- package/timeline/src/timeline-types.d.ts +72 -0
- package/timeline/src/timeline.d.ts +3 -0
- package/tooltip/index.d.ts +10 -0
- package/tooltip/src/tooltip-types.d.ts +201 -0
- package/tooltip/src/tooltip.d.ts +87 -0
- package/transfer/index.d.ts +10 -0
- package/transfer/index.es.js +1407 -0
- package/transfer/index.umd.js +1 -0
- package/transfer/src/transfer-types.d.ts +76 -0
- package/transfer/src/transfer.d.ts +59 -0
- package/transfer/style.css +2 -0
- package/tree/index.d.ts +10 -0
- package/tree/src/composables/use-tree-check.d.ts +9 -0
- package/tree/src/composables/use-tree-flatten.d.ts +11 -0
- package/tree/src/composables/use-tree-state.d.ts +17 -0
- package/tree/src/tree-types.d.ts +202 -0
- package/tree/src/tree.d.ts +122 -0
- package/tree-select/index.d.ts +12 -0
- package/tree-select/index.es.js +3009 -0
- package/tree-select/index.umd.js +1 -0
- package/tree-select/src/tree-select-types.d.ts +188 -0
- package/tree-select/src/tree-select.d.ts +128 -0
- package/tree-select/style.css +2 -0
- package/typography/index.d.ts +10 -0
- package/typography/src/typography-types.d.ts +316 -0
- package/typography/src/typography.d.ts +33 -0
- package/upload/index.d.ts +10 -0
- package/upload/index.es.js +1450 -0
- package/upload/index.umd.js +1 -0
- package/upload/src/upload-types.d.ts +99 -0
- package/upload/src/upload.d.ts +66 -0
- package/upload/style.css +2 -0
- package/upload-dragger/index.d.ts +10 -0
- package/upload-dragger/index.es.js +1472 -0
- package/upload-dragger/index.umd.js +1 -0
- package/upload-dragger/src/upload-dragger.d.ts +167 -0
- package/upload-dragger/style.css +2 -0
- package/util/index.d.ts +12 -0
- package/util/src/dom.d.ts +8 -0
- package/util/src/func.d.ts +7 -0
- package/util/src/type.d.ts +3 -0
- package/vue-ccui.es.js +11 -9
- package/vue-ccui.umd.js +1 -1
- package/watermark/index.d.ts +10 -0
- package/watermark/src/watermark-types.d.ts +47 -0
- package/watermark/src/watermark.d.ts +34 -0
- package/ccui-cli.css +0 -2
- package/nuxt/components/category.js +0 -2
- package/nuxt/components/install.js +0 -2
- package/nuxt/components/status.js +0 -2
- package/nuxt/components/title.js +0 -2
- package/nuxt/index.js +0 -13
- /package/affix/{ccui-cli.css → style.css} +0 -0
- /package/alert/{ccui-cli.css → style.css} +0 -0
- /package/anchor/{ccui-cli.css → style.css} +0 -0
- /package/avatar/{ccui-cli.css → style.css} +0 -0
- /package/badge/{ccui-cli.css → style.css} +0 -0
- /package/breadcrumb/{ccui-cli.css → style.css} +0 -0
- /package/button/{ccui-cli.css → style.css} +0 -0
- /package/button-3d/{ccui-cli.css → style.css} +0 -0
- /package/calendar/{ccui-cli.css → style.css} +0 -0
- /package/card/{ccui-cli.css → style.css} +0 -0
- /package/check-box/{ccui-cli.css → style.css} +0 -0
- /package/collapse/{ccui-cli.css → style.css} +0 -0
- /package/date-picker/{ccui-cli.css → style.css} +0 -0
- /package/descriptions/{ccui-cli.css → style.css} +0 -0
- /package/divider/{ccui-cli.css → style.css} +0 -0
- /package/drawer/{ccui-cli.css → style.css} +0 -0
- /package/dropdown/{ccui-cli.css → style.css} +0 -0
- /package/empty/{ccui-cli.css → style.css} +0 -0
- /package/flex/{ccui-cli.css → style.css} +0 -0
- /package/float-button/{ccui-cli.css → style.css} +0 -0
- /package/form/{ccui-cli.css → style.css} +0 -0
- /package/grid/{ccui-cli.css → style.css} +0 -0
- /package/icon/{ccui-cli.css → style.css} +0 -0
- /package/image/{ccui-cli.css → style.css} +0 -0
- /package/input/{ccui-cli.css → style.css} +0 -0
- /package/input-number/{ccui-cli.css → style.css} +0 -0
- /package/layout/{ccui-cli.css → style.css} +0 -0
- /package/masonry/{ccui-cli.css → style.css} +0 -0
- /package/menu/{ccui-cli.css → style.css} +0 -0
- /package/message/{ccui-cli.css → style.css} +0 -0
- /package/modal/{ccui-cli.css → style.css} +0 -0
- /package/notification/{ccui-cli.css → style.css} +0 -0
- /package/pagination/{ccui-cli.css → style.css} +0 -0
- /package/popconfirm/{ccui-cli.css → style.css} +0 -0
- /package/popover/{ccui-cli.css → style.css} +0 -0
- /package/progress/{ccui-cli.css → style.css} +0 -0
- /package/radio/{ccui-cli.css → style.css} +0 -0
- /package/rate/{ccui-cli.css → style.css} +0 -0
- /package/result/{ccui-cli.css → style.css} +0 -0
- /package/segmented/{ccui-cli.css → style.css} +0 -0
- /package/select/{ccui-cli.css → style.css} +0 -0
- /package/skeleton/{ccui-cli.css → style.css} +0 -0
- /package/slider/{ccui-cli.css → style.css} +0 -0
- /package/space/{ccui-cli.css → style.css} +0 -0
- /package/spin/{ccui-cli.css → style.css} +0 -0
- /package/splitter/{ccui-cli.css → style.css} +0 -0
- /package/status/{ccui-cli.css → style.css} +0 -0
- /package/steps/{ccui-cli.css → style.css} +0 -0
- /package/switch/{ccui-cli.css → style.css} +0 -0
- /package/table/{ccui-cli.css → style.css} +0 -0
- /package/tabs/{ccui-cli.css → style.css} +0 -0
- /package/tag/{ccui-cli.css → style.css} +0 -0
- /package/timeline/{ccui-cli.css → style.css} +0 -0
- /package/tooltip/{ccui-cli.css → style.css} +0 -0
- /package/tree/{ccui-cli.css → style.css} +0 -0
- /package/typography/{ccui-cli.css → style.css} +0 -0
- /package/watermark/{ccui-cli.css → style.css} +0 -0
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import type { Dayjs } from 'dayjs';
|
|
2
|
+
import type { ExtractPropTypes, PropType, VNode } from 'vue';
|
|
3
|
+
import type { CcSemanticClasses, CcSemanticStyles } from '../../shared/hooks/use-semantic';
|
|
4
|
+
import type { DateValue } from '../../shared/utils/date';
|
|
5
|
+
export type DatePickerSize = 'large' | 'default' | 'small';
|
|
6
|
+
export type DatePickerStatus = '' | 'error' | 'warning' | 'success' | 'validating';
|
|
7
|
+
export type DatePickerPlacement = 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight';
|
|
8
|
+
export type DatePickerType = 'date' | 'week' | 'month' | 'year' | 'quarter';
|
|
9
|
+
export type DisabledDate = (current: Dayjs) => boolean;
|
|
10
|
+
export type GetPopupContainer = (triggerNode: HTMLElement | null) => HTMLElement | null;
|
|
11
|
+
export type DateOutputFormat = 'string' | 'date' | 'number';
|
|
12
|
+
export interface DisabledTimeReturn {
|
|
13
|
+
disabledHours?: () => number[];
|
|
14
|
+
disabledMinutes?: (hour: number) => number[];
|
|
15
|
+
disabledSeconds?: (hour: number, minute: number) => number[];
|
|
16
|
+
}
|
|
17
|
+
export type DisabledTime = (current: Dayjs | null) => DisabledTimeReturn;
|
|
18
|
+
export interface CellSlotScope {
|
|
19
|
+
current: Dayjs;
|
|
20
|
+
today: Dayjs;
|
|
21
|
+
type: 'date' | 'month' | 'year' | 'quarter';
|
|
22
|
+
}
|
|
23
|
+
export interface PresetItem {
|
|
24
|
+
label: string | (() => string);
|
|
25
|
+
value: DateValue | (() => DateValue);
|
|
26
|
+
}
|
|
27
|
+
export interface TimeShowConfig {
|
|
28
|
+
/** 时间部分格式,默认 'HH:mm:ss'。仅含 H/h:m 时省略秒列。 */
|
|
29
|
+
format?: string;
|
|
30
|
+
/** 初始时间,未指定时新选日期的时间部分按已存在 pending 或 0:0:0 起步。 */
|
|
31
|
+
defaultValue?: DateValue;
|
|
32
|
+
hourStep?: number;
|
|
33
|
+
minuteStep?: number;
|
|
34
|
+
secondStep?: number;
|
|
35
|
+
disabledHours?: () => number[];
|
|
36
|
+
disabledMinutes?: () => number[];
|
|
37
|
+
disabledSeconds?: () => number[];
|
|
38
|
+
/** true 时把 disabled 的时间值从列表中剔除;默认 false(保留并打 disabled 标记)。 */
|
|
39
|
+
hideDisabledOptions?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare const DEFAULT_FORMAT_BY_PICKER: Record<DatePickerType, string>;
|
|
42
|
+
export declare const DEFAULT_TIME_FORMAT = "HH:mm:ss";
|
|
43
|
+
export declare const datePickerProps: {
|
|
44
|
+
readonly modelValue: {
|
|
45
|
+
readonly type: PropType<DateValue>;
|
|
46
|
+
readonly default: undefined;
|
|
47
|
+
};
|
|
48
|
+
readonly picker: {
|
|
49
|
+
readonly type: PropType<DatePickerType>;
|
|
50
|
+
readonly default: "date";
|
|
51
|
+
};
|
|
52
|
+
readonly format: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: "";
|
|
55
|
+
};
|
|
56
|
+
readonly valueFormat: {
|
|
57
|
+
readonly type: PropType<DateOutputFormat>;
|
|
58
|
+
readonly default: "string";
|
|
59
|
+
};
|
|
60
|
+
readonly placeholder: {
|
|
61
|
+
readonly type: StringConstructor;
|
|
62
|
+
readonly default: "";
|
|
63
|
+
};
|
|
64
|
+
readonly disabled: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
readonly clearable: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: true;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* 自定义清除图标。接 string(Iconify name / CSS class)或 VNode;
|
|
74
|
+
* 同名 `clearIcon` slot 优先级最高。
|
|
75
|
+
*/
|
|
76
|
+
readonly clearIcon: {
|
|
77
|
+
readonly type: PropType<string | VNode>;
|
|
78
|
+
readonly default: undefined;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* 自定义日历图标。接 string(Iconify name / CSS class)或 VNode;
|
|
82
|
+
* 同名 `suffixIcon` slot 优先级最高。
|
|
83
|
+
*/
|
|
84
|
+
readonly suffixIcon: {
|
|
85
|
+
readonly type: PropType<string | VNode>;
|
|
86
|
+
readonly default: undefined;
|
|
87
|
+
};
|
|
88
|
+
readonly size: {
|
|
89
|
+
readonly type: PropType<DatePickerSize>;
|
|
90
|
+
readonly default: "default";
|
|
91
|
+
};
|
|
92
|
+
readonly status: {
|
|
93
|
+
readonly type: PropType<DatePickerStatus>;
|
|
94
|
+
readonly default: "";
|
|
95
|
+
};
|
|
96
|
+
readonly disabledDate: {
|
|
97
|
+
readonly type: PropType<DisabledDate>;
|
|
98
|
+
readonly default: undefined;
|
|
99
|
+
};
|
|
100
|
+
readonly minDate: {
|
|
101
|
+
readonly type: PropType<DateValue>;
|
|
102
|
+
readonly default: undefined;
|
|
103
|
+
};
|
|
104
|
+
readonly maxDate: {
|
|
105
|
+
readonly type: PropType<DateValue>;
|
|
106
|
+
readonly default: undefined;
|
|
107
|
+
};
|
|
108
|
+
readonly disabledTime: {
|
|
109
|
+
readonly type: PropType<DisabledTime>;
|
|
110
|
+
readonly default: undefined;
|
|
111
|
+
};
|
|
112
|
+
readonly placement: {
|
|
113
|
+
readonly type: PropType<DatePickerPlacement>;
|
|
114
|
+
readonly default: "bottomLeft";
|
|
115
|
+
};
|
|
116
|
+
readonly popupClassName: {
|
|
117
|
+
readonly type: StringConstructor;
|
|
118
|
+
readonly default: "";
|
|
119
|
+
};
|
|
120
|
+
readonly popupAppendToBody: {
|
|
121
|
+
readonly type: BooleanConstructor;
|
|
122
|
+
readonly default: false;
|
|
123
|
+
};
|
|
124
|
+
readonly getPopupContainer: {
|
|
125
|
+
readonly type: PropType<GetPopupContainer>;
|
|
126
|
+
readonly default: undefined;
|
|
127
|
+
};
|
|
128
|
+
readonly autoFocus: {
|
|
129
|
+
readonly type: BooleanConstructor;
|
|
130
|
+
readonly default: false;
|
|
131
|
+
};
|
|
132
|
+
readonly inputReadOnly: {
|
|
133
|
+
readonly type: BooleanConstructor;
|
|
134
|
+
readonly default: true;
|
|
135
|
+
};
|
|
136
|
+
readonly transitionName: {
|
|
137
|
+
readonly type: StringConstructor;
|
|
138
|
+
readonly default: "ccui-date-picker-fade";
|
|
139
|
+
};
|
|
140
|
+
readonly weekStart: {
|
|
141
|
+
readonly type: PropType<0 | 1>;
|
|
142
|
+
readonly default: 0;
|
|
143
|
+
};
|
|
144
|
+
readonly showTime: {
|
|
145
|
+
readonly type: PropType<boolean | TimeShowConfig>;
|
|
146
|
+
readonly default: false;
|
|
147
|
+
};
|
|
148
|
+
readonly showNow: {
|
|
149
|
+
readonly type: BooleanConstructor;
|
|
150
|
+
readonly default: true;
|
|
151
|
+
};
|
|
152
|
+
readonly presets: {
|
|
153
|
+
readonly type: PropType<PresetItem[]>;
|
|
154
|
+
readonly default: () => never[];
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* 录入组件统一 variant 形态。
|
|
158
|
+
*/
|
|
159
|
+
readonly variant: {
|
|
160
|
+
readonly type: PropType<DatePickerVariant>;
|
|
161
|
+
readonly default: "outlined";
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* 语义化 DOM className 注入。可用 key:`root` / `input` / `popup`。
|
|
165
|
+
*/
|
|
166
|
+
readonly classNames: {
|
|
167
|
+
readonly type: PropType<CcSemanticClasses>;
|
|
168
|
+
readonly default: undefined;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* 语义化 DOM style 注入。可用 key 与 classNames 一致。
|
|
172
|
+
*/
|
|
173
|
+
readonly styles: {
|
|
174
|
+
readonly type: PropType<CcSemanticStyles>;
|
|
175
|
+
readonly default: undefined;
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
export type DatePickerProps = ExtractPropTypes<typeof datePickerProps>;
|
|
179
|
+
export type DatePickerVariant = 'outlined' | 'filled' | 'borderless' | 'underlined';
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import type { DatePickerPlacement, DatePickerType, PresetItem, TimeShowConfig } from './date-picker-types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
readonly size: import("./date-picker-types").DatePickerSize;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
|
+
readonly placeholder: string;
|
|
7
|
+
readonly status: import("./date-picker-types").DatePickerStatus;
|
|
8
|
+
readonly placement: DatePickerPlacement;
|
|
9
|
+
readonly popupClassName: string;
|
|
10
|
+
readonly popupAppendToBody: boolean;
|
|
11
|
+
readonly transitionName: string;
|
|
12
|
+
readonly variant: import("./date-picker-types").DatePickerVariant;
|
|
13
|
+
readonly format: string;
|
|
14
|
+
readonly valueFormat: import("./date-picker-types").DateOutputFormat;
|
|
15
|
+
readonly clearable: boolean;
|
|
16
|
+
readonly autoFocus: boolean;
|
|
17
|
+
readonly inputReadOnly: boolean;
|
|
18
|
+
readonly presets: PresetItem[];
|
|
19
|
+
readonly picker: DatePickerType;
|
|
20
|
+
readonly weekStart: 0 | 1;
|
|
21
|
+
readonly showTime: boolean | TimeShowConfig;
|
|
22
|
+
readonly showNow: boolean;
|
|
23
|
+
readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
|
|
24
|
+
readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
|
|
25
|
+
readonly modelValue?: import("../../shared/utils/date").DateValue;
|
|
26
|
+
readonly clearIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> | undefined;
|
|
29
|
+
readonly getPopupContainer?: import("./date-picker-types").GetPopupContainer | undefined;
|
|
30
|
+
readonly suffixIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}> | undefined;
|
|
33
|
+
readonly disabledDate?: import("./date-picker-types").DisabledDate | undefined;
|
|
34
|
+
readonly minDate?: import("../../shared/utils/date").DateValue;
|
|
35
|
+
readonly maxDate?: import("../../shared/utils/date").DateValue;
|
|
36
|
+
readonly disabledTime?: import("./date-picker-types").DisabledTime | undefined;
|
|
37
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "blur" | "focus" | "update:modelValue" | "open-change" | "panel-change")[], "change" | "blur" | "focus" | "update:modelValue" | "open-change" | "panel-change", import("vue").PublicProps, Readonly<{
|
|
38
|
+
readonly size: import("./date-picker-types").DatePickerSize;
|
|
39
|
+
readonly disabled: boolean;
|
|
40
|
+
readonly placeholder: string;
|
|
41
|
+
readonly status: import("./date-picker-types").DatePickerStatus;
|
|
42
|
+
readonly placement: DatePickerPlacement;
|
|
43
|
+
readonly popupClassName: string;
|
|
44
|
+
readonly popupAppendToBody: boolean;
|
|
45
|
+
readonly transitionName: string;
|
|
46
|
+
readonly variant: import("./date-picker-types").DatePickerVariant;
|
|
47
|
+
readonly format: string;
|
|
48
|
+
readonly valueFormat: import("./date-picker-types").DateOutputFormat;
|
|
49
|
+
readonly clearable: boolean;
|
|
50
|
+
readonly autoFocus: boolean;
|
|
51
|
+
readonly inputReadOnly: boolean;
|
|
52
|
+
readonly presets: PresetItem[];
|
|
53
|
+
readonly picker: DatePickerType;
|
|
54
|
+
readonly weekStart: 0 | 1;
|
|
55
|
+
readonly showTime: boolean | TimeShowConfig;
|
|
56
|
+
readonly showNow: boolean;
|
|
57
|
+
readonly classNames?: import("../../shared/hooks/use-semantic").CcSemanticClasses | undefined;
|
|
58
|
+
readonly styles?: import("../../shared/hooks/use-semantic").CcSemanticStyles | undefined;
|
|
59
|
+
readonly modelValue?: import("../../shared/utils/date").DateValue;
|
|
60
|
+
readonly clearIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}> | undefined;
|
|
63
|
+
readonly getPopupContainer?: import("./date-picker-types").GetPopupContainer | undefined;
|
|
64
|
+
readonly suffixIcon?: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
65
|
+
[key: string]: any;
|
|
66
|
+
}> | undefined;
|
|
67
|
+
readonly disabledDate?: import("./date-picker-types").DisabledDate | undefined;
|
|
68
|
+
readonly minDate?: import("../../shared/utils/date").DateValue;
|
|
69
|
+
readonly maxDate?: import("../../shared/utils/date").DateValue;
|
|
70
|
+
readonly disabledTime?: import("./date-picker-types").DisabledTime | undefined;
|
|
71
|
+
}> & Readonly<{
|
|
72
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
76
|
+
"onOpen-change"?: ((...args: any[]) => any) | undefined;
|
|
77
|
+
"onPanel-change"?: ((...args: any[]) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
readonly size: import("./date-picker-types").DatePickerSize;
|
|
80
|
+
readonly disabled: boolean;
|
|
81
|
+
readonly classNames: import("../../shared/hooks/use-semantic").CcSemanticClasses;
|
|
82
|
+
readonly styles: import("../../shared/hooks/use-semantic").CcSemanticStyles;
|
|
83
|
+
readonly modelValue: import("../../shared/utils/date").DateValue;
|
|
84
|
+
readonly placeholder: string;
|
|
85
|
+
readonly clearIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
|
+
[key: string]: any;
|
|
87
|
+
}>;
|
|
88
|
+
readonly status: import("./date-picker-types").DatePickerStatus;
|
|
89
|
+
readonly placement: DatePickerPlacement;
|
|
90
|
+
readonly popupClassName: string;
|
|
91
|
+
readonly popupAppendToBody: boolean;
|
|
92
|
+
readonly getPopupContainer: import("./date-picker-types").GetPopupContainer;
|
|
93
|
+
readonly transitionName: string;
|
|
94
|
+
readonly variant: import("./date-picker-types").DatePickerVariant;
|
|
95
|
+
readonly format: string;
|
|
96
|
+
readonly valueFormat: import("./date-picker-types").DateOutputFormat;
|
|
97
|
+
readonly clearable: boolean;
|
|
98
|
+
readonly autoFocus: boolean;
|
|
99
|
+
readonly inputReadOnly: boolean;
|
|
100
|
+
readonly suffixIcon: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
101
|
+
[key: string]: any;
|
|
102
|
+
}>;
|
|
103
|
+
readonly presets: PresetItem[];
|
|
104
|
+
readonly picker: DatePickerType;
|
|
105
|
+
readonly disabledDate: import("./date-picker-types").DisabledDate;
|
|
106
|
+
readonly minDate: import("../../shared/utils/date").DateValue;
|
|
107
|
+
readonly maxDate: import("../../shared/utils/date").DateValue;
|
|
108
|
+
readonly disabledTime: import("./date-picker-types").DisabledTime;
|
|
109
|
+
readonly weekStart: 0 | 1;
|
|
110
|
+
readonly showTime: boolean | TimeShowConfig;
|
|
111
|
+
readonly showNow: boolean;
|
|
112
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
113
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Descriptions from './src/descriptions';
|
|
3
|
+
import DescriptionsItem from './src/descriptions-item';
|
|
4
|
+
export { Descriptions, DescriptionsItem };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
category: string;
|
|
8
|
+
status: string;
|
|
9
|
+
install(app: App): void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly label: string;
|
|
3
|
+
readonly span: number;
|
|
4
|
+
readonly labelStyle?: Record<string, string | number> | undefined;
|
|
5
|
+
readonly contentStyle?: Record<string, string | number> | undefined;
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>[] | undefined, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
9
|
+
readonly label: string;
|
|
10
|
+
readonly span: number;
|
|
11
|
+
readonly labelStyle?: Record<string, string | number> | undefined;
|
|
12
|
+
readonly contentStyle?: Record<string, string | number> | undefined;
|
|
13
|
+
}> & Readonly<{}>, {
|
|
14
|
+
readonly label: string;
|
|
15
|
+
readonly span: number;
|
|
16
|
+
readonly labelStyle: Record<string, string | number>;
|
|
17
|
+
readonly contentStyle: Record<string, string | number>;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type DescriptionsSize = 'small' | 'middle' | 'default';
|
|
3
|
+
export type DescriptionsLayout = 'horizontal' | 'vertical';
|
|
4
|
+
export interface DescriptionsItem {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string | number;
|
|
7
|
+
span?: number;
|
|
8
|
+
labelStyle?: Record<string, string | number>;
|
|
9
|
+
contentStyle?: Record<string, string | number>;
|
|
10
|
+
}
|
|
11
|
+
export declare const descriptionsProps: {
|
|
12
|
+
readonly title: {
|
|
13
|
+
readonly type: StringConstructor;
|
|
14
|
+
readonly default: "";
|
|
15
|
+
};
|
|
16
|
+
readonly extra: {
|
|
17
|
+
readonly type: StringConstructor;
|
|
18
|
+
readonly default: "";
|
|
19
|
+
};
|
|
20
|
+
readonly bordered: {
|
|
21
|
+
readonly type: BooleanConstructor;
|
|
22
|
+
readonly default: false;
|
|
23
|
+
};
|
|
24
|
+
readonly column: {
|
|
25
|
+
readonly type: NumberConstructor;
|
|
26
|
+
readonly default: 3;
|
|
27
|
+
};
|
|
28
|
+
readonly size: {
|
|
29
|
+
readonly type: PropType<DescriptionsSize>;
|
|
30
|
+
readonly default: "default";
|
|
31
|
+
};
|
|
32
|
+
readonly layout: {
|
|
33
|
+
readonly type: PropType<DescriptionsLayout>;
|
|
34
|
+
readonly default: "horizontal";
|
|
35
|
+
};
|
|
36
|
+
readonly colon: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: true;
|
|
39
|
+
};
|
|
40
|
+
readonly items: {
|
|
41
|
+
readonly type: PropType<DescriptionsItem[]>;
|
|
42
|
+
readonly default: undefined;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type DescriptionsProps = ExtractPropTypes<typeof descriptionsProps>;
|
|
46
|
+
export declare const descriptionsItemProps: {
|
|
47
|
+
readonly label: {
|
|
48
|
+
readonly type: StringConstructor;
|
|
49
|
+
readonly default: "";
|
|
50
|
+
};
|
|
51
|
+
readonly span: {
|
|
52
|
+
readonly type: NumberConstructor;
|
|
53
|
+
readonly default: 1;
|
|
54
|
+
};
|
|
55
|
+
readonly labelStyle: {
|
|
56
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
57
|
+
readonly default: undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly contentStyle: {
|
|
60
|
+
readonly type: PropType<Record<string, string | number>>;
|
|
61
|
+
readonly default: undefined;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type DescriptionsItemProps = ExtractPropTypes<typeof descriptionsItemProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { DescriptionsItem } from './descriptions-types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
readonly title: string;
|
|
5
|
+
readonly column: number;
|
|
6
|
+
readonly layout: import("./descriptions-types").DescriptionsLayout;
|
|
7
|
+
readonly size: import("./descriptions-types").DescriptionsSize;
|
|
8
|
+
readonly colon: boolean;
|
|
9
|
+
readonly extra: string;
|
|
10
|
+
readonly bordered: boolean;
|
|
11
|
+
readonly items?: DescriptionsItem[] | undefined;
|
|
12
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
13
|
+
readonly title: string;
|
|
14
|
+
readonly column: number;
|
|
15
|
+
readonly layout: import("./descriptions-types").DescriptionsLayout;
|
|
16
|
+
readonly size: import("./descriptions-types").DescriptionsSize;
|
|
17
|
+
readonly colon: boolean;
|
|
18
|
+
readonly extra: string;
|
|
19
|
+
readonly bordered: boolean;
|
|
20
|
+
readonly items?: DescriptionsItem[] | undefined;
|
|
21
|
+
}> & Readonly<{}>, {
|
|
22
|
+
readonly title: string;
|
|
23
|
+
readonly column: number;
|
|
24
|
+
readonly layout: import("./descriptions-types").DescriptionsLayout;
|
|
25
|
+
readonly size: import("./descriptions-types").DescriptionsSize;
|
|
26
|
+
readonly items: DescriptionsItem[];
|
|
27
|
+
readonly colon: boolean;
|
|
28
|
+
readonly extra: string;
|
|
29
|
+
readonly bordered: boolean;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type DirectionType = 'horizontal' | 'vertical';
|
|
3
|
+
export type BorderStyleType = 'dashed' | 'solid';
|
|
4
|
+
export type ContentPositionType = 'left' | 'right' | 'center';
|
|
5
|
+
export declare const dividerProps: {
|
|
6
|
+
readonly direction: {
|
|
7
|
+
readonly type: PropType<DirectionType>;
|
|
8
|
+
readonly default: "horizontal";
|
|
9
|
+
};
|
|
10
|
+
readonly color: {
|
|
11
|
+
readonly type: StringConstructor;
|
|
12
|
+
readonly default: "";
|
|
13
|
+
};
|
|
14
|
+
readonly borderStyle: {
|
|
15
|
+
readonly type: PropType<BorderStyleType>;
|
|
16
|
+
readonly default: "solid";
|
|
17
|
+
};
|
|
18
|
+
readonly contentPosition: {
|
|
19
|
+
readonly type: PropType<ContentPositionType>;
|
|
20
|
+
readonly default: "center";
|
|
21
|
+
};
|
|
22
|
+
readonly contentColor: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly contentBackgroundColor: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "";
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export type DividerProps = ExtractPropTypes<typeof dividerProps>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly color: string;
|
|
4
|
+
readonly direction: import("./divider-types").DirectionType;
|
|
5
|
+
readonly borderStyle: import("./divider-types").BorderStyleType;
|
|
6
|
+
readonly contentPosition: import("./divider-types").ContentPositionType;
|
|
7
|
+
readonly contentColor: string;
|
|
8
|
+
readonly contentBackgroundColor: string;
|
|
9
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
10
|
+
readonly color: string;
|
|
11
|
+
readonly direction: import("./divider-types").DirectionType;
|
|
12
|
+
readonly borderStyle: import("./divider-types").BorderStyleType;
|
|
13
|
+
readonly contentPosition: import("./divider-types").ContentPositionType;
|
|
14
|
+
readonly contentColor: string;
|
|
15
|
+
readonly contentBackgroundColor: string;
|
|
16
|
+
}> & Readonly<{}>, {
|
|
17
|
+
readonly color: string;
|
|
18
|
+
readonly direction: import("./divider-types").DirectionType;
|
|
19
|
+
readonly borderStyle: import("./divider-types").BorderStyleType;
|
|
20
|
+
readonly contentPosition: import("./divider-types").ContentPositionType;
|
|
21
|
+
readonly contentColor: string;
|
|
22
|
+
readonly contentBackgroundColor: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { ExtractPropTypes, InjectionKey, PropType, Ref, VNode } from 'vue';
|
|
2
|
+
import type { CcSemanticClasses, CcSemanticStyles } from '../../shared/hooks/use-semantic';
|
|
3
|
+
export type DrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
4
|
+
/**
|
|
5
|
+
* `closable` 复合配置(与 Modal 同构)。
|
|
6
|
+
*/
|
|
7
|
+
export interface DrawerClosableObject {
|
|
8
|
+
closeIcon?: VNode | string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
}
|
|
12
|
+
export type DrawerClosable = boolean | DrawerClosableObject;
|
|
13
|
+
/**
|
|
14
|
+
* `push` 嵌套抽屉配置:
|
|
15
|
+
*
|
|
16
|
+
* - `boolean`:开启 / 关闭嵌套让位(默认 true)
|
|
17
|
+
* - `{ distance }`:自定义子抽屉打开时,父抽屉沿主轴让位的距离(px,默认 180)
|
|
18
|
+
*/
|
|
19
|
+
export interface DrawerPushObject {
|
|
20
|
+
distance?: number;
|
|
21
|
+
}
|
|
22
|
+
export type DrawerPush = boolean | DrawerPushObject;
|
|
23
|
+
export declare const drawerProps: {
|
|
24
|
+
/**
|
|
25
|
+
* 显示抽屉。支持 `v-model:visible`。
|
|
26
|
+
*/
|
|
27
|
+
readonly visible: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: false;
|
|
30
|
+
};
|
|
31
|
+
readonly title: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "";
|
|
34
|
+
};
|
|
35
|
+
readonly placement: {
|
|
36
|
+
readonly type: PropType<DrawerPlacement>;
|
|
37
|
+
readonly default: DrawerPlacement;
|
|
38
|
+
};
|
|
39
|
+
readonly size: {
|
|
40
|
+
readonly type: PropType<number | string>;
|
|
41
|
+
readonly default: 378;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* 关闭按钮配置。`boolean` 或 `{ closeIcon, disabled, ariaLabel }`(与 Modal 同构)。
|
|
45
|
+
*/
|
|
46
|
+
readonly closable: {
|
|
47
|
+
readonly type: PropType<DrawerClosable>;
|
|
48
|
+
readonly default: true;
|
|
49
|
+
};
|
|
50
|
+
readonly maskClosable: {
|
|
51
|
+
readonly type: BooleanConstructor;
|
|
52
|
+
readonly default: true;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* 是否支持键盘 Esc 关闭。
|
|
56
|
+
*/
|
|
57
|
+
readonly closeOnEsc: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly default: true;
|
|
60
|
+
};
|
|
61
|
+
readonly mask: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: true;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated 请改用 `footer` slot 或 `footer` prop。
|
|
67
|
+
*/
|
|
68
|
+
readonly showFooter: {
|
|
69
|
+
readonly type: BooleanConstructor;
|
|
70
|
+
readonly default: false;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* footer 内容。
|
|
74
|
+
*
|
|
75
|
+
* - `null`:隐藏 footer
|
|
76
|
+
* - `string` / `VNode`:直接渲染
|
|
77
|
+
* - `undefined`:仅 footer slot 决定是否显示
|
|
78
|
+
*
|
|
79
|
+
* `footer` slot 优先级最高。
|
|
80
|
+
*/
|
|
81
|
+
readonly footer: {
|
|
82
|
+
readonly type: PropType<string | VNode | null>;
|
|
83
|
+
readonly default: undefined;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* 加载态。`true` 时 body 区显示骨架占位。
|
|
87
|
+
*/
|
|
88
|
+
readonly loading: {
|
|
89
|
+
readonly type: BooleanConstructor;
|
|
90
|
+
readonly default: false;
|
|
91
|
+
};
|
|
92
|
+
readonly destroyOnClose: {
|
|
93
|
+
readonly type: BooleanConstructor;
|
|
94
|
+
readonly default: false;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* true 时即使未打开也渲染外层 DOM(不延迟到首次打开)。
|
|
98
|
+
*/
|
|
99
|
+
readonly keepAlive: {
|
|
100
|
+
readonly type: BooleanConstructor;
|
|
101
|
+
readonly default: false;
|
|
102
|
+
};
|
|
103
|
+
readonly zIndex: {
|
|
104
|
+
readonly type: NumberConstructor;
|
|
105
|
+
readonly default: 1000;
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* 是否把浮层 Teleport 到 `document.body`。
|
|
109
|
+
*/
|
|
110
|
+
readonly appendToBody: {
|
|
111
|
+
readonly type: BooleanConstructor;
|
|
112
|
+
readonly default: true;
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* 嵌套抽屉时父抽屉是否让位。
|
|
116
|
+
*
|
|
117
|
+
* - `true`(默认):让位 180px
|
|
118
|
+
* - `false`:不让位
|
|
119
|
+
* - `{ distance }`:自定义让位距离 px
|
|
120
|
+
*/
|
|
121
|
+
readonly push: {
|
|
122
|
+
readonly type: PropType<DrawerPush>;
|
|
123
|
+
readonly default: true;
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* 关闭后是否把焦点还给触发节点。默认 true(与 Modal 对齐)。
|
|
127
|
+
*/
|
|
128
|
+
readonly focusTriggerAfterClose: {
|
|
129
|
+
readonly type: BooleanConstructor;
|
|
130
|
+
readonly default: true;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* 语义化 DOM className 注入。可用 key:`root` / `wrap` / `mask` / `header` / `body` / `footer`。
|
|
134
|
+
*/
|
|
135
|
+
readonly classNames: {
|
|
136
|
+
readonly type: PropType<CcSemanticClasses>;
|
|
137
|
+
readonly default: undefined;
|
|
138
|
+
};
|
|
139
|
+
/**
|
|
140
|
+
* 语义化 DOM style 注入。可用 key 与 classNames 一致。
|
|
141
|
+
*/
|
|
142
|
+
readonly styles: {
|
|
143
|
+
readonly type: PropType<CcSemanticStyles>;
|
|
144
|
+
readonly default: undefined;
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
export type DrawerProps = ExtractPropTypes<typeof drawerProps>;
|
|
148
|
+
export interface DrawerParentContext {
|
|
149
|
+
/** 父抽屉的 placement,子抽屉用来决定让位方向 */
|
|
150
|
+
placement: Ref<DrawerPlacement>;
|
|
151
|
+
/** 子抽屉调用 register/unregister 通知父抽屉自己的开关状态 */
|
|
152
|
+
register: () => void;
|
|
153
|
+
unregister: () => void;
|
|
154
|
+
}
|
|
155
|
+
export declare const drawerParentInjectionKey: InjectionKey<DrawerParentContext>;
|