@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
2
2
|
import { isNumber, isString } from "../_utils/is.js";
|
|
3
3
|
import { off, on } from "../_utils/dom.js";
|
|
4
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
5
5
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
6
6
|
import resize_trigger_default from "../_components/resize-trigger.js";
|
|
7
7
|
import { computed, defineComponent, nextTick, onMounted, reactive, ref, toRefs } from "vue";
|
|
@@ -30,35 +30,96 @@ var split_vue_vue_type_script_lang_default = defineComponent({
|
|
|
30
30
|
name: "Split",
|
|
31
31
|
components: { ResizeTrigger: resize_trigger_default },
|
|
32
32
|
props: {
|
|
33
|
+
/**
|
|
34
|
+
* @zh 分割框的 html 标签
|
|
35
|
+
* @en The html tag of the split box
|
|
36
|
+
*/
|
|
33
37
|
component: {
|
|
34
38
|
type: String,
|
|
35
39
|
default: "div"
|
|
36
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* @zh 分割的方向
|
|
43
|
+
* @en Direction of division
|
|
44
|
+
*/
|
|
37
45
|
direction: {
|
|
38
46
|
type: String,
|
|
39
47
|
default: "horizontal"
|
|
40
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @zh 分割的大小,可以是 0~1 代表百分比,或具体数值的像素,如 300px
|
|
51
|
+
* @en The size of the segmentation, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px
|
|
52
|
+
* @vModel
|
|
53
|
+
*/
|
|
41
54
|
size: {
|
|
42
55
|
type: [Number, String],
|
|
43
56
|
default: void 0
|
|
44
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* @zh 默认分割的大小,可以是 0~1 代表百分比,或具体数值的像素,如 300px
|
|
60
|
+
* @en Default split size, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px
|
|
61
|
+
*/
|
|
45
62
|
defaultSize: {
|
|
46
63
|
type: [Number, String],
|
|
47
64
|
default: .5
|
|
48
65
|
},
|
|
66
|
+
/**
|
|
67
|
+
* @zh 最小阈值,可以是 0~1 代表百分比,或具体数值的像素,如 300px
|
|
68
|
+
* @en Minimum threshold, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px
|
|
69
|
+
*/
|
|
49
70
|
min: { type: [Number, String] },
|
|
71
|
+
/**
|
|
72
|
+
* @zh 最大阈值,可以是 0~1 代表百分比,或具体数值的像素,如 300px
|
|
73
|
+
* @en Maximum threshold, it can be 0~1 representing a percentage, or a specific number of pixels, such as 300px
|
|
74
|
+
* */
|
|
50
75
|
max: { type: [Number, String] },
|
|
76
|
+
/**
|
|
77
|
+
* @zh 是否禁用
|
|
78
|
+
* @en Whether to disable
|
|
79
|
+
*/
|
|
51
80
|
disabled: {
|
|
52
81
|
type: Boolean,
|
|
53
82
|
default: false
|
|
54
83
|
}
|
|
55
84
|
},
|
|
56
85
|
emits: {
|
|
86
|
+
/**
|
|
87
|
+
* @zh 开始拖拽之前触发
|
|
88
|
+
* @en Triggered before dragging
|
|
89
|
+
* */
|
|
57
90
|
"moveStart": (_ev) => true,
|
|
91
|
+
/**
|
|
92
|
+
* @zh 拖拽时触发
|
|
93
|
+
* @en Triggered when dragging
|
|
94
|
+
*/
|
|
58
95
|
"moving": (_ev) => true,
|
|
96
|
+
/**
|
|
97
|
+
* @zh 拖拽结束之后触发
|
|
98
|
+
* @en Triggered after dragging ends
|
|
99
|
+
*/
|
|
59
100
|
"moveEnd": (_ev) => true,
|
|
60
101
|
"update:size": (_size) => true
|
|
61
102
|
},
|
|
103
|
+
/**
|
|
104
|
+
* @zh 第一个面板的内容
|
|
105
|
+
* @en The contents of the first panel
|
|
106
|
+
* @slot first
|
|
107
|
+
*/
|
|
108
|
+
/**
|
|
109
|
+
* @zh 第二个面板的内容
|
|
110
|
+
* @en The contents of the second panel
|
|
111
|
+
* @slot second
|
|
112
|
+
*/
|
|
113
|
+
/**
|
|
114
|
+
* @zh 伸缩杆的内容
|
|
115
|
+
* @en The contents of the resize pole
|
|
116
|
+
* @slot resize-trigger
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* @zh 伸缩杆的图标
|
|
120
|
+
* @en Resize pole icon
|
|
121
|
+
* @slot resize-trigger-icon
|
|
122
|
+
*/
|
|
62
123
|
setup(props, { emit }) {
|
|
63
124
|
const { direction, size: propSize, defaultSize, min, max } = toRefs(props);
|
|
64
125
|
const triggerSize = ref(0);
|
|
@@ -6,26 +6,61 @@ import originDayjs from "dayjs";
|
|
|
6
6
|
var countdown_vue_vue_type_script_lang_default = defineComponent({
|
|
7
7
|
name: "Countdown",
|
|
8
8
|
props: {
|
|
9
|
+
/**
|
|
10
|
+
* @zh 倒计时的标题
|
|
11
|
+
* @en Countdown title
|
|
12
|
+
*/
|
|
9
13
|
title: String,
|
|
14
|
+
/**
|
|
15
|
+
* @zh 倒计时的值
|
|
16
|
+
* @en Countdown value
|
|
17
|
+
*/
|
|
10
18
|
value: {
|
|
11
19
|
type: Number,
|
|
12
20
|
default: () => Date.now() + 3e5
|
|
13
21
|
},
|
|
22
|
+
/**
|
|
23
|
+
* @zh 用于修正初始化时间显示不正确
|
|
24
|
+
* @en Used to correct the incorrect display of the initialization time
|
|
25
|
+
*/
|
|
14
26
|
now: {
|
|
15
27
|
type: Number,
|
|
16
28
|
default: () => Date.now()
|
|
17
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* @zh 倒计时的展示格式 [dayjs](https://day.js.org/docs/en/display/format)
|
|
32
|
+
* @en Countdown display format [dayjs](https://day.js.org/docs/en/display/format)
|
|
33
|
+
*/
|
|
18
34
|
format: {
|
|
19
35
|
type: String,
|
|
20
36
|
default: "HH:mm:ss"
|
|
21
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* @zh 是否开始倒计时
|
|
40
|
+
* @en Whether to start the countdown
|
|
41
|
+
*/
|
|
22
42
|
start: {
|
|
23
43
|
type: Boolean,
|
|
24
44
|
default: true
|
|
25
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 自定义显示值的样式
|
|
48
|
+
* @en Custom value style
|
|
49
|
+
* @version 2.32.0
|
|
50
|
+
*/
|
|
26
51
|
valueStyle: { type: Object }
|
|
27
52
|
},
|
|
28
|
-
emits: {
|
|
53
|
+
emits: {
|
|
54
|
+
/**
|
|
55
|
+
* @zh 倒计时完成后触发的回调
|
|
56
|
+
* @en Callback at the end of the countdown
|
|
57
|
+
*/
|
|
58
|
+
finish: () => true },
|
|
59
|
+
/**
|
|
60
|
+
* @zh 标题
|
|
61
|
+
* @en Title
|
|
62
|
+
* @slot title
|
|
63
|
+
*/
|
|
29
64
|
setup(props, { emit }) {
|
|
30
65
|
const prefixCls = getPrefixCls("statistic");
|
|
31
66
|
const { start, value, now, format } = toRefs(props);
|
|
@@ -8,41 +8,115 @@ import NP from "number-precision";
|
|
|
8
8
|
var statistic_vue_vue_type_script_lang_default = defineComponent({
|
|
9
9
|
name: "Statistic",
|
|
10
10
|
props: {
|
|
11
|
+
/**
|
|
12
|
+
* @zh 数值显示的标题
|
|
13
|
+
* @en Title of the numerical display
|
|
14
|
+
*/
|
|
11
15
|
title: String,
|
|
16
|
+
/**
|
|
17
|
+
* @zh 数值显示的值
|
|
18
|
+
* @en Numerical display value
|
|
19
|
+
*/
|
|
12
20
|
value: { type: [Number, Object] },
|
|
21
|
+
/**
|
|
22
|
+
* @zh 数值显示的格式 [dayjs](https://day.js.org/docs/en/display/format)(日期模式使用)
|
|
23
|
+
* @en Format of numerical display [dayjs](https://day.js.org/docs/en/display/format) (used in date mode)
|
|
24
|
+
*/
|
|
13
25
|
format: {
|
|
14
26
|
type: String,
|
|
15
27
|
default: "HH:mm:ss"
|
|
16
28
|
},
|
|
29
|
+
/**
|
|
30
|
+
* @zh 额外的显示内容
|
|
31
|
+
* @en Additional display content
|
|
32
|
+
*/
|
|
17
33
|
extra: String,
|
|
34
|
+
/**
|
|
35
|
+
* @zh 是否开始动画
|
|
36
|
+
* @en Whether to start animation
|
|
37
|
+
*/
|
|
18
38
|
start: {
|
|
19
39
|
type: Boolean,
|
|
20
40
|
default: true
|
|
21
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @zh 小数保留位数(数字模式使用)
|
|
44
|
+
* @en Decimal reserved digits (used in digital mode)
|
|
45
|
+
*/
|
|
22
46
|
precision: {
|
|
23
47
|
type: Number,
|
|
24
48
|
default: 0
|
|
25
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @zh 进位分隔符(数字模式使用)
|
|
52
|
+
* @en Carry separator (used in number mode)
|
|
53
|
+
*/
|
|
26
54
|
separator: String,
|
|
55
|
+
/**
|
|
56
|
+
* @zh 是否展示进位分隔符(数字模式使用)
|
|
57
|
+
* @en Whether to display the carry separator (used in number mode)
|
|
58
|
+
*/
|
|
27
59
|
showGroupSeparator: {
|
|
28
60
|
type: Boolean,
|
|
29
61
|
default: false
|
|
30
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* @zh 是否开启动画
|
|
65
|
+
* @en Whether to turn on animation
|
|
66
|
+
*/
|
|
31
67
|
animation: {
|
|
32
68
|
type: Boolean,
|
|
33
69
|
default: false
|
|
34
70
|
},
|
|
71
|
+
/**
|
|
72
|
+
* @zh 动画的过度时间
|
|
73
|
+
* @en Animation's duration time
|
|
74
|
+
*/
|
|
35
75
|
animationDuration: {
|
|
36
76
|
type: Number,
|
|
37
77
|
default: 2e3
|
|
38
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* @zh 动画的起始值
|
|
81
|
+
* @en The starting value of the animation
|
|
82
|
+
*/
|
|
39
83
|
valueFrom: {
|
|
40
84
|
type: Number,
|
|
41
85
|
default: void 0
|
|
42
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @zh 提示文字(当 value 为 undefined 时显示)
|
|
89
|
+
* @en Prompt text (displayed when value is undefined )
|
|
90
|
+
* @version 2.28.0
|
|
91
|
+
*/
|
|
43
92
|
placeholder: { type: String },
|
|
93
|
+
/**
|
|
94
|
+
* @zh 自定义显示值的样式
|
|
95
|
+
* @en Custom value style
|
|
96
|
+
* @version 2.32.0
|
|
97
|
+
*/
|
|
44
98
|
valueStyle: { type: Object }
|
|
45
99
|
},
|
|
100
|
+
/**
|
|
101
|
+
* @zh 标题
|
|
102
|
+
* @en Title
|
|
103
|
+
* @slot title
|
|
104
|
+
*/
|
|
105
|
+
/**
|
|
106
|
+
* @zh 额外内容
|
|
107
|
+
* @en Extra content
|
|
108
|
+
* @slot extra
|
|
109
|
+
*/
|
|
110
|
+
/**
|
|
111
|
+
* @zh 前缀
|
|
112
|
+
* @en Prefix
|
|
113
|
+
* @slot prefix
|
|
114
|
+
*/
|
|
115
|
+
/**
|
|
116
|
+
* @zh 后缀
|
|
117
|
+
* @en Suffix
|
|
118
|
+
* @slot suffix
|
|
119
|
+
*/
|
|
46
120
|
setup(props) {
|
|
47
121
|
var _props$valueFrom;
|
|
48
122
|
const prefixCls = getPrefixCls("statistic");
|
package/es/steps/index.d.ts
CHANGED
|
@@ -53,8 +53,8 @@ declare const Steps: {
|
|
|
53
53
|
'update:current': (_step: number) => true;
|
|
54
54
|
change: (_step: number, _ev: Event) => true;
|
|
55
55
|
}, import("vue").PublicProps, {
|
|
56
|
-
small: boolean;
|
|
57
56
|
type: "default" | "dot" | "arrow" | "navigation";
|
|
57
|
+
small: boolean;
|
|
58
58
|
status: "error" | "wait" | "finish" | "process";
|
|
59
59
|
direction: "horizontal" | "vertical";
|
|
60
60
|
lineLess: boolean;
|
|
@@ -114,8 +114,8 @@ declare const Steps: {
|
|
|
114
114
|
[x: string]: boolean;
|
|
115
115
|
})[]>;
|
|
116
116
|
}, {}, {}, {}, {
|
|
117
|
-
small: boolean;
|
|
118
117
|
type: "default" | "dot" | "arrow" | "navigation";
|
|
118
|
+
small: boolean;
|
|
119
119
|
status: "error" | "wait" | "finish" | "process";
|
|
120
120
|
direction: "horizontal" | "vertical";
|
|
121
121
|
lineLess: boolean;
|
|
@@ -175,8 +175,8 @@ declare const Steps: {
|
|
|
175
175
|
'update:current': (_step: number) => true;
|
|
176
176
|
change: (_step: number, _ev: Event) => true;
|
|
177
177
|
}, string, {
|
|
178
|
-
small: boolean;
|
|
179
178
|
type: "default" | "dot" | "arrow" | "navigation";
|
|
179
|
+
small: boolean;
|
|
180
180
|
status: "error" | "wait" | "finish" | "process";
|
|
181
181
|
direction: "horizontal" | "vertical";
|
|
182
182
|
lineLess: boolean;
|
|
@@ -12,14 +12,50 @@ var step_vue_vue_type_script_lang_default = defineComponent({
|
|
|
12
12
|
IconClose
|
|
13
13
|
},
|
|
14
14
|
props: {
|
|
15
|
+
/**
|
|
16
|
+
* @zh 步骤的标题
|
|
17
|
+
* @en Title of the step
|
|
18
|
+
*/
|
|
15
19
|
title: String,
|
|
20
|
+
/**
|
|
21
|
+
* @zh 步骤的描述信息
|
|
22
|
+
* @en Description of the step
|
|
23
|
+
*/
|
|
16
24
|
description: String,
|
|
25
|
+
/**
|
|
26
|
+
* @zh 步骤的状态
|
|
27
|
+
* @en Status of the step
|
|
28
|
+
* @values 'wait', 'process', 'finish', 'error'
|
|
29
|
+
*/
|
|
17
30
|
status: { type: String },
|
|
31
|
+
/**
|
|
32
|
+
* @zh 是否禁用
|
|
33
|
+
* @en Whether to disable
|
|
34
|
+
*/
|
|
18
35
|
disabled: {
|
|
19
36
|
type: Boolean,
|
|
20
37
|
default: false
|
|
21
38
|
}
|
|
22
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @zh 节点
|
|
42
|
+
* @en Node
|
|
43
|
+
* @slot node
|
|
44
|
+
* @binding {number} step
|
|
45
|
+
* @binding {string} status
|
|
46
|
+
*/
|
|
47
|
+
/**
|
|
48
|
+
* @zh 图标
|
|
49
|
+
* @en Icon
|
|
50
|
+
* @slot icon
|
|
51
|
+
* @binding {number} step
|
|
52
|
+
* @binding {string} status
|
|
53
|
+
*/
|
|
54
|
+
/**
|
|
55
|
+
* @zh 描述内容
|
|
56
|
+
* @en Description
|
|
57
|
+
* @slot description
|
|
58
|
+
*/
|
|
23
59
|
setup(props) {
|
|
24
60
|
const prefixCls = getPrefixCls("steps-item");
|
|
25
61
|
const instance = getCurrentInstance();
|
package/es/steps/steps.vue.d.ts
CHANGED
|
@@ -88,8 +88,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
88
88
|
onChange?: ((_step: number, _ev: Event) => any) | undefined;
|
|
89
89
|
"onUpdate:current"?: ((_step: number) => any) | undefined;
|
|
90
90
|
}>, {
|
|
91
|
-
small: boolean;
|
|
92
91
|
type: "default" | "dot" | "arrow" | "navigation";
|
|
92
|
+
small: boolean;
|
|
93
93
|
status: "error" | "wait" | "finish" | "process";
|
|
94
94
|
direction: "horizontal" | "vertical";
|
|
95
95
|
lineLess: boolean;
|
|
@@ -5,38 +5,79 @@ import { computed, defineComponent, provide, reactive, ref, toRefs } from "vue";
|
|
|
5
5
|
var steps_vue_vue_type_script_lang_default = defineComponent({
|
|
6
6
|
name: "Steps",
|
|
7
7
|
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 步骤条的类型
|
|
10
|
+
* @en The type of the steps
|
|
11
|
+
* @values 'default', 'arrow', 'dot', 'navigation'
|
|
12
|
+
*/
|
|
8
13
|
type: {
|
|
9
14
|
type: String,
|
|
10
15
|
default: "default"
|
|
11
16
|
},
|
|
17
|
+
/**
|
|
18
|
+
* @zh 步骤条的显示方向
|
|
19
|
+
* @en The direction of the steps
|
|
20
|
+
* @values 'horizontal', 'vertical'
|
|
21
|
+
*/
|
|
12
22
|
direction: {
|
|
13
23
|
type: String,
|
|
14
24
|
default: "horizontal"
|
|
15
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* @zh 标签描述文字放置的位置
|
|
28
|
+
* @en The location where the label description is placed.
|
|
29
|
+
* @values 'horizontal', 'vertical'
|
|
30
|
+
*/
|
|
16
31
|
labelPlacement: {
|
|
17
32
|
type: String,
|
|
18
33
|
default: "horizontal"
|
|
19
34
|
},
|
|
35
|
+
/**
|
|
36
|
+
* @zh 当前步骤数
|
|
37
|
+
* @en Number of current step
|
|
38
|
+
* @vModel
|
|
39
|
+
*/
|
|
20
40
|
current: {
|
|
21
41
|
type: Number,
|
|
22
42
|
default: void 0
|
|
23
43
|
},
|
|
44
|
+
/**
|
|
45
|
+
* @zh 默认的步骤数(非受控状态)
|
|
46
|
+
* @en The default number of step (uncontrolled state)
|
|
47
|
+
*/
|
|
24
48
|
defaultCurrent: {
|
|
25
49
|
type: Number,
|
|
26
50
|
default: 1
|
|
27
51
|
},
|
|
52
|
+
/**
|
|
53
|
+
* @zh 当前步骤的状态
|
|
54
|
+
* @en The status of the current step
|
|
55
|
+
* @values 'wait', 'process', 'finish', 'error'
|
|
56
|
+
*/
|
|
28
57
|
status: {
|
|
29
58
|
type: String,
|
|
30
59
|
default: "process"
|
|
31
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* @zh 是否使用无连接线样式
|
|
63
|
+
* @en Whether to use the connectionless style
|
|
64
|
+
*/
|
|
32
65
|
lineLess: {
|
|
33
66
|
type: Boolean,
|
|
34
67
|
default: false
|
|
35
68
|
},
|
|
69
|
+
/**
|
|
70
|
+
* @zh 是否使用小型步骤条
|
|
71
|
+
* @en Whether to use a small step bar
|
|
72
|
+
*/
|
|
36
73
|
small: {
|
|
37
74
|
type: Boolean,
|
|
38
75
|
default: false
|
|
39
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @zh 是否可以点击切换
|
|
79
|
+
* @en Whether you can click to switch
|
|
80
|
+
*/
|
|
40
81
|
changeable: {
|
|
41
82
|
type: Boolean,
|
|
42
83
|
default: false
|
|
@@ -44,6 +85,12 @@ var steps_vue_vue_type_script_lang_default = defineComponent({
|
|
|
44
85
|
},
|
|
45
86
|
emits: {
|
|
46
87
|
"update:current": (_step) => true,
|
|
88
|
+
/**
|
|
89
|
+
* @zh 步骤数发生改变时触发
|
|
90
|
+
* @en Triggered when the number of steps changes
|
|
91
|
+
* @param {number} step
|
|
92
|
+
* @param {Event} ev
|
|
93
|
+
*/
|
|
47
94
|
"change": (_step, _ev) => true
|
|
48
95
|
},
|
|
49
96
|
setup(props, { emit, slots }) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
2
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
3
3
|
import { isFunction, isNull, isUndefined } from "../_utils/is.js";
|
|
4
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
4
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
5
5
|
import IconLoading from "../icon/icon-loading/index.js";
|
|
6
6
|
import { useSize } from "../_hooks/use-size.js";
|
|
7
7
|
import { computed, defineComponent, ref, toRefs, watch } from "vue";
|
|
@@ -10,6 +10,10 @@ var switch_vue_vue_type_script_lang_default = defineComponent({
|
|
|
10
10
|
name: "Switch",
|
|
11
11
|
components: { IconLoading },
|
|
12
12
|
props: {
|
|
13
|
+
/**
|
|
14
|
+
* @zh 绑定值
|
|
15
|
+
* @en Value
|
|
16
|
+
*/
|
|
13
17
|
modelValue: {
|
|
14
18
|
type: [
|
|
15
19
|
String,
|
|
@@ -18,23 +22,50 @@ var switch_vue_vue_type_script_lang_default = defineComponent({
|
|
|
18
22
|
],
|
|
19
23
|
default: void 0
|
|
20
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* @zh 默认选中状态(非受控状态)
|
|
27
|
+
* @en Default selected state (uncontrolled state)
|
|
28
|
+
*/
|
|
21
29
|
defaultChecked: {
|
|
22
30
|
type: Boolean,
|
|
23
31
|
default: false
|
|
24
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @zh 是否禁用
|
|
35
|
+
* @en Whether to disable
|
|
36
|
+
*/
|
|
25
37
|
disabled: {
|
|
26
38
|
type: Boolean,
|
|
27
39
|
default: false
|
|
28
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* @zh 是否为加载中状态
|
|
43
|
+
* @en Whether it is loading state
|
|
44
|
+
*/
|
|
29
45
|
loading: {
|
|
30
46
|
type: Boolean,
|
|
31
47
|
default: false
|
|
32
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @zh 开关的类型
|
|
51
|
+
* @en Type of switch
|
|
52
|
+
* @values 'circle', 'round', 'line'
|
|
53
|
+
*/
|
|
33
54
|
type: {
|
|
34
55
|
type: String,
|
|
35
56
|
default: "circle"
|
|
36
57
|
},
|
|
58
|
+
/**
|
|
59
|
+
* @zh 开关的大小
|
|
60
|
+
* @en Size of switch
|
|
61
|
+
* @defaultValue 'medium'
|
|
62
|
+
*/
|
|
37
63
|
size: { type: String },
|
|
64
|
+
/**
|
|
65
|
+
* @zh 选中时的值
|
|
66
|
+
* @en Value when checked
|
|
67
|
+
* @version 2.12.0
|
|
68
|
+
*/
|
|
38
69
|
checkedValue: {
|
|
39
70
|
type: [
|
|
40
71
|
String,
|
|
@@ -43,6 +74,11 @@ var switch_vue_vue_type_script_lang_default = defineComponent({
|
|
|
43
74
|
],
|
|
44
75
|
default: true
|
|
45
76
|
},
|
|
77
|
+
/**
|
|
78
|
+
* @zh 未选中时的值
|
|
79
|
+
* @en Value when unchecked
|
|
80
|
+
* @version 2.12.0
|
|
81
|
+
*/
|
|
46
82
|
uncheckedValue: {
|
|
47
83
|
type: [
|
|
48
84
|
String,
|
|
@@ -51,18 +87,79 @@ var switch_vue_vue_type_script_lang_default = defineComponent({
|
|
|
51
87
|
],
|
|
52
88
|
default: false
|
|
53
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* @zh 选中时的开关颜色
|
|
92
|
+
* @en The color of the switch when checked
|
|
93
|
+
* @version 2.12.0
|
|
94
|
+
*/
|
|
54
95
|
checkedColor: { type: String },
|
|
96
|
+
/**
|
|
97
|
+
* @zh 未选中时的开关颜色
|
|
98
|
+
* @en The color of the switch when unchecked
|
|
99
|
+
* @version 2.12.0
|
|
100
|
+
*/
|
|
55
101
|
uncheckedColor: { type: String },
|
|
102
|
+
/**
|
|
103
|
+
* @zh switch 状态改变前的钩子, 返回 false 或者返回 Promise 且被 reject 则停止切换。
|
|
104
|
+
* @en before-change hook before the switch state changes. If false is returned or a Promise is returned and then is rejected, will stop switching
|
|
105
|
+
* @version 2.37.0
|
|
106
|
+
*/
|
|
56
107
|
beforeChange: { type: Function },
|
|
108
|
+
/**
|
|
109
|
+
* @zh 打开状态时的文案(`type='line'`和`size='small'`时不生效)
|
|
110
|
+
* @en Copywriting when opened (not effective when `type='line'` and `size='small'`)
|
|
111
|
+
* @version 2.45.0
|
|
112
|
+
*/
|
|
57
113
|
checkedText: { type: String },
|
|
114
|
+
/**
|
|
115
|
+
* @zh 关闭状态时的文案(`type='line'`和`size='small'`时不生效)
|
|
116
|
+
* @en Copywriting when closed (not effective when `type='line'` and `size='small'`)
|
|
117
|
+
* @version 2.45.0
|
|
118
|
+
*/
|
|
58
119
|
uncheckedText: { type: String }
|
|
59
120
|
},
|
|
60
121
|
emits: {
|
|
61
122
|
"update:modelValue": (_value) => true,
|
|
123
|
+
/**
|
|
124
|
+
* @zh 值改变时触发
|
|
125
|
+
* @en Trigger when the value changes
|
|
126
|
+
* @param { boolean | string | number } value
|
|
127
|
+
* @param {Event} ev
|
|
128
|
+
*/
|
|
62
129
|
"change": (_value, _ev) => true,
|
|
130
|
+
/**
|
|
131
|
+
* @zh 组件获得焦点时触发
|
|
132
|
+
* @en Triggered when the component gets focus
|
|
133
|
+
* @property {FocusEvent} ev
|
|
134
|
+
*/
|
|
63
135
|
"focus": (_ev) => true,
|
|
136
|
+
/**
|
|
137
|
+
* @zh 组件失去焦点时触发
|
|
138
|
+
* @en Fired when the component loses focus
|
|
139
|
+
* @property {FocusEvent} ev
|
|
140
|
+
*/
|
|
64
141
|
"blur": (_ev) => true
|
|
65
142
|
},
|
|
143
|
+
/**
|
|
144
|
+
* @zh 打开状态时的文案(`type='line'`和`size='small'`时不生效)
|
|
145
|
+
* @en Copywriting when opened (not effective when `type='line'` and `size='small'`)
|
|
146
|
+
* @slot checked
|
|
147
|
+
*/
|
|
148
|
+
/**
|
|
149
|
+
* @zh 关闭状态时的文案(`type='line'`和`size='small'`时不生效)
|
|
150
|
+
* @en Copywriting when closed (not effective when `type='line'` and `size='small'`)
|
|
151
|
+
* @slot unchecked
|
|
152
|
+
*/
|
|
153
|
+
/**
|
|
154
|
+
* @zh 打开状态时,按钮上的图标
|
|
155
|
+
* @en The icon on the button when opened
|
|
156
|
+
* @slot checked-icon
|
|
157
|
+
*/
|
|
158
|
+
/**
|
|
159
|
+
* @zh 关闭状态时,按钮上的图标
|
|
160
|
+
* @en The icon on the button when closed
|
|
161
|
+
* @slot unchecked-icon
|
|
162
|
+
*/
|
|
66
163
|
setup(props, { emit }) {
|
|
67
164
|
const { disabled, size, modelValue } = toRefs(props);
|
|
68
165
|
const prefixCls = getPrefixCls("switch");
|