@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
|
@@ -29,6 +29,6 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
}>> & Readonly<{}>, {
|
|
32
|
-
size: "
|
|
32
|
+
size: "small" | "mini" | "medium" | "large";
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -145,7 +145,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
145
145
|
default: boolean;
|
|
146
146
|
};
|
|
147
147
|
}>> & Readonly<{}>, {
|
|
148
|
-
size: "
|
|
148
|
+
size: "small" | "mini" | "medium" | "large";
|
|
149
149
|
disabled: boolean;
|
|
150
150
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
151
151
|
IconClose: {
|
|
@@ -121,7 +121,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
123
|
}>> & Readonly<{}>, {
|
|
124
|
-
size: "
|
|
124
|
+
size: "small" | "mini" | "medium" | "large";
|
|
125
125
|
disabled: boolean;
|
|
126
126
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
127
127
|
IconClose: {
|
|
@@ -30,12 +30,10 @@
|
|
|
30
30
|
font-weight: 500;
|
|
31
31
|
font-size: 12px;
|
|
32
32
|
line-height: 22px;
|
|
33
|
+
white-space: nowrap;
|
|
33
34
|
vertical-align: middle;
|
|
34
35
|
border: 1px solid transparent;
|
|
35
36
|
border-radius: var(--border-radius-small);
|
|
36
|
-
overflow: hidden;
|
|
37
|
-
white-space: nowrap;
|
|
38
|
-
text-overflow: ellipsis;
|
|
39
37
|
}
|
|
40
38
|
.sd-tag .sd-icon-hover.sd-tag-icon-hover::before {
|
|
41
39
|
width: 16px;
|
|
@@ -90,9 +88,18 @@
|
|
|
90
88
|
color: var(--color-text-2);
|
|
91
89
|
}
|
|
92
90
|
.sd-tag-text {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
91
|
+
min-width: 0;
|
|
92
|
+
max-width: 100%;
|
|
93
|
+
}
|
|
94
|
+
.sd-tag-ellipsis-line-clamp {
|
|
95
|
+
height: auto;
|
|
96
|
+
}
|
|
97
|
+
.sd-tag-no-ellipsis {
|
|
98
|
+
min-width: fit-content;
|
|
99
|
+
}
|
|
100
|
+
.sd-tag-no-ellipsis .sd-tag-text {
|
|
101
|
+
min-width: fit-content;
|
|
102
|
+
max-width: none;
|
|
96
103
|
}
|
|
97
104
|
.sd-tag .sd-tag.sd-tag-checked.sd-tag-red {
|
|
98
105
|
color: rgb(var(--red-6));
|
|
@@ -208,11 +208,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
208
208
|
default: boolean;
|
|
209
209
|
};
|
|
210
210
|
}>> & Readonly<{
|
|
211
|
-
onResize?: (() => any) | undefined;
|
|
212
|
-
onScroll?: ((_ev: Event) => any) | undefined;
|
|
213
|
-
onVisible?: (() => any) | undefined;
|
|
214
211
|
onUpdate?: ((_startIndex: number, _endIndex: number, _visibleStartIndex: number, _visibleEndIndex: number) => any) | undefined;
|
|
212
|
+
onScroll?: ((_ev: Event) => any) | undefined;
|
|
213
|
+
onResize?: (() => any) | undefined;
|
|
215
214
|
onHidden?: (() => any) | undefined;
|
|
215
|
+
onVisible?: (() => any) | undefined;
|
|
216
216
|
onReachBottom?: ((_ev: Event) => any) | undefined;
|
|
217
217
|
onScrollStart?: (() => any) | undefined;
|
|
218
218
|
onScrollEnd?: (() => any) | undefined;
|
|
@@ -370,11 +370,11 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
370
370
|
default: boolean;
|
|
371
371
|
};
|
|
372
372
|
}>> & Readonly<{
|
|
373
|
-
onResize?: (() => any) | undefined;
|
|
374
|
-
onScroll?: ((_ev: Event) => any) | undefined;
|
|
375
|
-
onVisible?: (() => any) | undefined;
|
|
376
373
|
onUpdate?: ((_startIndex: number, _endIndex: number, _visibleStartIndex: number, _visibleEndIndex: number) => any) | undefined;
|
|
374
|
+
onScroll?: ((_ev: Event) => any) | undefined;
|
|
375
|
+
onResize?: (() => any) | undefined;
|
|
377
376
|
onHidden?: (() => any) | undefined;
|
|
377
|
+
onVisible?: (() => any) | undefined;
|
|
378
378
|
onReachBottom?: ((_ev: Event) => any) | undefined;
|
|
379
379
|
onScrollStart?: (() => any) | undefined;
|
|
380
380
|
onScrollEnd?: (() => any) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
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, isString } from "../../_utils/is.js";
|
|
4
4
|
import { useVirtualSize } from "./use-virtual-size.js";
|
|
5
|
-
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.
|
|
5
|
+
import { _asyncToGenerator } from "../../_virtual/_@oxc-project_runtime@0.130.0/helpers/asyncToGenerator.js";
|
|
6
6
|
import { computed, defineComponent, nextTick, onBeforeUnmount, onMounted, onUpdated, ref, watch } from "vue";
|
|
7
7
|
import { OverlayScrollbars } from "overlayscrollbars";
|
|
8
8
|
import { DynamicScroller, DynamicScrollerItem, RecycleScroller } from "vue-virtual-scroller";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
interface UseAllowSearchOptions<T> {
|
|
3
|
+
compatPropNames?: readonly string[];
|
|
4
|
+
getCompatValue?: () => T | undefined;
|
|
5
|
+
getDefaultValue?: () => T | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const useAllowSearch: <T>(allowSearch?: Ref<T | undefined>, options?: UseAllowSearchOptions<T>) => {
|
|
8
|
+
mergedAllowSearch: import("vue").ComputedRef<T | undefined>;
|
|
9
|
+
};
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
+
import { computed, getCurrentInstance, inject } from "vue";
|
|
3
|
+
//#region components/_hooks/use-allow-search.ts
|
|
4
|
+
var ALLOW_SEARCH_PROP_NAMES = ["allowSearch", "allow-search"];
|
|
5
|
+
var useAllowSearch = (allowSearch, options = {}) => {
|
|
6
|
+
const instance = getCurrentInstance();
|
|
7
|
+
const configProviderCtx = inject(configProviderInjectionKey, void 0);
|
|
8
|
+
const hasAllowSearchProp = computed(() => {
|
|
9
|
+
const rawProps = instance === null || instance === void 0 ? void 0 : instance.vnode.props;
|
|
10
|
+
if (!rawProps) return false;
|
|
11
|
+
return ALLOW_SEARCH_PROP_NAMES.some((propName) => Object.hasOwn(rawProps, propName));
|
|
12
|
+
});
|
|
13
|
+
const hasCompatProp = computed(() => {
|
|
14
|
+
var _options$compatPropNa;
|
|
15
|
+
const rawProps = instance === null || instance === void 0 ? void 0 : instance.vnode.props;
|
|
16
|
+
if (!rawProps || !((_options$compatPropNa = options.compatPropNames) === null || _options$compatPropNa === void 0 ? void 0 : _options$compatPropNa.length)) return false;
|
|
17
|
+
return options.compatPropNames.some((propName) => Object.hasOwn(rawProps, propName));
|
|
18
|
+
});
|
|
19
|
+
return { mergedAllowSearch: computed(() => {
|
|
20
|
+
var _options$getDefaultVa, _options$getDefaultVa2;
|
|
21
|
+
if (hasAllowSearchProp.value) return allowSearch === null || allowSearch === void 0 ? void 0 : allowSearch.value;
|
|
22
|
+
if (hasCompatProp.value) {
|
|
23
|
+
var _options$getCompatVal;
|
|
24
|
+
return (_options$getCompatVal = options.getCompatValue) === null || _options$getCompatVal === void 0 ? void 0 : _options$getCompatVal.call(options);
|
|
25
|
+
}
|
|
26
|
+
if ((configProviderCtx === null || configProviderCtx === void 0 ? void 0 : configProviderCtx.allowSearch) === true) return true;
|
|
27
|
+
return (_options$getDefaultVa = (_options$getDefaultVa2 = options.getDefaultValue) === null || _options$getDefaultVa2 === void 0 ? void 0 : _options$getDefaultVa2.call(options)) !== null && _options$getDefaultVa !== void 0 ? _options$getDefaultVa : allowSearch === null || allowSearch === void 0 ? void 0 : allowSearch.value;
|
|
28
|
+
}) };
|
|
29
|
+
};
|
|
30
|
+
//#endregion
|
|
31
|
+
export { useAllowSearch };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComponentPublicInstance } from 'vue';
|
|
2
2
|
export declare const useComponentRef: (name: string) => {
|
|
3
|
-
componentRef: import("vue").Ref<
|
|
3
|
+
componentRef: import("vue").Ref<ComponentPublicInstance | HTMLElement | undefined, ComponentPublicInstance | HTMLElement | undefined>;
|
|
4
4
|
elementRef: import("vue").Ref<any, any>;
|
|
5
5
|
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { VirtualListProps } from '../_components/virtual-list/interface';
|
|
3
|
+
export declare const useDropdownVirtualListProps: (virtualListProps?: Ref<VirtualListProps | undefined>) => {
|
|
4
|
+
mergedDropdownVirtualListProps: import("vue").ComputedRef<VirtualListProps | undefined>;
|
|
5
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
+
import { computed, getCurrentInstance, inject } from "vue";
|
|
3
|
+
//#region components/_hooks/use-dropdown-virtual-list-props.ts
|
|
4
|
+
var DROPDOWN_VIRTUAL_LIST_PROP_NAMES = ["virtualListProps", "virtual-list-props"];
|
|
5
|
+
var useDropdownVirtualListProps = (virtualListProps) => {
|
|
6
|
+
const instance = getCurrentInstance();
|
|
7
|
+
const configProviderCtx = inject(configProviderInjectionKey, void 0);
|
|
8
|
+
const hasVirtualListProp = computed(() => {
|
|
9
|
+
const rawProps = instance === null || instance === void 0 ? void 0 : instance.vnode.props;
|
|
10
|
+
if (!rawProps) return false;
|
|
11
|
+
return DROPDOWN_VIRTUAL_LIST_PROP_NAMES.some((propName) => Object.hasOwn(rawProps, propName));
|
|
12
|
+
});
|
|
13
|
+
return { mergedDropdownVirtualListProps: computed(() => {
|
|
14
|
+
var _configProviderCtx$vi;
|
|
15
|
+
const localVirtualListProps = virtualListProps === null || virtualListProps === void 0 ? void 0 : virtualListProps.value;
|
|
16
|
+
if (hasVirtualListProp.value || localVirtualListProps !== void 0) return localVirtualListProps;
|
|
17
|
+
return (_configProviderCtx$vi = configProviderCtx === null || configProviderCtx === void 0 ? void 0 : configProviderCtx.virtualListProps) !== null && _configProviderCtx$vi !== void 0 ? _configProviderCtx$vi : localVirtualListProps;
|
|
18
|
+
}) };
|
|
19
|
+
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { useDropdownVirtualListProps };
|
|
@@ -8,7 +8,7 @@ export declare const useFormItem: ({ size, disabled, error, uninject, }?: {
|
|
|
8
8
|
uninject?: boolean;
|
|
9
9
|
}) => {
|
|
10
10
|
formItemCtx: FormItemContext;
|
|
11
|
-
mergedSize: import("vue").ComputedRef<"
|
|
11
|
+
mergedSize: import("vue").ComputedRef<"small" | "mini" | "medium" | "large" | undefined>;
|
|
12
12
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
13
13
|
mergedError: import("vue").ComputedRef<boolean>;
|
|
14
14
|
feedback: Ref<string | undefined, string | undefined>;
|
|
@@ -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 { isBoolean } from "../_utils/is.js";
|
|
3
3
|
import { computed } from "vue";
|
|
4
4
|
//#region components/_hooks/use-scrollbar.ts
|
package/es/_hooks/use-size.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import { Size } from '../_utils/constant';
|
|
|
3
3
|
export declare const useSize: (size?: Ref<Size | undefined>, { defaultValue }?: {
|
|
4
4
|
defaultValue?: Size;
|
|
5
5
|
}) => {
|
|
6
|
-
mergedSize: import("vue").ComputedRef<"
|
|
6
|
+
mergedSize: import("vue").ComputedRef<"small" | "mini" | "medium" | "large">;
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Ref } from 'vue';
|
|
2
2
|
export declare const useTrigger: ({ popupVisible, defaultPopupVisible, show, defaultShow, emit, }: {
|
|
3
3
|
popupVisible?: Ref<boolean | undefined>;
|
|
4
|
-
defaultPopupVisible?: Ref<boolean>;
|
|
4
|
+
defaultPopupVisible?: Ref<boolean | undefined>;
|
|
5
5
|
show?: Ref<boolean | undefined>;
|
|
6
6
|
defaultShow?: Ref<boolean | undefined>;
|
|
7
7
|
emit: (event: "update:popupVisible" | "popupVisibleChange" | "update:show" | "showChange", visible: boolean) => void;
|
package/es/_utils/color.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
|
//#region components/_utils/color.ts
|
|
3
3
|
var hsvToRgb = (h, s, v) => {
|
|
4
4
|
const i = Math.floor(h * 6);
|
package/es/_utils/date.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, isDayjs, isQuarter } from "./is.js";
|
|
3
3
|
import originDayjs from "dayjs";
|
|
4
4
|
import AdvancedFormat from "dayjs/plugin/advancedFormat";
|
|
@@ -44,6 +44,12 @@ var methods = {
|
|
|
44
44
|
startOf(time, unit) {
|
|
45
45
|
return time.startOf(unit);
|
|
46
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* Similar to `startOf`, returns start date of a week; used in week pickers
|
|
49
|
+
* @param time Selected date
|
|
50
|
+
* @param weekStart Start day of a week
|
|
51
|
+
* @returns Start date of the week containing the selected date
|
|
52
|
+
*/
|
|
47
53
|
startOfWeek(time, weekStart) {
|
|
48
54
|
const currentDay = time.day();
|
|
49
55
|
let startOfWeek = time.subtract(currentDay - weekStart, "day");
|
package/es/_utils/dom.js
CHANGED
|
@@ -48,7 +48,7 @@ var getOverlay = (type) => {
|
|
|
48
48
|
};
|
|
49
49
|
var querySelector = (selectors, container) => {
|
|
50
50
|
var _querySelector;
|
|
51
|
-
if (isServerRendering) return
|
|
51
|
+
if (isServerRendering) return void 0;
|
|
52
52
|
return (_querySelector = (container !== null && container !== void 0 ? container : document).querySelector(selectors)) !== null && _querySelector !== void 0 ? _querySelector : void 0;
|
|
53
53
|
};
|
|
54
54
|
var getElement = (target, container) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { configProviderInjectionKey } from "../config-provider/context.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getCurrentInstance, inject } from "vue";
|
|
4
4
|
//#region components/_utils/global-config.ts
|
|
5
5
|
var COMPONENT_PREFIX = "Sd";
|
package/es/_utils/omit.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
|
//#region components/_utils/omit.ts
|
|
3
3
|
var omit = (object, path) => {
|
|
4
4
|
const result = _objectSpread2({}, object);
|
|
@@ -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
|
//#region components/_utils/responsive-observe.ts
|
|
3
3
|
var responsiveArray = [
|
|
4
4
|
"xxl",
|
|
@@ -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
|
//#region components/_utils/virtual-dropdown.ts
|
|
3
3
|
var DEFAULT_VIRTUAL_DROPDOWN_HEIGHT = "200px";
|
|
4
4
|
function resolveDropdownVirtualListProps(virtualListProps, triggerProps, defaultItemSize) {
|
package/es/_utils/vue-utils.js
CHANGED
|
@@ -1,34 +1,20 @@
|
|
|
1
1
|
import { isArray, isFunction, isString } from "./is.js";
|
|
2
2
|
import { Fragment, cloneVNode, isVNode } from "vue";
|
|
3
3
|
//#region components/_utils/vue-utils.ts
|
|
4
|
-
var ShapeFlags = /* @__PURE__ */ function(ShapeFlags) {
|
|
5
|
-
ShapeFlags[ShapeFlags["ELEMENT"] = 1] = "ELEMENT";
|
|
6
|
-
ShapeFlags[ShapeFlags["FUNCTIONAL_COMPONENT"] = 2] = "FUNCTIONAL_COMPONENT";
|
|
7
|
-
ShapeFlags[ShapeFlags["STATEFUL_COMPONENT"] = 4] = "STATEFUL_COMPONENT";
|
|
8
|
-
ShapeFlags[ShapeFlags["COMPONENT"] = ShapeFlags.STATEFUL_COMPONENT | ShapeFlags.FUNCTIONAL_COMPONENT] = "COMPONENT";
|
|
9
|
-
ShapeFlags[ShapeFlags["TEXT_CHILDREN"] = 8] = "TEXT_CHILDREN";
|
|
10
|
-
ShapeFlags[ShapeFlags["ARRAY_CHILDREN"] = 16] = "ARRAY_CHILDREN";
|
|
11
|
-
ShapeFlags[ShapeFlags["SLOTS_CHILDREN"] = 32] = "SLOTS_CHILDREN";
|
|
12
|
-
ShapeFlags[ShapeFlags["TELEPORT"] = 64] = "TELEPORT";
|
|
13
|
-
ShapeFlags[ShapeFlags["SUSPENSE"] = 128] = "SUSPENSE";
|
|
14
|
-
ShapeFlags[ShapeFlags["COMPONENT_SHOULD_KEEP_ALIVE"] = 256] = "COMPONENT_SHOULD_KEEP_ALIVE";
|
|
15
|
-
ShapeFlags[ShapeFlags["COMPONENT_KEPT_ALIVE"] = 512] = "COMPONENT_KEPT_ALIVE";
|
|
16
|
-
return ShapeFlags;
|
|
17
|
-
}({});
|
|
18
4
|
var isElement = (vn) => {
|
|
19
|
-
return Boolean(vn && vn.shapeFlag &
|
|
5
|
+
return Boolean(vn && vn.shapeFlag & 1);
|
|
20
6
|
};
|
|
21
7
|
var isComponent = (vn, _type) => {
|
|
22
|
-
return Boolean(vn && vn.shapeFlag &
|
|
8
|
+
return Boolean(vn && vn.shapeFlag & 6);
|
|
23
9
|
};
|
|
24
10
|
var isTextChildren = (child, _children) => {
|
|
25
11
|
return Boolean(child && child.shapeFlag & 8);
|
|
26
12
|
};
|
|
27
13
|
var isArrayChildren = (vn, _children) => {
|
|
28
|
-
return Boolean(vn && vn.shapeFlag &
|
|
14
|
+
return Boolean(vn && vn.shapeFlag & 16);
|
|
29
15
|
};
|
|
30
16
|
var isSlotsChildren = (vn, _children) => {
|
|
31
|
-
return Boolean(vn && vn.shapeFlag &
|
|
17
|
+
return Boolean(vn && vn.shapeFlag & 32);
|
|
32
18
|
};
|
|
33
19
|
var getFirstComponent = (children) => {
|
|
34
20
|
if (!children) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { toPropertyKey } from "./toPropertyKey.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/defineProperty.js
|
|
3
3
|
function _defineProperty(e, r, t) {
|
|
4
4
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
5
5
|
value: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _defineProperty } from "./defineProperty.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/objectSpread2.js
|
|
3
3
|
function ownKeys(e, r) {
|
|
4
4
|
var t = Object.keys(e);
|
|
5
5
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _objectWithoutPropertiesLoose } from "./objectWithoutPropertiesLoose.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/objectWithoutProperties.js
|
|
3
3
|
function _objectWithoutProperties(e, t) {
|
|
4
4
|
if (null == e) return {};
|
|
5
5
|
var o, r, i = _objectWithoutPropertiesLoose(e, t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _typeof } from "./typeof.js";
|
|
2
|
-
//#region \0@oxc-project+runtime@0.
|
|
2
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPrimitive.js
|
|
3
3
|
function toPrimitive(t, r) {
|
|
4
4
|
if ("object" != _typeof(t) || !t) return t;
|
|
5
5
|
var e = t[Symbol.toPrimitive];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _typeof } from "./typeof.js";
|
|
2
2
|
import { toPrimitive } from "./toPrimitive.js";
|
|
3
|
-
//#region \0@oxc-project+runtime@0.
|
|
3
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/toPropertyKey.js
|
|
4
4
|
function toPropertyKey(t) {
|
|
5
5
|
var i = toPrimitive(t, "string");
|
|
6
6
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region \0@oxc-project+runtime@0.
|
|
1
|
+
//#region \0@oxc-project+runtime@0.130.0/helpers/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -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 { isUndefined, isWindow } from "../_utils/is.js";
|
|
4
4
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -16,23 +16,45 @@ var affix_vue_vue_type_script_lang_default = defineComponent({
|
|
|
16
16
|
name: "Affix",
|
|
17
17
|
components: { ResizeObserver: resize_observer_default },
|
|
18
18
|
props: {
|
|
19
|
+
/**
|
|
20
|
+
* @zh 距离窗口顶部达到指定偏移量后触发
|
|
21
|
+
* @en Triggered when the specified offset is reached from the top of the window
|
|
22
|
+
*/
|
|
19
23
|
offsetTop: {
|
|
20
24
|
type: Number,
|
|
21
25
|
default: 0
|
|
22
26
|
},
|
|
27
|
+
/**
|
|
28
|
+
* @zh 距离窗口底部达到指定偏移量后触发
|
|
29
|
+
* @en Triggered when the specified offset is reached from the bottom of the window
|
|
30
|
+
*/
|
|
23
31
|
offsetBottom: { type: Number },
|
|
32
|
+
/**
|
|
33
|
+
* @zh 滚动容器,默认是 `window`
|
|
34
|
+
* @en Scroll container, default is `window`
|
|
35
|
+
*/
|
|
24
36
|
target: { type: [
|
|
25
37
|
String,
|
|
26
38
|
Object,
|
|
27
39
|
Function
|
|
28
40
|
] },
|
|
41
|
+
/**
|
|
42
|
+
* @zh `target`的外层滚动元素,默认是 `window`。`Affix `将会监听该元素的滚动事件,并实时更新固钉的位置。主要是为了解决 `target` 属性指定为非 `window` 元素时,如果外层元素滚动,可能会导致固钉跑出容器问题
|
|
43
|
+
* @en The outer scroll element of `target`, the default is `window`. `Affix` will monitor the scroll event of the element and update the position of the anchor in real time. The main purpose is to solve the problem that if the outer element scrolls when the target attribute is specified as a non-window element, it may cause the nail to escape from the container.
|
|
44
|
+
*/
|
|
29
45
|
targetContainer: { type: [
|
|
30
46
|
String,
|
|
31
47
|
Object,
|
|
32
48
|
Function
|
|
33
49
|
] }
|
|
34
50
|
},
|
|
35
|
-
emits: {
|
|
51
|
+
emits: {
|
|
52
|
+
/**
|
|
53
|
+
* @zh 固定状态发生改变时触发
|
|
54
|
+
* @en Triggered when the fixed state changes
|
|
55
|
+
* @param {boolean} fixed
|
|
56
|
+
*/
|
|
57
|
+
change: (_fixed) => true },
|
|
36
58
|
setup(props, { emit }) {
|
|
37
59
|
const prefixCls = getPrefixCls("affix");
|
|
38
60
|
const { target, targetContainer } = toRefs(props);
|
|
@@ -109,7 +131,13 @@ var affix_vue_vue_type_script_lang_default = defineComponent({
|
|
|
109
131
|
updatePositionThrottle
|
|
110
132
|
};
|
|
111
133
|
},
|
|
112
|
-
methods: {
|
|
134
|
+
methods: {
|
|
135
|
+
/**
|
|
136
|
+
* @zh 更新位置
|
|
137
|
+
* @en Update position
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
updatePosition() {
|
|
113
141
|
this.updatePositionThrottle();
|
|
114
142
|
} }
|
|
115
143
|
});
|
package/es/alert/alert.vue.d.ts
CHANGED
|
@@ -61,8 +61,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
61
61
|
onClose?: ((_ev: MouseEvent) => any) | undefined;
|
|
62
62
|
onAfterClose?: (() => any) | undefined;
|
|
63
63
|
}>, {
|
|
64
|
-
center: boolean;
|
|
65
64
|
type: "normal" | "success" | "warning" | "info" | "error";
|
|
65
|
+
center: boolean;
|
|
66
66
|
closable: boolean;
|
|
67
67
|
showIcon: boolean;
|
|
68
68
|
banner: boolean;
|
|
@@ -94,7 +94,7 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
94
94
|
default: boolean;
|
|
95
95
|
};
|
|
96
96
|
}>> & Readonly<{}>, {
|
|
97
|
-
size: "
|
|
97
|
+
size: "small" | "mini" | "medium" | "large";
|
|
98
98
|
disabled: boolean;
|
|
99
99
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
100
100
|
IconClose: {
|
|
@@ -18,32 +18,87 @@ var alert_vue_vue_type_script_lang_default = defineComponent({
|
|
|
18
18
|
IconCloseCircleFill
|
|
19
19
|
},
|
|
20
20
|
props: {
|
|
21
|
+
/**
|
|
22
|
+
* @zh 警告提示的类型。2.41.0 新增 `normal` 类型
|
|
23
|
+
* @en Type of the alert. 2.41.0 Added `normal` type
|
|
24
|
+
* @values info, success, warning, error, normal
|
|
25
|
+
*/
|
|
21
26
|
type: {
|
|
22
27
|
type: String,
|
|
23
28
|
default: "info"
|
|
24
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* @zh 是否展示图标
|
|
32
|
+
* @en Whether to show the icon
|
|
33
|
+
*/
|
|
25
34
|
showIcon: {
|
|
26
35
|
type: Boolean,
|
|
27
36
|
default: true
|
|
28
37
|
},
|
|
38
|
+
/**
|
|
39
|
+
* @zh 是否展示关闭按钮
|
|
40
|
+
* @en Whether to show the close button
|
|
41
|
+
*/
|
|
29
42
|
closable: {
|
|
30
43
|
type: Boolean,
|
|
31
44
|
default: false
|
|
32
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* @zh 警告提示的标题
|
|
48
|
+
* @en The title of the alert
|
|
49
|
+
*/
|
|
33
50
|
title: String,
|
|
51
|
+
/**
|
|
52
|
+
* @zh 是否作为顶部公告使用(去除边框和圆角)
|
|
53
|
+
* @en Whether to use as the top announcement (remove the border and rounded corners)
|
|
54
|
+
*/
|
|
34
55
|
banner: {
|
|
35
56
|
type: Boolean,
|
|
36
57
|
default: false
|
|
37
58
|
},
|
|
59
|
+
/**
|
|
60
|
+
* @zh 内容是否居中显示
|
|
61
|
+
* @en Whether the content is displayed in the center
|
|
62
|
+
*/
|
|
38
63
|
center: {
|
|
39
64
|
type: Boolean,
|
|
40
65
|
default: false
|
|
41
66
|
}
|
|
42
67
|
},
|
|
43
68
|
emits: {
|
|
69
|
+
/**
|
|
70
|
+
* @zh 点击关闭按钮时触发
|
|
71
|
+
* @en Triggered when the close button is clicked
|
|
72
|
+
* @param {MouseEvent} ev
|
|
73
|
+
*/
|
|
44
74
|
close: (_ev) => true,
|
|
75
|
+
/**
|
|
76
|
+
* @zh 关闭动画结束后触发
|
|
77
|
+
* @en Triggered after the close animation ends
|
|
78
|
+
*/
|
|
45
79
|
afterClose: () => true
|
|
46
80
|
},
|
|
81
|
+
/**
|
|
82
|
+
* @zh 标题
|
|
83
|
+
* @en Title
|
|
84
|
+
* @slot title
|
|
85
|
+
*/
|
|
86
|
+
/**
|
|
87
|
+
* @zh 图标
|
|
88
|
+
* @en Icon
|
|
89
|
+
* @slot icon
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* @zh 操作项
|
|
93
|
+
* @en Actions
|
|
94
|
+
* @slot action
|
|
95
|
+
*/
|
|
96
|
+
/**
|
|
97
|
+
* @zh 关闭元素
|
|
98
|
+
* @en Close element
|
|
99
|
+
* @slot close-element
|
|
100
|
+
* @version 2.36.0
|
|
101
|
+
*/
|
|
47
102
|
setup(props, { slots, emit }) {
|
|
48
103
|
const prefixCls = getPrefixCls("alert");
|
|
49
104
|
const visible = ref(true);
|
package/es/alert/index.d.ts
CHANGED
|
@@ -39,8 +39,8 @@ declare const Alert: {
|
|
|
39
39
|
close: (_ev: MouseEvent) => true;
|
|
40
40
|
afterClose: () => true;
|
|
41
41
|
}, import("vue").PublicProps, {
|
|
42
|
-
center: boolean;
|
|
43
42
|
type: "normal" | "success" | "warning" | "info" | "error";
|
|
43
|
+
center: boolean;
|
|
44
44
|
closable: boolean;
|
|
45
45
|
showIcon: boolean;
|
|
46
46
|
banner: boolean;
|
|
@@ -72,7 +72,7 @@ declare const Alert: {
|
|
|
72
72
|
default: boolean;
|
|
73
73
|
};
|
|
74
74
|
}>> & Readonly<{}>, {
|
|
75
|
-
size: "
|
|
75
|
+
size: "small" | "mini" | "medium" | "large";
|
|
76
76
|
disabled: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
78
78
|
IconClose: {
|
|
@@ -721,8 +721,8 @@ declare const Alert: {
|
|
|
721
721
|
handleClose: (ev: MouseEvent) => void;
|
|
722
722
|
handleAfterLeave: () => void;
|
|
723
723
|
}, {}, {}, {}, {
|
|
724
|
-
center: boolean;
|
|
725
724
|
type: "normal" | "success" | "warning" | "info" | "error";
|
|
725
|
+
center: boolean;
|
|
726
726
|
closable: boolean;
|
|
727
727
|
showIcon: boolean;
|
|
728
728
|
banner: boolean;
|
|
@@ -767,8 +767,8 @@ declare const Alert: {
|
|
|
767
767
|
close: (_ev: MouseEvent) => true;
|
|
768
768
|
afterClose: () => true;
|
|
769
769
|
}, string, {
|
|
770
|
-
center: boolean;
|
|
771
770
|
type: "normal" | "success" | "warning" | "info" | "error";
|
|
771
|
+
center: boolean;
|
|
772
772
|
closable: boolean;
|
|
773
773
|
showIcon: boolean;
|
|
774
774
|
banner: boolean;
|
|
@@ -800,7 +800,7 @@ declare const Alert: {
|
|
|
800
800
|
default: boolean;
|
|
801
801
|
};
|
|
802
802
|
}>> & Readonly<{}>, {
|
|
803
|
-
size: "
|
|
803
|
+
size: "small" | "mini" | "medium" | "large";
|
|
804
804
|
disabled: boolean;
|
|
805
805
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
806
806
|
IconClose: {
|