@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,6 +1,6 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
2
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
3
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
3
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
4
4
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
5
5
|
import { isArray, isBoolean } from "../_utils/is.js";
|
|
6
6
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
@@ -35,30 +35,98 @@ var range_picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
35
35
|
},
|
|
36
36
|
inheritAttrs: false,
|
|
37
37
|
props: {
|
|
38
|
+
/**
|
|
39
|
+
* @zh 范围选择器的类型
|
|
40
|
+
* @en Type of range selector
|
|
41
|
+
* */
|
|
38
42
|
mode: {
|
|
39
43
|
type: String,
|
|
40
44
|
default: "date"
|
|
41
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 绑定值
|
|
48
|
+
* @en Value
|
|
49
|
+
*/
|
|
42
50
|
modelValue: { type: Array },
|
|
51
|
+
/**
|
|
52
|
+
* @zh 默认值
|
|
53
|
+
* @en Default value
|
|
54
|
+
*/
|
|
43
55
|
defaultValue: { type: Array },
|
|
56
|
+
/**
|
|
57
|
+
* @zh 默认面板显示的日期
|
|
58
|
+
* @en The date displayed in the default panel
|
|
59
|
+
* */
|
|
44
60
|
pickerValue: { type: Array },
|
|
61
|
+
/**
|
|
62
|
+
* @zh 面板显示的日期
|
|
63
|
+
* @en Date displayed on the panel
|
|
64
|
+
* */
|
|
45
65
|
defaultPickerValue: { type: Array },
|
|
66
|
+
/**
|
|
67
|
+
* @zh 是否禁用
|
|
68
|
+
* @en Whether to disable
|
|
69
|
+
* */
|
|
46
70
|
disabled: {
|
|
47
71
|
type: [Boolean, Array],
|
|
48
72
|
default: false
|
|
49
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @zh 每周的第一天开始于周几,0 - 周日,1 - 周一,以此类推。
|
|
76
|
+
* @en The first day of the week starts on the day of the week, 0-Sunday, 1-Monday, and so on.
|
|
77
|
+
* @type 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
78
|
+
* @version 2-6 from 2.21.0
|
|
79
|
+
*/
|
|
50
80
|
dayStartOfWeek: {
|
|
51
81
|
type: Number,
|
|
52
82
|
default: 0
|
|
53
83
|
},
|
|
84
|
+
/**
|
|
85
|
+
* @zh 展示日期的格式,参考[字符串解析格式](#字符串解析格式)
|
|
86
|
+
* @en Display the format of the date, refer to [String Parsing Format](#string-parsing-format)
|
|
87
|
+
* */
|
|
54
88
|
format: { type: String },
|
|
89
|
+
/**
|
|
90
|
+
* @zh 值的格式,对 `value` `defaultValue` `pickerValue` `defaultPickerValue` 以及事件中的返回值生效,支持设置为时间戳,Date 和字符串(参考[字符串解析格式](#字符串解析格式))。如果没有指定,将格式化为字符串,格式同 `format`。
|
|
91
|
+
* @en The format of the value, valid for `value` `defaultValue` `pickerValue` `defaultPickerValue` and the return value in the event, supports setting as timestamp, Date and string (refer to [String parsing format](#string-parsing-format) ). If not specified, it will be formatted as a string, in the same format as `format`.
|
|
92
|
+
* @version 2.16.0
|
|
93
|
+
*/
|
|
55
94
|
valueFormat: { type: String },
|
|
95
|
+
/**
|
|
96
|
+
* @zh 是否增加时间选择
|
|
97
|
+
* @en Whether to increase time selection
|
|
98
|
+
* */
|
|
56
99
|
showTime: { type: Boolean },
|
|
100
|
+
/**
|
|
101
|
+
* @zh 时间显示的参数,参考 [TimePickerProps](/vue/component/time-picker)
|
|
102
|
+
* @en Time display parameters, refer to [TimePickerProps](/vue/component/time-picker)
|
|
103
|
+
* */
|
|
57
104
|
timePickerProps: { type: Object },
|
|
105
|
+
/**
|
|
106
|
+
* @zh 提示文案
|
|
107
|
+
* @en Prompt copy
|
|
108
|
+
* */
|
|
58
109
|
placeholder: { type: Array },
|
|
110
|
+
/**
|
|
111
|
+
* @zh 不可选的日期
|
|
112
|
+
* @en Non-selectable date
|
|
113
|
+
* */
|
|
59
114
|
disabledDate: { type: Function },
|
|
115
|
+
/**
|
|
116
|
+
* @zh 不可选取的时间
|
|
117
|
+
* @en Unselectable time
|
|
118
|
+
* */
|
|
60
119
|
disabledTime: { type: Function },
|
|
120
|
+
/**
|
|
121
|
+
* @zh 范围选择器输入框内的分割符号
|
|
122
|
+
* @en The segmentation symbol in the input box of the range selector
|
|
123
|
+
* */
|
|
61
124
|
separator: { type: String },
|
|
125
|
+
/**
|
|
126
|
+
* @zh 时间是否会交换,默认情况下时间会影响和参与开始和结束值的排序,如果要固定时间顺序,可将其关闭。
|
|
127
|
+
* @en Whether the time will be exchanged, by default time will affect and participate in the ordering of start and end values, if you want to fix the time order, you can turn it off.
|
|
128
|
+
* @version 2.25.0
|
|
129
|
+
* */
|
|
62
130
|
exchangeTime: {
|
|
63
131
|
type: Boolean,
|
|
64
132
|
default: true
|
|
@@ -97,40 +165,91 @@ var range_picker_vue_vue_type_script_lang_default = defineComponent({
|
|
|
97
165
|
default: true
|
|
98
166
|
},
|
|
99
167
|
showConfirmBtn: { type: Boolean },
|
|
168
|
+
/**
|
|
169
|
+
* @zh 是否禁止键盘输入日期
|
|
170
|
+
* @en Whether input is disabled with the keyboard.
|
|
171
|
+
* @version 2.43.0
|
|
172
|
+
*/
|
|
100
173
|
disabledInput: {
|
|
101
174
|
type: Boolean,
|
|
102
175
|
default: false
|
|
103
176
|
},
|
|
177
|
+
/**
|
|
178
|
+
* @zh 是否启用缩写
|
|
179
|
+
* @en Whether to enable abbreviation
|
|
180
|
+
*/
|
|
104
181
|
abbreviation: {
|
|
105
182
|
type: Boolean,
|
|
106
183
|
default: true
|
|
107
184
|
}
|
|
108
185
|
},
|
|
109
186
|
emits: {
|
|
187
|
+
/**
|
|
188
|
+
* @zh 组件值发生改变
|
|
189
|
+
* @en The component value changes
|
|
190
|
+
* @param {(Date | string | number | undefined)[] | undefined} value
|
|
191
|
+
* @param {(Date | undefined)[] | undefined} date
|
|
192
|
+
* @param {(string | undefined)[] | undefined} dateString
|
|
193
|
+
*/
|
|
110
194
|
"change": (value, date, dateString) => {
|
|
111
195
|
return true;
|
|
112
196
|
},
|
|
113
197
|
"update:modelValue": (value) => {
|
|
114
198
|
return true;
|
|
115
199
|
},
|
|
200
|
+
/**
|
|
201
|
+
* @zh 选中日期发生改变但组件值未改变
|
|
202
|
+
* @en The selected date has changed but the component value has not changed
|
|
203
|
+
* @param {(Date | string | number | undefined)[]} value
|
|
204
|
+
* @param {(Date | undefined)[]} date
|
|
205
|
+
* @param {(string | undefined)[]} dateString
|
|
206
|
+
*/
|
|
116
207
|
"select": (value, date, dateString) => {
|
|
117
208
|
return true;
|
|
118
209
|
},
|
|
210
|
+
/**
|
|
211
|
+
* @zh 打开或关闭弹出框
|
|
212
|
+
* @en Open or close the pop-up box
|
|
213
|
+
* @param {boolean} visible
|
|
214
|
+
*/
|
|
119
215
|
"popup-visible-change": (visible) => {
|
|
120
216
|
return true;
|
|
121
217
|
},
|
|
122
218
|
"update:popupVisible": (visible) => {
|
|
123
219
|
return true;
|
|
124
220
|
},
|
|
221
|
+
/**
|
|
222
|
+
* @zh 点击确认按钮
|
|
223
|
+
* @en Click the confirm button
|
|
224
|
+
* @param {Date | string | number[]} value
|
|
225
|
+
* @param {Date[]} date
|
|
226
|
+
* @param {string[]} dateString
|
|
227
|
+
*/
|
|
125
228
|
"ok": (value, date, dateString) => {
|
|
126
229
|
return true;
|
|
127
230
|
},
|
|
231
|
+
/**
|
|
232
|
+
* @zh 点击清除按钮
|
|
233
|
+
* @en Click the clear button
|
|
234
|
+
*/
|
|
128
235
|
"clear": () => {
|
|
129
236
|
return true;
|
|
130
237
|
},
|
|
238
|
+
/**
|
|
239
|
+
* @zh 点击快捷选项
|
|
240
|
+
* @en Click on the shortcut option
|
|
241
|
+
* @param {ShortcutType} shortcut
|
|
242
|
+
*/
|
|
131
243
|
"select-shortcut": (shortcut) => {
|
|
132
244
|
return true;
|
|
133
245
|
},
|
|
246
|
+
/**
|
|
247
|
+
* @zh 面板日期改变
|
|
248
|
+
* @en Panel date change
|
|
249
|
+
* @param {Date | string | number[]} value
|
|
250
|
+
* @param {Date[]} date
|
|
251
|
+
* @param {string[]} dateString
|
|
252
|
+
*/
|
|
134
253
|
"picker-value-change": (value, date, dateString) => {
|
|
135
254
|
return true;
|
|
136
255
|
},
|
|
@@ -4,12 +4,28 @@ import { defineComponent } from "vue";
|
|
|
4
4
|
var descriptions_item_vue_vue_type_script_lang_default = defineComponent({
|
|
5
5
|
name: "DescriptionsItem",
|
|
6
6
|
props: {
|
|
7
|
+
/**
|
|
8
|
+
* @zh 所占列数
|
|
9
|
+
* @en number of columns
|
|
10
|
+
* @version 2.18.0
|
|
11
|
+
*/
|
|
7
12
|
span: {
|
|
8
13
|
type: Number,
|
|
9
14
|
default: 1
|
|
10
15
|
},
|
|
16
|
+
/**
|
|
17
|
+
* @zh 标签
|
|
18
|
+
* @en Label
|
|
19
|
+
* @version 2.18.0
|
|
20
|
+
*/
|
|
11
21
|
label: String
|
|
12
22
|
},
|
|
23
|
+
/**
|
|
24
|
+
* @zh 标签
|
|
25
|
+
* @en Label
|
|
26
|
+
* @slot label
|
|
27
|
+
* @version 2.18.0
|
|
28
|
+
*/
|
|
13
29
|
setup() {
|
|
14
30
|
return { prefixCls: getPrefixCls("descriptions") };
|
|
15
31
|
}
|
|
@@ -80,7 +80,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
80
|
};
|
|
81
81
|
}>> & Readonly<{}>, {
|
|
82
82
|
data: DescData[];
|
|
83
|
-
tableLayout: "
|
|
83
|
+
tableLayout: "auto" | "fixed";
|
|
84
84
|
column: number | ResponsiveValue;
|
|
85
85
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
86
86
|
bordered: boolean;
|
|
@@ -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 { isFunction, isObject } from "../_utils/is.js";
|
|
4
4
|
import { getAllElements, isSlotsChildren } from "../_utils/vue-utils.js";
|
|
@@ -9,35 +9,99 @@ import { Fragment, computed, createVNode, defineComponent, isVNode, toRefs } fro
|
|
|
9
9
|
var descriptions_default = /* @__PURE__ */ defineComponent({
|
|
10
10
|
name: "Descriptions",
|
|
11
11
|
props: {
|
|
12
|
+
/**
|
|
13
|
+
* @zh 描述列表的数据
|
|
14
|
+
* @en Data for descriptions
|
|
15
|
+
*/
|
|
12
16
|
data: {
|
|
13
17
|
type: Array,
|
|
14
18
|
default: () => []
|
|
15
19
|
},
|
|
20
|
+
/**
|
|
21
|
+
* @zh 每行放置的数据个数。2.20.0 版本支持响应式配置,配置可参考 Grid
|
|
22
|
+
* @en The number of data placed in each row. Version 2.20.0 supports reactive configuration, the configuration can refer to Grid
|
|
23
|
+
*/
|
|
16
24
|
column: {
|
|
17
25
|
type: [Number, Object],
|
|
18
26
|
default: 3
|
|
19
27
|
},
|
|
28
|
+
/**
|
|
29
|
+
* @zh 描述列表的标题
|
|
30
|
+
* @en Title of descriptions
|
|
31
|
+
*/
|
|
20
32
|
title: String,
|
|
33
|
+
/**
|
|
34
|
+
* @zh 描述列表的排列方式
|
|
35
|
+
* @en Arrangement of descriptions
|
|
36
|
+
*/
|
|
21
37
|
layout: {
|
|
22
38
|
type: String,
|
|
23
39
|
default: "horizontal"
|
|
24
40
|
},
|
|
41
|
+
/**
|
|
42
|
+
* @zh 文字的对齐位置
|
|
43
|
+
* @en Alignment position of text
|
|
44
|
+
*/
|
|
25
45
|
align: {
|
|
26
46
|
type: [String, Object],
|
|
27
47
|
default: "left"
|
|
28
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* @zh 描述列表的大小
|
|
51
|
+
* @en The size of the descriptions
|
|
52
|
+
* @values 'mini', 'small', 'medium', 'large'
|
|
53
|
+
*/
|
|
29
54
|
size: { type: String },
|
|
55
|
+
/**
|
|
56
|
+
* @zh 是否显示边框
|
|
57
|
+
* @en Whether to show the border
|
|
58
|
+
*/
|
|
30
59
|
bordered: {
|
|
31
60
|
type: Boolean,
|
|
32
61
|
default: false
|
|
33
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* @zh 数据标签的样式
|
|
65
|
+
* @en Data label style
|
|
66
|
+
*/
|
|
34
67
|
labelStyle: { type: Object },
|
|
68
|
+
/**
|
|
69
|
+
* @zh 数据内容的样式
|
|
70
|
+
* @en Data content style
|
|
71
|
+
*/
|
|
35
72
|
valueStyle: { type: Object },
|
|
73
|
+
/**
|
|
74
|
+
* @zh 描述中表格样式的 `layout-fixed`,当设置成 `fixed` 时,宽度会均分。
|
|
75
|
+
* @en The `layout-fixed` of the table style in the description. The width will be evenly distributed when it's set to `fixed`.
|
|
76
|
+
* @defaultValue 'auto'
|
|
77
|
+
* @version 2.38.0
|
|
78
|
+
*/
|
|
36
79
|
tableLayout: {
|
|
37
80
|
type: String,
|
|
38
81
|
default: "auto"
|
|
39
82
|
}
|
|
40
83
|
},
|
|
84
|
+
/**
|
|
85
|
+
* @zh 标题
|
|
86
|
+
* @en Title
|
|
87
|
+
* @slot title
|
|
88
|
+
*/
|
|
89
|
+
/**
|
|
90
|
+
* @zh 数据标签
|
|
91
|
+
* @en Data label
|
|
92
|
+
* @slot label
|
|
93
|
+
* @binding {string} label
|
|
94
|
+
* @binding {number} index
|
|
95
|
+
* @binding {DescData} data
|
|
96
|
+
*/
|
|
97
|
+
/**
|
|
98
|
+
* @zh 数据内容
|
|
99
|
+
* @en Data value
|
|
100
|
+
* @slot value
|
|
101
|
+
* @binding {string} value
|
|
102
|
+
* @binding {number} index
|
|
103
|
+
* @binding {DescData} data
|
|
104
|
+
*/
|
|
41
105
|
setup(props, { slots }) {
|
|
42
106
|
const { column, size } = toRefs(props);
|
|
43
107
|
const prefixCls = getPrefixCls("descriptions");
|
|
@@ -43,7 +43,7 @@ declare const Descriptions: {
|
|
|
43
43
|
};
|
|
44
44
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
45
45
|
data: import("./interface").DescData[];
|
|
46
|
-
tableLayout: "
|
|
46
|
+
tableLayout: "auto" | "fixed";
|
|
47
47
|
column: number | import("..").ResponsiveValue;
|
|
48
48
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
49
49
|
bordered: boolean;
|
|
@@ -98,7 +98,7 @@ declare const Descriptions: {
|
|
|
98
98
|
};
|
|
99
99
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
100
100
|
data: import("./interface").DescData[];
|
|
101
|
-
tableLayout: "
|
|
101
|
+
tableLayout: "auto" | "fixed";
|
|
102
102
|
column: number | import("..").ResponsiveValue;
|
|
103
103
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
104
104
|
bordered: boolean;
|
|
@@ -150,7 +150,7 @@ declare const Descriptions: {
|
|
|
150
150
|
};
|
|
151
151
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
152
152
|
data: import("./interface").DescData[];
|
|
153
|
-
tableLayout: "
|
|
153
|
+
tableLayout: "auto" | "fixed";
|
|
154
154
|
column: number | import("..").ResponsiveValue;
|
|
155
155
|
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
156
156
|
bordered: boolean;
|
package/es/divider/divider.js
CHANGED
|
@@ -5,16 +5,40 @@ import { computed, createVNode, defineComponent } from "vue";
|
|
|
5
5
|
var divider_default = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "Divider",
|
|
7
7
|
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 分割线的方向,是水平还是竖直
|
|
10
|
+
* @en The direction of the dividing line. Can be horizontal or vertical
|
|
11
|
+
* @values 'horizontal','vertical'
|
|
12
|
+
*/
|
|
8
13
|
direction: {
|
|
9
14
|
type: String,
|
|
10
15
|
default: "horizontal"
|
|
11
16
|
},
|
|
17
|
+
/**
|
|
18
|
+
* @zh 分割线文字的位置
|
|
19
|
+
* @en The position of the dividing line text
|
|
20
|
+
*/
|
|
12
21
|
orientation: {
|
|
13
22
|
type: String,
|
|
14
23
|
default: "center"
|
|
15
24
|
},
|
|
25
|
+
/**
|
|
26
|
+
* @zh 分割线样式类型
|
|
27
|
+
* @en Dividing line style type
|
|
28
|
+
* @version 2.35.0
|
|
29
|
+
*/
|
|
16
30
|
type: { type: String },
|
|
31
|
+
/**
|
|
32
|
+
* @zh 分割线宽度/高度
|
|
33
|
+
* @en The wide/height of the dividing line
|
|
34
|
+
* @version 2.35.0
|
|
35
|
+
*/
|
|
17
36
|
size: { type: Number },
|
|
37
|
+
/**
|
|
38
|
+
* @zh 分割线上下 margin (垂直方向时为左右 margin)
|
|
39
|
+
* @en Margin up and down the split line (left and right margin in vertical direction)
|
|
40
|
+
* @version 2.35.0
|
|
41
|
+
*/
|
|
18
42
|
margin: { type: [Number, String] }
|
|
19
43
|
},
|
|
20
44
|
setup(props, { slots }) {
|
|
@@ -213,11 +213,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
213
213
|
onBeforeOpen?: (() => any) | undefined;
|
|
214
214
|
onBeforeClose?: (() => any) | undefined;
|
|
215
215
|
}>, {
|
|
216
|
+
visible: boolean;
|
|
216
217
|
footer: boolean;
|
|
217
218
|
header: boolean;
|
|
218
219
|
mask: boolean;
|
|
219
220
|
popupContainer: string | HTMLElement;
|
|
220
|
-
visible: boolean;
|
|
221
221
|
unmountOnClose: boolean;
|
|
222
222
|
defaultVisible: boolean;
|
|
223
223
|
placement: "top" | "bottom" | "left" | "right";
|
|
@@ -704,7 +704,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
704
704
|
default: boolean;
|
|
705
705
|
};
|
|
706
706
|
}>> & Readonly<{}>, {
|
|
707
|
-
size: "
|
|
707
|
+
size: "small" | "mini" | "medium" | "large";
|
|
708
708
|
disabled: boolean;
|
|
709
709
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
710
710
|
IconClose: {
|
|
@@ -1,10 +1,10 @@
|
|
|
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 { isBoolean, isFunction, isNumber, isPromise } from "../_utils/is.js";
|
|
4
4
|
import { off, on } from "../_utils/dom.js";
|
|
5
5
|
import icon_hover_default from "../_components/icon-hover.js";
|
|
6
6
|
import IconClose from "../icon/icon-close/index.js";
|
|
7
|
-
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.
|
|
7
|
+
import { _asyncToGenerator } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
8
8
|
import Button from "../button/index.js";
|
|
9
9
|
import { KEYBOARD_KEY } from "../_utils/keyboard.js";
|
|
10
10
|
import { useI18n } from "../locale/index.js";
|
|
@@ -30,78 +30,193 @@ var drawer_vue_vue_type_script_lang_default = defineComponent({
|
|
|
30
30
|
},
|
|
31
31
|
inheritAttrs: false,
|
|
32
32
|
props: {
|
|
33
|
+
/**
|
|
34
|
+
* @zh 抽屉是否可见
|
|
35
|
+
* @en Whether the drawer is visible
|
|
36
|
+
* @vModel
|
|
37
|
+
*/
|
|
33
38
|
visible: {
|
|
34
39
|
type: Boolean,
|
|
35
40
|
default: false
|
|
36
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @zh 抽屉默认是否可见(非受控模式)
|
|
44
|
+
* @en Whether the drawer is visible by default (uncontrolled mode)
|
|
45
|
+
*/
|
|
37
46
|
defaultVisible: {
|
|
38
47
|
type: Boolean,
|
|
39
48
|
default: false
|
|
40
49
|
},
|
|
50
|
+
/**
|
|
51
|
+
* @zh 抽屉放置的位置
|
|
52
|
+
* @en Where the drawer is placed
|
|
53
|
+
* @values 'top','right','bottom','left'
|
|
54
|
+
*/
|
|
41
55
|
placement: {
|
|
42
56
|
type: String,
|
|
43
57
|
default: "right",
|
|
44
58
|
validator: (value) => DRAWER_PLACEMENTS.includes(value)
|
|
45
59
|
},
|
|
60
|
+
/**
|
|
61
|
+
* @zh 标题
|
|
62
|
+
* @en Title
|
|
63
|
+
*/
|
|
46
64
|
title: String,
|
|
65
|
+
/**
|
|
66
|
+
* @zh 是否显示遮罩层
|
|
67
|
+
* @en Whether to show the mask
|
|
68
|
+
*/
|
|
47
69
|
mask: {
|
|
48
70
|
type: Boolean,
|
|
49
71
|
default: true
|
|
50
72
|
},
|
|
73
|
+
/**
|
|
74
|
+
* @zh 点击遮罩层是否可以关闭
|
|
75
|
+
* @en Click on the mask layer to be able to close
|
|
76
|
+
*/
|
|
51
77
|
maskClosable: {
|
|
52
78
|
type: Boolean,
|
|
53
79
|
default: true
|
|
54
80
|
},
|
|
81
|
+
/**
|
|
82
|
+
* @zh 是否展示关闭按钮
|
|
83
|
+
* @en Whether to show the close button
|
|
84
|
+
*/
|
|
55
85
|
closable: {
|
|
56
86
|
type: Boolean,
|
|
57
87
|
default: true
|
|
58
88
|
},
|
|
89
|
+
/**
|
|
90
|
+
* @zh 确认按钮的内容
|
|
91
|
+
* @en The content of the ok button
|
|
92
|
+
*/
|
|
59
93
|
okText: String,
|
|
94
|
+
/**
|
|
95
|
+
* @zh 取消按钮的内容
|
|
96
|
+
* @en The content of the cancel button
|
|
97
|
+
*/
|
|
60
98
|
cancelText: String,
|
|
99
|
+
/**
|
|
100
|
+
* @zh 确认按钮是否为加载中状态
|
|
101
|
+
* @en Whether the ok button is in the loading state
|
|
102
|
+
*/
|
|
61
103
|
okLoading: {
|
|
62
104
|
type: Boolean,
|
|
63
105
|
default: false
|
|
64
106
|
},
|
|
107
|
+
/**
|
|
108
|
+
* @zh 确认按钮的Props
|
|
109
|
+
* @en Props of confirm button
|
|
110
|
+
* @version 2.9.0
|
|
111
|
+
*/
|
|
65
112
|
okButtonProps: { type: Object },
|
|
113
|
+
/**
|
|
114
|
+
* @zh 取消按钮的Props
|
|
115
|
+
* @en Props of cancel button
|
|
116
|
+
* @version 2.9.0
|
|
117
|
+
*/
|
|
66
118
|
cancelButtonProps: { type: Object },
|
|
119
|
+
/**
|
|
120
|
+
* @zh 关闭时是否卸载节点
|
|
121
|
+
* @en Whether to uninstall the node when close
|
|
122
|
+
* @version 2.12.0
|
|
123
|
+
*/
|
|
67
124
|
unmountOnClose: Boolean,
|
|
125
|
+
/**
|
|
126
|
+
* @zh 抽屉的宽度(仅在placement为right,left时可用)
|
|
127
|
+
* @en The width of the drawer (only available when placement is right, left)
|
|
128
|
+
*/
|
|
68
129
|
width: {
|
|
69
130
|
type: [Number, String],
|
|
70
131
|
default: 250
|
|
71
132
|
},
|
|
133
|
+
/**
|
|
134
|
+
* @zh 抽屉的高度(仅在placement为top,bottom时可用)
|
|
135
|
+
* @en The height of the drawer (only available when placement is top, bottom)
|
|
136
|
+
*/
|
|
72
137
|
height: {
|
|
73
138
|
type: [Number, String],
|
|
74
139
|
default: 250
|
|
75
140
|
},
|
|
141
|
+
/**
|
|
142
|
+
* @zh 弹出框的挂载容器
|
|
143
|
+
* @en Mount container for popup
|
|
144
|
+
*/
|
|
76
145
|
popupContainer: {
|
|
77
146
|
type: [String, Object],
|
|
78
147
|
default: "body"
|
|
79
148
|
},
|
|
149
|
+
/**
|
|
150
|
+
* @zh 抽屉的样式
|
|
151
|
+
* @en Drawer style
|
|
152
|
+
*/
|
|
80
153
|
drawerStyle: { type: Object },
|
|
154
|
+
/**
|
|
155
|
+
* @zh 抽屉内容部分的类名
|
|
156
|
+
* @en The classname of the drawer body
|
|
157
|
+
* @version 2.57.0
|
|
158
|
+
*/
|
|
81
159
|
bodyClass: { type: [String, Array] },
|
|
160
|
+
/**
|
|
161
|
+
* @zh 抽屉内容部分的样式
|
|
162
|
+
* @en Drawer body style
|
|
163
|
+
* @version 2.57.0
|
|
164
|
+
*/
|
|
82
165
|
bodyStyle: { type: [
|
|
83
166
|
String,
|
|
84
167
|
Object,
|
|
85
168
|
Array
|
|
86
169
|
] },
|
|
170
|
+
/**
|
|
171
|
+
* @zh 触发 ok 事件前的回调函数。如果返回 false 则不会触发后续事件,也可使用 done 进行异步关闭。
|
|
172
|
+
* @en The callback function before the ok event is triggered. If false is returned, subsequent events will not be triggered, and done can also be used to close asynchronously.
|
|
173
|
+
*/
|
|
87
174
|
onBeforeOk: { type: Function },
|
|
175
|
+
/**
|
|
176
|
+
* @zh 触发 cancel 事件前的回调函数。如果返回 false 则不会触发后续事件。
|
|
177
|
+
* @en The callback function before the cancel event is triggered. If it returns false, no subsequent events will be triggered.
|
|
178
|
+
*/
|
|
88
179
|
onBeforeCancel: { type: Function },
|
|
180
|
+
/**
|
|
181
|
+
* @zh 是否支持 ESC 键关闭抽屉
|
|
182
|
+
* @en Whether to support the ESC key to close the dialog
|
|
183
|
+
* @version 2.15.0
|
|
184
|
+
*/
|
|
89
185
|
escToClose: {
|
|
90
186
|
type: Boolean,
|
|
91
187
|
default: true
|
|
92
188
|
},
|
|
189
|
+
/**
|
|
190
|
+
* @zh 抽屉是否挂载在 `body` 元素下
|
|
191
|
+
* @en Whether the drawer is mounted under the `body` element
|
|
192
|
+
*/
|
|
93
193
|
renderToBody: {
|
|
94
194
|
type: Boolean,
|
|
95
195
|
default: true
|
|
96
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* @zh 是否展示头部内容
|
|
199
|
+
* @en Whether to display high-quality content
|
|
200
|
+
* @version 2.33.0
|
|
201
|
+
*/
|
|
97
202
|
header: {
|
|
98
203
|
type: Boolean,
|
|
99
204
|
default: true
|
|
100
205
|
},
|
|
206
|
+
/**
|
|
207
|
+
* @zh 是否展示底部内容
|
|
208
|
+
* @en Whether to display the bottom content
|
|
209
|
+
* @version 2.11.0
|
|
210
|
+
*/
|
|
101
211
|
footer: {
|
|
102
212
|
type: Boolean,
|
|
103
213
|
default: true
|
|
104
214
|
},
|
|
215
|
+
/**
|
|
216
|
+
* @zh 是否隐藏取消按钮
|
|
217
|
+
* @en Whether to hide the cancel button
|
|
218
|
+
* @version 2.19.0
|
|
219
|
+
*/
|
|
105
220
|
hideCancel: {
|
|
106
221
|
type: Boolean,
|
|
107
222
|
default: false
|
|
@@ -109,13 +224,57 @@ var drawer_vue_vue_type_script_lang_default = defineComponent({
|
|
|
109
224
|
},
|
|
110
225
|
emits: {
|
|
111
226
|
"update:visible": (_visible) => true,
|
|
227
|
+
/**
|
|
228
|
+
* @zh 点击确定按钮时触发
|
|
229
|
+
* @en Triggered when the OK button is clicked
|
|
230
|
+
* @property {MouseEvent} ev
|
|
231
|
+
*/
|
|
112
232
|
"ok": (_e) => true,
|
|
233
|
+
/**
|
|
234
|
+
* @zh 点击取消、关闭按钮时触发
|
|
235
|
+
* @en Triggered when the cancel or close button is clicked
|
|
236
|
+
* @property {MouseEvent | KeyboardEvent} ev
|
|
237
|
+
*/
|
|
113
238
|
"cancel": (_e) => true,
|
|
239
|
+
/**
|
|
240
|
+
* @zh 抽屉打开后(动画结束)触发
|
|
241
|
+
* @en Triggered after the drawer is opened (the animation ends)
|
|
242
|
+
*/
|
|
114
243
|
"open": () => true,
|
|
244
|
+
/**
|
|
245
|
+
* @zh 抽屉关闭后(动画结束)触发
|
|
246
|
+
* @en Triggered when the drawer is closed (the animation ends)
|
|
247
|
+
*/
|
|
115
248
|
"close": () => true,
|
|
249
|
+
/**
|
|
250
|
+
* @zh 对话框打开前触发
|
|
251
|
+
* @en Triggered before drawer is opened
|
|
252
|
+
* @version 2.43.0
|
|
253
|
+
*/
|
|
116
254
|
"beforeOpen": () => true,
|
|
255
|
+
/**
|
|
256
|
+
* @zh 对话框关闭前触发
|
|
257
|
+
* @en Triggered before drawer is closed
|
|
258
|
+
* @version 2.43.0
|
|
259
|
+
*/
|
|
117
260
|
"beforeClose": () => true
|
|
118
261
|
},
|
|
262
|
+
/**
|
|
263
|
+
* @zh 标题
|
|
264
|
+
* @en Title
|
|
265
|
+
* @slot title
|
|
266
|
+
*/
|
|
267
|
+
/**
|
|
268
|
+
* @zh 页脚
|
|
269
|
+
* @en Footer
|
|
270
|
+
* @slot footer
|
|
271
|
+
*/
|
|
272
|
+
/**
|
|
273
|
+
* @zh 页眉
|
|
274
|
+
* @en Header
|
|
275
|
+
* @slot header
|
|
276
|
+
* @version 2.33.0
|
|
277
|
+
*/
|
|
119
278
|
setup(props, { emit }) {
|
|
120
279
|
const { popupContainer } = toRefs(props);
|
|
121
280
|
const prefixCls = getPrefixCls("drawer");
|