@vaebe/ccui 2.0.1-beta.1 → 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,316 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type TypographyType = 'secondary' | 'success' | 'warning' | 'danger';
|
|
3
|
+
export type TitleLevel = 1 | 2 | 3 | 4 | 5;
|
|
4
|
+
/** copyable 复合配置(`bool | { ... }`) */
|
|
5
|
+
export interface CopyableConfig {
|
|
6
|
+
/** 实际复制的文本;不传则从 default slot 拿 textContent */
|
|
7
|
+
text?: string;
|
|
8
|
+
/** 复制后 icon 恢复延时(ms),默认 3000 */
|
|
9
|
+
copyableDelay?: number;
|
|
10
|
+
/** [复制前, 复制后] tooltip 文案;保留为 prop 因为是数据不是 render */
|
|
11
|
+
tooltips?: [string, string] | false;
|
|
12
|
+
/** 复制完成回调 */
|
|
13
|
+
onCopy?: (text: string) => void;
|
|
14
|
+
}
|
|
15
|
+
/** editable 复合配置(`bool | { ... }`;render props 全翻 slot) */
|
|
16
|
+
export interface EditableConfig {
|
|
17
|
+
/** 编辑触发方式,默认 `['icon']`;可选 `['text']` 让点击文本也进入编辑 */
|
|
18
|
+
triggerType?: Array<'icon' | 'text'>;
|
|
19
|
+
/** 切回编辑前的 tooltip 文字 */
|
|
20
|
+
tooltip?: string | false;
|
|
21
|
+
/** 受控编辑态 */
|
|
22
|
+
editing?: boolean;
|
|
23
|
+
/** 受控 / 非受控初始文本 */
|
|
24
|
+
text?: string;
|
|
25
|
+
/** 最大长度 */
|
|
26
|
+
maxLength?: number;
|
|
27
|
+
/** autoSize textarea(true 或 { minRows, maxRows }) */
|
|
28
|
+
autoSize?: boolean | {
|
|
29
|
+
minRows?: number;
|
|
30
|
+
maxRows?: number;
|
|
31
|
+
};
|
|
32
|
+
onStart?: () => void;
|
|
33
|
+
onChange?: (value: string) => void;
|
|
34
|
+
onCancel?: () => void;
|
|
35
|
+
onEnd?: () => void;
|
|
36
|
+
}
|
|
37
|
+
/** ellipsis 复合配置(`bool | { ... }`;render props 全翻 slot) */
|
|
38
|
+
export interface EllipsisConfig {
|
|
39
|
+
/** 多行截断行数;默认 1 */
|
|
40
|
+
rows?: number;
|
|
41
|
+
/** 是否可展开/收起;true 展开后保留收起按钮;'collapsible' 同 true */
|
|
42
|
+
expandable?: boolean | 'collapsible';
|
|
43
|
+
/** 受控展开态 */
|
|
44
|
+
expanded?: boolean;
|
|
45
|
+
/** 显示原生 title attribute(jsdom 友好的 fallback;后续可接 Tooltip 组件) */
|
|
46
|
+
tooltip?: boolean | string;
|
|
47
|
+
onExpand?: (expanded: boolean) => void;
|
|
48
|
+
onEllipsis?: (clipped: boolean) => void;
|
|
49
|
+
}
|
|
50
|
+
export declare const baseTextProps: {
|
|
51
|
+
readonly type: {
|
|
52
|
+
readonly type: PropType<TypographyType>;
|
|
53
|
+
readonly default: undefined;
|
|
54
|
+
};
|
|
55
|
+
readonly disabled: {
|
|
56
|
+
readonly type: BooleanConstructor;
|
|
57
|
+
readonly default: false;
|
|
58
|
+
};
|
|
59
|
+
readonly mark: {
|
|
60
|
+
readonly type: BooleanConstructor;
|
|
61
|
+
readonly default: false;
|
|
62
|
+
};
|
|
63
|
+
readonly code: {
|
|
64
|
+
readonly type: BooleanConstructor;
|
|
65
|
+
readonly default: false;
|
|
66
|
+
};
|
|
67
|
+
readonly keyboard: {
|
|
68
|
+
readonly type: BooleanConstructor;
|
|
69
|
+
readonly default: false;
|
|
70
|
+
};
|
|
71
|
+
readonly underline: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: false;
|
|
74
|
+
};
|
|
75
|
+
readonly delete: {
|
|
76
|
+
readonly type: BooleanConstructor;
|
|
77
|
+
readonly default: false;
|
|
78
|
+
};
|
|
79
|
+
readonly strong: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: false;
|
|
82
|
+
};
|
|
83
|
+
readonly italic: {
|
|
84
|
+
readonly type: BooleanConstructor;
|
|
85
|
+
readonly default: false;
|
|
86
|
+
};
|
|
87
|
+
readonly copyable: {
|
|
88
|
+
readonly type: PropType<boolean | CopyableConfig>;
|
|
89
|
+
readonly default: false;
|
|
90
|
+
};
|
|
91
|
+
readonly editable: {
|
|
92
|
+
readonly type: PropType<boolean | EditableConfig>;
|
|
93
|
+
readonly default: false;
|
|
94
|
+
};
|
|
95
|
+
readonly ellipsis: {
|
|
96
|
+
readonly type: PropType<boolean | EllipsisConfig>;
|
|
97
|
+
readonly default: false;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export declare const textProps: {
|
|
101
|
+
readonly type: {
|
|
102
|
+
readonly type: PropType<TypographyType>;
|
|
103
|
+
readonly default: undefined;
|
|
104
|
+
};
|
|
105
|
+
readonly disabled: {
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly default: false;
|
|
108
|
+
};
|
|
109
|
+
readonly mark: {
|
|
110
|
+
readonly type: BooleanConstructor;
|
|
111
|
+
readonly default: false;
|
|
112
|
+
};
|
|
113
|
+
readonly code: {
|
|
114
|
+
readonly type: BooleanConstructor;
|
|
115
|
+
readonly default: false;
|
|
116
|
+
};
|
|
117
|
+
readonly keyboard: {
|
|
118
|
+
readonly type: BooleanConstructor;
|
|
119
|
+
readonly default: false;
|
|
120
|
+
};
|
|
121
|
+
readonly underline: {
|
|
122
|
+
readonly type: BooleanConstructor;
|
|
123
|
+
readonly default: false;
|
|
124
|
+
};
|
|
125
|
+
readonly delete: {
|
|
126
|
+
readonly type: BooleanConstructor;
|
|
127
|
+
readonly default: false;
|
|
128
|
+
};
|
|
129
|
+
readonly strong: {
|
|
130
|
+
readonly type: BooleanConstructor;
|
|
131
|
+
readonly default: false;
|
|
132
|
+
};
|
|
133
|
+
readonly italic: {
|
|
134
|
+
readonly type: BooleanConstructor;
|
|
135
|
+
readonly default: false;
|
|
136
|
+
};
|
|
137
|
+
readonly copyable: {
|
|
138
|
+
readonly type: PropType<boolean | CopyableConfig>;
|
|
139
|
+
readonly default: false;
|
|
140
|
+
};
|
|
141
|
+
readonly editable: {
|
|
142
|
+
readonly type: PropType<boolean | EditableConfig>;
|
|
143
|
+
readonly default: false;
|
|
144
|
+
};
|
|
145
|
+
readonly ellipsis: {
|
|
146
|
+
readonly type: PropType<boolean | EllipsisConfig>;
|
|
147
|
+
readonly default: false;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export declare const paragraphProps: {
|
|
151
|
+
readonly type: {
|
|
152
|
+
readonly type: PropType<TypographyType>;
|
|
153
|
+
readonly default: undefined;
|
|
154
|
+
};
|
|
155
|
+
readonly disabled: {
|
|
156
|
+
readonly type: BooleanConstructor;
|
|
157
|
+
readonly default: false;
|
|
158
|
+
};
|
|
159
|
+
readonly mark: {
|
|
160
|
+
readonly type: BooleanConstructor;
|
|
161
|
+
readonly default: false;
|
|
162
|
+
};
|
|
163
|
+
readonly code: {
|
|
164
|
+
readonly type: BooleanConstructor;
|
|
165
|
+
readonly default: false;
|
|
166
|
+
};
|
|
167
|
+
readonly keyboard: {
|
|
168
|
+
readonly type: BooleanConstructor;
|
|
169
|
+
readonly default: false;
|
|
170
|
+
};
|
|
171
|
+
readonly underline: {
|
|
172
|
+
readonly type: BooleanConstructor;
|
|
173
|
+
readonly default: false;
|
|
174
|
+
};
|
|
175
|
+
readonly delete: {
|
|
176
|
+
readonly type: BooleanConstructor;
|
|
177
|
+
readonly default: false;
|
|
178
|
+
};
|
|
179
|
+
readonly strong: {
|
|
180
|
+
readonly type: BooleanConstructor;
|
|
181
|
+
readonly default: false;
|
|
182
|
+
};
|
|
183
|
+
readonly italic: {
|
|
184
|
+
readonly type: BooleanConstructor;
|
|
185
|
+
readonly default: false;
|
|
186
|
+
};
|
|
187
|
+
readonly copyable: {
|
|
188
|
+
readonly type: PropType<boolean | CopyableConfig>;
|
|
189
|
+
readonly default: false;
|
|
190
|
+
};
|
|
191
|
+
readonly editable: {
|
|
192
|
+
readonly type: PropType<boolean | EditableConfig>;
|
|
193
|
+
readonly default: false;
|
|
194
|
+
};
|
|
195
|
+
readonly ellipsis: {
|
|
196
|
+
readonly type: PropType<boolean | EllipsisConfig>;
|
|
197
|
+
readonly default: false;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export declare const titleProps: {
|
|
201
|
+
readonly level: {
|
|
202
|
+
readonly type: PropType<TitleLevel>;
|
|
203
|
+
readonly default: 1;
|
|
204
|
+
readonly validator: (v: number) => boolean;
|
|
205
|
+
};
|
|
206
|
+
readonly type: {
|
|
207
|
+
readonly type: PropType<TypographyType>;
|
|
208
|
+
readonly default: undefined;
|
|
209
|
+
};
|
|
210
|
+
readonly disabled: {
|
|
211
|
+
readonly type: BooleanConstructor;
|
|
212
|
+
readonly default: false;
|
|
213
|
+
};
|
|
214
|
+
readonly mark: {
|
|
215
|
+
readonly type: BooleanConstructor;
|
|
216
|
+
readonly default: false;
|
|
217
|
+
};
|
|
218
|
+
readonly code: {
|
|
219
|
+
readonly type: BooleanConstructor;
|
|
220
|
+
readonly default: false;
|
|
221
|
+
};
|
|
222
|
+
readonly keyboard: {
|
|
223
|
+
readonly type: BooleanConstructor;
|
|
224
|
+
readonly default: false;
|
|
225
|
+
};
|
|
226
|
+
readonly underline: {
|
|
227
|
+
readonly type: BooleanConstructor;
|
|
228
|
+
readonly default: false;
|
|
229
|
+
};
|
|
230
|
+
readonly delete: {
|
|
231
|
+
readonly type: BooleanConstructor;
|
|
232
|
+
readonly default: false;
|
|
233
|
+
};
|
|
234
|
+
readonly strong: {
|
|
235
|
+
readonly type: BooleanConstructor;
|
|
236
|
+
readonly default: false;
|
|
237
|
+
};
|
|
238
|
+
readonly italic: {
|
|
239
|
+
readonly type: BooleanConstructor;
|
|
240
|
+
readonly default: false;
|
|
241
|
+
};
|
|
242
|
+
readonly copyable: {
|
|
243
|
+
readonly type: PropType<boolean | CopyableConfig>;
|
|
244
|
+
readonly default: false;
|
|
245
|
+
};
|
|
246
|
+
readonly editable: {
|
|
247
|
+
readonly type: PropType<boolean | EditableConfig>;
|
|
248
|
+
readonly default: false;
|
|
249
|
+
};
|
|
250
|
+
readonly ellipsis: {
|
|
251
|
+
readonly type: PropType<boolean | EllipsisConfig>;
|
|
252
|
+
readonly default: false;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
export declare const linkProps: {
|
|
256
|
+
readonly href: {
|
|
257
|
+
readonly type: StringConstructor;
|
|
258
|
+
readonly default: undefined;
|
|
259
|
+
};
|
|
260
|
+
readonly target: {
|
|
261
|
+
readonly type: StringConstructor;
|
|
262
|
+
readonly default: undefined;
|
|
263
|
+
};
|
|
264
|
+
readonly type: {
|
|
265
|
+
readonly type: PropType<TypographyType>;
|
|
266
|
+
readonly default: undefined;
|
|
267
|
+
};
|
|
268
|
+
readonly disabled: {
|
|
269
|
+
readonly type: BooleanConstructor;
|
|
270
|
+
readonly default: false;
|
|
271
|
+
};
|
|
272
|
+
readonly mark: {
|
|
273
|
+
readonly type: BooleanConstructor;
|
|
274
|
+
readonly default: false;
|
|
275
|
+
};
|
|
276
|
+
readonly code: {
|
|
277
|
+
readonly type: BooleanConstructor;
|
|
278
|
+
readonly default: false;
|
|
279
|
+
};
|
|
280
|
+
readonly keyboard: {
|
|
281
|
+
readonly type: BooleanConstructor;
|
|
282
|
+
readonly default: false;
|
|
283
|
+
};
|
|
284
|
+
readonly underline: {
|
|
285
|
+
readonly type: BooleanConstructor;
|
|
286
|
+
readonly default: false;
|
|
287
|
+
};
|
|
288
|
+
readonly delete: {
|
|
289
|
+
readonly type: BooleanConstructor;
|
|
290
|
+
readonly default: false;
|
|
291
|
+
};
|
|
292
|
+
readonly strong: {
|
|
293
|
+
readonly type: BooleanConstructor;
|
|
294
|
+
readonly default: false;
|
|
295
|
+
};
|
|
296
|
+
readonly italic: {
|
|
297
|
+
readonly type: BooleanConstructor;
|
|
298
|
+
readonly default: false;
|
|
299
|
+
};
|
|
300
|
+
readonly copyable: {
|
|
301
|
+
readonly type: PropType<boolean | CopyableConfig>;
|
|
302
|
+
readonly default: false;
|
|
303
|
+
};
|
|
304
|
+
readonly editable: {
|
|
305
|
+
readonly type: PropType<boolean | EditableConfig>;
|
|
306
|
+
readonly default: false;
|
|
307
|
+
};
|
|
308
|
+
readonly ellipsis: {
|
|
309
|
+
readonly type: PropType<boolean | EllipsisConfig>;
|
|
310
|
+
readonly default: false;
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
export type TextProps = ExtractPropTypes<typeof textProps>;
|
|
314
|
+
export type ParagraphProps = ExtractPropTypes<typeof paragraphProps>;
|
|
315
|
+
export type TitleProps = ExtractPropTypes<typeof titleProps>;
|
|
316
|
+
export type LinkProps = ExtractPropTypes<typeof linkProps>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { VNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const Text: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
4
|
+
[key: string]: any;
|
|
5
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:editable-text"[], "update:editable-text", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
6
|
+
"onUpdate:editable-text"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}>, {} | {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export declare const Paragraph: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:editable-text"[], "update:editable-text", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
13
|
+
"onUpdate:editable-text"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {} | {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export declare const Title: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:editable-text"[], "update:editable-text", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
20
|
+
"onUpdate:editable-text"?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
}>, {} | {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export declare const Link: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:editable-text"[], "update:editable-text", import("vue").PublicProps, Readonly<{}> & Readonly<{
|
|
27
|
+
"onUpdate:editable-text"?: ((...args: any[]) => any) | undefined;
|
|
28
|
+
}>, {} | {
|
|
29
|
+
[x: string]: any;
|
|
30
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export declare const Typography: import("vue").DefineComponent<{}, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|