@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,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNumber, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import { useAllowClear } from "../_hooks/use-allow-clear.js";
|
|
@@ -20,66 +20,209 @@ NP.enableBoundaryChecking(false);
|
|
|
20
20
|
var input_number_default = /* @__PURE__ */ defineComponent({
|
|
21
21
|
name: "InputNumber",
|
|
22
22
|
props: {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* @zh 绑定值
|
|
25
|
+
* @en Value
|
|
26
|
+
*/
|
|
27
|
+
modelValue: { type: [String, Number] },
|
|
28
|
+
/**
|
|
29
|
+
* @zh 默认值(非受控模式)
|
|
30
|
+
* @en Default value (uncontrolled mode)
|
|
31
|
+
*/
|
|
32
|
+
defaultValue: { type: [String, Number] },
|
|
33
|
+
/**
|
|
34
|
+
* @zh 模式(`embed`:按钮内嵌模式,`button`:左右按钮模式)
|
|
35
|
+
* @en Mode (`embed`: button embedded mode, `button`: left and right button mode)
|
|
36
|
+
* @values 'embed', 'button'
|
|
37
|
+
*/
|
|
25
38
|
mode: {
|
|
26
39
|
type: String,
|
|
27
40
|
default: "embed"
|
|
28
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @zh 数字精度
|
|
44
|
+
* @en Precision
|
|
45
|
+
*/
|
|
29
46
|
precision: Number,
|
|
47
|
+
/**
|
|
48
|
+
* @zh 数字变化步长
|
|
49
|
+
* @en Number change step
|
|
50
|
+
*/
|
|
30
51
|
step: {
|
|
31
52
|
type: Number,
|
|
32
53
|
default: 1
|
|
33
54
|
},
|
|
55
|
+
/**
|
|
56
|
+
* @zh 是否禁用
|
|
57
|
+
* @en Whether to disable
|
|
58
|
+
*/
|
|
34
59
|
disabled: {
|
|
35
60
|
type: Boolean,
|
|
36
61
|
default: false
|
|
37
62
|
},
|
|
63
|
+
/**
|
|
64
|
+
* @zh 是否为错误状态
|
|
65
|
+
* @en Whether it is an error state
|
|
66
|
+
*/
|
|
38
67
|
error: {
|
|
39
68
|
type: Boolean,
|
|
40
69
|
default: false
|
|
41
70
|
},
|
|
71
|
+
/**
|
|
72
|
+
* @zh 最大值
|
|
73
|
+
* @en Max
|
|
74
|
+
*/
|
|
42
75
|
max: {
|
|
43
76
|
type: Number,
|
|
44
77
|
default: Infinity
|
|
45
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* @zh 最小值
|
|
81
|
+
* @en Min
|
|
82
|
+
*/
|
|
46
83
|
min: {
|
|
47
84
|
type: Number,
|
|
48
85
|
default: -Infinity
|
|
49
86
|
},
|
|
87
|
+
/**
|
|
88
|
+
* @zh 定义输入框展示值
|
|
89
|
+
* @en Define the display value of the input
|
|
90
|
+
*/
|
|
50
91
|
formatter: { type: Function },
|
|
92
|
+
/**
|
|
93
|
+
* @zh 从 `formatter` 转换为数字,和 `formatter` 搭配使用
|
|
94
|
+
* @en Convert from `formatter` to number, and use with `formatter`
|
|
95
|
+
*/
|
|
51
96
|
parser: { type: Function },
|
|
97
|
+
/**
|
|
98
|
+
* @zh 输入框提示文字
|
|
99
|
+
* @en Input prompt text
|
|
100
|
+
*/
|
|
52
101
|
placeholder: String,
|
|
102
|
+
/**
|
|
103
|
+
* @zh 是否隐藏按钮
|
|
104
|
+
* @en Whether to hide the button
|
|
105
|
+
*/
|
|
53
106
|
hideButton: {
|
|
54
107
|
type: Boolean,
|
|
55
108
|
default: false
|
|
56
109
|
},
|
|
110
|
+
/**
|
|
111
|
+
* @zh 输入框大小
|
|
112
|
+
* @en Input size
|
|
113
|
+
* @values 'mini','small','medium','large'
|
|
114
|
+
* @defaultValue 'medium'
|
|
115
|
+
*/
|
|
57
116
|
size: { type: String },
|
|
117
|
+
/**
|
|
118
|
+
* @zh 是否允许清空输入框
|
|
119
|
+
* @en Whether to allow the input to be cleared
|
|
120
|
+
*/
|
|
58
121
|
allowClear: {
|
|
59
122
|
type: Boolean,
|
|
60
123
|
default: false
|
|
61
124
|
},
|
|
125
|
+
/**
|
|
126
|
+
* @zh 触发 `v-model` 的事件
|
|
127
|
+
* @en Trigger event for `v-model`
|
|
128
|
+
*/
|
|
62
129
|
modelEvent: {
|
|
63
130
|
type: String,
|
|
64
131
|
default: "change"
|
|
65
132
|
},
|
|
133
|
+
/**
|
|
134
|
+
* @zh 只读
|
|
135
|
+
* @en Readonly
|
|
136
|
+
* @version 2.33.1
|
|
137
|
+
*/
|
|
66
138
|
readOnly: {
|
|
67
139
|
type: Boolean,
|
|
68
140
|
default: false
|
|
69
141
|
},
|
|
142
|
+
/**
|
|
143
|
+
* @zh 内部 input 元素的属性
|
|
144
|
+
* @en Attributes of inner input elements
|
|
145
|
+
* @version 2.52.0
|
|
146
|
+
*/
|
|
70
147
|
inputAttrs: { type: Object }
|
|
71
148
|
},
|
|
72
149
|
emits: {
|
|
73
150
|
"update:modelValue": (_value) => true,
|
|
151
|
+
/**
|
|
152
|
+
* @zh 值发生改变时触发
|
|
153
|
+
* @en Triggered when the value changes
|
|
154
|
+
* @param { number | undefined } value
|
|
155
|
+
* @param {Event} ev
|
|
156
|
+
*/
|
|
74
157
|
"change": (_value, _ev) => true,
|
|
158
|
+
/**
|
|
159
|
+
* @zh 输入框获取焦点时触发
|
|
160
|
+
* @en Triggered when the input gets focus
|
|
161
|
+
* @param {FocusEvent} ev
|
|
162
|
+
*/
|
|
75
163
|
"focus": (_ev) => true,
|
|
164
|
+
/**
|
|
165
|
+
* @zh 输入框失去焦点时触发
|
|
166
|
+
* @en Triggered when the input box loses focus
|
|
167
|
+
* @param {FocusEvent} ev
|
|
168
|
+
*/
|
|
76
169
|
"blur": (_ev) => true,
|
|
170
|
+
/**
|
|
171
|
+
* @zh 用户点击清除按钮时触发
|
|
172
|
+
* @en Triggered when the user clicks the clear button
|
|
173
|
+
* @param {Event} ev
|
|
174
|
+
* @version 2.23.0
|
|
175
|
+
*/
|
|
77
176
|
"clear": (_ev) => true,
|
|
177
|
+
/**
|
|
178
|
+
* @zh 输入时触发
|
|
179
|
+
* @en Triggered on input
|
|
180
|
+
* @param { number | undefined } value
|
|
181
|
+
* @param {string} inputValue
|
|
182
|
+
* @param {Event} ev
|
|
183
|
+
* @version 2.27.0
|
|
184
|
+
*/
|
|
78
185
|
"input": (_value, _inputValue, _ev) => true,
|
|
186
|
+
/**
|
|
187
|
+
* @zh 按下键盘时触发
|
|
188
|
+
* @en Triggered on keydown
|
|
189
|
+
* @param {MouseEvent} ev
|
|
190
|
+
* @version 2.56.0
|
|
191
|
+
*/
|
|
79
192
|
"keydown": (_ev) => true
|
|
80
193
|
},
|
|
194
|
+
/**
|
|
195
|
+
* @zh 前缀
|
|
196
|
+
* @en Prefix
|
|
197
|
+
* @slot prefix
|
|
198
|
+
*/
|
|
199
|
+
/**
|
|
200
|
+
* @zh 后缀
|
|
201
|
+
* @en Suffix
|
|
202
|
+
* @slot suffix
|
|
203
|
+
*/
|
|
204
|
+
/**
|
|
205
|
+
* @zh 前置标签
|
|
206
|
+
* @en Prepend
|
|
207
|
+
* @slot prepend
|
|
208
|
+
*/
|
|
209
|
+
/**
|
|
210
|
+
* @zh 后置标签
|
|
211
|
+
* @en Append
|
|
212
|
+
* @slot append
|
|
213
|
+
*/
|
|
214
|
+
/**
|
|
215
|
+
* @zh 数值增加图标
|
|
216
|
+
* @en Plus
|
|
217
|
+
* @slot plus
|
|
218
|
+
*/
|
|
219
|
+
/**
|
|
220
|
+
* @zh 数值减少图标
|
|
221
|
+
* @en Minus
|
|
222
|
+
* @slot minus
|
|
223
|
+
*/
|
|
81
224
|
setup(props, { emit, slots }) {
|
|
82
|
-
var _props$modelValue;
|
|
225
|
+
var _props$modelValue, _props$modelValue2;
|
|
83
226
|
const { size, disabled, allowClear } = toRefs(props);
|
|
84
227
|
const prefixCls = getPrefixCls("input-number");
|
|
85
228
|
const inputRef = ref();
|
|
@@ -89,25 +232,45 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
89
232
|
});
|
|
90
233
|
const { mergedSize } = useSize(_mergedSize);
|
|
91
234
|
const { mergedAllowClear } = useAllowClear(allowClear);
|
|
235
|
+
const valueMode = ref(typeof ((_props$modelValue = props.modelValue) !== null && _props$modelValue !== void 0 ? _props$modelValue : props.defaultValue) === "string" ? "string" : "number");
|
|
92
236
|
const mergedPrecision = computed(() => {
|
|
93
237
|
if (isNumber(props.precision)) {
|
|
94
238
|
const decimal = `${props.step}`.split(".")[1];
|
|
95
|
-
const stepPrecision = decimal
|
|
239
|
+
const stepPrecision = (decimal === null || decimal === void 0 ? void 0 : decimal.length) || 0;
|
|
96
240
|
return Math.max(stepPrecision, props.precision);
|
|
97
241
|
}
|
|
98
242
|
});
|
|
243
|
+
const getNumberValue = (value) => {
|
|
244
|
+
var _props$parser, _props$parser2;
|
|
245
|
+
if (isUndefined(value) || value === null || value === "") return;
|
|
246
|
+
if (typeof value === "number") return Number.isNaN(value) ? void 0 : value;
|
|
247
|
+
const normalizedValue = value.trim();
|
|
248
|
+
if (!normalizedValue || /^[-.]$/.test(normalizedValue)) return;
|
|
249
|
+
const parsed = Number((_props$parser = (_props$parser2 = props.parser) === null || _props$parser2 === void 0 ? void 0 : _props$parser2.call(props, normalizedValue)) !== null && _props$parser !== void 0 ? _props$parser : normalizedValue);
|
|
250
|
+
return Number.isNaN(parsed) ? void 0 : parsed;
|
|
251
|
+
};
|
|
99
252
|
const getStringValue = (number) => {
|
|
100
253
|
var _props$formatter, _props$formatter2;
|
|
101
254
|
if (!isNumber(number)) return "";
|
|
102
255
|
const numString = mergedPrecision.value ? number.toFixed(mergedPrecision.value) : String(number);
|
|
103
256
|
return (_props$formatter = (_props$formatter2 = props.formatter) === null || _props$formatter2 === void 0 ? void 0 : _props$formatter2.call(props, numString)) !== null && _props$formatter !== void 0 ? _props$formatter : numString;
|
|
104
257
|
};
|
|
105
|
-
const
|
|
258
|
+
const getDisplayValue = (value) => {
|
|
259
|
+
if (typeof value === "string") {
|
|
260
|
+
const normalizedValue = value.trim();
|
|
261
|
+
if (!normalizedValue || /^[-.]$/.test(normalizedValue)) return value;
|
|
262
|
+
const parsed = getNumberValue(value);
|
|
263
|
+
return isNumber(parsed) ? getStringValue(parsed) : value;
|
|
264
|
+
}
|
|
265
|
+
return getStringValue(value !== null && value !== void 0 ? value : void 0);
|
|
266
|
+
};
|
|
267
|
+
const getModelValue = (value) => {
|
|
268
|
+
if (valueMode.value === "string") return isUndefined(value) ? "" : String(value);
|
|
269
|
+
return value;
|
|
270
|
+
};
|
|
271
|
+
const _value = ref(getDisplayValue((_props$modelValue2 = props.modelValue) !== null && _props$modelValue2 !== void 0 ? _props$modelValue2 : props.defaultValue));
|
|
106
272
|
const valueNumber = computed(() => {
|
|
107
|
-
|
|
108
|
-
if (!_value.value) return;
|
|
109
|
-
const number = Number((_props$parser = (_props$parser2 = props.parser) === null || _props$parser2 === void 0 ? void 0 : _props$parser2.call(props, _value.value)) !== null && _props$parser !== void 0 ? _props$parser : _value.value);
|
|
110
|
-
return Number.isNaN(number) ? void 0 : number;
|
|
273
|
+
return getNumberValue(_value.value);
|
|
111
274
|
});
|
|
112
275
|
const isMin = ref(isNumber(valueNumber.value) && valueNumber.value <= props.min);
|
|
113
276
|
const isMax = ref(isNumber(valueNumber.value) && valueNumber.value >= props.max);
|
|
@@ -138,7 +301,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
138
301
|
const finalValue = getLegalValue(valueNumber.value);
|
|
139
302
|
const stringValue = getStringValue(finalValue);
|
|
140
303
|
if (finalValue !== valueNumber.value || _value.value !== stringValue) _value.value = stringValue;
|
|
141
|
-
emit("update:modelValue", finalValue);
|
|
304
|
+
emit("update:modelValue", getModelValue(finalValue));
|
|
142
305
|
};
|
|
143
306
|
watch(() => [props.max, props.min], () => {
|
|
144
307
|
handleExceedRange();
|
|
@@ -151,8 +314,9 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
151
314
|
else nextValue = props.min === -Infinity ? 0 : props.min;
|
|
152
315
|
_value.value = getStringValue(nextValue);
|
|
153
316
|
updateNumberStatus(nextValue);
|
|
154
|
-
|
|
155
|
-
emit("
|
|
317
|
+
const emittedValue = getModelValue(nextValue);
|
|
318
|
+
emit("update:modelValue", emittedValue);
|
|
319
|
+
emit("change", emittedValue, event);
|
|
156
320
|
};
|
|
157
321
|
const handleStepButton = (event, method, needRepeat = false) => {
|
|
158
322
|
var _inputRef$value;
|
|
@@ -166,14 +330,15 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
166
330
|
var _props$parser3, _props$parser4;
|
|
167
331
|
value = value.trim().replace(/。/g, ".");
|
|
168
332
|
value = (_props$parser3 = (_props$parser4 = props.parser) === null || _props$parser4 === void 0 ? void 0 : _props$parser4.call(props, value)) !== null && _props$parser3 !== void 0 ? _props$parser3 : value;
|
|
169
|
-
if (isNumber(Number(value)) || /^
|
|
333
|
+
if (isNumber(Number(value)) || /^[-.]$/.test(value)) {
|
|
170
334
|
var _props$formatter3, _props$formatter4;
|
|
171
335
|
_value.value = (_props$formatter3 = (_props$formatter4 = props.formatter) === null || _props$formatter4 === void 0 ? void 0 : _props$formatter4.call(props, value)) !== null && _props$formatter3 !== void 0 ? _props$formatter3 : value;
|
|
172
336
|
updateNumberStatus(valueNumber.value);
|
|
173
|
-
|
|
337
|
+
const emittedValue = getModelValue(valueNumber.value);
|
|
338
|
+
emit("input", emittedValue, _value.value, ev);
|
|
174
339
|
if (props.modelEvent === "input") {
|
|
175
|
-
emit("update:modelValue",
|
|
176
|
-
emit("change",
|
|
340
|
+
emit("update:modelValue", emittedValue);
|
|
341
|
+
emit("change", emittedValue, ev);
|
|
177
342
|
}
|
|
178
343
|
}
|
|
179
344
|
};
|
|
@@ -183,7 +348,7 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
183
348
|
const handleChange = (value, ev) => {
|
|
184
349
|
if (ev instanceof MouseEvent && !value) return;
|
|
185
350
|
handleExceedRange();
|
|
186
|
-
emit("change", valueNumber.value, ev);
|
|
351
|
+
emit("change", getModelValue(valueNumber.value), ev);
|
|
187
352
|
};
|
|
188
353
|
const handleBlur = (ev) => {
|
|
189
354
|
emit("blur", ev);
|
|
@@ -191,8 +356,9 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
191
356
|
const handleClear = (ev) => {
|
|
192
357
|
var _eventHandlers$value, _eventHandlers$value$;
|
|
193
358
|
_value.value = "";
|
|
194
|
-
|
|
195
|
-
emit("
|
|
359
|
+
const emittedValue = getModelValue(void 0);
|
|
360
|
+
emit("update:modelValue", emittedValue);
|
|
361
|
+
emit("change", emittedValue, ev);
|
|
196
362
|
(_eventHandlers$value = eventHandlers.value) === null || _eventHandlers$value === void 0 || (_eventHandlers$value$ = _eventHandlers$value.onChange) === null || _eventHandlers$value$ === void 0 || _eventHandlers$value$.call(_eventHandlers$value, ev);
|
|
197
363
|
emit("clear", ev);
|
|
198
364
|
};
|
|
@@ -208,9 +374,15 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
208
374
|
if (!event.defaultPrevented) keyDownHandler(event);
|
|
209
375
|
};
|
|
210
376
|
watch(() => props.modelValue, (value) => {
|
|
211
|
-
if (value
|
|
212
|
-
|
|
213
|
-
|
|
377
|
+
if (typeof value === "string") valueMode.value = "string";
|
|
378
|
+
else if (typeof value === "number") valueMode.value = "number";
|
|
379
|
+
const nextNumberValue = getNumberValue(value);
|
|
380
|
+
if (value !== _value.value && nextNumberValue !== valueNumber.value) {
|
|
381
|
+
_value.value = getDisplayValue(value);
|
|
382
|
+
updateNumberStatus(nextNumberValue);
|
|
383
|
+
} else if (value === "" && _value.value !== "") {
|
|
384
|
+
_value.value = "";
|
|
385
|
+
updateNumberStatus(void 0);
|
|
214
386
|
}
|
|
215
387
|
});
|
|
216
388
|
const renderSuffix = () => {
|
|
@@ -306,10 +478,20 @@ var input_number_default = /* @__PURE__ */ defineComponent({
|
|
|
306
478
|
};
|
|
307
479
|
},
|
|
308
480
|
methods: {
|
|
481
|
+
/**
|
|
482
|
+
* @zh 使输入框获取焦点
|
|
483
|
+
* @en Make the input box focus
|
|
484
|
+
* @public
|
|
485
|
+
*/
|
|
309
486
|
focus() {
|
|
310
487
|
var _this$inputRef;
|
|
311
488
|
(_this$inputRef = this.inputRef) === null || _this$inputRef === void 0 || _this$inputRef.focus();
|
|
312
489
|
},
|
|
490
|
+
/**
|
|
491
|
+
* @zh 使输入框失去焦点
|
|
492
|
+
* @en Make the input box lose focus
|
|
493
|
+
* @public
|
|
494
|
+
*/
|
|
313
495
|
blur() {
|
|
314
496
|
var _this$inputRef2;
|
|
315
497
|
(_this$inputRef2 = this.inputRef) === null || _this$inputRef2 === void 0 || _this$inputRef2.blur();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useFormItem } from "../_hooks/use-form-item.js";
|
|
2
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
3
3
|
import { getPrefixCls } from "../_utils/global-config.js";
|
|
4
4
|
import { isNull, isObject, isUndefined } from "../_utils/is.js";
|
|
5
5
|
import resize_observer_default from "../_components/resize-observer.js";
|
|
@@ -30,48 +30,119 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
name: "InputTag",
|
|
31
31
|
inheritAttrs: false,
|
|
32
32
|
props: {
|
|
33
|
+
/**
|
|
34
|
+
* @zh 绑定值
|
|
35
|
+
* @en Value
|
|
36
|
+
* @vModel
|
|
37
|
+
*/
|
|
33
38
|
modelValue: { type: Array },
|
|
39
|
+
/**
|
|
40
|
+
* @zh 默认值(非受控状态)
|
|
41
|
+
* @en Default value (uncontrolled state)
|
|
42
|
+
*/
|
|
34
43
|
defaultValue: {
|
|
35
44
|
type: Array,
|
|
36
45
|
default: () => []
|
|
37
46
|
},
|
|
47
|
+
/**
|
|
48
|
+
* @zh 输入框的值
|
|
49
|
+
* @en The value of the input
|
|
50
|
+
* @vModel
|
|
51
|
+
*/
|
|
38
52
|
inputValue: String,
|
|
53
|
+
/**
|
|
54
|
+
* @zh 输入框的默认值(非受控状态)
|
|
55
|
+
* @en The default value of the input (uncontrolled state)
|
|
56
|
+
*/
|
|
39
57
|
defaultInputValue: {
|
|
40
58
|
type: String,
|
|
41
59
|
default: ""
|
|
42
60
|
},
|
|
61
|
+
/**
|
|
62
|
+
* @zh 占位符
|
|
63
|
+
* @en Placeholder
|
|
64
|
+
*/
|
|
43
65
|
placeholder: String,
|
|
66
|
+
/**
|
|
67
|
+
* @zh 是否禁用
|
|
68
|
+
* @en Whether to disable
|
|
69
|
+
*/
|
|
44
70
|
disabled: {
|
|
45
71
|
type: Boolean,
|
|
46
72
|
default: false
|
|
47
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* @zh 是否为错误状态
|
|
76
|
+
* @en Whether it is an error state
|
|
77
|
+
*/
|
|
48
78
|
error: {
|
|
49
79
|
type: Boolean,
|
|
50
80
|
default: false
|
|
51
81
|
},
|
|
82
|
+
/**
|
|
83
|
+
* @zh 是否为只读模式
|
|
84
|
+
* @en Whether it is read-only mode
|
|
85
|
+
*/
|
|
52
86
|
readonly: {
|
|
53
87
|
type: Boolean,
|
|
54
88
|
default: false
|
|
55
89
|
},
|
|
90
|
+
/**
|
|
91
|
+
* @zh 是否允许清空
|
|
92
|
+
* @en Whether to allow clear
|
|
93
|
+
*/
|
|
56
94
|
allowClear: {
|
|
57
95
|
type: Boolean,
|
|
58
96
|
default: false
|
|
59
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
* @zh 输入框的大小
|
|
100
|
+
* @en The size of the input
|
|
101
|
+
* @values 'mini','small','medium','large'
|
|
102
|
+
* @defaultValue 'medium'
|
|
103
|
+
*/
|
|
60
104
|
size: { type: String },
|
|
105
|
+
/**
|
|
106
|
+
* @zh 最多展示的标签个数,`0` 表示不限制
|
|
107
|
+
* @en The maximum number of tags displayed, `0` means unlimited
|
|
108
|
+
*/
|
|
61
109
|
maxTagCount: {
|
|
62
110
|
type: [Number, String],
|
|
63
111
|
default: 0
|
|
64
112
|
},
|
|
113
|
+
/**
|
|
114
|
+
* @zh 是否保留输入框的内容
|
|
115
|
+
* @en Whether to keep the content of the input box
|
|
116
|
+
*/
|
|
65
117
|
retainInputValue: {
|
|
66
118
|
type: [Boolean, Object],
|
|
67
119
|
default: false
|
|
68
120
|
},
|
|
121
|
+
/**
|
|
122
|
+
* @zh 格式化标签内容
|
|
123
|
+
* @en Format tag content
|
|
124
|
+
*/
|
|
69
125
|
formatTag: { type: Function },
|
|
126
|
+
/**
|
|
127
|
+
* @zh 是否仅创建唯一的值
|
|
128
|
+
* @en Whether to create only unique values
|
|
129
|
+
* @version 2.15.0
|
|
130
|
+
*/
|
|
70
131
|
uniqueValue: {
|
|
71
132
|
type: Boolean,
|
|
72
133
|
default: false
|
|
73
134
|
},
|
|
135
|
+
/**
|
|
136
|
+
* @zh 自定义 `TagData` 中的字段
|
|
137
|
+
* @en Customize fields in `TagData`
|
|
138
|
+
* @version 2.22.0
|
|
139
|
+
*/
|
|
74
140
|
fieldNames: { type: Object },
|
|
141
|
+
/**
|
|
142
|
+
* @zh 标签内容不换行
|
|
143
|
+
* @en Tag content does not wrap
|
|
144
|
+
* @version 2.56.1
|
|
145
|
+
*/
|
|
75
146
|
tagNowrap: {
|
|
76
147
|
type: Boolean,
|
|
77
148
|
default: false
|
|
@@ -84,14 +155,69 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
84
155
|
emits: {
|
|
85
156
|
"update:modelValue": (_value) => true,
|
|
86
157
|
"update:inputValue": (_inputValue) => true,
|
|
158
|
+
/**
|
|
159
|
+
* @zh 值发生改变时触发
|
|
160
|
+
* @en Triggered when the value changes
|
|
161
|
+
* @param {(string | number | TagData)[]} value
|
|
162
|
+
* @param {Event} ev
|
|
163
|
+
*/
|
|
87
164
|
"change": (_value, _ev) => true,
|
|
165
|
+
/**
|
|
166
|
+
* @zh 输入值发生改变时触发
|
|
167
|
+
* @en Trigger when the input value changes
|
|
168
|
+
* @param {string} inputValue
|
|
169
|
+
* @param {Event} ev
|
|
170
|
+
*/
|
|
88
171
|
"inputValueChange": (_inputValue, _ev) => true,
|
|
172
|
+
/**
|
|
173
|
+
* @zh 按下回车键时触发
|
|
174
|
+
* @en Triggered when the enter key is pressed
|
|
175
|
+
* @param {string} inputValue
|
|
176
|
+
* @param {KeyboardEvent} ev
|
|
177
|
+
*/
|
|
89
178
|
"pressEnter": (_inputValue, _ev) => true,
|
|
179
|
+
/**
|
|
180
|
+
* @zh 点击标签的删除按钮时触发
|
|
181
|
+
* @en Triggered when the delete button of the label is clicked
|
|
182
|
+
* @param {string | number} removed
|
|
183
|
+
* @param {Event} ev
|
|
184
|
+
*/
|
|
90
185
|
"remove": (_removed, _ev) => true,
|
|
186
|
+
/**
|
|
187
|
+
* @zh 点击清除按钮时触发
|
|
188
|
+
* @en Triggered when the clear button is clicked
|
|
189
|
+
* @param {MouseEvent} ev
|
|
190
|
+
*/
|
|
91
191
|
"clear": (_ev) => true,
|
|
192
|
+
/**
|
|
193
|
+
* @zh 输入框获取焦点时触发
|
|
194
|
+
* @en Triggered when the input box gets focus
|
|
195
|
+
* @param {FocusEvent} ev
|
|
196
|
+
*/
|
|
92
197
|
"focus": (_ev) => true,
|
|
198
|
+
/**
|
|
199
|
+
* @zh 输入框失去焦点时触发
|
|
200
|
+
* @en Triggered when the input box loses focus
|
|
201
|
+
* @param {FocusEvent} ev
|
|
202
|
+
*/
|
|
93
203
|
"blur": (_ev) => true
|
|
94
204
|
},
|
|
205
|
+
/**
|
|
206
|
+
* @zh 后缀元素
|
|
207
|
+
* @en Suffix
|
|
208
|
+
* @slot suffix
|
|
209
|
+
*/
|
|
210
|
+
/**
|
|
211
|
+
* @zh 前缀元素
|
|
212
|
+
* @en Prefix
|
|
213
|
+
* @slot prefix
|
|
214
|
+
*/
|
|
215
|
+
/**
|
|
216
|
+
* @zh 输入框标签的显示内容
|
|
217
|
+
* @en Display content of tag
|
|
218
|
+
* @slot tag
|
|
219
|
+
* @binding {TagData} data
|
|
220
|
+
*/
|
|
95
221
|
setup(props, { emit, slots, attrs }) {
|
|
96
222
|
const { size, disabled, error, uninjectFormItemContext, modelValue, allowClear } = toRefs(props);
|
|
97
223
|
const prefixCls = props.baseCls || getPrefixCls("input-tag");
|
|
@@ -471,10 +597,20 @@ var input_tag_default = /* @__PURE__ */ defineComponent({
|
|
|
471
597
|
};
|
|
472
598
|
},
|
|
473
599
|
methods: {
|
|
600
|
+
/**
|
|
601
|
+
* @zh 使输入框获取焦点
|
|
602
|
+
* @en Make the input box focus
|
|
603
|
+
* @public
|
|
604
|
+
*/
|
|
474
605
|
focus() {
|
|
475
606
|
var _this$inputRef;
|
|
476
607
|
(_this$inputRef = this.inputRef) === null || _this$inputRef === void 0 || _this$inputRef.focus();
|
|
477
608
|
},
|
|
609
|
+
/**
|
|
610
|
+
* @zh 使输入框失去焦点
|
|
611
|
+
* @en Make the input box lose focus
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
478
614
|
blur() {
|
|
479
615
|
var _this$inputRef2;
|
|
480
616
|
(_this$inputRef2 = this.inputRef) === null || _this$inputRef2 === void 0 || _this$inputRef2.blur();
|
|
@@ -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));
|
package/es/input-tag/utils.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import { _objectSpread2 } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/objectSpread2.js";
|
|
2
2
|
import { isNumber, isObject } from "../_utils/is.js";
|
|
3
3
|
//#region components/input-tag/utils.ts
|
|
4
4
|
var getValueData = (value, fieldNames) => {
|
package/es/layout/content.js
CHANGED
|
@@ -4,6 +4,11 @@ import { createElementBlock, defineComponent, normalizeClass, openBlock, renderS
|
|
|
4
4
|
//#region components/layout/content.vue
|
|
5
5
|
var _sfc_main = defineComponent({
|
|
6
6
|
name: "LayoutContent",
|
|
7
|
+
/**
|
|
8
|
+
* @zh 内容
|
|
9
|
+
* @en Content
|
|
10
|
+
* @slot default
|
|
11
|
+
*/
|
|
7
12
|
setup() {
|
|
8
13
|
return { classNames: [getPrefixCls("layout-content")] };
|
|
9
14
|
}
|
package/es/layout/footer.js
CHANGED
|
@@ -4,6 +4,11 @@ import { createElementBlock, defineComponent, normalizeClass, openBlock, renderS
|
|
|
4
4
|
//#region components/layout/footer.vue
|
|
5
5
|
var _sfc_main = defineComponent({
|
|
6
6
|
name: "LayoutFooter",
|
|
7
|
+
/**
|
|
8
|
+
* @zh 内容
|
|
9
|
+
* @en Content
|
|
10
|
+
* @slot default
|
|
11
|
+
*/
|
|
7
12
|
setup() {
|
|
8
13
|
return { classNames: [getPrefixCls("layout-footer")] };
|
|
9
14
|
}
|
package/es/layout/header.js
CHANGED
|
@@ -4,6 +4,11 @@ import { createElementBlock, defineComponent, normalizeClass, openBlock, renderS
|
|
|
4
4
|
//#region components/layout/header.vue
|
|
5
5
|
var _sfc_main = defineComponent({
|
|
6
6
|
name: "LayoutHeader",
|
|
7
|
+
/**
|
|
8
|
+
* @zh 内容
|
|
9
|
+
* @en Content
|
|
10
|
+
* @slot default
|
|
11
|
+
*/
|
|
7
12
|
setup() {
|
|
8
13
|
return { classNames: [getPrefixCls("layout-header")] };
|
|
9
14
|
}
|
|
@@ -4,7 +4,12 @@ import { computed, defineComponent, provide, ref } from "vue";
|
|
|
4
4
|
//#region components/layout/layout.vue?vue&type=script&lang.tsx
|
|
5
5
|
var layout_vue_vue_type_script_lang_default = /* @__PURE__ */ defineComponent({
|
|
6
6
|
name: "Layout",
|
|
7
|
-
props: {
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* @zh 表示子元素里有 Sider,一般不用指定。可用于服务端渲染时避免样式闪动
|
|
10
|
+
* @en Indicates that there is a Sider in the sub-element, which generally does not need to be specified. Used to avoid style flicker when rendering on the server side.
|
|
11
|
+
*/
|
|
12
|
+
hasSider: { type: Boolean } },
|
|
8
13
|
setup(props) {
|
|
9
14
|
const siderIds = ref([]);
|
|
10
15
|
const prefixCls = getPrefixCls("layout");
|