@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,80 @@
|
|
|
1
|
+
import { defineComponent as e, inject as t, onBeforeUnmount as n, provide as r, shallowRef as i, triggerRef as a } from "vue";
|
|
2
|
+
//#region ../ccui/ui/table/src/table-types.ts
|
|
3
|
+
var o = Symbol("TableColumnsCollector"), s = Symbol("TableColumnGroupCollector"), c = {
|
|
4
|
+
title: {
|
|
5
|
+
type: String,
|
|
6
|
+
default: ""
|
|
7
|
+
},
|
|
8
|
+
align: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: void 0
|
|
11
|
+
},
|
|
12
|
+
fixed: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: void 0
|
|
15
|
+
},
|
|
16
|
+
onHeaderCell: {
|
|
17
|
+
type: Function,
|
|
18
|
+
default: void 0
|
|
19
|
+
}
|
|
20
|
+
}, l = 0, u = /* @__PURE__ */ e({
|
|
21
|
+
name: "CTableColumnGroup",
|
|
22
|
+
props: c,
|
|
23
|
+
setup(e, { slots: c }) {
|
|
24
|
+
let u = t(s, null) ?? t(o, null), d = Symbol("CTableColumnGroup"), f = ++l, p = /* @__PURE__ */ new Map(), m = i([]), h = () => {
|
|
25
|
+
m.value = Array.from(p.values()).sort((e, t) => e.order - t.order).map((e) => e.column), a(m);
|
|
26
|
+
}, g = {};
|
|
27
|
+
return Object.defineProperties(g, {
|
|
28
|
+
title: {
|
|
29
|
+
get: () => e.title,
|
|
30
|
+
enumerable: !0,
|
|
31
|
+
configurable: !0
|
|
32
|
+
},
|
|
33
|
+
align: {
|
|
34
|
+
get: () => e.align,
|
|
35
|
+
enumerable: !0,
|
|
36
|
+
configurable: !0
|
|
37
|
+
},
|
|
38
|
+
fixed: {
|
|
39
|
+
get: () => e.fixed,
|
|
40
|
+
enumerable: !0,
|
|
41
|
+
configurable: !0
|
|
42
|
+
},
|
|
43
|
+
onHeaderCell: {
|
|
44
|
+
get: () => e.onHeaderCell,
|
|
45
|
+
enumerable: !0,
|
|
46
|
+
configurable: !0
|
|
47
|
+
},
|
|
48
|
+
children: {
|
|
49
|
+
get: () => m.value,
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
configurable: !0
|
|
52
|
+
}
|
|
53
|
+
}), r(s, {
|
|
54
|
+
register(e, t, n) {
|
|
55
|
+
p.set(e, {
|
|
56
|
+
column: t,
|
|
57
|
+
order: n
|
|
58
|
+
}), h();
|
|
59
|
+
},
|
|
60
|
+
unregister(e) {
|
|
61
|
+
p.delete(e), h();
|
|
62
|
+
}
|
|
63
|
+
}), u && (u.register(d, g, f), n(() => u.unregister(d))), () => c.default ? c.default() : null;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region ../ccui/ui/table-column-group/index.ts
|
|
68
|
+
u.install = function(e) {
|
|
69
|
+
e.component(u.name, u);
|
|
70
|
+
};
|
|
71
|
+
var d = {
|
|
72
|
+
title: "TableColumnGroup 表格列分组",
|
|
73
|
+
category: "数据展示",
|
|
74
|
+
status: "90%",
|
|
75
|
+
install(e) {
|
|
76
|
+
e.component(u.name, u);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
//#endregion
|
|
80
|
+
export { u as TableColumnGroup, d as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n=Symbol(`TableColumnsCollector`),r=Symbol(`TableColumnGroupCollector`),i={title:{type:String,default:``},align:{type:String,default:void 0},fixed:{type:String,default:void 0},onHeaderCell:{type:Function,default:void 0}},a=0,o=(0,t.defineComponent)({name:`CTableColumnGroup`,props:i,setup(e,{slots:i}){let o=(0,t.inject)(r,null)??(0,t.inject)(n,null),s=Symbol(`CTableColumnGroup`),c=++a,l=new Map,u=(0,t.shallowRef)([]),d=()=>{u.value=Array.from(l.values()).sort((e,t)=>e.order-t.order).map(e=>e.column),(0,t.triggerRef)(u)},f={};return Object.defineProperties(f,{title:{get:()=>e.title,enumerable:!0,configurable:!0},align:{get:()=>e.align,enumerable:!0,configurable:!0},fixed:{get:()=>e.fixed,enumerable:!0,configurable:!0},onHeaderCell:{get:()=>e.onHeaderCell,enumerable:!0,configurable:!0},children:{get:()=>u.value,enumerable:!0,configurable:!0}}),(0,t.provide)(r,{register(e,t,n){l.set(e,{column:t,order:n}),d()},unregister(e){l.delete(e),d()}}),o&&(o.register(s,f,c),(0,t.onBeforeUnmount)(()=>o.unregister(s))),()=>i.default?i.default():null}});o.install=function(e){e.component(o.name,o)},e.TableColumnGroup=o,e.default={title:`TableColumnGroup 表格列分组`,category:`数据展示`,status:`90%`,install(e){e.component(o.name,o)}}});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { TableCellRenderProps, TableColumn } from '../../table/src/table-types';
|
|
3
|
+
/**
|
|
4
|
+
* 表格列分组:在 thead 多生成一行「分组标题」,子列在 tbody 中被展平。
|
|
5
|
+
*
|
|
6
|
+
* 模板用法:
|
|
7
|
+
*
|
|
8
|
+
* ```html
|
|
9
|
+
* <c-table :data-source="data">
|
|
10
|
+
* <c-table-column-group title="姓名">
|
|
11
|
+
* <c-table-column title="姓" data-index="firstName" />
|
|
12
|
+
* <c-table-column title="名" data-index="lastName" />
|
|
13
|
+
* </c-table-column-group>
|
|
14
|
+
* <c-table-column title="年龄" data-index="age" />
|
|
15
|
+
* </c-table>
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare const tableColumnGroupProps: {
|
|
19
|
+
readonly title: {
|
|
20
|
+
readonly type: StringConstructor;
|
|
21
|
+
readonly default: "";
|
|
22
|
+
};
|
|
23
|
+
readonly align: {
|
|
24
|
+
readonly type: PropType<"left" | "center" | "right">;
|
|
25
|
+
readonly default: undefined;
|
|
26
|
+
};
|
|
27
|
+
readonly fixed: {
|
|
28
|
+
readonly type: PropType<"left" | "right">;
|
|
29
|
+
readonly default: undefined;
|
|
30
|
+
};
|
|
31
|
+
readonly onHeaderCell: {
|
|
32
|
+
readonly type: PropType<(column: TableColumn) => TableCellRenderProps>;
|
|
33
|
+
readonly default: undefined;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
export type TableColumnGroupProps = ExtractPropTypes<typeof tableColumnGroupProps>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { TableColumn } from '../../table/src/table-types';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly title: string;
|
|
4
|
+
readonly fixed?: "left" | "right" | undefined;
|
|
5
|
+
readonly align?: "center" | "left" | "right" | undefined;
|
|
6
|
+
readonly onHeaderCell?: ((column: TableColumn) => import("../../table").TableCellRenderProps) | undefined;
|
|
7
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>[] | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
10
|
+
readonly title: string;
|
|
11
|
+
readonly fixed?: "left" | "right" | undefined;
|
|
12
|
+
readonly align?: "center" | "left" | "right" | undefined;
|
|
13
|
+
readonly onHeaderCell?: ((column: TableColumn) => import("../../table").TableCellRenderProps) | undefined;
|
|
14
|
+
}> & Readonly<{}>, {
|
|
15
|
+
readonly fixed: "left" | "right";
|
|
16
|
+
readonly title: string;
|
|
17
|
+
readonly align: "center" | "left" | "right";
|
|
18
|
+
readonly onHeaderCell: (column: TableColumn) => import("../../table").TableCellRenderProps;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import TableSummary from './src/table-summary';
|
|
3
|
+
export { TableSummary };
|
|
4
|
+
export type { TableSummaryProps } from './src/table-summary-types';
|
|
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,30 @@
|
|
|
1
|
+
import { defineComponent as e, inject as t, onBeforeUnmount as n, watchEffect as r } from "vue";
|
|
2
|
+
//#region ../ccui/ui/table/src/table-types.ts
|
|
3
|
+
var i = Symbol("TableSummaryCollector"), a = /* @__PURE__ */ e({
|
|
4
|
+
name: "CTableSummary",
|
|
5
|
+
props: { fixed: {
|
|
6
|
+
type: [Boolean, String],
|
|
7
|
+
default: !1
|
|
8
|
+
} },
|
|
9
|
+
setup(e, { slots: a }) {
|
|
10
|
+
let o = t(i, null);
|
|
11
|
+
return o && (r(() => {
|
|
12
|
+
o.setSummary(a.default ?? null);
|
|
13
|
+
}), n(() => o.setSummary(null))), e.fixed, () => null;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region ../ccui/ui/table-summary/index.ts
|
|
18
|
+
a.install = function(e) {
|
|
19
|
+
e.component(a.name, a);
|
|
20
|
+
};
|
|
21
|
+
var o = {
|
|
22
|
+
title: "TableSummary 表格汇总",
|
|
23
|
+
category: "数据展示",
|
|
24
|
+
status: "90%",
|
|
25
|
+
install(e) {
|
|
26
|
+
e.component(a.name, a);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { a as TableSummary, o as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require(`vue`)):typeof define==`function`&&define.amd?define([`exports`,`vue`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.index={},e.Vue))})(this,function(e,t){Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var n=Symbol(`TableSummaryCollector`),r={fixed:{type:[Boolean,String],default:!1}},i=(0,t.defineComponent)({name:`CTableSummary`,props:r,setup(e,{slots:r}){let i=(0,t.inject)(n,null);return i&&((0,t.watchEffect)(()=>{i.setSummary(r.default??null)}),(0,t.onBeforeUnmount)(()=>i.setSummary(null))),e.fixed,()=>null}});i.install=function(e){e.component(i.name,i)},e.TableSummary=i,e.default={title:`TableSummary 表格汇总`,category:`数据展示`,status:`90%`,install(e){e.component(i.name,i)}}});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 表格汇总行:在表格底部渲染 `<tfoot>` 汇总区。
|
|
4
|
+
*
|
|
5
|
+
* 用法:
|
|
6
|
+
*
|
|
7
|
+
* ```html
|
|
8
|
+
* <c-table :data-source="data">
|
|
9
|
+
* <c-table-column title="名称" data-index="name" />
|
|
10
|
+
* <c-table-column title="数量" data-index="qty" />
|
|
11
|
+
* <c-table-summary>
|
|
12
|
+
* <tr>
|
|
13
|
+
* <td>合计</td>
|
|
14
|
+
* <td>{{ total }}</td>
|
|
15
|
+
* </tr>
|
|
16
|
+
* </c-table-summary>
|
|
17
|
+
* </c-table>
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* `fixed` 控制汇总行是否在垂直滚动时贴底(保留位置)。当前实现把它透传到 SCSS class,
|
|
21
|
+
* 真实粘性效果依赖容器 `scroll.y`。
|
|
22
|
+
*/
|
|
23
|
+
export declare const tableSummaryProps: {
|
|
24
|
+
readonly fixed: {
|
|
25
|
+
readonly type: PropType<boolean | "top" | "bottom">;
|
|
26
|
+
readonly default: false;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export type TableSummaryProps = ExtractPropTypes<typeof tableSummaryProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
readonly fixed: boolean | "bottom" | "top";
|
|
3
|
+
}, () => null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
|
|
4
|
+
readonly fixed: boolean | "bottom" | "top";
|
|
5
|
+
}> & Readonly<{}>, {
|
|
6
|
+
readonly fixed: boolean | "bottom" | "top";
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
|
+
export default _default;
|
package/tabs/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Tab from './src/components/tab/tab';
|
|
3
|
+
import Tabs from './src/tabs';
|
|
4
|
+
export { Tab, Tabs };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
category: string;
|
|
8
|
+
status: undefined;
|
|
9
|
+
install(app: App): void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export type LabelType = string | number;
|
|
3
|
+
export type NameType = string | number;
|
|
4
|
+
export declare const tabProps: {
|
|
5
|
+
readonly label: {
|
|
6
|
+
readonly type: PropType<LabelType>;
|
|
7
|
+
readonly default: null;
|
|
8
|
+
};
|
|
9
|
+
readonly name: {
|
|
10
|
+
readonly type: PropType<NameType>;
|
|
11
|
+
readonly default: null;
|
|
12
|
+
};
|
|
13
|
+
readonly disabled: {
|
|
14
|
+
readonly type: BooleanConstructor;
|
|
15
|
+
readonly default: false;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type TabProps = ExtractPropTypes<typeof tabProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly label: import("./tab-types").LabelType;
|
|
4
|
+
readonly name: import("./tab-types").NameType;
|
|
5
|
+
readonly disabled: boolean;
|
|
6
|
+
}, () => JSX.Element | null, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, never[], never, import("vue").PublicProps, Readonly<{
|
|
7
|
+
readonly label: import("./tab-types").LabelType;
|
|
8
|
+
readonly name: import("./tab-types").NameType;
|
|
9
|
+
readonly disabled: boolean;
|
|
10
|
+
}> & Readonly<{}>, {
|
|
11
|
+
readonly label: import("./tab-types").LabelType;
|
|
12
|
+
readonly name: import("./tab-types").NameType;
|
|
13
|
+
readonly disabled: boolean;
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly type: import("../../tabs-types").ITabsType;
|
|
4
|
+
readonly modelValue: import("../../tabs-types").ModelValueType;
|
|
5
|
+
readonly beforeChange: import("../../tabs-types").BeforeChangeType;
|
|
6
|
+
readonly customWidth: string;
|
|
7
|
+
readonly cssClass: string;
|
|
8
|
+
readonly tabPosition: import("../../tabs-types").ITabPositionType;
|
|
9
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "active-tab-change"[], "active-tab-change", import("vue").PublicProps, Readonly<{
|
|
10
|
+
readonly type: import("../../tabs-types").ITabsType;
|
|
11
|
+
readonly modelValue: import("../../tabs-types").ModelValueType;
|
|
12
|
+
readonly beforeChange: import("../../tabs-types").BeforeChangeType;
|
|
13
|
+
readonly customWidth: string;
|
|
14
|
+
readonly cssClass: string;
|
|
15
|
+
readonly tabPosition: import("../../tabs-types").ITabPositionType;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
"onActive-tab-change"?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
readonly type: import("../../tabs-types").ITabsType;
|
|
20
|
+
readonly modelValue: import("../../tabs-types").ModelValueType;
|
|
21
|
+
readonly beforeChange: import("../../tabs-types").BeforeChangeType;
|
|
22
|
+
readonly customWidth: string;
|
|
23
|
+
readonly cssClass: string;
|
|
24
|
+
readonly tabPosition: import("../../tabs-types").ITabPositionType;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ComputedRef, ExtractPropTypes, InjectionKey, PropType } from 'vue';
|
|
2
|
+
import type { TabProps } from './components/tab/tab-types';
|
|
3
|
+
export type ModelValueType = string | number;
|
|
4
|
+
export type ITabsType = '' | 'card' | 'border-card';
|
|
5
|
+
export type ITabPositionType = 'top' | 'right' | 'bottom' | 'left';
|
|
6
|
+
export type Active = string | number | null;
|
|
7
|
+
export type BeforeChangeType = (id: Active) => boolean;
|
|
8
|
+
export interface TabsState {
|
|
9
|
+
data?: TabProps[];
|
|
10
|
+
active: string | number;
|
|
11
|
+
slots: any[];
|
|
12
|
+
}
|
|
13
|
+
export declare const tabsProps: {
|
|
14
|
+
readonly modelValue: {
|
|
15
|
+
readonly type: PropType<ModelValueType>;
|
|
16
|
+
readonly default: null;
|
|
17
|
+
};
|
|
18
|
+
readonly type: {
|
|
19
|
+
readonly type: () => ITabsType;
|
|
20
|
+
readonly default: "";
|
|
21
|
+
};
|
|
22
|
+
readonly customWidth: {
|
|
23
|
+
readonly type: StringConstructor;
|
|
24
|
+
readonly default: "";
|
|
25
|
+
};
|
|
26
|
+
readonly cssClass: {
|
|
27
|
+
readonly type: StringConstructor;
|
|
28
|
+
readonly default: "";
|
|
29
|
+
};
|
|
30
|
+
readonly beforeChange: {
|
|
31
|
+
readonly type: PropType<BeforeChangeType>;
|
|
32
|
+
readonly default: null;
|
|
33
|
+
};
|
|
34
|
+
readonly tabPosition: {
|
|
35
|
+
readonly type: () => ITabPositionType;
|
|
36
|
+
readonly default: "top";
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type TabsProps = ExtractPropTypes<typeof tabsProps>;
|
|
40
|
+
export interface UseTabsEvent {
|
|
41
|
+
onUpdateModelValue: (value: string | number) => void;
|
|
42
|
+
onActiveTabChange: (value: string) => void;
|
|
43
|
+
onTabChange: (id: string | undefined, type: string) => void;
|
|
44
|
+
}
|
|
45
|
+
/** KTabs 注入 tab 的 key 值 */
|
|
46
|
+
export declare const tabsInjectionKey: InjectionKey<TabsState>;
|
|
47
|
+
export interface UseTabsRender {
|
|
48
|
+
tabsClasses: ComputedRef<Record<string, boolean>>;
|
|
49
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
readonly type: import("./tabs-types").ITabsType;
|
|
4
|
+
readonly modelValue: import("./tabs-types").ModelValueType;
|
|
5
|
+
readonly beforeChange: import("./tabs-types").BeforeChangeType;
|
|
6
|
+
readonly customWidth: string;
|
|
7
|
+
readonly cssClass: string;
|
|
8
|
+
readonly tabPosition: import("./tabs-types").ITabPositionType;
|
|
9
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").PublicProps, Readonly<{
|
|
10
|
+
readonly type: import("./tabs-types").ITabsType;
|
|
11
|
+
readonly modelValue: import("./tabs-types").ModelValueType;
|
|
12
|
+
readonly beforeChange: import("./tabs-types").BeforeChangeType;
|
|
13
|
+
readonly customWidth: string;
|
|
14
|
+
readonly cssClass: string;
|
|
15
|
+
readonly tabPosition: import("./tabs-types").ITabPositionType;
|
|
16
|
+
}> & Readonly<{
|
|
17
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
readonly type: import("./tabs-types").ITabsType;
|
|
21
|
+
readonly modelValue: import("./tabs-types").ModelValueType;
|
|
22
|
+
readonly beforeChange: import("./tabs-types").BeforeChangeType;
|
|
23
|
+
readonly customWidth: string;
|
|
24
|
+
readonly cssClass: string;
|
|
25
|
+
readonly tabPosition: import("./tabs-types").ITabPositionType;
|
|
26
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
27
|
+
export default _default;
|
package/tag/index.d.ts
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Tag 视觉变体。
|
|
4
|
+
*
|
|
5
|
+
* - `'outlined'`(默认):描边款(等价于 ccui 旧 `bordered=true`)
|
|
6
|
+
* - `'filled'`:填充款,无外边框(等价于 ccui 旧 `bordered=false`)
|
|
7
|
+
* - `'solid'`:实色款,预设色更饱和
|
|
8
|
+
*/
|
|
9
|
+
export type TagVariant = 'outlined' | 'filled' | 'solid';
|
|
10
|
+
export type TagColor = 'default' | 'primary' | 'success' | 'processing' | 'error' | 'warning' | 'magenta' | 'red' | 'volcano' | 'orange' | 'gold' | 'lime' | 'green' | 'cyan' | 'blue' | 'geekblue' | 'purple';
|
|
11
|
+
export declare const tagProps: {
|
|
12
|
+
readonly color: {
|
|
13
|
+
readonly type: StringConstructor;
|
|
14
|
+
readonly default: "default";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 视觉变体(推荐使用)。
|
|
18
|
+
* 未传时若 `bordered=false` 自动映射为 `'filled'`,否则 `'outlined'`。
|
|
19
|
+
*/
|
|
20
|
+
readonly variant: {
|
|
21
|
+
readonly type: PropType<TagVariant>;
|
|
22
|
+
readonly default: undefined;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated 请改用 `variant`。`bordered=false` 等价于 `variant='filled'`,下一大版本移除。
|
|
26
|
+
*/
|
|
27
|
+
readonly bordered: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: true;
|
|
30
|
+
};
|
|
31
|
+
readonly closable: {
|
|
32
|
+
readonly type: BooleanConstructor;
|
|
33
|
+
readonly default: false;
|
|
34
|
+
};
|
|
35
|
+
readonly icon: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "";
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type TagProps = ExtractPropTypes<typeof tagProps>;
|
|
41
|
+
export declare function isPresetColor(color: string): boolean;
|
package/tag/src/tag.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TagVariant } from './tag-types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
readonly color: string;
|
|
5
|
+
readonly icon: string;
|
|
6
|
+
readonly closable: boolean;
|
|
7
|
+
readonly bordered: boolean;
|
|
8
|
+
readonly variant?: TagVariant | undefined;
|
|
9
|
+
}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<{
|
|
10
|
+
readonly color: string;
|
|
11
|
+
readonly icon: string;
|
|
12
|
+
readonly closable: boolean;
|
|
13
|
+
readonly bordered: boolean;
|
|
14
|
+
readonly variant?: TagVariant | undefined;
|
|
15
|
+
}> & Readonly<{
|
|
16
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
readonly color: string;
|
|
19
|
+
readonly icon: string;
|
|
20
|
+
readonly closable: boolean;
|
|
21
|
+
readonly variant: TagVariant;
|
|
22
|
+
readonly bordered: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Textarea from './src/textarea';
|
|
3
|
+
export { Textarea };
|
|
4
|
+
export type { TextareaAllowClear, TextareaAllowClearObject, TextareaAutoSize, TextareaAutoSizeObject, TextareaProps, TextareaShowCount, TextareaShowCountObject, TextareaSize, TextareaStatus, } from './src/textarea-types';
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
category: string;
|
|
8
|
+
status: string;
|
|
9
|
+
install(app: App): void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|