@sdata/web-vue 1.11.1 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sd.css +177 -6
- package/dist/sd.min.css +1 -1
- package/es/_components/icon-hover.vue.d.ts +1 -1
- package/es/_components/picker/input-range.vue.d.ts +1 -1
- package/es/_components/picker/input.vue.d.ts +1 -1
- package/es/_components/select-view/style/index.css +13 -6
- package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
- package/es/_components/virtual-list/virtual-list.vue_vue_type_script_lang.js +2 -2
- package/es/_hooks/use-allow-search.d.ts +10 -0
- package/es/_hooks/use-allow-search.js +31 -0
- package/es/_hooks/use-component-ref.d.ts +1 -1
- package/es/_hooks/use-dropdown-virtual-list-props.d.ts +5 -0
- package/es/_hooks/use-dropdown-virtual-list-props.js +21 -0
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-scrollbar.js +1 -1
- package/es/_hooks/use-size.d.ts +1 -1
- package/es/_hooks/use-trigger.d.ts +1 -1
- package/es/_utils/color.js +1 -1
- package/es/_utils/date.js +7 -1
- package/es/_utils/dom.js +1 -1
- package/es/_utils/global-config.js +1 -1
- package/es/_utils/omit.js +1 -1
- package/es/_utils/responsive-observe.js +1 -1
- package/es/_utils/virtual-dropdown.js +1 -1
- package/es/_utils/vue-utils.js +4 -18
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/asyncToGenerator.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/defineProperty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/extends.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectDestructuringEmpty.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectSpread2.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutProperties.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/objectWithoutPropertiesLoose.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPrimitive.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/toPropertyKey.js +1 -1
- package/es/_virtual/{_@oxc-project_runtime@0.124.0 → _@oxc-project_runtime@0.130.0}/helpers/typeof.js +1 -1
- package/es/affix/affix.vue_vue_type_script_lang.js +31 -3
- package/es/alert/alert.vue.d.ts +2 -2
- package/es/alert/alert.vue_vue_type_script_lang.js +55 -0
- package/es/alert/index.d.ts +5 -5
- package/es/anchor/anchor-link.vue_vue_type_script_lang.js +8 -0
- package/es/anchor/anchor.vue_vue_type_script_lang.js +32 -0
- package/es/auto-complete/auto-complete.d.ts +1 -1
- package/es/auto-complete/auto-complete.js +107 -3
- package/es/auto-complete/index.d.ts +3 -3
- package/es/avatar/avatar-group.js +31 -0
- package/es/avatar/avatar.vue_vue_type_script_lang.js +51 -1
- package/es/back-top/back-top.vue_vue_type_script_lang.js +16 -0
- package/es/badge/badge.js +34 -1
- package/es/breadcrumb/breadcrumb-item.js +27 -0
- package/es/breadcrumb/breadcrumb.js +39 -0
- package/es/button/button-group.vue_vue_type_script_lang.js +22 -0
- package/es/button/button.vue_vue_type_script_lang.js +58 -1
- package/es/calendar/calendar.js +47 -0
- package/es/calendar/month.js +1 -1
- package/es/calendar/year.js +1 -1
- package/es/card/card-grid.vue_vue_type_script_lang.js +6 -1
- package/es/card/card-meta.js +23 -0
- package/es/card/card.js +54 -0
- package/es/carousel/carousel.js +68 -1
- package/es/cascader/cascader-panel.js +2 -28
- package/es/cascader/cascader-panel.vue.d.ts +24 -306
- package/es/cascader/{cascader-panel.vue_vue_type_script_lang.js → cascader-panel.vue_vue_type_script_setup_true_lang.js} +92 -101
- package/es/cascader/cascader.js +2 -145
- package/es/cascader/cascader.vue.d.ts +54 -1290
- package/es/cascader/{cascader.vue_vue_type_script_lang.js → cascader.vue_vue_type_script_setup_true_lang.js} +257 -177
- package/es/cascader/index.d.ts +4 -2986
- package/es/cascader/types.d.ts +79 -0
- package/es/checkbox/checkbox-group.js +48 -0
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/checkbox.js +35 -0
- package/es/checkbox/index.d.ts +2 -2
- package/es/collapse/collapse-item.d.ts +1 -1
- package/es/collapse/collapse-item.js +36 -0
- package/es/collapse/collapse.vue_vue_type_script_lang.js +47 -0
- package/es/collapse/index.d.ts +1 -1
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/color-picker.js +90 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/color-picker/panel.js +5 -2
- package/es/color-picker/utils.js +1 -1
- package/es/comment/comment.js +47 -1
- package/es/comment/comment.vue.d.ts +2 -2
- package/es/comment/index.d.ts +3 -3
- package/es/components.d.ts +132 -127
- package/es/config-provider/config-provider.vue.d.ts +16 -0
- package/es/config-provider/config-provider.vue_vue_type_script_lang.js +78 -1
- package/es/config-provider/context.d.ts +3 -0
- package/es/config-provider/index.d.ts +24 -0
- package/es/config-provider/theme-provider.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/config-provider/theme.js +1 -1
- package/es/copy/copy.js +5 -0
- package/es/copy/copy.vue.d.ts +15 -0
- package/es/copy/copy.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/copy/index.d.ts +15 -0
- package/es/copy/index.js +10 -0
- package/es/copy/style/css.js +2 -0
- package/es/copy/style/index.css +25 -0
- package/es/copy/style/index.d.ts +2 -0
- package/es/copy/style/index.js +2 -0
- package/es/copy/style/index.scss +15 -0
- package/es/copy/style/token.scss +3 -0
- package/es/copy/types.d.ts +21 -0
- package/es/cropper/cropper.js +5 -0
- package/es/cropper/cropper.vue.d.ts +45 -0
- package/es/cropper/cropper.vue_vue_type_script_setup_true_lang.js +266 -0
- package/es/cropper/index.d.ts +130 -0
- package/es/cropper/index.js +10 -0
- package/es/cropper/interface.d.ts +59 -0
- package/es/cropper/style/css.js +2 -0
- package/es/cropper/style/index.css +51 -0
- package/es/cropper/style/index.d.ts +2 -0
- package/es/cropper/style/index.js +2 -0
- package/es/cropper/style/index.scss +43 -0
- package/es/cropper/style/token.scss +8 -0
- package/es/date-picker/hooks/use-range-time-picker-value.js +1 -1
- package/es/date-picker/index.d.ts +187 -709
- package/es/date-picker/panels/date/index.js +1 -1
- package/es/date-picker/panels/date/index.vue.d.ts +1 -1
- package/es/date-picker/panels/date/index.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/footer.vue.d.ts +55 -577
- package/es/date-picker/panels/footer.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/panels/month/index.js +1 -1
- package/es/date-picker/panels/quarter/index.js +1 -1
- package/es/date-picker/panels/week/index.vue.d.ts +1 -1
- package/es/date-picker/panels/year/index.js +1 -1
- package/es/date-picker/picker-panel.vue.d.ts +264 -786
- package/es/date-picker/picker.js +1 -1
- package/es/date-picker/picker.vue.d.ts +174 -696
- package/es/date-picker/picker.vue_vue_type_script_lang.js +193 -1
- package/es/date-picker/pickers/date-picker.js +42 -0
- package/es/date-picker/pickers/month-picker.js +12 -0
- package/es/date-picker/pickers/quarter-picker.js +17 -0
- package/es/date-picker/pickers/week-picker.js +23 -0
- package/es/date-picker/pickers/year-picker.js +12 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +263 -785
- package/es/date-picker/range-picker-panel.vue_vue_type_script_lang.js +1 -1
- package/es/date-picker/range-picker.js +1 -1
- package/es/date-picker/range-picker.vue.d.ts +187 -709
- package/es/date-picker/range-picker.vue_vue_type_script_lang.js +120 -1
- package/es/descriptions/descriptions-item.vue_vue_type_script_lang.js +16 -0
- package/es/descriptions/descriptions.d.ts +1 -1
- package/es/descriptions/descriptions.js +65 -1
- package/es/descriptions/index.d.ts +3 -3
- package/es/divider/divider.js +24 -0
- package/es/drawer/drawer.vue.d.ts +2 -2
- package/es/drawer/drawer.vue_vue_type_script_lang.js +161 -2
- package/es/drawer/index.d.ts +5 -5
- package/es/drawer/index.js +2 -2
- package/es/dropdown/dropdown-button.vue.d.ts +18 -18
- package/es/dropdown/dropdown-button.vue_vue_type_script_lang.js +70 -0
- package/es/dropdown/dropdown-group.vue_vue_type_script_lang.js +12 -1
- package/es/dropdown/dropdown-option.vue.d.ts +2 -2
- package/es/dropdown/dropdown-option.vue_vue_type_script_lang.js +20 -1
- package/es/dropdown/dropdown-panel.vue.d.ts +6 -6
- package/es/dropdown/dropdown-submenu.vue.d.ts +20 -20
- package/es/dropdown/dropdown-submenu.vue_vue_type_script_lang.js +57 -0
- package/es/dropdown/dropdown.vue.d.ts +18 -18
- package/es/dropdown/dropdown.vue_vue_type_script_lang.js +55 -0
- package/es/dropdown/index.d.ts +76 -76
- package/es/ellipsis/ellipsis.vue.d.ts +24 -24
- package/es/ellipsis/ellipsis.vue_vue_type_script_lang.js +25 -2
- package/es/ellipsis/index.d.ts +96 -96
- package/es/ellipsis/performant-ellipsis.vue.d.ts +24 -24
- package/es/ellipsis/performant-ellipsis.vue_vue_type_script_lang.js +24 -1
- package/es/empty/empty.js +18 -0
- package/es/form/form-item-label.vue.d.ts +24 -24
- package/es/form/form-item.vue.d.ts +28 -28
- package/es/form/form-item.vue_vue_type_script_lang.js +146 -3
- package/es/form/form.vue_vue_type_script_lang.js +108 -0
- package/es/form/index.d.ts +28 -28
- package/es/grid/grid-col.vue_vue_type_script_lang.js +42 -1
- package/es/grid/grid-item.vue_vue_type_script_lang.js +13 -1
- package/es/grid/grid-row.vue_vue_type_script_lang.js +21 -0
- package/es/grid/grid.vue_vue_type_script_lang.js +20 -0
- package/es/icon.js +5 -5
- package/es/image/image.js +1 -1
- package/es/image/image.vue.d.ts +26 -26
- package/es/image/image.vue_vue_type_script_lang.js +82 -0
- package/es/image/preview-action.d.ts +24 -24
- package/es/image/preview-action.js +8 -0
- package/es/image/preview-group.js +1 -1
- package/es/image/preview-group.vue.d.ts +24 -24
- package/es/image/preview-group.vue_vue_type_script_lang.js +48 -0
- package/es/image/preview-toolbar.vue.d.ts +24 -24
- package/es/image/preview-toolbar.vue_vue_type_script_lang.js +1 -0
- package/es/image/preview.vue.d.ts +24 -24
- package/es/image/preview.vue_vue_type_script_lang.js +56 -1
- package/es/index.css +177 -6
- package/es/index.d.ts +9 -1
- package/es/index.js +6 -2
- package/es/index.scss +4 -0
- package/es/input/index.d.ts +5 -5
- package/es/input/input-password.vue.d.ts +2 -2
- package/es/input/input-password.vue_vue_type_script_lang.js +13 -0
- package/es/input/input-search.js +35 -1
- package/es/input/input.d.ts +1 -1
- package/es/input/input.js +129 -1
- package/es/input-number/index.d.ts +38 -26
- package/es/input-number/input-number.d.ts +20 -11
- package/es/input-number/input-number.js +205 -23
- package/es/input-tag/input-tag.js +137 -1
- package/es/input-tag/style/index.css +13 -6
- package/es/input-tag/utils.js +1 -1
- package/es/layout/content.js +5 -0
- package/es/layout/footer.js +5 -0
- package/es/layout/header.js +5 -0
- package/es/layout/layout.vue_vue_type_script_lang.js +6 -1
- package/es/layout/sider.vue_vue_type_script_lang.js +46 -0
- package/es/link/index.d.ts +44 -564
- package/es/link/interface.d.ts +15 -0
- package/es/link/link.js +2 -17
- package/es/link/link.vue.d.ts +31 -286
- package/es/link/link.vue_vue_type_script_setup_true_lang.js +112 -0
- package/es/link/style/index.css +6 -0
- package/es/link/style/index.scss +10 -0
- package/es/list/index.d.ts +3 -3
- package/es/list/list-item-meta.vue_vue_type_script_lang.js +23 -0
- package/es/list/list-item.js +21 -1
- package/es/list/list.d.ts +1 -1
- package/es/list/list.js +104 -2
- package/es/mention/index.d.ts +6 -6
- package/es/mention/mention.d.ts +2 -2
- package/es/mention/mention.js +87 -1
- package/es/menu/base-menu.vue.d.ts +1 -1
- package/es/menu/base-menu.vue_vue_type_script_lang.js +102 -0
- package/es/menu/item-group.vue_vue_type_script_lang.js +11 -1
- package/es/menu/item.d.ts +1 -1
- package/es/menu/item.js +13 -2
- package/es/menu/menu.d.ts +2 -2
- package/es/menu/menu.js +2 -1
- package/es/menu/sub-menu-pop.vue.d.ts +14 -14
- package/es/menu/sub-menu.js +40 -1
- package/es/message/index.js +1 -1
- package/es/message/message.vue.d.ts +1 -1
- package/es/modal/index.d.ts +5 -5
- package/es/modal/index.js +2 -2
- package/es/modal/modal.vue.d.ts +2 -2
- package/es/modal/modal.vue_vue_type_script_lang.js +193 -2
- package/es/notification/index.js +1 -1
- package/es/notification/notification.vue.d.ts +1 -1
- package/es/overflow-list/index.d.ts +3 -3
- package/es/overflow-list/overflow-list.d.ts +1 -1
- package/es/overflow-list/overflow-list.js +25 -1
- package/es/page-header/index.d.ts +2 -2
- package/es/page-header/page-header.vue.d.ts +1 -1
- package/es/page-header/page-header.vue_vue_type_script_lang.js +38 -0
- package/es/pagination/page-jumper.vue.d.ts +38 -25
- package/es/pagination/page-options.vue.d.ts +34 -34
- package/es/pagination/pagination.js +122 -0
- package/es/popconfirm/index.d.ts +24 -24
- package/es/popconfirm/popconfirm.vue.d.ts +12 -12
- package/es/popconfirm/popconfirm.vue_vue_type_script_lang.js +95 -1
- package/es/popover/index.d.ts +24 -24
- package/es/popover/popover.vue.d.ts +12 -12
- package/es/popover/popover.vue_vue_type_script_lang.js +62 -0
- package/es/progress/circle.vue.d.ts +3 -3
- package/es/progress/index.d.ts +23 -23
- package/es/progress/line.vue.d.ts +2 -2
- package/es/progress/line.vue_vue_type_script_lang.js +1 -1
- package/es/progress/progress.vue.d.ts +12 -12
- package/es/progress/progress.vue_vue_type_script_lang.js +48 -0
- package/es/progress/steps.vue.d.ts +2 -2
- package/es/radio/index.d.ts +2 -2
- package/es/radio/radio-group.js +53 -0
- package/es/radio/radio.d.ts +1 -1
- package/es/radio/radio.js +36 -0
- package/es/rate/rate.js +54 -0
- package/es/resize-box/resize-box.vue_vue_type_script_lang.js +47 -1
- package/es/result/result.vue_vue_type_script_lang.js +40 -0
- package/es/scrollbar/index.d.ts +6 -6
- package/es/scrollbar/scrollbar.vue.d.ts +3 -3
- package/es/scrollbar/scrollbar.vue_vue_type_script_lang.js +108 -2
- package/es/sd-vue.js +10 -2
- package/es/secret/index.d.ts +48 -0
- package/es/secret/index.js +10 -0
- package/es/secret/secret.js +5 -0
- package/es/secret/secret.vue.d.ts +17 -0
- package/es/secret/secret.vue_vue_type_script_setup_true_lang.js +64 -0
- package/es/secret/style/css.js +2 -0
- package/es/secret/style/index.css +54 -0
- package/es/secret/style/index.d.ts +2 -0
- package/es/secret/style/index.js +2 -0
- package/es/secret/style/index.scss +48 -0
- package/es/secret/style/token.scss +9 -0
- package/es/select/hooks/use-options.js +1 -1
- package/es/select/index.d.ts +34 -34
- package/es/select/optgroup.vue_vue_type_script_lang.js +12 -1
- package/es/select/option.vue.d.ts +4 -4
- package/es/select/option.vue_vue_type_script_lang.js +27 -0
- package/es/select/select-dropdown.vue.d.ts +7 -7
- package/es/select/select.d.ts +14 -14
- package/es/select/select.js +13 -9
- package/es/select/utils.js +1 -1
- package/es/skeleton/line.vue_vue_type_script_lang.js +16 -0
- package/es/skeleton/shape.vue_vue_type_script_lang.js +10 -0
- package/es/skeleton/skeleton.vue_vue_type_script_lang.js +8 -0
- package/es/slider/index.d.ts +120 -96
- package/es/slider/slider-button.vue.d.ts +24 -24
- package/es/slider/slider-input.vue.d.ts +36 -24
- package/es/slider/slider.vue.d.ts +60 -48
- package/es/slider/slider.vue_vue_type_script_lang.js +55 -0
- package/es/space/index.d.ts +6 -6
- package/es/space/space.d.ts +1 -1
- package/es/space/space.js +27 -0
- package/es/spin/spin.js +35 -0
- package/es/split/split.vue_vue_type_script_lang.js +62 -1
- package/es/statistic/countdown.vue_vue_type_script_lang.js +36 -1
- package/es/statistic/statistic.vue_vue_type_script_lang.js +74 -0
- package/es/steps/index.d.ts +3 -3
- package/es/steps/step.vue_vue_type_script_lang.js +36 -0
- package/es/steps/steps.vue.d.ts +1 -1
- package/es/steps/steps.vue_vue_type_script_lang.js +47 -0
- package/es/switch/switch.vue_vue_type_script_lang.js +98 -1
- package/es/table/index.d.ts +14 -14
- package/es/table/table-column.d.ts +2 -2
- package/es/table/table-column.js +115 -0
- package/es/table/table-operation-td.d.ts +4 -4
- package/es/table/table-operation-td.js +1 -1
- package/es/table/table-operation-th.js +1 -1
- package/es/table/table-td.js +1 -1
- package/es/table/table-th.js +1 -1
- package/es/table/table.d.ts +7 -7
- package/es/table/table.js +442 -3
- package/es/table/utils.js +1 -1
- package/es/tabs/tab-pane.vue_vue_type_script_lang.js +23 -1
- package/es/tabs/tabs-tab.vue.d.ts +1 -1
- package/es/tabs/tabs.js +104 -0
- package/es/tag/index.d.ts +29238 -75
- package/es/tag/interface.d.ts +9 -1
- package/es/tag/style/index.css +13 -6
- package/es/tag/style/index.scss +16 -4
- package/es/tag/tag.js +26 -5
- package/es/tag/tag.vue.d.ts +11690 -9
- package/es/tag/tag.vue_vue_type_script_lang.js +139 -3
- package/es/tag-group/index.d.ts +64 -0
- package/es/tag-group/index.js +10 -0
- package/es/tag-group/interface.d.ts +18 -0
- package/es/tag-group/style/css.js +2 -0
- package/es/tag-group/style/index.css +92 -0
- package/es/tag-group/style/index.d.ts +2 -0
- package/es/tag-group/style/index.js +2 -0
- package/es/tag-group/style/index.scss +108 -0
- package/es/tag-group/style/token.scss +6 -0
- package/es/tag-group/tag-group.js +5 -0
- package/es/tag-group/tag-group.vue.d.ts +46 -0
- package/es/tag-group/tag-group.vue_vue_type_script_setup_true_lang.js +360 -0
- package/es/textarea/index.d.ts +2 -2
- package/es/textarea/textarea.vue.d.ts +1 -1
- package/es/textarea/textarea.vue_vue_type_script_lang.js +90 -1
- package/es/time-picker/index.d.ts +35 -35
- package/es/time-picker/panel.vue.d.ts +1 -1
- package/es/time-picker/range-panel.d.ts +1 -1
- package/es/time-picker/range-panel.js +1 -1
- package/es/time-picker/time-picker.js +1 -1
- package/es/time-picker/time-picker.vue.d.ts +17 -17
- package/es/time-picker/time-picker.vue_vue_type_script_lang.js +132 -0
- package/es/timeline/item.vue_vue_type_script_lang.js +38 -1
- package/es/timeline/timeline.js +28 -0
- package/es/tooltip/index.d.ts +24 -24
- package/es/tooltip/tooltip.vue.d.ts +12 -12
- package/es/tooltip/tooltip.vue_vue_type_script_lang.js +61 -1
- package/es/transfer/index.d.ts +27 -27
- package/es/transfer/transfer-view.vue.d.ts +12 -12
- package/es/transfer/transfer.vue.d.ts +13 -13
- package/es/transfer/transfer.vue_vue_type_script_lang.js +136 -0
- package/es/tree/base-node.vue.d.ts +2 -2
- package/es/tree/base-node.vue_vue_type_script_lang.js +7 -0
- package/es/tree/node.js +1 -1
- package/es/tree/transition-node-list.vue.d.ts +2 -2
- package/es/tree/tree.vue.d.ts +8 -8
- package/es/tree/tree.vue_vue_type_script_lang.js +287 -2
- package/es/tree/utils/tree-data.js +1 -1
- package/es/tree-select/hooks/use-selected-state.js +1 -1
- package/es/tree-select/panel.js +1 -1
- package/es/tree-select/tree-select.js +1 -1
- package/es/tree-select/tree-select.vue.d.ts +17 -17
- package/es/tree-select/tree-select.vue_vue_type_script_lang.js +287 -10
- package/es/trigger/index.d.ts +12 -12
- package/es/trigger/trigger.d.ts +7 -7
- package/es/trigger/trigger.js +161 -1
- package/es/trigger/utils.js +1 -1
- package/es/typography/base.d.ts +8 -1
- package/es/typography/base.js +127 -3
- package/es/typography/edit-content.vue.d.ts +15 -15
- package/es/typography/index.d.ts +1 -1
- package/es/typography/interface.d.ts +2 -0
- package/es/typography/operations.js +30 -0
- package/es/typography/operations.vue.d.ts +24 -24
- package/es/typography/paragraph.js +8 -0
- package/es/typography/title.d.ts +1 -1
- package/es/typography/title.js +6 -1
- package/es/upload/upload-button.d.ts +1 -1
- package/es/upload/upload.js +279 -2
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/verification-code/verification-code.js +59 -0
- package/es/watermark/hooks/use-mutation-observer.js +1 -1
- package/es/watermark/index.d.ts +3 -3
- package/es/watermark/watermark.d.ts +1 -1
- package/es/watermark/watermark.js +58 -1
- package/es/web-vue.css +24 -24
- package/json/vetur-attributes.json +137 -218
- package/json/vetur-tags.json +59 -67
- package/json/web-types.json +312 -493
- package/package.json +9 -7
- package/es/_utils/clipboard.d.ts +0 -1
- package/es/_utils/clipboard.js +0 -35
- package/es/link/link.vue_vue_type_script_lang.js +0 -56
|
@@ -5,7 +5,15 @@ import { computed, defineComponent, inject, onMounted, ref } from "vue";
|
|
|
5
5
|
var anchor_link_vue_vue_type_script_lang_default = defineComponent({
|
|
6
6
|
name: "AnchorLink",
|
|
7
7
|
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 锚点链接的文本内容
|
|
10
|
+
* @en The text content of the anchor link
|
|
11
|
+
*/
|
|
8
12
|
title: String,
|
|
13
|
+
/**
|
|
14
|
+
* @zh 锚点链接的地址
|
|
15
|
+
* @en The address of the anchor link
|
|
16
|
+
*/
|
|
9
17
|
href: String
|
|
10
18
|
},
|
|
11
19
|
setup(props) {
|
|
@@ -16,6 +16,11 @@ var BOUNDARY_POSITIONS = [
|
|
|
16
16
|
var anchor_vue_vue_type_script_lang_default = defineComponent({
|
|
17
17
|
name: "Anchor",
|
|
18
18
|
props: {
|
|
19
|
+
/**
|
|
20
|
+
* @zh 滚动边界值,设置该值为数字后,将会在距离滚动容器 `boundary` 距离时停止滚动。
|
|
21
|
+
* @en Scrolling boundary value. After setting the value to a number, it will stop scrolling when the distance is `boundary` from the scrolling container.
|
|
22
|
+
* @values 'start', 'end', 'center', 'nearest', number
|
|
23
|
+
*/
|
|
19
24
|
boundary: {
|
|
20
25
|
type: [Number, String],
|
|
21
26
|
default: "start",
|
|
@@ -23,22 +28,49 @@ var anchor_vue_vue_type_script_lang_default = defineComponent({
|
|
|
23
28
|
return isNumber(value) || BOUNDARY_POSITIONS.includes(value);
|
|
24
29
|
}
|
|
25
30
|
},
|
|
31
|
+
/**
|
|
32
|
+
* @zh 是否显示左侧轴线
|
|
33
|
+
* @en Whether to show the left axis
|
|
34
|
+
*/
|
|
26
35
|
lineLess: {
|
|
27
36
|
type: Boolean,
|
|
28
37
|
default: false
|
|
29
38
|
},
|
|
39
|
+
/**
|
|
40
|
+
* @zh 滚动容器
|
|
41
|
+
* @en Scroll container
|
|
42
|
+
*/
|
|
30
43
|
scrollContainer: { type: [String, Object] },
|
|
44
|
+
/**
|
|
45
|
+
* @zh 是否改变hash。设置为 `false` 时点击锚点不会改变页面的 hash
|
|
46
|
+
* @en Whether to change the hash. When set to `false`, clicking on the anchor will not change the hash of the page
|
|
47
|
+
*/
|
|
31
48
|
changeHash: {
|
|
32
49
|
type: Boolean,
|
|
33
50
|
default: true
|
|
34
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* @zh 是否使用平滑滚动
|
|
54
|
+
* @en Whether to use smooth scrolling
|
|
55
|
+
*/
|
|
35
56
|
smooth: {
|
|
36
57
|
type: Boolean,
|
|
37
58
|
default: true
|
|
38
59
|
}
|
|
39
60
|
},
|
|
40
61
|
emits: {
|
|
62
|
+
/**
|
|
63
|
+
* @zh 用户点击链接时触发
|
|
64
|
+
* @en Triggered when the user clicks on the link
|
|
65
|
+
* @property { string | undefined } hash
|
|
66
|
+
* @property {string} preHash
|
|
67
|
+
*/
|
|
41
68
|
select: (_hash, _preHash) => true,
|
|
69
|
+
/**
|
|
70
|
+
* @zh 链接发生改变时触发
|
|
71
|
+
* @en Triggered when the link changes
|
|
72
|
+
* @property {string} hash
|
|
73
|
+
*/
|
|
42
74
|
change: (_hash) => true
|
|
43
75
|
},
|
|
44
76
|
setup(props, { emit }) {
|
|
@@ -93,9 +93,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
93
93
|
type: PropType<VirtualListProps>;
|
|
94
94
|
};
|
|
95
95
|
}>> & Readonly<{
|
|
96
|
+
onSearch?: ((_value: string) => any) | undefined;
|
|
96
97
|
onChange?: ((_value: string) => any) | undefined;
|
|
97
98
|
onClear?: ((_ev: Event) => any) | undefined;
|
|
98
|
-
onSearch?: ((_value: string) => any) | undefined;
|
|
99
99
|
onSelect?: ((_value: string) => any) | undefined;
|
|
100
100
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
101
101
|
onDropdownScroll?: ((_ev: Event) => any) | undefined;
|
|
@@ -3,6 +3,7 @@ import { getPrefixCls } from "../_utils/global-config.js";
|
|
|
3
3
|
import { isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
4
4
|
import virtual_list_default from "../_components/virtual-list/index.js";
|
|
5
5
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
6
|
+
import { useDropdownVirtualListProps } from "../_hooks/use-dropdown-virtual-list-props.js";
|
|
6
7
|
import { resolveDropdownVirtualListProps } from "../_utils/virtual-dropdown.js";
|
|
7
8
|
import Input from "../input/index.js";
|
|
8
9
|
import { getKeyFromValue } from "../select/utils.js";
|
|
@@ -17,47 +18,137 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
name: "AutoComplete",
|
|
18
19
|
inheritAttrs: false,
|
|
19
20
|
props: {
|
|
21
|
+
/**
|
|
22
|
+
* @zh 绑定值
|
|
23
|
+
* @en Value
|
|
24
|
+
* @vModel
|
|
25
|
+
*/
|
|
20
26
|
modelValue: {
|
|
21
27
|
type: String,
|
|
22
28
|
default: void 0
|
|
23
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* @zh 默认值(非受控模式)
|
|
32
|
+
* @en Default value (uncontrolled mode)
|
|
33
|
+
*/
|
|
24
34
|
defaultValue: {
|
|
25
35
|
type: String,
|
|
26
36
|
default: ""
|
|
27
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* @zh 是否禁用
|
|
40
|
+
* @en Whether to disable
|
|
41
|
+
*/
|
|
28
42
|
disabled: {
|
|
29
43
|
type: Boolean,
|
|
30
44
|
default: false
|
|
31
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 用于自动提示的数据
|
|
48
|
+
* @en Data used for auto-complete
|
|
49
|
+
*/
|
|
32
50
|
data: {
|
|
33
51
|
type: Array,
|
|
34
52
|
default: () => []
|
|
35
53
|
},
|
|
54
|
+
/**
|
|
55
|
+
* @zh 弹出框的挂载容器
|
|
56
|
+
* @en Mount container for popup
|
|
57
|
+
*/
|
|
36
58
|
popupContainer: { type: [String, Object] },
|
|
59
|
+
/**
|
|
60
|
+
* @zh 是否为严格校验模式
|
|
61
|
+
* @en Whether it is strict verification mode
|
|
62
|
+
*/
|
|
37
63
|
strict: {
|
|
38
64
|
type: Boolean,
|
|
39
65
|
default: false
|
|
40
66
|
},
|
|
67
|
+
/**
|
|
68
|
+
* @zh 自定义选项过滤方法
|
|
69
|
+
* @en Custom option filtering method
|
|
70
|
+
*/
|
|
41
71
|
filterOption: {
|
|
42
72
|
type: [Boolean, Function],
|
|
43
73
|
default: true
|
|
44
74
|
},
|
|
75
|
+
/**
|
|
76
|
+
* @zh trigger 组件属性
|
|
77
|
+
* @en trigger props
|
|
78
|
+
* @version 2.14.0
|
|
79
|
+
*/
|
|
45
80
|
triggerProps: { type: Object },
|
|
81
|
+
/**
|
|
82
|
+
* @zh 是否允许清空输入框
|
|
83
|
+
* @en Whether to allow the input to be cleared
|
|
84
|
+
* @version 2.23.0
|
|
85
|
+
*/
|
|
46
86
|
allowClear: {
|
|
47
87
|
type: Boolean,
|
|
48
88
|
default: false
|
|
49
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* @zh 传递虚拟列表属性,传入此参数以开启虚拟滚动 [VirtualListProps](#VirtualListProps)
|
|
92
|
+
* @en Pass the virtual list attribute, pass in this parameter to turn on virtual scrolling [VirtualListProps](#VirtualListProps)
|
|
93
|
+
* @type VirtualListProps
|
|
94
|
+
* @version 2.50.0
|
|
95
|
+
*/
|
|
50
96
|
virtualListProps: { type: Object }
|
|
51
97
|
},
|
|
52
98
|
emits: {
|
|
53
99
|
"update:modelValue": (_value) => true,
|
|
100
|
+
/**
|
|
101
|
+
* @zh 绑定值发生改变时触发
|
|
102
|
+
* @en Emitted when the value changes
|
|
103
|
+
* @property {string} value
|
|
104
|
+
*/
|
|
54
105
|
"change": (_value) => true,
|
|
106
|
+
/**
|
|
107
|
+
* @zh 用户搜索时触发
|
|
108
|
+
* @en Emitted when the user searches
|
|
109
|
+
* @property {string} value
|
|
110
|
+
*/
|
|
55
111
|
"search": (_value) => true,
|
|
112
|
+
/**
|
|
113
|
+
* @zh 选择选项时触发
|
|
114
|
+
* @en Emitted when an option is selected
|
|
115
|
+
* @property {string} value
|
|
116
|
+
*/
|
|
56
117
|
"select": (_value) => true,
|
|
118
|
+
/**
|
|
119
|
+
* @zh 用户点击清除按钮时触发
|
|
120
|
+
* @en Triggered when the user clicks the clear button
|
|
121
|
+
* @param {Event} ev
|
|
122
|
+
* @version 2.23.0
|
|
123
|
+
*/
|
|
57
124
|
"clear": (_ev) => true,
|
|
125
|
+
/**
|
|
126
|
+
* @zh 下拉菜单发生滚动时触发
|
|
127
|
+
* @en Triggered when the drop-down scrolls
|
|
128
|
+
* @param {Event} ev
|
|
129
|
+
* @version 2.52.0
|
|
130
|
+
*/
|
|
58
131
|
"dropdownScroll": (_ev) => true,
|
|
132
|
+
/**
|
|
133
|
+
* @zh 下拉菜单滚动到底部时触发
|
|
134
|
+
* @en Triggered when the drop-down menu is scrolled to the bottom
|
|
135
|
+
* @param {Event} ev
|
|
136
|
+
* @version 2.52.0
|
|
137
|
+
*/
|
|
59
138
|
"dropdownReachBottom": (_ev) => true
|
|
60
139
|
},
|
|
140
|
+
/**
|
|
141
|
+
* @zh 弹出框的页脚
|
|
142
|
+
* @en The footer of the popup menu box
|
|
143
|
+
* @slot footer
|
|
144
|
+
*/
|
|
145
|
+
/**
|
|
146
|
+
* @zh 选项内容
|
|
147
|
+
* @en Display content of options
|
|
148
|
+
* @slot option
|
|
149
|
+
* @binding {OptionInfo} data
|
|
150
|
+
* @version 2.13.0
|
|
151
|
+
*/
|
|
61
152
|
setup(props, { emit, attrs, slots }) {
|
|
62
153
|
const { modelValue, allowClear } = toRefs(props);
|
|
63
154
|
const prefixCls = getPrefixCls("auto-complete");
|
|
@@ -79,9 +170,10 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
79
170
|
const _popupVisible = ref(false);
|
|
80
171
|
const computedPopupVisible = computed(() => _popupVisible.value && validOptionInfos.value.length > 0);
|
|
81
172
|
const virtualListRef = ref();
|
|
82
|
-
const
|
|
173
|
+
const { mergedDropdownVirtualListProps } = useDropdownVirtualListProps(computed(() => props.virtualListProps));
|
|
174
|
+
const component = computed(() => mergedDropdownVirtualListProps.value ? "div" : "li");
|
|
83
175
|
const resolvedVirtualListProps = computed(() => {
|
|
84
|
-
return resolveDropdownVirtualListProps(
|
|
176
|
+
return resolveDropdownVirtualListProps(mergedDropdownVirtualListProps.value, props.triggerProps, DEFAULT_AUTOCOMPLETE_VIRTUAL_ITEM_SIZE);
|
|
85
177
|
});
|
|
86
178
|
const handlePopupVisibleChange = (popupVisible) => {
|
|
87
179
|
_popupVisible.value = popupVisible;
|
|
@@ -162,7 +254,7 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
162
254
|
return createVNode(select_dropdown_default, {
|
|
163
255
|
"ref": dropdownRef,
|
|
164
256
|
"class": `${prefixCls}-dropdown`,
|
|
165
|
-
"virtualList": Boolean(
|
|
257
|
+
"virtualList": Boolean(resolvedVirtualListProps.value),
|
|
166
258
|
"onScroll": handleDropdownScroll,
|
|
167
259
|
"onReachBottom": handleDropdownReachBottom
|
|
168
260
|
}, {
|
|
@@ -202,10 +294,22 @@ var auto_complete_default = /* @__PURE__ */ defineComponent({
|
|
|
202
294
|
};
|
|
203
295
|
},
|
|
204
296
|
methods: {
|
|
297
|
+
/**
|
|
298
|
+
* @zh 使输入框获取焦点
|
|
299
|
+
* @en Make the input box focus
|
|
300
|
+
* @public
|
|
301
|
+
* @version 2.40.0
|
|
302
|
+
*/
|
|
205
303
|
focus() {
|
|
206
304
|
var _this$inputRef;
|
|
207
305
|
(_this$inputRef = this.inputRef) === null || _this$inputRef === void 0 || _this$inputRef.focus();
|
|
208
306
|
},
|
|
307
|
+
/**
|
|
308
|
+
* @zh 使输入框失去焦点
|
|
309
|
+
* @en Make the input box lose focus
|
|
310
|
+
* @public
|
|
311
|
+
* @version 2.40.0
|
|
312
|
+
*/
|
|
209
313
|
blur() {
|
|
210
314
|
var _this$inputRef2;
|
|
211
315
|
(_this$inputRef2 = this.inputRef) === null || _this$inputRef2 === void 0 || _this$inputRef2.blur();
|
|
@@ -50,9 +50,9 @@ declare const AutoComplete: {
|
|
|
50
50
|
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
51
51
|
};
|
|
52
52
|
}>> & Readonly<{
|
|
53
|
+
onSearch?: ((_value: string) => any) | undefined;
|
|
53
54
|
onChange?: ((_value: string) => any) | undefined;
|
|
54
55
|
onClear?: ((_ev: Event) => any) | undefined;
|
|
55
|
-
onSearch?: ((_value: string) => any) | undefined;
|
|
56
56
|
onSelect?: ((_value: string) => any) | undefined;
|
|
57
57
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
58
58
|
onDropdownScroll?: ((_ev: Event) => any) | undefined;
|
|
@@ -125,9 +125,9 @@ declare const AutoComplete: {
|
|
|
125
125
|
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
126
126
|
};
|
|
127
127
|
}>> & Readonly<{
|
|
128
|
+
onSearch?: ((_value: string) => any) | undefined;
|
|
128
129
|
onChange?: ((_value: string) => any) | undefined;
|
|
129
130
|
onClear?: ((_ev: Event) => any) | undefined;
|
|
130
|
-
onSearch?: ((_value: string) => any) | undefined;
|
|
131
131
|
onSelect?: ((_value: string) => any) | undefined;
|
|
132
132
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
133
133
|
onDropdownScroll?: ((_ev: Event) => any) | undefined;
|
|
@@ -189,9 +189,9 @@ declare const AutoComplete: {
|
|
|
189
189
|
type: import("vue").PropType<import("../_components/virtual-list/interface").VirtualListProps>;
|
|
190
190
|
};
|
|
191
191
|
}>> & Readonly<{
|
|
192
|
+
onSearch?: ((_value: string) => any) | undefined;
|
|
192
193
|
onChange?: ((_value: string) => any) | undefined;
|
|
193
194
|
onClear?: ((_ev: Event) => any) | undefined;
|
|
194
|
-
onSearch?: ((_value: string) => any) | undefined;
|
|
195
195
|
onSelect?: ((_value: string) => any) | undefined;
|
|
196
196
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
197
197
|
onDropdownScroll?: ((_ev: Event) => any) | undefined;
|
|
@@ -9,24 +9,55 @@ import { computed, createTextVNode, createVNode, defineComponent, inject, provid
|
|
|
9
9
|
var AvatarGroup = /* @__PURE__ */ defineComponent({
|
|
10
10
|
name: "AvatarGroup",
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @zh 头像的形状,有圆形(circle)和正方形(square)两种
|
|
14
|
+
* @en The shape of the avatar in the group, there are two kinds of circle (circle) and square (square)
|
|
15
|
+
* @values 'circle', 'square'
|
|
16
|
+
*/
|
|
12
17
|
shape: {
|
|
13
18
|
type: String,
|
|
14
19
|
default: "circle"
|
|
15
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* @zh 头像的尺寸大小,单位是 `px`
|
|
23
|
+
* @en The size of the avatar in the group, the unit is `px`
|
|
24
|
+
*/
|
|
16
25
|
size: Number,
|
|
26
|
+
/**
|
|
27
|
+
* @zh 是否自动根据头像尺寸调整字体大小
|
|
28
|
+
* @en Whether to automatically adjust the font size according to the size of the avatar.
|
|
29
|
+
*/
|
|
17
30
|
autoFixFontSize: {
|
|
18
31
|
type: Boolean,
|
|
19
32
|
default: true
|
|
20
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
* @zh 头像组最多显示的头像数量,多余头像将以 `+x` 的形式展示。
|
|
36
|
+
* @en The maximum number of avatars displayed in the avatar group. The excess avatars will be displayed in the form of `+x`.
|
|
37
|
+
*/
|
|
21
38
|
maxCount: {
|
|
22
39
|
type: Number,
|
|
23
40
|
default: 0
|
|
24
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @zh 头像组内的头像 `z-index` 递增,默认是递减。
|
|
44
|
+
* @en The avatar `z-index` in the avatar group increases, and the default is decreasing.
|
|
45
|
+
*/
|
|
25
46
|
zIndexAscend: {
|
|
26
47
|
type: Boolean,
|
|
27
48
|
default: false
|
|
28
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @zh 多余头像样式。
|
|
52
|
+
* @en Style for +x.
|
|
53
|
+
* @version 2.7.0
|
|
54
|
+
*/
|
|
29
55
|
maxStyle: { type: Object },
|
|
56
|
+
/**
|
|
57
|
+
* @zh 多余头像气泡的 `TriggerProps`
|
|
58
|
+
* @en TriggerProps for popover around +x.
|
|
59
|
+
* @version 2.7.0
|
|
60
|
+
*/
|
|
30
61
|
maxPopoverTriggerProps: { type: Object }
|
|
31
62
|
},
|
|
32
63
|
setup(props, { slots }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber } from "../_utils/is.js";
|
|
5
5
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
@@ -17,28 +17,78 @@ var avatar_vue_vue_type_script_lang_default = defineComponent({
|
|
|
17
17
|
IconLoading
|
|
18
18
|
},
|
|
19
19
|
props: {
|
|
20
|
+
/**
|
|
21
|
+
* @zh 头像的形状,有圆形(circle)和正方形(square)两种
|
|
22
|
+
* @en The shape of the avatar, there are two kinds of circle (circle) and square (square)
|
|
23
|
+
* @values 'circle', 'square'
|
|
24
|
+
*/
|
|
20
25
|
shape: {
|
|
21
26
|
type: String,
|
|
22
27
|
default: "circle"
|
|
23
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* @zh 自定义头像图片地址,如果传入该属性,会默认渲染img标签
|
|
31
|
+
* @en Custom avatar image address. If this attribute is passed in, the img tag will be rendered by default
|
|
32
|
+
* @version 2.40.0
|
|
33
|
+
*/
|
|
24
34
|
imageUrl: String,
|
|
35
|
+
/**
|
|
36
|
+
* @zh 头像的尺寸大小,单位是 `px`。未填写时使用样式中的大小 `40px`
|
|
37
|
+
* @en The size of the avatar, the unit is `px`. Use size `40px` in styles when not filled
|
|
38
|
+
*/
|
|
25
39
|
size: Number,
|
|
40
|
+
/**
|
|
41
|
+
* @zh 是否自动根据头像尺寸调整字体大小
|
|
42
|
+
* @en Whether to automatically adjust the font size according to the size of the avatar.
|
|
43
|
+
*/
|
|
26
44
|
autoFixFontSize: {
|
|
27
45
|
type: Boolean,
|
|
28
46
|
default: true
|
|
29
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @zh 可点击的头像交互类型
|
|
50
|
+
* @en Clickable avatar interaction type
|
|
51
|
+
* @values 'mask', 'button'
|
|
52
|
+
*/
|
|
30
53
|
triggerType: {
|
|
31
54
|
type: String,
|
|
32
55
|
default: "button"
|
|
33
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* @zh 交互图标的样式
|
|
59
|
+
* @en Interactive icon style
|
|
60
|
+
*/
|
|
34
61
|
triggerIconStyle: { type: Object },
|
|
62
|
+
/**
|
|
63
|
+
* @zh 图片在容器内的的适应类型
|
|
64
|
+
* @en Object-fit type of the image in the container
|
|
65
|
+
* @version 2.52.0
|
|
66
|
+
*/
|
|
35
67
|
objectFit: { type: String }
|
|
36
68
|
},
|
|
37
69
|
emits: {
|
|
70
|
+
/**
|
|
71
|
+
* @zh 点击回调
|
|
72
|
+
* @en Callback when clicked
|
|
73
|
+
* @param {MouseEvent} ev
|
|
74
|
+
*/
|
|
38
75
|
click: (_ev) => true,
|
|
76
|
+
/**
|
|
77
|
+
* @zh 图片加载错误
|
|
78
|
+
* @en image load error
|
|
79
|
+
*/
|
|
39
80
|
error: () => true,
|
|
81
|
+
/**
|
|
82
|
+
* @zh 图片加载成功
|
|
83
|
+
* @en image load success
|
|
84
|
+
*/
|
|
40
85
|
load: () => true
|
|
41
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @zh 可点击的头像交互图标
|
|
89
|
+
* @en Clickable avatar interaction icon
|
|
90
|
+
* @slot trigger-icon
|
|
91
|
+
*/
|
|
42
92
|
setup(props, { slots, emit, attrs }) {
|
|
43
93
|
const { shape, size, autoFixFontSize, triggerType, triggerIconStyle } = toRefs(props);
|
|
44
94
|
const prefixCls = getPrefixCls("avatar");
|
|
@@ -10,15 +10,31 @@ var back_top_vue_vue_type_script_lang_default = defineComponent({
|
|
|
10
10
|
name: "BackTop",
|
|
11
11
|
components: { IconToTop },
|
|
12
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* @zh 显示回到顶部按钮的触发滚动高度
|
|
15
|
+
* @en Display the trigger scroll height of the back to top button
|
|
16
|
+
*/
|
|
13
17
|
visibleHeight: {
|
|
14
18
|
type: Number,
|
|
15
19
|
default: 200
|
|
16
20
|
},
|
|
21
|
+
/**
|
|
22
|
+
* @zh 滚动事件的监听容器
|
|
23
|
+
* @en Scroll event listener container
|
|
24
|
+
*/
|
|
17
25
|
targetContainer: { type: [String, Object] },
|
|
26
|
+
/**
|
|
27
|
+
* @zh 滚动动画的缓动方式,可选值参考 [BTween](https://github.com/PengJiyuan/b-tween)
|
|
28
|
+
* @en Easing mode of scrolling animation, refer to [BTween](https://github.com/PengJiyuan/b-tween) for optional values
|
|
29
|
+
*/
|
|
18
30
|
easing: {
|
|
19
31
|
type: String,
|
|
20
32
|
default: "quartOut"
|
|
21
33
|
},
|
|
34
|
+
/**
|
|
35
|
+
* @zh 滚动动画的持续时间
|
|
36
|
+
* @en Duration of scroll animation
|
|
37
|
+
*/
|
|
22
38
|
duration: {
|
|
23
39
|
type: Number,
|
|
24
40
|
default: 200
|
package/es/badge/badge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { computed, createVNode, defineComponent, inject, toRefs } from "vue";
|
|
5
5
|
//#region components/badge/badge.tsx
|
|
@@ -27,24 +27,57 @@ var BADGE_STATUSES = [
|
|
|
27
27
|
var badge_default = /* @__PURE__ */ defineComponent({
|
|
28
28
|
name: "Badge",
|
|
29
29
|
props: {
|
|
30
|
+
/**
|
|
31
|
+
* @zh 自定义提示内容
|
|
32
|
+
* @en Set the display text of the status dot
|
|
33
|
+
*/
|
|
30
34
|
text: { type: String },
|
|
35
|
+
/**
|
|
36
|
+
* @zh 显示为小红点
|
|
37
|
+
* @en Whether to display a red dot instead of `count`
|
|
38
|
+
*/
|
|
31
39
|
dot: { type: Boolean },
|
|
40
|
+
/**
|
|
41
|
+
* @zh 徽标的样式
|
|
42
|
+
* @en Customize badge dot style
|
|
43
|
+
*/
|
|
32
44
|
dotStyle: { type: Object },
|
|
45
|
+
/**
|
|
46
|
+
* @zh 徽标最大显示数值,如果count超过这个数值会显示为maxCount
|
|
47
|
+
* @en Max count to show. If count is larger than this value, it will be displayed as `${maxCount}+`
|
|
48
|
+
*/
|
|
33
49
|
maxCount: {
|
|
34
50
|
type: Number,
|
|
35
51
|
default: 99
|
|
36
52
|
},
|
|
53
|
+
/**
|
|
54
|
+
* @zh 设置徽标位置的偏移
|
|
55
|
+
* @en Set offset of the badge dot
|
|
56
|
+
*/
|
|
37
57
|
offset: {
|
|
38
58
|
type: Array,
|
|
39
59
|
default: () => []
|
|
40
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* @zh 内置的一些颜色
|
|
63
|
+
* @en Customize dot color
|
|
64
|
+
*/
|
|
41
65
|
color: { type: String },
|
|
66
|
+
/**
|
|
67
|
+
* @zh 徽标的状态类型
|
|
68
|
+
* @en Badge status
|
|
69
|
+
* @values 'normal', 'processing', 'success', 'warning', 'danger'
|
|
70
|
+
*/
|
|
42
71
|
status: {
|
|
43
72
|
type: String,
|
|
44
73
|
validator: (value) => {
|
|
45
74
|
return BADGE_STATUSES.includes(value);
|
|
46
75
|
}
|
|
47
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @zh 徽标显示的数字
|
|
79
|
+
* @en Number to show in badge
|
|
80
|
+
*/
|
|
48
81
|
count: { type: Number }
|
|
49
82
|
},
|
|
50
83
|
setup(props, { slots }) {
|
|
@@ -11,14 +11,41 @@ var breadcrumb_item_default = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
name: "BreadcrumbItem",
|
|
12
12
|
inheritAttrs: false,
|
|
13
13
|
props: {
|
|
14
|
+
/**
|
|
15
|
+
* @zh 分隔符文字
|
|
16
|
+
* @en Delimiter text
|
|
17
|
+
* @version 2.36.0
|
|
18
|
+
*/
|
|
14
19
|
separator: { type: [String, Number] },
|
|
20
|
+
/**
|
|
21
|
+
* @zh 下拉菜单内容
|
|
22
|
+
* @en Dropdown content
|
|
23
|
+
* @version 2.36.0
|
|
24
|
+
*/
|
|
15
25
|
droplist: { type: Array },
|
|
26
|
+
/**
|
|
27
|
+
* @zh 下拉菜单属性
|
|
28
|
+
* @en Dropdown props
|
|
29
|
+
* @version 2.36.0
|
|
30
|
+
*/
|
|
16
31
|
dropdownProps: { type: Object },
|
|
17
32
|
index: {
|
|
18
33
|
type: Number,
|
|
19
34
|
default: 0
|
|
20
35
|
}
|
|
21
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 自定义分隔符
|
|
39
|
+
* @en Custom separator
|
|
40
|
+
* @slot separator
|
|
41
|
+
* @version 2.36.0
|
|
42
|
+
*/
|
|
43
|
+
/**
|
|
44
|
+
* @zh 自定义下拉菜单
|
|
45
|
+
* @en Custom droplist
|
|
46
|
+
* @slot droplist
|
|
47
|
+
* @version 2.36.0
|
|
48
|
+
*/
|
|
22
49
|
setup(props, { slots, attrs }) {
|
|
23
50
|
const prefixCls = getPrefixCls("breadcrumb-item");
|
|
24
51
|
const breadcrumbCtx = inject(breadcrumbInjectKey, void 0);
|
|
@@ -7,14 +7,53 @@ import { computed, createVNode, defineComponent, mergeProps, provide, reactive,
|
|
|
7
7
|
var breadcrumb_default = /* @__PURE__ */ defineComponent({
|
|
8
8
|
name: "Breadcrumb",
|
|
9
9
|
props: {
|
|
10
|
+
/**
|
|
11
|
+
* @zh 最多展示的面包屑数量(0表示不限制)
|
|
12
|
+
* @en Maximum number of breadcrumbs displayed (0 means no limit)
|
|
13
|
+
*/
|
|
10
14
|
maxCount: {
|
|
11
15
|
type: Number,
|
|
12
16
|
default: 0
|
|
13
17
|
},
|
|
18
|
+
/**
|
|
19
|
+
* @zh 设置路径
|
|
20
|
+
* @en Set routes
|
|
21
|
+
* @version 2.36.0
|
|
22
|
+
*/
|
|
14
23
|
routes: { type: Array },
|
|
24
|
+
/**
|
|
25
|
+
* @zh 分隔符文字
|
|
26
|
+
* @en Delimiter text
|
|
27
|
+
* @version 2.36.0
|
|
28
|
+
*/
|
|
15
29
|
separator: { type: [String, Number] },
|
|
30
|
+
/**
|
|
31
|
+
* @zh 自定义链接地址
|
|
32
|
+
* @en Custom link address
|
|
33
|
+
* @version 2.36.0
|
|
34
|
+
*/
|
|
16
35
|
customUrl: { type: Function }
|
|
17
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* @zh 自定义分隔符
|
|
39
|
+
* @en Custom separator
|
|
40
|
+
* @slot separator
|
|
41
|
+
*/
|
|
42
|
+
/**
|
|
43
|
+
* @zh routes 设置时生效,自定义渲染面包屑
|
|
44
|
+
* @en Effective when setting routes, custom render breadcrumbs
|
|
45
|
+
* @binding {BreadcrumbRoute} route
|
|
46
|
+
* @binding {BreadcrumbRoute[]} routes
|
|
47
|
+
* @binding {string[]} paths
|
|
48
|
+
* @slot item-render
|
|
49
|
+
* @version 2.36.0
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @zh 自定义更多图标
|
|
53
|
+
* @en Custom more icon
|
|
54
|
+
* @slot more-icon
|
|
55
|
+
* @version 2.36.0
|
|
56
|
+
*/
|
|
18
57
|
setup(props, { slots }) {
|
|
19
58
|
const { maxCount, separator, routes } = toRefs(props);
|
|
20
59
|
const prefixCls = getPrefixCls("breadcrumb");
|
|
@@ -5,10 +5,32 @@ import { defineComponent, provide, reactive, toRefs } from "vue";
|
|
|
5
5
|
var button_group_vue_vue_type_script_lang_default = defineComponent({
|
|
6
6
|
name: "ButtonGroup",
|
|
7
7
|
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 按钮的类型,分为五种:次要按钮、主要按钮、虚框按钮、线性按钮、文字按钮。
|
|
10
|
+
* @en Children button types are divided into five types: secondary, primary, dashed, outline and text.
|
|
11
|
+
*/
|
|
8
12
|
type: { type: String },
|
|
13
|
+
/**
|
|
14
|
+
* @zh 按钮的状态
|
|
15
|
+
* @en Children button state
|
|
16
|
+
* @values 'normal','warning','success','danger'
|
|
17
|
+
*/
|
|
9
18
|
status: { type: String },
|
|
19
|
+
/**
|
|
20
|
+
* @zh 按钮的形状
|
|
21
|
+
* @en Button shape
|
|
22
|
+
*/
|
|
10
23
|
shape: { type: String },
|
|
24
|
+
/**
|
|
25
|
+
* @zh 按钮的尺寸
|
|
26
|
+
* @en Children button size
|
|
27
|
+
* @values 'mini','small','medium','large'
|
|
28
|
+
*/
|
|
11
29
|
size: { type: String },
|
|
30
|
+
/**
|
|
31
|
+
* @zh 全部子按钮是否禁用
|
|
32
|
+
* @en All children whether the button is disabled
|
|
33
|
+
*/
|
|
12
34
|
disabled: { type: Boolean }
|
|
13
35
|
},
|
|
14
36
|
setup(props) {
|