@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
package/es/trigger/trigger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey, themePopupContainerInjectionKey } 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 { isEmptyChildren, mergeFirstChild } from "../_utils/vue-utils.js";
|
|
5
5
|
import { off, on } from "../_utils/dom.js";
|
|
@@ -28,102 +28,221 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
name: "Trigger",
|
|
29
29
|
inheritAttrs: false,
|
|
30
30
|
props: {
|
|
31
|
+
/**
|
|
32
|
+
* @zh 弹出框是否可见
|
|
33
|
+
* @en Whether the popup is visible
|
|
34
|
+
* @vModel
|
|
35
|
+
*/
|
|
31
36
|
popupVisible: {
|
|
32
37
|
type: Boolean,
|
|
33
38
|
default: void 0
|
|
34
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @zh 弹出框默认是否可见(非受控模式)
|
|
42
|
+
* @en Whether the popup is visible by default (uncontrolled mode)
|
|
43
|
+
*/
|
|
35
44
|
defaultPopupVisible: {
|
|
36
45
|
type: Boolean,
|
|
37
46
|
default: false
|
|
38
47
|
},
|
|
48
|
+
/**
|
|
49
|
+
* @zh 触发方式
|
|
50
|
+
* @en Trigger method
|
|
51
|
+
* @values 'hover','click','focus','contextMenu'
|
|
52
|
+
*/
|
|
39
53
|
trigger: {
|
|
40
54
|
type: [String, Array],
|
|
41
55
|
default: "hover"
|
|
42
56
|
},
|
|
57
|
+
/**
|
|
58
|
+
* @zh 弹出位置
|
|
59
|
+
* @en Popup position
|
|
60
|
+
* @values 'top','tl','tr','bottom','bl','br','left','lt','lb','right','rt','rb'
|
|
61
|
+
*/
|
|
43
62
|
position: {
|
|
44
63
|
type: String,
|
|
45
64
|
default: "bottom"
|
|
46
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 触发器是否禁用
|
|
68
|
+
* @en Whether the trigger is disabled
|
|
69
|
+
*/
|
|
47
70
|
disabled: {
|
|
48
71
|
type: Boolean,
|
|
49
72
|
default: false
|
|
50
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @zh 弹出框的偏移量(弹出框距离触发器的偏移距离)
|
|
76
|
+
* @en The offset of the popup (the offset distance of the popup from the trigger)
|
|
77
|
+
*/
|
|
51
78
|
popupOffset: {
|
|
52
79
|
type: Number,
|
|
53
80
|
default: 0
|
|
54
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @zh 弹出框的移动距离
|
|
84
|
+
* @en The moving distance of the popup
|
|
85
|
+
*/
|
|
55
86
|
popupTranslate: { type: [Array, Object] },
|
|
87
|
+
/**
|
|
88
|
+
* @zh 弹出框是否显示箭头
|
|
89
|
+
* @en Whether the popup shows an arrow
|
|
90
|
+
*/
|
|
56
91
|
showArrow: {
|
|
57
92
|
type: Boolean,
|
|
58
93
|
default: false
|
|
59
94
|
},
|
|
95
|
+
/**
|
|
96
|
+
* @zh 弹出框是否跟随鼠标
|
|
97
|
+
* @en Whether the popup follows the mouse
|
|
98
|
+
*/
|
|
60
99
|
alignPoint: {
|
|
61
100
|
type: Boolean,
|
|
62
101
|
default: false
|
|
63
102
|
},
|
|
103
|
+
/**
|
|
104
|
+
* @zh 是否在移出触发器,并移入弹出框时保持弹出框显示
|
|
105
|
+
* @en Whether to keep the popup displayed when the trigger is moved out and moved into the popup
|
|
106
|
+
*/
|
|
64
107
|
popupHoverStay: {
|
|
65
108
|
type: Boolean,
|
|
66
109
|
default: true
|
|
67
110
|
},
|
|
111
|
+
/**
|
|
112
|
+
* @zh 是否在触发器失去焦点时关闭弹出框
|
|
113
|
+
* @en Whether to close the popup when the trigger loses focus
|
|
114
|
+
*/
|
|
68
115
|
blurToClose: {
|
|
69
116
|
type: Boolean,
|
|
70
117
|
default: true
|
|
71
118
|
},
|
|
119
|
+
/**
|
|
120
|
+
* @zh 是否在点击触发器时关闭弹出框
|
|
121
|
+
* @en Whether to close the popup when the trigger is clicked
|
|
122
|
+
*/
|
|
72
123
|
clickToClose: {
|
|
73
124
|
type: Boolean,
|
|
74
125
|
default: true
|
|
75
126
|
},
|
|
127
|
+
/**
|
|
128
|
+
* @zh 是否在点击外部区域时关闭弹出框
|
|
129
|
+
* @en Whether to close the popup when clicking on the outer area
|
|
130
|
+
*/
|
|
76
131
|
clickOutsideToClose: {
|
|
77
132
|
type: Boolean,
|
|
78
133
|
default: true
|
|
79
134
|
},
|
|
135
|
+
/**
|
|
136
|
+
* @zh 是否在关闭时卸载弹出框节点
|
|
137
|
+
* @en Whether to uninstall the popup node when closing
|
|
138
|
+
*/
|
|
80
139
|
unmountOnClose: {
|
|
81
140
|
type: Boolean,
|
|
82
141
|
default: true
|
|
83
142
|
},
|
|
143
|
+
/**
|
|
144
|
+
* @zh 弹出框内容的类名
|
|
145
|
+
* @en The class name of the popup content
|
|
146
|
+
*/
|
|
84
147
|
contentClass: { type: [
|
|
85
148
|
String,
|
|
86
149
|
Array,
|
|
87
150
|
Object
|
|
88
151
|
] },
|
|
152
|
+
/**
|
|
153
|
+
* @zh 弹出框内容的样式
|
|
154
|
+
* @en The style of the popup content
|
|
155
|
+
*/
|
|
89
156
|
contentStyle: { type: Object },
|
|
157
|
+
/**
|
|
158
|
+
* @zh 弹出框箭头的类名
|
|
159
|
+
* @en The class name of the popup arrow
|
|
160
|
+
*/
|
|
90
161
|
arrowClass: { type: [
|
|
91
162
|
String,
|
|
92
163
|
Array,
|
|
93
164
|
Object
|
|
94
165
|
] },
|
|
166
|
+
/**
|
|
167
|
+
* @zh 弹出框箭头的样式
|
|
168
|
+
* @en The style of the popup arrow
|
|
169
|
+
*/
|
|
95
170
|
arrowStyle: { type: Object },
|
|
171
|
+
/**
|
|
172
|
+
* @zh 弹出框的样式
|
|
173
|
+
* @en The style of the popup
|
|
174
|
+
*/
|
|
96
175
|
popupStyle: { type: Object },
|
|
176
|
+
/**
|
|
177
|
+
* @zh 弹出动画的name
|
|
178
|
+
* @en The name of the popup animation
|
|
179
|
+
*/
|
|
97
180
|
animationName: {
|
|
98
181
|
type: String,
|
|
99
182
|
default: "fade-in"
|
|
100
183
|
},
|
|
184
|
+
/**
|
|
185
|
+
* @zh 弹出动画的持续时间
|
|
186
|
+
* @en The duration of the popup animation
|
|
187
|
+
*/
|
|
101
188
|
duration: { type: [Number, Object] },
|
|
189
|
+
/**
|
|
190
|
+
* @zh mouseenter事件延时触发的时间(毫秒)
|
|
191
|
+
* @en Delay trigger time of mouseenter event (ms)
|
|
192
|
+
*/
|
|
102
193
|
mouseEnterDelay: {
|
|
103
194
|
type: Number,
|
|
104
195
|
default: 100
|
|
105
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* @zh mouseleave事件延时触发的时间(毫秒)
|
|
199
|
+
* @en Delay trigger time of mouseleave event (ms)
|
|
200
|
+
*/
|
|
106
201
|
mouseLeaveDelay: {
|
|
107
202
|
type: Number,
|
|
108
203
|
default: 100
|
|
109
204
|
},
|
|
205
|
+
/**
|
|
206
|
+
* @zh focus事件延时触发的时间(毫秒)
|
|
207
|
+
* @en Delay trigger time of focus event (ms)
|
|
208
|
+
*/
|
|
110
209
|
focusDelay: {
|
|
111
210
|
type: Number,
|
|
112
211
|
default: 0
|
|
113
212
|
},
|
|
213
|
+
/**
|
|
214
|
+
* @zh 是否将弹出框宽度设置为触发器宽度
|
|
215
|
+
* @en Whether to set the width of the popup to the width of the trigger
|
|
216
|
+
*/
|
|
114
217
|
autoFitPopupWidth: {
|
|
115
218
|
type: Boolean,
|
|
116
219
|
default: false
|
|
117
220
|
},
|
|
221
|
+
/**
|
|
222
|
+
* @zh 是否将弹出框的最小宽度设置为触发器宽度
|
|
223
|
+
* @en Whether to set the minimum width of the popup to the trigger width
|
|
224
|
+
*/
|
|
118
225
|
autoFitPopupMinWidth: {
|
|
119
226
|
type: Boolean,
|
|
120
227
|
default: false
|
|
121
228
|
},
|
|
229
|
+
/**
|
|
230
|
+
* @zh 当触发器的尺寸发生变化时,是否重新计算弹出框位置
|
|
231
|
+
* @en When the size of the trigger changes, whether to recalculate the position of the popup
|
|
232
|
+
*/
|
|
122
233
|
autoFixPosition: {
|
|
123
234
|
type: Boolean,
|
|
124
235
|
default: true
|
|
125
236
|
},
|
|
237
|
+
/**
|
|
238
|
+
* @zh 弹出框的挂载容器
|
|
239
|
+
* @en Mount container for popup
|
|
240
|
+
*/
|
|
126
241
|
popupContainer: { type: [String, Object] },
|
|
242
|
+
/**
|
|
243
|
+
* @zh 是否在容器滚动时更新弹出框的位置
|
|
244
|
+
* @us Whether to update the position of the popup when the container is scrolled
|
|
245
|
+
*/
|
|
127
246
|
updateAtScroll: {
|
|
128
247
|
type: Boolean,
|
|
129
248
|
default: false
|
|
@@ -141,22 +260,43 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
141
260
|
Array,
|
|
142
261
|
Object
|
|
143
262
|
] },
|
|
263
|
+
/**
|
|
264
|
+
* @zh 是否自动调整弹出框位置,以适应窗口大小
|
|
265
|
+
* @en Whether to automatically adjust the position of the popup to fit the window size
|
|
266
|
+
*/
|
|
144
267
|
autoFitPosition: {
|
|
145
268
|
type: Boolean,
|
|
146
269
|
default: true
|
|
147
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* @zh 是否挂载在 `body` 元素下
|
|
273
|
+
* @en Whether to mount under the `body` element
|
|
274
|
+
*/
|
|
148
275
|
renderToBody: {
|
|
149
276
|
type: Boolean,
|
|
150
277
|
default: true
|
|
151
278
|
},
|
|
279
|
+
/**
|
|
280
|
+
* @zh 是否阻止弹出层中的元素点击时获取焦点
|
|
281
|
+
* @en Whether to prevent elements in the pop-up layer from gaining focus when clicked
|
|
282
|
+
*/
|
|
152
283
|
preventFocus: {
|
|
153
284
|
type: Boolean,
|
|
154
285
|
default: false
|
|
155
286
|
},
|
|
287
|
+
/**
|
|
288
|
+
* @zh 是否在滚动时关闭弹出框
|
|
289
|
+
* @en Whether to close the popover when scrolling
|
|
290
|
+
* @version 2.46.0
|
|
291
|
+
*/
|
|
156
292
|
scrollToClose: {
|
|
157
293
|
type: Boolean,
|
|
158
294
|
default: false
|
|
159
295
|
},
|
|
296
|
+
/**
|
|
297
|
+
* @zh 滚动阈值,当滚动距离超过该值时触发关闭
|
|
298
|
+
* @en Scroll threshold, trigger close when the scroll distance exceeds this value
|
|
299
|
+
*/
|
|
160
300
|
scrollToCloseDistance: {
|
|
161
301
|
type: Number,
|
|
162
302
|
default: 0
|
|
@@ -164,11 +304,31 @@ var trigger_default = /* @__PURE__ */ defineComponent({
|
|
|
164
304
|
},
|
|
165
305
|
emits: {
|
|
166
306
|
"update:popupVisible": (_visible) => true,
|
|
307
|
+
/**
|
|
308
|
+
* @zh 弹出框显示状态改变时触发
|
|
309
|
+
* @en Emitted when the status of the popup changes
|
|
310
|
+
* @param {boolean} visible
|
|
311
|
+
*/
|
|
167
312
|
"popupVisibleChange": (_visible) => true,
|
|
313
|
+
/**
|
|
314
|
+
* @zh 弹出框显示后(动画结束)触发
|
|
315
|
+
* @en Triggered after the trigger is shown (the animation ends)
|
|
316
|
+
* @version 2.18.0
|
|
317
|
+
*/
|
|
168
318
|
"show": () => true,
|
|
319
|
+
/**
|
|
320
|
+
* @zh 弹出框隐藏后(动画结束)触发
|
|
321
|
+
* @en Triggered after the popup is hidden (the animation ends)
|
|
322
|
+
* @version 2.18.0
|
|
323
|
+
*/
|
|
169
324
|
"hide": () => true,
|
|
170
325
|
"resize": () => true
|
|
171
326
|
},
|
|
327
|
+
/**
|
|
328
|
+
* @zh 弹出框内容
|
|
329
|
+
* @en Popup content
|
|
330
|
+
* @slot content
|
|
331
|
+
*/
|
|
172
332
|
setup(props, { emit, slots, attrs }) {
|
|
173
333
|
const prefixCls = getPrefixCls("trigger");
|
|
174
334
|
const popupAttrs = computed(() => omit(attrs, TRIGGER_EVENTS));
|
package/es/trigger/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { isArray } from "../_utils/is.js";
|
|
3
3
|
import { getDocumentSize } from "../_utils/dom.js";
|
|
4
4
|
//#region components/trigger/utils.ts
|
package/es/typography/base.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { Options as ClipboardOptions } from 'copy-to-clipboard';
|
|
1
2
|
import { PropType } from 'vue';
|
|
2
3
|
import { BaseProps, EllipsisConfig } from './interface';
|
|
3
4
|
interface BaseInternalProps extends BaseProps {
|
|
@@ -51,6 +52,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
52
|
copyText: {
|
|
52
53
|
type: StringConstructor;
|
|
53
54
|
};
|
|
55
|
+
clipboardProps: {
|
|
56
|
+
type: PropType<ClipboardOptions>;
|
|
57
|
+
};
|
|
54
58
|
copyDelay: {
|
|
55
59
|
type: NumberConstructor;
|
|
56
60
|
default: number;
|
|
@@ -122,6 +126,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
122
126
|
copyText: {
|
|
123
127
|
type: StringConstructor;
|
|
124
128
|
};
|
|
129
|
+
clipboardProps: {
|
|
130
|
+
type: PropType<ClipboardOptions>;
|
|
131
|
+
};
|
|
125
132
|
copyDelay: {
|
|
126
133
|
type: NumberConstructor;
|
|
127
134
|
default: number;
|
|
@@ -146,9 +153,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
146
153
|
onEditEnd?: (() => any) | undefined;
|
|
147
154
|
"onUpdate:editing"?: ((_editing: boolean) => any) | undefined;
|
|
148
155
|
}>, {
|
|
156
|
+
bold: boolean;
|
|
149
157
|
disabled: boolean;
|
|
150
158
|
delete: boolean;
|
|
151
|
-
bold: boolean;
|
|
152
159
|
code: boolean;
|
|
153
160
|
mark: boolean | {
|
|
154
161
|
color: string;
|
package/es/typography/base.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isObject } from "../_utils/is.js";
|
|
4
4
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -7,12 +7,12 @@ import { omit } from "../_utils/omit.js";
|
|
|
7
7
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
8
8
|
import Popover from "../popover/index.js";
|
|
9
9
|
import Tooltip from "../tooltip/index.js";
|
|
10
|
-
import { clipboard } from "../_utils/clipboard.js";
|
|
11
10
|
import edit_content_default from "./edit-content.js";
|
|
12
11
|
import operations_default from "./operations.js";
|
|
13
12
|
import getInnerText from "./utils/getInnerText.js";
|
|
14
13
|
import measure_default from "./utils/measure.js";
|
|
15
14
|
import { computed, createVNode, defineComponent, isVNode, mergeProps, onMounted, onUnmounted, onUpdated, reactive, ref, toRefs, watch } from "vue";
|
|
15
|
+
import copy from "copy-to-clipboard";
|
|
16
16
|
//#region components/typography/base.tsx
|
|
17
17
|
function _isSlot(s) {
|
|
18
18
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
@@ -63,46 +63,170 @@ var base_default = /* @__PURE__ */ defineComponent({
|
|
|
63
63
|
type: String,
|
|
64
64
|
required: true
|
|
65
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 文本类型
|
|
68
|
+
* @en Text type
|
|
69
|
+
*/
|
|
66
70
|
type: { type: String },
|
|
71
|
+
/**
|
|
72
|
+
* @zh 粗体
|
|
73
|
+
* @en Whether enable bold style
|
|
74
|
+
*/
|
|
67
75
|
bold: { type: Boolean },
|
|
76
|
+
/**
|
|
77
|
+
* @zh 添加标记样式
|
|
78
|
+
* @en Mark style
|
|
79
|
+
*/
|
|
68
80
|
mark: {
|
|
69
81
|
type: [Boolean, Object],
|
|
70
82
|
default: false
|
|
71
83
|
},
|
|
84
|
+
/**
|
|
85
|
+
* @zh 下划线样式
|
|
86
|
+
* @en Whether enable underline style
|
|
87
|
+
*/
|
|
72
88
|
underline: { type: Boolean },
|
|
89
|
+
/**
|
|
90
|
+
* @zh 删除线样式
|
|
91
|
+
* @en Whether enable delete style
|
|
92
|
+
*/
|
|
73
93
|
delete: { type: Boolean },
|
|
94
|
+
/**
|
|
95
|
+
* @zh 代码块样式
|
|
96
|
+
* @en Whether enable code style
|
|
97
|
+
*/
|
|
74
98
|
code: { type: Boolean },
|
|
99
|
+
/**
|
|
100
|
+
* @zh 禁用状态
|
|
101
|
+
* @en Whether disabled
|
|
102
|
+
*/
|
|
75
103
|
disabled: { type: Boolean },
|
|
104
|
+
/**
|
|
105
|
+
* @zh 开启可编辑功能
|
|
106
|
+
* @en Whether it's editable
|
|
107
|
+
*/
|
|
76
108
|
editable: { type: Boolean },
|
|
109
|
+
/**
|
|
110
|
+
* @zh 是否在编辑状态
|
|
111
|
+
* @en Whether it's editing
|
|
112
|
+
* @vModel
|
|
113
|
+
*/
|
|
77
114
|
editing: {
|
|
78
115
|
type: Boolean,
|
|
79
116
|
default: void 0
|
|
80
117
|
},
|
|
118
|
+
/**
|
|
119
|
+
* @zh 默认的编辑状态
|
|
120
|
+
* @en Default editing state
|
|
121
|
+
*/
|
|
81
122
|
defaultEditing: { type: Boolean },
|
|
123
|
+
/**
|
|
124
|
+
* @zh 编辑的文字
|
|
125
|
+
* @en Edit text
|
|
126
|
+
* @vModel
|
|
127
|
+
*/
|
|
82
128
|
editText: { type: String },
|
|
129
|
+
/**
|
|
130
|
+
* @zh 开启复制功能
|
|
131
|
+
* @en Whether turn on copy functionality
|
|
132
|
+
*/
|
|
83
133
|
copyable: { type: Boolean },
|
|
134
|
+
/**
|
|
135
|
+
* @zh 复制的文字
|
|
136
|
+
* @en Copied text
|
|
137
|
+
*/
|
|
84
138
|
copyText: { type: String },
|
|
139
|
+
/**
|
|
140
|
+
* @zh 透传给 copy-to-clipboard 的配置
|
|
141
|
+
* @en Options passed through to copy-to-clipboard
|
|
142
|
+
*/
|
|
143
|
+
clipboardProps: { type: Object },
|
|
144
|
+
/**
|
|
145
|
+
* @zh 复制成功后,复制按钮恢复到可点击状态的延迟时间,单位是毫秒
|
|
146
|
+
* @en After the copy is successful, the delay time for the copy button to return to the clickable state, in milliseconds
|
|
147
|
+
* @version 2.16.0
|
|
148
|
+
*/
|
|
85
149
|
copyDelay: {
|
|
86
150
|
type: Number,
|
|
87
151
|
default: 3e3
|
|
88
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* @zh 自动溢出省略,具体参数配置看 [EllipsisConfig](#EllipsisConfig)
|
|
155
|
+
* @en Automatic overflow omission, refer to [EllipsisConfig](#EllipsisConfig) for more information.
|
|
156
|
+
*/
|
|
89
157
|
ellipsis: {
|
|
90
158
|
type: [Boolean, Object],
|
|
91
159
|
default: false
|
|
92
160
|
},
|
|
161
|
+
/**
|
|
162
|
+
* @zh 编辑按钮问题提示配置
|
|
163
|
+
* @en Edit button question prompt configuration
|
|
164
|
+
* @version 2.32.0
|
|
165
|
+
*/
|
|
93
166
|
editTooltipProps: { type: Object },
|
|
167
|
+
/**
|
|
168
|
+
* @zh 拷贝按钮问题提示配置
|
|
169
|
+
* @en Copy button question prompt configuration
|
|
170
|
+
* @version 2.32.0
|
|
171
|
+
*/
|
|
94
172
|
copyTooltipProps: { type: Object }
|
|
95
173
|
},
|
|
96
174
|
emits: {
|
|
175
|
+
/**
|
|
176
|
+
* @zh 开始编辑
|
|
177
|
+
* @en Edit start
|
|
178
|
+
*/
|
|
97
179
|
"editStart": () => true,
|
|
180
|
+
/**
|
|
181
|
+
* @zh 编辑内容变化
|
|
182
|
+
* @en Edit content change
|
|
183
|
+
* @param {string} text
|
|
184
|
+
*/
|
|
98
185
|
"change": (_text) => true,
|
|
99
186
|
"update:editText": (_text) => true,
|
|
187
|
+
/**
|
|
188
|
+
* @zh 编辑结束
|
|
189
|
+
* @en Edit end
|
|
190
|
+
*/
|
|
100
191
|
"editEnd": () => true,
|
|
101
192
|
"update:editing": (_editing) => true,
|
|
193
|
+
/**
|
|
194
|
+
* @zh 复制
|
|
195
|
+
* @en Copy
|
|
196
|
+
* @param {string} text
|
|
197
|
+
*/
|
|
102
198
|
"copy": (_text) => true,
|
|
199
|
+
/**
|
|
200
|
+
* @zh 省略变化事件
|
|
201
|
+
* @en Ellipsis change
|
|
202
|
+
* @param {boolean} isEllipsis
|
|
203
|
+
*/
|
|
103
204
|
"ellipsis": (_isEllipsis) => true,
|
|
205
|
+
/**
|
|
206
|
+
* @zh 展开收起事件
|
|
207
|
+
* @en Expand collapse event
|
|
208
|
+
* @param {boolean} expanded
|
|
209
|
+
*/
|
|
104
210
|
"expand": (_expanded) => true
|
|
105
211
|
},
|
|
212
|
+
/**
|
|
213
|
+
* @zh 自定义复制按钮的 tooltip 内容
|
|
214
|
+
* @en Customize the tooltip content of the copy button
|
|
215
|
+
* @slot copy-tooltip
|
|
216
|
+
* @binding {boolean} copied
|
|
217
|
+
*/
|
|
218
|
+
/**
|
|
219
|
+
* @zh 自定义复制按钮图标
|
|
220
|
+
* @en Custom copy button icon
|
|
221
|
+
* @slot copy-icon
|
|
222
|
+
* @binding {boolean} copied
|
|
223
|
+
*/
|
|
224
|
+
/**
|
|
225
|
+
* @zh 自定义展开和折叠按钮
|
|
226
|
+
* @en Custom expand button
|
|
227
|
+
* @slot expand-node
|
|
228
|
+
* @binding {boolean} expanded
|
|
229
|
+
*/
|
|
106
230
|
setup(props, { slots, emit, attrs }) {
|
|
107
231
|
const { editing: propEditing, defaultEditing, ellipsis, copyable, editable, copyText, editText, copyDelay, component } = toRefs(props);
|
|
108
232
|
const prefixCls = getPrefixCls("typography");
|
|
@@ -134,7 +258,7 @@ var base_default = /* @__PURE__ */ defineComponent({
|
|
|
134
258
|
function onCopyClick() {
|
|
135
259
|
var _copyText$value;
|
|
136
260
|
const text = (_copyText$value = copyText.value) !== null && _copyText$value !== void 0 ? _copyText$value : fullText.value;
|
|
137
|
-
|
|
261
|
+
copy(text || "", props.clipboardProps);
|
|
138
262
|
isCopied.value = true;
|
|
139
263
|
emit("copy", text);
|
|
140
264
|
copyTimer = setTimeout(() => {
|
|
@@ -83,9 +83,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
83
83
|
focus: (_ev: FocusEvent) => true;
|
|
84
84
|
blur: (_ev: FocusEvent) => true;
|
|
85
85
|
}, import("vue").PublicProps, {
|
|
86
|
+
type: "text" | "password";
|
|
86
87
|
error: boolean;
|
|
87
88
|
readonly: boolean;
|
|
88
|
-
type: "text" | "password";
|
|
89
89
|
disabled: boolean;
|
|
90
90
|
defaultValue: string;
|
|
91
91
|
allowClear: boolean;
|
|
@@ -168,9 +168,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
168
168
|
focus(): void;
|
|
169
169
|
blur(): void;
|
|
170
170
|
}, {
|
|
171
|
+
type: "text" | "password";
|
|
171
172
|
error: boolean;
|
|
172
173
|
readonly: boolean;
|
|
173
|
-
type: "text" | "password";
|
|
174
174
|
disabled: boolean;
|
|
175
175
|
defaultValue: string;
|
|
176
176
|
allowClear: boolean;
|
|
@@ -258,9 +258,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
258
258
|
focus: (_ev: FocusEvent) => true;
|
|
259
259
|
blur: (_ev: FocusEvent) => true;
|
|
260
260
|
}, string, {
|
|
261
|
+
type: "text" | "password";
|
|
261
262
|
error: boolean;
|
|
262
263
|
readonly: boolean;
|
|
263
|
-
type: "text" | "password";
|
|
264
264
|
disabled: boolean;
|
|
265
265
|
defaultValue: string;
|
|
266
266
|
allowClear: boolean;
|
|
@@ -639,7 +639,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
639
639
|
default: boolean;
|
|
640
640
|
};
|
|
641
641
|
}>> & Readonly<{}>, {
|
|
642
|
-
size: "
|
|
642
|
+
size: "small" | "mini" | "medium" | "large";
|
|
643
643
|
disabled: boolean;
|
|
644
644
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
645
645
|
AInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -769,9 +769,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
769
769
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
770
770
|
onPressEnter?: ((_ev: KeyboardEvent) => any) | undefined;
|
|
771
771
|
}>, {
|
|
772
|
+
type: "text" | "password";
|
|
772
773
|
error: boolean;
|
|
773
774
|
readonly: boolean;
|
|
774
|
-
type: "text" | "password";
|
|
775
775
|
disabled: boolean;
|
|
776
776
|
defaultValue: string;
|
|
777
777
|
allowClear: boolean;
|
|
@@ -862,9 +862,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
862
862
|
focus: (_ev: FocusEvent) => true;
|
|
863
863
|
blur: (_ev: FocusEvent) => true;
|
|
864
864
|
}, import("vue").PublicProps, {
|
|
865
|
+
type: "text" | "password";
|
|
865
866
|
error: boolean;
|
|
866
867
|
readonly: boolean;
|
|
867
|
-
type: "text" | "password";
|
|
868
868
|
disabled: boolean;
|
|
869
869
|
defaultValue: string;
|
|
870
870
|
allowClear: boolean;
|
|
@@ -947,9 +947,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
947
947
|
focus(): void;
|
|
948
948
|
blur(): void;
|
|
949
949
|
}, {
|
|
950
|
+
type: "text" | "password";
|
|
950
951
|
error: boolean;
|
|
951
952
|
readonly: boolean;
|
|
952
|
-
type: "text" | "password";
|
|
953
953
|
disabled: boolean;
|
|
954
954
|
defaultValue: string;
|
|
955
955
|
allowClear: boolean;
|
|
@@ -1037,9 +1037,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1037
1037
|
focus: (_ev: FocusEvent) => true;
|
|
1038
1038
|
blur: (_ev: FocusEvent) => true;
|
|
1039
1039
|
}, string, {
|
|
1040
|
+
type: "text" | "password";
|
|
1040
1041
|
error: boolean;
|
|
1041
1042
|
readonly: boolean;
|
|
1042
|
-
type: "text" | "password";
|
|
1043
1043
|
disabled: boolean;
|
|
1044
1044
|
defaultValue: string;
|
|
1045
1045
|
allowClear: boolean;
|
|
@@ -1418,7 +1418,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1418
1418
|
default: boolean;
|
|
1419
1419
|
};
|
|
1420
1420
|
}>> & Readonly<{}>, {
|
|
1421
|
-
size: "
|
|
1421
|
+
size: "small" | "mini" | "medium" | "large";
|
|
1422
1422
|
disabled: boolean;
|
|
1423
1423
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
1424
1424
|
AInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -1548,9 +1548,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1548
1548
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
1549
1549
|
onPressEnter?: ((_ev: KeyboardEvent) => any) | undefined;
|
|
1550
1550
|
}>, {
|
|
1551
|
+
type: "text" | "password";
|
|
1551
1552
|
error: boolean;
|
|
1552
1553
|
readonly: boolean;
|
|
1553
|
-
type: "text" | "password";
|
|
1554
1554
|
disabled: boolean;
|
|
1555
1555
|
defaultValue: string;
|
|
1556
1556
|
allowClear: boolean;
|
|
@@ -1655,9 +1655,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1655
1655
|
focus: (_ev: FocusEvent) => true;
|
|
1656
1656
|
blur: (_ev: FocusEvent) => true;
|
|
1657
1657
|
}, import("vue").PublicProps, {
|
|
1658
|
+
type: "text" | "password";
|
|
1658
1659
|
error: boolean;
|
|
1659
1660
|
readonly: boolean;
|
|
1660
|
-
type: "text" | "password";
|
|
1661
1661
|
disabled: boolean;
|
|
1662
1662
|
defaultValue: string;
|
|
1663
1663
|
allowClear: boolean;
|
|
@@ -1740,9 +1740,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1740
1740
|
focus(): void;
|
|
1741
1741
|
blur(): void;
|
|
1742
1742
|
}, {
|
|
1743
|
+
type: "text" | "password";
|
|
1743
1744
|
error: boolean;
|
|
1744
1745
|
readonly: boolean;
|
|
1745
|
-
type: "text" | "password";
|
|
1746
1746
|
disabled: boolean;
|
|
1747
1747
|
defaultValue: string;
|
|
1748
1748
|
allowClear: boolean;
|
|
@@ -1830,9 +1830,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
1830
1830
|
focus: (_ev: FocusEvent) => true;
|
|
1831
1831
|
blur: (_ev: FocusEvent) => true;
|
|
1832
1832
|
}, string, {
|
|
1833
|
+
type: "text" | "password";
|
|
1833
1834
|
error: boolean;
|
|
1834
1835
|
readonly: boolean;
|
|
1835
|
-
type: "text" | "password";
|
|
1836
1836
|
disabled: boolean;
|
|
1837
1837
|
defaultValue: string;
|
|
1838
1838
|
allowClear: boolean;
|
|
@@ -2211,7 +2211,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2211
2211
|
default: boolean;
|
|
2212
2212
|
};
|
|
2213
2213
|
}>> & Readonly<{}>, {
|
|
2214
|
-
size: "
|
|
2214
|
+
size: "small" | "mini" | "medium" | "large";
|
|
2215
2215
|
disabled: boolean;
|
|
2216
2216
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2217
2217
|
AInput: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
@@ -2341,9 +2341,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
2341
2341
|
"onUpdate:modelValue"?: ((_value: string) => any) | undefined;
|
|
2342
2342
|
onPressEnter?: ((_ev: KeyboardEvent) => any) | undefined;
|
|
2343
2343
|
}>, {
|
|
2344
|
+
type: "text" | "password";
|
|
2344
2345
|
error: boolean;
|
|
2345
2346
|
readonly: boolean;
|
|
2346
|
-
type: "text" | "password";
|
|
2347
2347
|
disabled: boolean;
|
|
2348
2348
|
defaultValue: string;
|
|
2349
2349
|
allowClear: boolean;
|