naive-ui 2.25.0 → 2.25.3
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/es/_internal/clear/src/Clear.d.ts +0 -1
- package/es/_internal/clear/src/Clear.js +1 -3
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/icons/replaceable.js +5 -4
- package/es/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/es/_internal/scrollbar/src/ScrollBar.js +35 -16
- package/es/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/es/_internal/select-menu/src/SelectMenu.js +13 -10
- package/es/_internal/selection/src/Selection.d.ts +31 -26
- package/es/_internal/selection/src/Selection.js +79 -68
- package/es/_internal/selection/styles/dark.js +3 -3
- package/es/_internal/selection/styles/light.d.ts +6 -6
- package/es/_internal/selection/styles/light.js +3 -3
- package/es/_mixins/index.d.ts +1 -1
- package/es/_mixins/index.js +1 -1
- package/es/_mixins/use-config.d.ts +6 -3
- package/es/_mixins/use-config.js +5 -1
- package/es/_mixins/use-css-vars-class.d.ts +6 -2
- package/es/_mixins/use-css-vars-class.js +31 -15
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_utils/css/color-to-class.d.ts +1 -0
- package/es/_utils/css/color-to-class.js +3 -0
- package/es/_utils/css/format-length.d.ts +2 -2
- package/es/_utils/css/format-length.js +1 -2
- package/es/_utils/css/index.d.ts +2 -1
- package/es/_utils/css/index.js +2 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -4
- package/es/alert/src/Alert.d.ts +7 -5
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +4 -2
- package/es/auto-complete/src/AutoComplete.js +28 -15
- package/es/avatar/src/Avatar.d.ts +3 -1
- package/es/avatar/src/Avatar.js +70 -35
- package/es/back-top/src/BackTop.d.ts +12 -49
- package/es/back-top/src/BackTop.js +60 -58
- package/es/badge/src/Badge.d.ts +16 -41
- package/es/badge/src/Badge.js +41 -31
- package/es/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/es/breadcrumb/src/Breadcrumb.js +24 -16
- package/es/button/src/Button.d.ts +8 -6
- package/es/button/src/Button.js +20 -21
- package/es/button/styles/index.d.ts +1 -1
- package/es/button/styles/index.js +1 -1
- package/es/button/styles/rtl.d.ts +2 -5
- package/es/button/styles/rtl.js +1 -1
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +3 -1
- package/es/card/src/Card.js +57 -43
- package/es/card/styles/index.d.ts +1 -1
- package/es/card/styles/index.js +1 -1
- package/es/card/styles/rtl.d.ts +2 -5
- package/es/card/styles/rtl.js +1 -1
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +46 -31
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.d.ts +3 -3
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/es/cascader/src/interface.d.ts +1 -0
- package/es/cascader/styles/light.d.ts +3 -3
- package/es/checkbox/src/Checkbox.d.ts +6 -4
- package/es/checkbox/src/Checkbox.js +41 -32
- package/es/checkbox/src/styles/index.cssr.js +17 -17
- package/es/code/src/Code.d.ts +3 -1
- package/es/code/src/Code.js +33 -27
- package/es/collapse/src/Collapse.d.ts +3 -1
- package/es/collapse/src/Collapse.js +24 -16
- package/es/color-picker/src/ColorPicker.d.ts +3 -1
- package/es/color-picker/src/ColorPicker.js +20 -7
- package/es/components.d.ts +1 -0
- package/es/components.js +1 -0
- package/es/config-provider/src/ConfigProvider.d.ts +4 -4
- package/es/config-provider/src/ConfigProvider.js +3 -3
- package/es/config-provider/src/internal-interface.d.ts +3 -1
- package/es/countdown/src/Countdown.d.ts +0 -3
- package/es/countdown/src/Countdown.js +0 -1
- package/es/data-table/src/DataTable.d.ts +77 -75
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +7 -6
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/TableParts/Cell.d.ts +12 -12
- package/es/data-table/src/TableParts/Header.d.ts +6 -6
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- package/es/data-table/styles/light.d.ts +3 -3
- package/es/date-picker/src/DatePicker.d.ts +1 -0
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/month.d.ts +2 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/descriptions/src/Descriptions.d.ts +15 -2
- package/es/descriptions/src/Descriptions.js +45 -28
- package/es/descriptions/src/styles/index.cssr.js +2 -1
- package/es/descriptions/styles/light.d.ts +1 -0
- package/es/descriptions/styles/light.js +2 -2
- package/es/dialog/src/Dialog.d.ts +7 -5
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.d.ts +5 -5
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/dialog/src/DialogProvider.d.ts +2 -2
- package/es/dialog/src/dialogProps.d.ts +2 -2
- package/es/divider/src/Divider.d.ts +3 -1
- package/es/divider/src/Divider.js +20 -11
- package/es/dynamic-input/src/DynamicInput.js +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/es/dynamic-tags/src/DynamicTags.js +17 -10
- package/es/element/src/Element.d.ts +3 -1
- package/es/element/src/Element.js +18 -11
- package/es/empty/src/Empty.d.ts +3 -1
- package/es/empty/src/Empty.js +28 -16
- package/es/form/src/FormItem.d.ts +4 -4
- package/es/form/src/FormItem.js +1 -2
- package/es/form/src/FormItemCol.d.ts +3 -3
- package/es/form/src/FormItemGridItem.d.ts +5 -5
- package/es/form/src/FormItemRow.d.ts +3 -3
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +5 -5
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -6
- package/es/image/src/Image.d.ts +1 -1
- package/es/input/src/Input.d.ts +7 -4
- package/es/input/src/Input.js +96 -84
- package/es/input/src/styles/input.cssr.js +2 -2
- package/es/input-number/src/InputNumber.d.ts +7 -18
- package/es/input-number/src/InputNumber.js +79 -20
- package/es/layout/src/Layout.d.ts +8 -2
- package/es/layout/src/Layout.js +17 -10
- package/es/layout/src/LayoutContent.d.ts +4 -1
- package/es/layout/src/LayoutFooter.d.ts +3 -1
- package/es/layout/src/LayoutFooter.js +28 -19
- package/es/layout/src/LayoutHeader.d.ts +3 -1
- package/es/layout/src/LayoutHeader.js +28 -19
- package/es/layout/src/LayoutSider.d.ts +4 -0
- package/es/layout/src/LayoutSider.js +37 -29
- package/es/locales/common/deDE.js +13 -15
- package/es/locales/common/enGB.d.ts +109 -0
- package/es/locales/common/enGB.js +109 -0
- package/es/locales/common/eo.d.ts +109 -0
- package/es/locales/common/eo.js +109 -0
- package/es/locales/common/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/plPL.d.ts +3 -0
- package/es/locales/common/plPL.js +109 -0
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/enGB.d.ts +3 -0
- package/es/locales/date/enGB.js +6 -0
- package/es/locales/date/eo.d.ts +3 -0
- package/es/locales/date/eo.js +6 -0
- package/es/locales/date/plPL.d.ts +3 -0
- package/es/locales/date/plPL.js +6 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.js +6 -0
- package/es/locales/index.d.ts +8 -0
- package/es/locales/index.js +8 -0
- package/es/log/src/Log.d.ts +4 -1
- package/es/log/src/Log.js +20 -15
- package/es/mention/index.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +4 -2
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +7 -6
- package/es/modal/src/Modal.d.ts +19 -22
- package/es/modal/src/Modal.js +41 -32
- package/es/modal/src/presetProps.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +4 -4
- package/es/notification/src/NotificationEnvironment.d.ts +4 -4
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/notification/src/styles/index.cssr.js +6 -5
- package/es/page-header/src/PageHeader.d.ts +3 -1
- package/es/page-header/src/PageHeader.js +27 -18
- package/es/pagination/src/Pagination.d.ts +46 -34
- package/es/pagination/src/Pagination.js +59 -52
- package/es/pagination/styles/light.d.ts +3 -3
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Circle.d.ts +19 -3
- package/es/progress/src/Circle.js +41 -22
- package/es/progress/src/Progress.d.ts +14 -5
- package/es/progress/src/Progress.js +45 -25
- package/es/progress/src/styles/index.cssr.js +1 -1
- package/es/radio/src/Radio.d.ts +3 -1
- package/es/radio/src/Radio.js +32 -23
- package/es/radio/src/RadioGroup.d.ts +3 -1
- package/es/radio/src/RadioGroup.js +31 -22
- package/es/rate/src/Rate.d.ts +3 -1
- package/es/rate/src/Rate.js +44 -23
- package/es/result/src/Result.d.ts +8 -6
- package/es/result/src/Result.js +36 -19
- package/es/scrollbar/src/ScrollBar.d.ts +12 -1
- package/es/scrollbar/src/ScrollBar.js +4 -0
- package/es/select/src/Select.d.ts +45 -31
- package/es/select/src/Select.js +14 -8
- package/es/select/styles/light.d.ts +3 -3
- package/es/spin/src/Spin.d.ts +3 -1
- package/es/spin/src/Spin.js +31 -21
- package/es/statistic/src/Statistic.d.ts +3 -1
- package/es/statistic/src/Statistic.js +29 -21
- package/es/styles.d.ts +1 -0
- package/es/styles.js +1 -0
- package/es/switch/src/Switch.d.ts +13 -1
- package/es/switch/src/Switch.js +85 -60
- package/es/switch/src/styles/index.cssr.js +21 -8
- package/es/switch/styles/dark.js +2 -2
- package/es/switch/styles/light.d.ts +1 -0
- package/es/switch/styles/light.js +2 -2
- package/es/table/src/Table.d.ts +3 -1
- package/es/table/src/Table.js +40 -29
- package/es/table/src/styles/index.cssr.js +1 -1
- package/es/tabs/src/Tabs.d.ts +25 -23
- package/es/tabs/src/Tabs.js +50 -44
- package/es/tabs/src/styles/index.cssr.js +77 -77
- package/es/tag/src/Tag.d.ts +7 -5
- package/es/tag/src/Tag.js +59 -42
- package/es/tag/src/common-props.d.ts +1 -1
- package/es/tag/src/styles/index.cssr.js +1 -1
- package/es/tag/styles/index.d.ts +1 -1
- package/es/tag/styles/index.js +1 -1
- package/es/tag/styles/rtl.d.ts +2 -5
- package/es/tag/styles/rtl.js +1 -1
- package/es/theme-editor/src/ThemeEditor.js +4 -3
- package/es/themes/dark.js +3 -1
- package/es/themes/light.js +3 -1
- package/es/thing/src/Thing.js +10 -3
- package/es/time-picker/src/TimePicker.d.ts +4 -0
- package/es/timeline/src/TimelineItem.d.ts +4 -4
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +1 -0
- package/es/tree/src/Tree.js +8 -4
- package/es/tree/src/utils.js +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +43 -30
- package/es/tree-select/src/TreeSelect.js +6 -2
- package/es/tree-select/styles/light.d.ts +3 -3
- package/es/typography/src/a.d.ts +3 -1
- package/es/typography/src/a.js +18 -10
- package/es/typography/src/blockquote.d.ts +3 -1
- package/es/typography/src/blockquote.js +21 -12
- package/es/typography/src/create-header.d.ts +7 -5
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +36 -24
- package/es/typography/src/hr.d.ts +3 -1
- package/es/typography/src/hr.js +18 -10
- package/es/typography/src/ol.d.ts +3 -1
- package/es/typography/src/ol.js +23 -14
- package/es/typography/src/p.d.ts +3 -1
- package/es/typography/src/p.js +23 -15
- package/es/typography/src/text.d.ts +3 -1
- package/es/typography/src/text.js +31 -23
- package/es/typography/src/ul.d.ts +3 -1
- package/es/typography/src/ul.js +23 -14
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/upload/src/interface.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/index.d.ts +2 -0
- package/es/watermark/index.js +1 -0
- package/es/watermark/src/Watermark.d.ts +285 -0
- package/es/watermark/src/Watermark.js +159 -0
- package/es/watermark/src/styles/index.cssr.d.ts +2 -0
- package/es/watermark/src/styles/index.cssr.js +14 -0
- package/es/watermark/styles/dark.d.ts +3 -0
- package/es/watermark/styles/dark.js +12 -0
- package/es/watermark/styles/index.d.ts +3 -0
- package/es/watermark/styles/index.js +2 -0
- package/es/watermark/styles/light.d.ts +5 -0
- package/es/watermark/styles/light.js +13 -0
- package/lib/_internal/clear/src/Clear.d.ts +0 -1
- package/lib/_internal/clear/src/Clear.js +0 -2
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/icons/replaceable.js +4 -3
- package/lib/_internal/scrollbar/src/ScrollBar.d.ts +13 -1
- package/lib/_internal/scrollbar/src/ScrollBar.js +34 -15
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +22 -18
- package/lib/_internal/select-menu/src/SelectMenu.js +12 -9
- package/lib/_internal/selection/src/Selection.d.ts +31 -26
- package/lib/_internal/selection/src/Selection.js +78 -67
- package/lib/_internal/selection/styles/dark.js +3 -3
- package/lib/_internal/selection/styles/light.d.ts +6 -6
- package/lib/_internal/selection/styles/light.js +3 -3
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +2 -2
- package/lib/_mixins/use-config.d.ts +6 -3
- package/lib/_mixins/use-config.js +5 -1
- package/lib/_mixins/use-css-vars-class.d.ts +6 -2
- package/lib/_mixins/use-css-vars-class.js +33 -17
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_utils/css/color-to-class.d.ts +1 -0
- package/lib/_utils/css/color-to-class.js +7 -0
- package/lib/_utils/css/format-length.d.ts +2 -2
- package/lib/_utils/css/format-length.js +2 -1
- package/lib/_utils/css/index.d.ts +2 -1
- package/lib/_utils/css/index.js +4 -5
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -4
- package/lib/alert/src/Alert.d.ts +7 -5
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +4 -2
- package/lib/auto-complete/src/AutoComplete.js +27 -14
- package/lib/avatar/src/Avatar.d.ts +3 -1
- package/lib/avatar/src/Avatar.js +68 -33
- package/lib/back-top/src/BackTop.d.ts +12 -49
- package/lib/back-top/src/BackTop.js +57 -55
- package/lib/badge/src/Badge.d.ts +16 -41
- package/lib/badge/src/Badge.js +39 -29
- package/lib/breadcrumb/src/Breadcrumb.d.ts +3 -1
- package/lib/breadcrumb/src/Breadcrumb.js +23 -15
- package/lib/button/src/Button.d.ts +8 -6
- package/lib/button/src/Button.js +18 -19
- package/lib/button/styles/index.d.ts +1 -1
- package/lib/button/styles/index.js +1 -1
- package/lib/button/styles/rtl.d.ts +2 -5
- package/lib/button/styles/rtl.js +2 -1
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +3 -1
- package/lib/card/src/Card.js +55 -41
- package/lib/card/styles/index.d.ts +1 -1
- package/lib/card/styles/index.js +1 -1
- package/lib/card/styles/rtl.d.ts +2 -5
- package/lib/card/styles/rtl.js +2 -1
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +46 -31
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +4 -3
- package/lib/cascader/src/interface.d.ts +1 -0
- package/lib/cascader/styles/light.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.d.ts +6 -4
- package/lib/checkbox/src/Checkbox.js +40 -31
- package/lib/checkbox/src/styles/index.cssr.js +17 -17
- package/lib/code/src/Code.d.ts +3 -1
- package/lib/code/src/Code.js +32 -26
- package/lib/collapse/src/Collapse.d.ts +3 -1
- package/lib/collapse/src/Collapse.js +23 -15
- package/lib/color-picker/src/ColorPicker.d.ts +3 -1
- package/lib/color-picker/src/ColorPicker.js +19 -6
- package/lib/components.d.ts +1 -0
- package/lib/components.js +1 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +4 -4
- package/lib/config-provider/src/ConfigProvider.js +3 -3
- package/lib/config-provider/src/internal-interface.d.ts +3 -1
- package/lib/countdown/src/Countdown.d.ts +0 -3
- package/lib/countdown/src/Countdown.js +0 -1
- package/lib/data-table/src/DataTable.d.ts +77 -75
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +7 -6
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +12 -12
- package/lib/data-table/src/TableParts/Header.d.ts +6 -6
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- package/lib/data-table/styles/light.d.ts +3 -3
- package/lib/date-picker/src/DatePicker.d.ts +1 -0
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/month.d.ts +2 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/descriptions/src/Descriptions.d.ts +15 -2
- package/lib/descriptions/src/Descriptions.js +44 -27
- package/lib/descriptions/src/styles/index.cssr.js +2 -1
- package/lib/descriptions/styles/light.d.ts +1 -0
- package/lib/descriptions/styles/light.js +2 -2
- package/lib/dialog/src/Dialog.d.ts +7 -5
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.d.ts +5 -5
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/dialog/src/DialogProvider.d.ts +2 -2
- package/lib/dialog/src/dialogProps.d.ts +2 -2
- package/lib/divider/src/Divider.d.ts +3 -1
- package/lib/divider/src/Divider.js +19 -10
- package/lib/dynamic-input/src/DynamicInput.js +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +7 -5
- package/lib/dynamic-tags/src/DynamicTags.js +16 -9
- package/lib/element/src/Element.d.ts +3 -1
- package/lib/element/src/Element.js +17 -10
- package/lib/empty/src/Empty.d.ts +3 -1
- package/lib/empty/src/Empty.js +27 -15
- package/lib/form/src/FormItem.d.ts +4 -4
- package/lib/form/src/FormItem.js +1 -2
- package/lib/form/src/FormItemCol.d.ts +3 -3
- package/lib/form/src/FormItemGridItem.d.ts +5 -5
- package/lib/form/src/FormItemRow.d.ts +3 -3
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +5 -5
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -5
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/input/src/Input.d.ts +7 -4
- package/lib/input/src/Input.js +95 -83
- package/lib/input/src/styles/input.cssr.js +2 -2
- package/lib/input-number/src/InputNumber.d.ts +7 -18
- package/lib/input-number/src/InputNumber.js +76 -17
- package/lib/layout/src/Layout.d.ts +8 -2
- package/lib/layout/src/Layout.js +16 -9
- package/lib/layout/src/LayoutContent.d.ts +4 -1
- package/lib/layout/src/LayoutFooter.d.ts +3 -1
- package/lib/layout/src/LayoutFooter.js +27 -18
- package/lib/layout/src/LayoutHeader.d.ts +3 -1
- package/lib/layout/src/LayoutHeader.js +27 -18
- package/lib/layout/src/LayoutSider.d.ts +4 -0
- package/lib/layout/src/LayoutSider.js +36 -28
- package/lib/locales/common/deDE.js +13 -15
- package/lib/locales/common/enGB.d.ts +109 -0
- package/lib/locales/common/enGB.js +111 -0
- package/lib/locales/common/eo.d.ts +109 -0
- package/lib/locales/common/eo.js +111 -0
- package/lib/locales/common/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/plPL.d.ts +3 -0
- package/lib/locales/common/plPL.js +111 -0
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/enGB.d.ts +3 -0
- package/lib/locales/date/enGB.js +11 -0
- package/lib/locales/date/eo.d.ts +3 -0
- package/lib/locales/date/eo.js +11 -0
- package/lib/locales/date/plPL.d.ts +3 -0
- package/lib/locales/date/plPL.js +11 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.js +11 -0
- package/lib/locales/index.d.ts +8 -0
- package/lib/locales/index.js +17 -1
- package/lib/log/src/Log.d.ts +4 -1
- package/lib/log/src/Log.js +19 -14
- package/lib/mention/index.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +4 -2
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +7 -6
- package/lib/modal/src/Modal.d.ts +19 -22
- package/lib/modal/src/Modal.js +40 -31
- package/lib/modal/src/presetProps.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +4 -4
- package/lib/notification/src/NotificationEnvironment.d.ts +4 -4
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/notification/src/styles/index.cssr.js +6 -5
- package/lib/page-header/src/PageHeader.d.ts +3 -1
- package/lib/page-header/src/PageHeader.js +26 -17
- package/lib/pagination/src/Pagination.d.ts +46 -34
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/pagination/styles/light.d.ts +3 -3
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Circle.d.ts +19 -3
- package/lib/progress/src/Circle.js +40 -21
- package/lib/progress/src/Progress.d.ts +14 -5
- package/lib/progress/src/Progress.js +44 -24
- package/lib/progress/src/styles/index.cssr.js +1 -1
- package/lib/radio/src/Radio.d.ts +3 -1
- package/lib/radio/src/Radio.js +31 -22
- package/lib/radio/src/RadioGroup.d.ts +3 -1
- package/lib/radio/src/RadioGroup.js +30 -21
- package/lib/rate/src/Rate.d.ts +3 -1
- package/lib/rate/src/Rate.js +42 -21
- package/lib/result/src/Result.d.ts +8 -6
- package/lib/result/src/Result.js +35 -18
- package/lib/scrollbar/src/ScrollBar.d.ts +12 -1
- package/lib/scrollbar/src/ScrollBar.js +4 -0
- package/lib/select/src/Select.d.ts +45 -31
- package/lib/select/src/Select.js +14 -8
- package/lib/select/styles/light.d.ts +3 -3
- package/lib/spin/src/Spin.d.ts +3 -1
- package/lib/spin/src/Spin.js +30 -20
- package/lib/statistic/src/Statistic.d.ts +3 -1
- package/lib/statistic/src/Statistic.js +28 -20
- package/lib/styles.d.ts +1 -0
- package/lib/styles.js +9 -7
- package/lib/switch/src/Switch.d.ts +13 -1
- package/lib/switch/src/Switch.js +81 -56
- package/lib/switch/src/styles/index.cssr.js +21 -8
- package/lib/switch/styles/dark.js +2 -2
- package/lib/switch/styles/light.d.ts +1 -0
- package/lib/switch/styles/light.js +2 -2
- package/lib/table/src/Table.d.ts +3 -1
- package/lib/table/src/Table.js +39 -28
- package/lib/table/src/styles/index.cssr.js +1 -1
- package/lib/tabs/src/Tabs.d.ts +25 -23
- package/lib/tabs/src/Tabs.js +48 -42
- package/lib/tabs/src/styles/index.cssr.js +77 -77
- package/lib/tag/src/Tag.d.ts +7 -5
- package/lib/tag/src/Tag.js +57 -40
- package/lib/tag/src/common-props.d.ts +1 -1
- package/lib/tag/src/styles/index.cssr.js +1 -1
- package/lib/tag/styles/index.d.ts +1 -1
- package/lib/tag/styles/index.js +1 -1
- package/lib/tag/styles/rtl.d.ts +2 -5
- package/lib/tag/styles/rtl.js +2 -1
- package/lib/theme-editor/src/ThemeEditor.js +2 -1
- package/lib/themes/dark.js +3 -1
- package/lib/themes/light.js +3 -1
- package/lib/thing/src/Thing.js +9 -2
- package/lib/time-picker/src/TimePicker.d.ts +4 -0
- package/lib/timeline/src/TimelineItem.d.ts +4 -4
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +1 -0
- package/lib/tree/src/Tree.js +8 -4
- package/lib/tree/src/utils.js +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +43 -30
- package/lib/tree-select/src/TreeSelect.js +6 -2
- package/lib/tree-select/styles/light.d.ts +3 -3
- package/lib/typography/src/a.d.ts +3 -1
- package/lib/typography/src/a.js +17 -9
- package/lib/typography/src/blockquote.d.ts +3 -1
- package/lib/typography/src/blockquote.js +20 -11
- package/lib/typography/src/create-header.d.ts +7 -5
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +36 -24
- package/lib/typography/src/hr.d.ts +3 -1
- package/lib/typography/src/hr.js +17 -9
- package/lib/typography/src/ol.d.ts +3 -1
- package/lib/typography/src/ol.js +22 -13
- package/lib/typography/src/p.d.ts +3 -1
- package/lib/typography/src/p.js +22 -14
- package/lib/typography/src/text.d.ts +3 -1
- package/lib/typography/src/text.js +30 -22
- package/lib/typography/src/ul.d.ts +3 -1
- package/lib/typography/src/ul.js +22 -13
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/upload/src/interface.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/index.d.ts +2 -0
- package/lib/watermark/index.js +8 -0
- package/lib/watermark/src/Watermark.d.ts +285 -0
- package/lib/watermark/src/Watermark.js +164 -0
- package/lib/watermark/src/styles/index.cssr.d.ts +2 -0
- package/lib/watermark/src/styles/index.cssr.js +21 -0
- package/lib/watermark/styles/dark.d.ts +3 -0
- package/lib/watermark/styles/dark.js +14 -0
- package/lib/watermark/styles/index.d.ts +3 -0
- package/lib/watermark/styles/index.js +10 -0
- package/lib/watermark/styles/light.d.ts +5 -0
- package/lib/watermark/styles/light.js +15 -0
- package/package.json +9 -10
- package/volar.d.ts +1 -0
- package/web-types.json +279 -29
package/es/rate/src/Rate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h, toRef, ref, computed, defineComponent, renderList } from 'vue';
|
|
2
2
|
import { useMergedState } from 'vooks';
|
|
3
3
|
import { NBaseIcon } from '../../_internal';
|
|
4
|
-
import { useTheme, useFormItem, useConfig } from '../../_mixins';
|
|
5
|
-
import { call, createKey } from '../../_utils';
|
|
4
|
+
import { useTheme, useFormItem, useConfig, useThemeClass } from '../../_mixins';
|
|
5
|
+
import { call, color2Class, createKey } from '../../_utils';
|
|
6
6
|
import { rateLight } from '../styles';
|
|
7
7
|
import style from './styles/index.cssr';
|
|
8
8
|
import StarIcon from './StarIcon';
|
|
@@ -20,7 +20,7 @@ export default defineComponent({
|
|
|
20
20
|
name: 'Rate',
|
|
21
21
|
props: rateProps,
|
|
22
22
|
setup(props) {
|
|
23
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
23
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
24
24
|
const themeRef = useTheme('Rate', '-rate', style, rateLight, props, mergedClsPrefixRef);
|
|
25
25
|
const controlledValueRef = toRef(props, 'value');
|
|
26
26
|
const uncontrolledValueRef = ref(props.defaultValue);
|
|
@@ -62,6 +62,40 @@ export default defineComponent({
|
|
|
62
62
|
function handleClick(index, e) {
|
|
63
63
|
doUpdateValue(getDerivedValue(index, e));
|
|
64
64
|
}
|
|
65
|
+
const mergedSizeRef = computed(() => {
|
|
66
|
+
const { size } = props;
|
|
67
|
+
const { self } = themeRef.value;
|
|
68
|
+
if (typeof size === 'number') {
|
|
69
|
+
return `${size}px`;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return self[createKey('size', size)];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
const cssVarsRef = computed(() => {
|
|
76
|
+
const { common: { cubicBezierEaseInOut }, self } = themeRef.value;
|
|
77
|
+
const { itemColor, itemColorActive } = self;
|
|
78
|
+
return {
|
|
79
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
80
|
+
'--n-item-color': itemColor,
|
|
81
|
+
'--n-item-color-active': props.color || itemColorActive,
|
|
82
|
+
'--n-item-size': mergedSizeRef.value
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
const themeClassHandle = inlineThemeDisabled
|
|
86
|
+
? useThemeClass('rate', computed(() => {
|
|
87
|
+
const size = mergedSizeRef.value;
|
|
88
|
+
const { color } = props;
|
|
89
|
+
let hash = '';
|
|
90
|
+
if (size) {
|
|
91
|
+
hash += size[0];
|
|
92
|
+
}
|
|
93
|
+
if (color) {
|
|
94
|
+
hash += color2Class(color);
|
|
95
|
+
}
|
|
96
|
+
return hash;
|
|
97
|
+
}), cssVarsRef, props)
|
|
98
|
+
: undefined;
|
|
65
99
|
return {
|
|
66
100
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
67
101
|
mergedValue: useMergedState(controlledValueRef, uncontrolledValueRef),
|
|
@@ -69,33 +103,20 @@ export default defineComponent({
|
|
|
69
103
|
handleMouseMove,
|
|
70
104
|
handleClick,
|
|
71
105
|
handleMouseLeave,
|
|
72
|
-
cssVars:
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
const { itemColor, itemColorActive } = self;
|
|
76
|
-
let mergedSize;
|
|
77
|
-
if (typeof size === 'number') {
|
|
78
|
-
mergedSize = `${size}px`;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
mergedSize = self[createKey('size', size)];
|
|
82
|
-
}
|
|
83
|
-
return {
|
|
84
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
85
|
-
'--n-item-color': itemColor,
|
|
86
|
-
'--n-item-color-active': props.color || itemColorActive,
|
|
87
|
-
'--n-item-size': mergedSize
|
|
88
|
-
};
|
|
89
|
-
})
|
|
106
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
107
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
108
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
90
109
|
};
|
|
91
110
|
},
|
|
92
111
|
render() {
|
|
93
|
-
const { readonly, hoverIndex, mergedValue, mergedClsPrefix, $slots: { default: defaultSlot } } = this;
|
|
112
|
+
const { readonly, hoverIndex, mergedValue, mergedClsPrefix, onRender, $slots: { default: defaultSlot } } = this;
|
|
113
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
94
114
|
return (h("div", { class: [
|
|
95
115
|
`${mergedClsPrefix}-rate`,
|
|
96
116
|
{
|
|
97
117
|
[`${mergedClsPrefix}-rate--readonly`]: readonly
|
|
98
|
-
}
|
|
118
|
+
},
|
|
119
|
+
this.themeClass
|
|
99
120
|
], style: this.cssVars, onMouseleave: this.handleMouseLeave }, renderList(this.count, (_, index) => {
|
|
100
121
|
const icon = defaultSlot ? (defaultSlot()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => StarIcon }));
|
|
101
122
|
const fullStarActive = hoverIndex !== null
|
|
@@ -6,7 +6,7 @@ declare const resultProps: {
|
|
|
6
6
|
default: string;
|
|
7
7
|
};
|
|
8
8
|
status: {
|
|
9
|
-
type: PropType<"500" | "
|
|
9
|
+
type: PropType<"500" | "error" | "info" | "success" | "warning" | "404" | "403" | "418">;
|
|
10
10
|
default: string;
|
|
11
11
|
};
|
|
12
12
|
title: StringConstructor;
|
|
@@ -97,7 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
default: string;
|
|
98
98
|
};
|
|
99
99
|
status: {
|
|
100
|
-
type: PropType<"500" | "
|
|
100
|
+
type: PropType<"500" | "error" | "info" | "success" | "warning" | "404" | "403" | "418">;
|
|
101
101
|
default: string;
|
|
102
102
|
};
|
|
103
103
|
title: StringConstructor;
|
|
@@ -191,15 +191,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
191
191
|
'--n-title-font-size': string;
|
|
192
192
|
'--n-title-font-weight': string;
|
|
193
193
|
'--n-title-text-color': string;
|
|
194
|
-
'--n-icon-color': string
|
|
195
|
-
}
|
|
194
|
+
'--n-icon-color': string;
|
|
195
|
+
}> | undefined;
|
|
196
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
197
|
+
onRender: (() => void) | undefined;
|
|
196
198
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
197
199
|
size: {
|
|
198
200
|
type: PropType<"small" | "medium" | "large" | "huge">;
|
|
199
201
|
default: string;
|
|
200
202
|
};
|
|
201
203
|
status: {
|
|
202
|
-
type: PropType<"500" | "
|
|
204
|
+
type: PropType<"500" | "error" | "info" | "success" | "warning" | "404" | "403" | "418">;
|
|
203
205
|
default: string;
|
|
204
206
|
};
|
|
205
207
|
title: StringConstructor;
|
|
@@ -284,6 +286,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
284
286
|
}, any>>>;
|
|
285
287
|
}>>, {
|
|
286
288
|
size: "small" | "medium" | "large" | "huge";
|
|
287
|
-
status: "500" | "
|
|
289
|
+
status: "500" | "error" | "info" | "success" | "warning" | "404" | "403" | "418";
|
|
288
290
|
}>;
|
|
289
291
|
export default _default;
|
package/es/result/src/Result.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, defineComponent, computed } from 'vue';
|
|
2
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { createKey } from '../../_utils';
|
|
4
4
|
import { InfoIcon, SuccessIcon, WarningIcon, ErrorIcon } from '../../_internal/icons';
|
|
5
5
|
import { NBaseIcon } from '../../_internal';
|
|
@@ -30,31 +30,48 @@ export default defineComponent({
|
|
|
30
30
|
name: 'Result',
|
|
31
31
|
props: resultProps,
|
|
32
32
|
setup(props) {
|
|
33
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
33
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
34
34
|
const themeRef = useTheme('Result', '-result', style, resultLight, props, mergedClsPrefixRef);
|
|
35
|
+
const cssVarsRef = computed(() => {
|
|
36
|
+
const { size, status } = props;
|
|
37
|
+
const { common: { cubicBezierEaseInOut }, self: { textColor, lineHeight, titleTextColor, titleFontWeight, [createKey('iconColor', status)]: iconColor, [createKey('fontSize', size)]: fontSize, [createKey('titleFontSize', size)]: titleFontSize, [createKey('iconSize', size)]: iconSize } } = themeRef.value;
|
|
38
|
+
return {
|
|
39
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
40
|
+
'--n-font-size': fontSize,
|
|
41
|
+
'--n-icon-size': iconSize,
|
|
42
|
+
'--n-line-height': lineHeight,
|
|
43
|
+
'--n-text-color': textColor,
|
|
44
|
+
'--n-title-font-size': titleFontSize,
|
|
45
|
+
'--n-title-font-weight': titleFontWeight,
|
|
46
|
+
'--n-title-text-color': titleTextColor,
|
|
47
|
+
'--n-icon-color': iconColor || ''
|
|
48
|
+
};
|
|
49
|
+
});
|
|
50
|
+
const themeClassHandle = inlineThemeDisabled
|
|
51
|
+
? useThemeClass('result', computed(() => {
|
|
52
|
+
const { size, status } = props;
|
|
53
|
+
let hash = '';
|
|
54
|
+
if (size) {
|
|
55
|
+
hash += size[0];
|
|
56
|
+
}
|
|
57
|
+
if (status) {
|
|
58
|
+
hash += status[0];
|
|
59
|
+
}
|
|
60
|
+
return hash;
|
|
61
|
+
}), cssVarsRef, props)
|
|
62
|
+
: undefined;
|
|
35
63
|
return {
|
|
36
64
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
37
|
-
cssVars:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return {
|
|
41
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
42
|
-
'--n-font-size': fontSize,
|
|
43
|
-
'--n-icon-size': iconSize,
|
|
44
|
-
'--n-line-height': lineHeight,
|
|
45
|
-
'--n-text-color': textColor,
|
|
46
|
-
'--n-title-font-size': titleFontSize,
|
|
47
|
-
'--n-title-font-weight': titleFontWeight,
|
|
48
|
-
'--n-title-text-color': titleTextColor,
|
|
49
|
-
'--n-icon-color': iconColor
|
|
50
|
-
};
|
|
51
|
-
})
|
|
65
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
66
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
67
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
52
68
|
};
|
|
53
69
|
},
|
|
54
70
|
render() {
|
|
55
71
|
var _a;
|
|
56
|
-
const { status, $slots, mergedClsPrefix } = this;
|
|
57
|
-
|
|
72
|
+
const { status, $slots, mergedClsPrefix, onRender } = this;
|
|
73
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
74
|
+
return (h("div", { class: [`${mergedClsPrefix}-result`, this.themeClass], style: this.cssVars },
|
|
58
75
|
h("div", { class: `${mergedClsPrefix}-result-icon` }, ((_a = $slots.icon) === null || _a === void 0 ? void 0 : _a.call($slots)) || (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => iconMap[status] }))),
|
|
59
76
|
h("div", { class: `${mergedClsPrefix}-result-header` },
|
|
60
77
|
this.title ? (h("div", { class: `${mergedClsPrefix}-result-header__title` }, this.title)) : null,
|
|
@@ -8,8 +8,10 @@ export interface ScrollTo {
|
|
|
8
8
|
behavior?: ScrollBehavior;
|
|
9
9
|
}): void;
|
|
10
10
|
}
|
|
11
|
+
export declare type ScrollBy = ScrollTo;
|
|
11
12
|
export interface ScrollbarInst {
|
|
12
13
|
scrollTo: ScrollTo;
|
|
14
|
+
scrollBy: ScrollBy;
|
|
13
15
|
}
|
|
14
16
|
declare const scrollbarProps: {
|
|
15
17
|
readonly xScrollable: BooleanConstructor;
|
|
@@ -45,9 +47,18 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
45
47
|
}, any>>>;
|
|
46
48
|
}, {
|
|
47
49
|
scrollbarInstRef: import("vue").Ref<{
|
|
48
|
-
|
|
50
|
+
containerRef: HTMLElement | null;
|
|
51
|
+
contentRef: HTMLElement | null;
|
|
52
|
+
containerScrollTop: number;
|
|
53
|
+
syncUnifiedContainer: () => void;
|
|
54
|
+
scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
55
|
+
scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
56
|
+
sync: () => void;
|
|
57
|
+
handleMouseEnterWrapper: () => void;
|
|
58
|
+
handleMouseLeaveWrapper: () => void;
|
|
49
59
|
} | null>;
|
|
50
60
|
scrollTo: ScrollTo;
|
|
61
|
+
scrollBy: ScrollBy;
|
|
51
62
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
63
|
readonly xScrollable: BooleanConstructor;
|
|
53
64
|
readonly onScroll: PropType<(e: Event) => void>;
|
|
@@ -11,6 +11,10 @@ const Scrollbar = defineComponent({
|
|
|
11
11
|
scrollTo: (...args) => {
|
|
12
12
|
var _a;
|
|
13
13
|
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(args[0], args[1]);
|
|
14
|
+
},
|
|
15
|
+
scrollBy: (...args) => {
|
|
16
|
+
var _a;
|
|
17
|
+
(_a = scrollbarInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollBy(args[0], args[1]);
|
|
14
18
|
}
|
|
15
19
|
};
|
|
16
20
|
return Object.assign(Object.assign({}, exposedMethods), { scrollbarInstRef });
|
|
@@ -16,6 +16,10 @@ declare const selectProps: {
|
|
|
16
16
|
readonly default: undefined;
|
|
17
17
|
};
|
|
18
18
|
readonly clearable: BooleanConstructor;
|
|
19
|
+
readonly clearFilterAfterSelect: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: true;
|
|
22
|
+
};
|
|
19
23
|
readonly options: {
|
|
20
24
|
readonly type: PropType<SelectMixedOption[]>;
|
|
21
25
|
readonly default: () => never[];
|
|
@@ -128,7 +132,7 @@ declare const selectProps: {
|
|
|
128
132
|
borderHover: string;
|
|
129
133
|
borderActive: string;
|
|
130
134
|
borderFocus: string;
|
|
131
|
-
boxShadowHover:
|
|
135
|
+
boxShadowHover: string;
|
|
132
136
|
boxShadowActive: string;
|
|
133
137
|
boxShadowFocus: string;
|
|
134
138
|
caretColor: string;
|
|
@@ -139,7 +143,7 @@ declare const selectProps: {
|
|
|
139
143
|
borderHoverWarning: string;
|
|
140
144
|
borderActiveWarning: string;
|
|
141
145
|
borderFocusWarning: string;
|
|
142
|
-
boxShadowHoverWarning:
|
|
146
|
+
boxShadowHoverWarning: string;
|
|
143
147
|
boxShadowActiveWarning: string;
|
|
144
148
|
boxShadowFocusWarning: string;
|
|
145
149
|
colorActiveWarning: string;
|
|
@@ -148,7 +152,7 @@ declare const selectProps: {
|
|
|
148
152
|
borderHoverError: string;
|
|
149
153
|
borderActiveError: string;
|
|
150
154
|
borderFocusError: string;
|
|
151
|
-
boxShadowHoverError:
|
|
155
|
+
boxShadowHoverError: string;
|
|
152
156
|
boxShadowActiveError: string;
|
|
153
157
|
boxShadowFocusError: string;
|
|
154
158
|
colorActiveError: string;
|
|
@@ -253,7 +257,7 @@ declare const selectProps: {
|
|
|
253
257
|
borderHover: string;
|
|
254
258
|
borderActive: string;
|
|
255
259
|
borderFocus: string;
|
|
256
|
-
boxShadowHover:
|
|
260
|
+
boxShadowHover: string;
|
|
257
261
|
boxShadowActive: string;
|
|
258
262
|
boxShadowFocus: string;
|
|
259
263
|
caretColor: string;
|
|
@@ -264,7 +268,7 @@ declare const selectProps: {
|
|
|
264
268
|
borderHoverWarning: string;
|
|
265
269
|
borderActiveWarning: string;
|
|
266
270
|
borderFocusWarning: string;
|
|
267
|
-
boxShadowHoverWarning:
|
|
271
|
+
boxShadowHoverWarning: string;
|
|
268
272
|
boxShadowActiveWarning: string;
|
|
269
273
|
boxShadowFocusWarning: string;
|
|
270
274
|
colorActiveWarning: string;
|
|
@@ -273,7 +277,7 @@ declare const selectProps: {
|
|
|
273
277
|
borderHoverError: string;
|
|
274
278
|
borderActiveError: string;
|
|
275
279
|
borderFocusError: string;
|
|
276
|
-
boxShadowHoverError:
|
|
280
|
+
boxShadowHoverError: string;
|
|
277
281
|
boxShadowActiveError: string;
|
|
278
282
|
boxShadowFocusError: string;
|
|
279
283
|
colorActiveError: string;
|
|
@@ -378,7 +382,7 @@ declare const selectProps: {
|
|
|
378
382
|
borderHover: string;
|
|
379
383
|
borderActive: string;
|
|
380
384
|
borderFocus: string;
|
|
381
|
-
boxShadowHover:
|
|
385
|
+
boxShadowHover: string;
|
|
382
386
|
boxShadowActive: string;
|
|
383
387
|
boxShadowFocus: string;
|
|
384
388
|
caretColor: string;
|
|
@@ -389,7 +393,7 @@ declare const selectProps: {
|
|
|
389
393
|
borderHoverWarning: string;
|
|
390
394
|
borderActiveWarning: string;
|
|
391
395
|
borderFocusWarning: string;
|
|
392
|
-
boxShadowHoverWarning:
|
|
396
|
+
boxShadowHoverWarning: string;
|
|
393
397
|
boxShadowActiveWarning: string;
|
|
394
398
|
boxShadowFocusWarning: string;
|
|
395
399
|
colorActiveWarning: string;
|
|
@@ -398,7 +402,7 @@ declare const selectProps: {
|
|
|
398
402
|
borderHoverError: string;
|
|
399
403
|
borderActiveError: string;
|
|
400
404
|
borderFocusError: string;
|
|
401
|
-
boxShadowHoverError:
|
|
405
|
+
boxShadowHoverError: string;
|
|
402
406
|
boxShadowActiveError: string;
|
|
403
407
|
boxShadowFocusError: string;
|
|
404
408
|
colorActiveError: string;
|
|
@@ -491,6 +495,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
491
495
|
readonly default: undefined;
|
|
492
496
|
};
|
|
493
497
|
readonly clearable: BooleanConstructor;
|
|
498
|
+
readonly clearFilterAfterSelect: {
|
|
499
|
+
readonly type: BooleanConstructor;
|
|
500
|
+
readonly default: true;
|
|
501
|
+
};
|
|
494
502
|
readonly options: {
|
|
495
503
|
readonly type: PropType<SelectMixedOption[]>;
|
|
496
504
|
readonly default: () => never[];
|
|
@@ -603,7 +611,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
603
611
|
borderHover: string;
|
|
604
612
|
borderActive: string;
|
|
605
613
|
borderFocus: string;
|
|
606
|
-
boxShadowHover:
|
|
614
|
+
boxShadowHover: string;
|
|
607
615
|
boxShadowActive: string;
|
|
608
616
|
boxShadowFocus: string;
|
|
609
617
|
caretColor: string;
|
|
@@ -614,7 +622,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
614
622
|
borderHoverWarning: string;
|
|
615
623
|
borderActiveWarning: string;
|
|
616
624
|
borderFocusWarning: string;
|
|
617
|
-
boxShadowHoverWarning:
|
|
625
|
+
boxShadowHoverWarning: string;
|
|
618
626
|
boxShadowActiveWarning: string;
|
|
619
627
|
boxShadowFocusWarning: string;
|
|
620
628
|
colorActiveWarning: string;
|
|
@@ -623,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
623
631
|
borderHoverError: string;
|
|
624
632
|
borderActiveError: string;
|
|
625
633
|
borderFocusError: string;
|
|
626
|
-
boxShadowHoverError:
|
|
634
|
+
boxShadowHoverError: string;
|
|
627
635
|
boxShadowActiveError: string;
|
|
628
636
|
boxShadowFocusError: string;
|
|
629
637
|
colorActiveError: string;
|
|
@@ -728,7 +736,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
728
736
|
borderHover: string;
|
|
729
737
|
borderActive: string;
|
|
730
738
|
borderFocus: string;
|
|
731
|
-
boxShadowHover:
|
|
739
|
+
boxShadowHover: string;
|
|
732
740
|
boxShadowActive: string;
|
|
733
741
|
boxShadowFocus: string;
|
|
734
742
|
caretColor: string;
|
|
@@ -739,7 +747,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
739
747
|
borderHoverWarning: string;
|
|
740
748
|
borderActiveWarning: string;
|
|
741
749
|
borderFocusWarning: string;
|
|
742
|
-
boxShadowHoverWarning:
|
|
750
|
+
boxShadowHoverWarning: string;
|
|
743
751
|
boxShadowActiveWarning: string;
|
|
744
752
|
boxShadowFocusWarning: string;
|
|
745
753
|
colorActiveWarning: string;
|
|
@@ -748,7 +756,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
748
756
|
borderHoverError: string;
|
|
749
757
|
borderActiveError: string;
|
|
750
758
|
borderFocusError: string;
|
|
751
|
-
boxShadowHoverError:
|
|
759
|
+
boxShadowHoverError: string;
|
|
752
760
|
boxShadowActiveError: string;
|
|
753
761
|
boxShadowFocusError: string;
|
|
754
762
|
colorActiveError: string;
|
|
@@ -853,7 +861,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
853
861
|
borderHover: string;
|
|
854
862
|
borderActive: string;
|
|
855
863
|
borderFocus: string;
|
|
856
|
-
boxShadowHover:
|
|
864
|
+
boxShadowHover: string;
|
|
857
865
|
boxShadowActive: string;
|
|
858
866
|
boxShadowFocus: string;
|
|
859
867
|
caretColor: string;
|
|
@@ -864,7 +872,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
864
872
|
borderHoverWarning: string;
|
|
865
873
|
borderActiveWarning: string;
|
|
866
874
|
borderFocusWarning: string;
|
|
867
|
-
boxShadowHoverWarning:
|
|
875
|
+
boxShadowHoverWarning: string;
|
|
868
876
|
boxShadowActiveWarning: string;
|
|
869
877
|
boxShadowFocusWarning: string;
|
|
870
878
|
colorActiveWarning: string;
|
|
@@ -873,7 +881,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
873
881
|
borderHoverError: string;
|
|
874
882
|
borderActiveError: string;
|
|
875
883
|
borderFocusError: string;
|
|
876
|
-
boxShadowHoverError:
|
|
884
|
+
boxShadowHoverError: string;
|
|
877
885
|
boxShadowActiveError: string;
|
|
878
886
|
boxShadowFocusError: string;
|
|
879
887
|
colorActiveError: string;
|
|
@@ -990,6 +998,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
990
998
|
mergedDisabled: import("vue").ComputedRef<boolean>;
|
|
991
999
|
focused: import("vue").Ref<boolean>;
|
|
992
1000
|
activeWithoutMenuOpen: import("vue").Ref<boolean>;
|
|
1001
|
+
inlineThemeDisabled: boolean | undefined;
|
|
993
1002
|
onTriggerInputFocus: () => void;
|
|
994
1003
|
onTriggerInputBlur: () => void;
|
|
995
1004
|
handleMenuFocus: (e: FocusEvent) => void;
|
|
@@ -1138,7 +1147,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1138
1147
|
borderHover: string;
|
|
1139
1148
|
borderActive: string;
|
|
1140
1149
|
borderFocus: string;
|
|
1141
|
-
boxShadowHover:
|
|
1150
|
+
boxShadowHover: string;
|
|
1142
1151
|
boxShadowActive: string;
|
|
1143
1152
|
boxShadowFocus: string;
|
|
1144
1153
|
caretColor: string;
|
|
@@ -1149,7 +1158,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1149
1158
|
borderHoverWarning: string;
|
|
1150
1159
|
borderActiveWarning: string;
|
|
1151
1160
|
borderFocusWarning: string;
|
|
1152
|
-
boxShadowHoverWarning:
|
|
1161
|
+
boxShadowHoverWarning: string;
|
|
1153
1162
|
boxShadowActiveWarning: string;
|
|
1154
1163
|
boxShadowFocusWarning: string;
|
|
1155
1164
|
colorActiveWarning: string;
|
|
@@ -1158,7 +1167,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1158
1167
|
borderHoverError: string;
|
|
1159
1168
|
borderActiveError: string;
|
|
1160
1169
|
borderFocusError: string;
|
|
1161
|
-
boxShadowHoverError:
|
|
1170
|
+
boxShadowHoverError: string;
|
|
1162
1171
|
boxShadowActiveError: string;
|
|
1163
1172
|
boxShadowFocusError: string;
|
|
1164
1173
|
colorActiveError: string;
|
|
@@ -1296,6 +1305,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1296
1305
|
readonly default: undefined;
|
|
1297
1306
|
};
|
|
1298
1307
|
readonly clearable: BooleanConstructor;
|
|
1308
|
+
readonly clearFilterAfterSelect: {
|
|
1309
|
+
readonly type: BooleanConstructor;
|
|
1310
|
+
readonly default: true;
|
|
1311
|
+
};
|
|
1299
1312
|
readonly options: {
|
|
1300
1313
|
readonly type: PropType<SelectMixedOption[]>;
|
|
1301
1314
|
readonly default: () => never[];
|
|
@@ -1408,7 +1421,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1408
1421
|
borderHover: string;
|
|
1409
1422
|
borderActive: string;
|
|
1410
1423
|
borderFocus: string;
|
|
1411
|
-
boxShadowHover:
|
|
1424
|
+
boxShadowHover: string;
|
|
1412
1425
|
boxShadowActive: string;
|
|
1413
1426
|
boxShadowFocus: string;
|
|
1414
1427
|
caretColor: string;
|
|
@@ -1419,7 +1432,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1419
1432
|
borderHoverWarning: string;
|
|
1420
1433
|
borderActiveWarning: string;
|
|
1421
1434
|
borderFocusWarning: string;
|
|
1422
|
-
boxShadowHoverWarning:
|
|
1435
|
+
boxShadowHoverWarning: string;
|
|
1423
1436
|
boxShadowActiveWarning: string;
|
|
1424
1437
|
boxShadowFocusWarning: string;
|
|
1425
1438
|
colorActiveWarning: string;
|
|
@@ -1428,7 +1441,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1428
1441
|
borderHoverError: string;
|
|
1429
1442
|
borderActiveError: string;
|
|
1430
1443
|
borderFocusError: string;
|
|
1431
|
-
boxShadowHoverError:
|
|
1444
|
+
boxShadowHoverError: string;
|
|
1432
1445
|
boxShadowActiveError: string;
|
|
1433
1446
|
boxShadowFocusError: string;
|
|
1434
1447
|
colorActiveError: string;
|
|
@@ -1533,7 +1546,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1533
1546
|
borderHover: string;
|
|
1534
1547
|
borderActive: string;
|
|
1535
1548
|
borderFocus: string;
|
|
1536
|
-
boxShadowHover:
|
|
1549
|
+
boxShadowHover: string;
|
|
1537
1550
|
boxShadowActive: string;
|
|
1538
1551
|
boxShadowFocus: string;
|
|
1539
1552
|
caretColor: string;
|
|
@@ -1544,7 +1557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1544
1557
|
borderHoverWarning: string;
|
|
1545
1558
|
borderActiveWarning: string;
|
|
1546
1559
|
borderFocusWarning: string;
|
|
1547
|
-
boxShadowHoverWarning:
|
|
1560
|
+
boxShadowHoverWarning: string;
|
|
1548
1561
|
boxShadowActiveWarning: string;
|
|
1549
1562
|
boxShadowFocusWarning: string;
|
|
1550
1563
|
colorActiveWarning: string;
|
|
@@ -1553,7 +1566,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1553
1566
|
borderHoverError: string;
|
|
1554
1567
|
borderActiveError: string;
|
|
1555
1568
|
borderFocusError: string;
|
|
1556
|
-
boxShadowHoverError:
|
|
1569
|
+
boxShadowHoverError: string;
|
|
1557
1570
|
boxShadowActiveError: string;
|
|
1558
1571
|
boxShadowFocusError: string;
|
|
1559
1572
|
colorActiveError: string;
|
|
@@ -1658,7 +1671,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1658
1671
|
borderHover: string;
|
|
1659
1672
|
borderActive: string;
|
|
1660
1673
|
borderFocus: string;
|
|
1661
|
-
boxShadowHover:
|
|
1674
|
+
boxShadowHover: string;
|
|
1662
1675
|
boxShadowActive: string;
|
|
1663
1676
|
boxShadowFocus: string;
|
|
1664
1677
|
caretColor: string;
|
|
@@ -1669,7 +1682,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1669
1682
|
borderHoverWarning: string;
|
|
1670
1683
|
borderActiveWarning: string;
|
|
1671
1684
|
borderFocusWarning: string;
|
|
1672
|
-
boxShadowHoverWarning:
|
|
1685
|
+
boxShadowHoverWarning: string;
|
|
1673
1686
|
boxShadowActiveWarning: string;
|
|
1674
1687
|
boxShadowFocusWarning: string;
|
|
1675
1688
|
colorActiveWarning: string;
|
|
@@ -1678,7 +1691,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1678
1691
|
borderHoverError: string;
|
|
1679
1692
|
borderActiveError: string;
|
|
1680
1693
|
borderFocusError: string;
|
|
1681
|
-
boxShadowHoverError:
|
|
1694
|
+
boxShadowHoverError: string;
|
|
1682
1695
|
boxShadowActiveError: string;
|
|
1683
1696
|
boxShadowFocusError: string;
|
|
1684
1697
|
colorActiveError: string;
|
|
@@ -1767,8 +1780,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1767
1780
|
disabled: boolean | undefined;
|
|
1768
1781
|
to: string | boolean | HTMLElement;
|
|
1769
1782
|
options: SelectMixedOption[];
|
|
1770
|
-
bordered: boolean | undefined;
|
|
1771
1783
|
loading: boolean;
|
|
1784
|
+
bordered: boolean | undefined;
|
|
1772
1785
|
placement: FollowerPlacement;
|
|
1773
1786
|
virtualScroll: boolean;
|
|
1774
1787
|
resetMenuOnOptionsChange: boolean;
|
|
@@ -1776,6 +1789,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1776
1789
|
displayDirective: "show" | "if";
|
|
1777
1790
|
filterable: boolean;
|
|
1778
1791
|
clearable: boolean;
|
|
1792
|
+
clearFilterAfterSelect: boolean;
|
|
1779
1793
|
defaultValue: Value | null;
|
|
1780
1794
|
remote: boolean;
|
|
1781
1795
|
widthMode: string;
|
package/es/select/src/Select.js
CHANGED
|
@@ -13,7 +13,10 @@ import style from './styles/index.cssr';
|
|
|
13
13
|
const selectProps = Object.assign(Object.assign({}, useTheme.props), { to: useAdjustedTo.propTo, bordered: {
|
|
14
14
|
type: Boolean,
|
|
15
15
|
default: undefined
|
|
16
|
-
}, clearable: Boolean,
|
|
16
|
+
}, clearable: Boolean, clearFilterAfterSelect: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: true
|
|
19
|
+
}, options: {
|
|
17
20
|
type: Array,
|
|
18
21
|
default: () => []
|
|
19
22
|
}, defaultValue: {
|
|
@@ -80,7 +83,7 @@ export default defineComponent({
|
|
|
80
83
|
}
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
|
-
const { mergedClsPrefixRef, mergedBorderedRef, namespaceRef } = useConfig(props);
|
|
86
|
+
const { mergedClsPrefixRef, mergedBorderedRef, namespaceRef, inlineThemeDisabled } = useConfig(props);
|
|
84
87
|
const themeRef = useTheme('Select', '-select', style, selectLight, props, mergedClsPrefixRef);
|
|
85
88
|
const uncontrolledValueRef = ref(props.defaultValue);
|
|
86
89
|
const controlledValueRef = toRef(props, 'value');
|
|
@@ -356,7 +359,7 @@ export default defineComponent({
|
|
|
356
359
|
function handleToggleByOption(option) {
|
|
357
360
|
if (mergedDisabledRef.value)
|
|
358
361
|
return;
|
|
359
|
-
const { tag, remote } = props;
|
|
362
|
+
const { tag, remote, clearFilterAfterSelect } = props;
|
|
360
363
|
if (tag && !remote) {
|
|
361
364
|
const { value: beingCreatedOptions } = beingCreatedOptionsRef;
|
|
362
365
|
const beingCreatedOption = beingCreatedOptions[0] || null;
|
|
@@ -377,13 +380,15 @@ export default defineComponent({
|
|
|
377
380
|
const createdOptionIndex = getCreatedOptionIndex(option.value);
|
|
378
381
|
if (~createdOptionIndex) {
|
|
379
382
|
createdOptionsRef.value.splice(createdOptionIndex, 1);
|
|
380
|
-
|
|
383
|
+
if (clearFilterAfterSelect)
|
|
384
|
+
patternRef.value = '';
|
|
381
385
|
}
|
|
382
386
|
}
|
|
383
387
|
}
|
|
384
388
|
else {
|
|
385
389
|
changedValue.push(option.value);
|
|
386
|
-
|
|
390
|
+
if (clearFilterAfterSelect)
|
|
391
|
+
patternRef.value = '';
|
|
387
392
|
}
|
|
388
393
|
doUpdateValue(changedValue, getMergedOptions(changedValue));
|
|
389
394
|
}
|
|
@@ -563,7 +568,8 @@ export default defineComponent({
|
|
|
563
568
|
}
|
|
564
569
|
};
|
|
565
570
|
return Object.assign(Object.assign({}, exposedMethods), { mergedStatus: mergedStatusRef, mergedClsPrefix: mergedClsPrefixRef, mergedBordered: mergedBorderedRef, namespace: namespaceRef, treeMate: treeMateRef, isMounted: useIsMounted(), triggerRef,
|
|
566
|
-
menuRef, pattern: patternRef, uncontrolledShow: uncontrolledShowRef, mergedShow: mergedShowRef, adjustedTo: useAdjustedTo(props), uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, followerRef, localizedPlaceholder: localizedPlaceholderRef, selectedOption: selectedOptionRef, selectedOptions: selectedOptionsRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, focused: focusedRef, activeWithoutMenuOpen: activeWithoutMenuOpenRef,
|
|
571
|
+
menuRef, pattern: patternRef, uncontrolledShow: uncontrolledShowRef, mergedShow: mergedShowRef, adjustedTo: useAdjustedTo(props), uncontrolledValue: uncontrolledValueRef, mergedValue: mergedValueRef, followerRef, localizedPlaceholder: localizedPlaceholderRef, selectedOption: selectedOptionRef, selectedOptions: selectedOptionsRef, mergedSize: mergedSizeRef, mergedDisabled: mergedDisabledRef, focused: focusedRef, activeWithoutMenuOpen: activeWithoutMenuOpenRef, inlineThemeDisabled,
|
|
572
|
+
onTriggerInputFocus,
|
|
567
573
|
onTriggerInputBlur,
|
|
568
574
|
handleMenuFocus,
|
|
569
575
|
handleMenuBlur,
|
|
@@ -588,7 +594,7 @@ export default defineComponent({
|
|
|
588
594
|
h(VBinder, null, {
|
|
589
595
|
default: () => [
|
|
590
596
|
h(VTarget, null, {
|
|
591
|
-
default: () => (h(NInternalSelection, { ref: "triggerRef", status: this.mergedStatus, inputProps: this.inputProps, clsPrefix: this.mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.activeWithoutMenuOpen || this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeydown, onPatternBlur: this.onTriggerInputBlur, onPatternFocus: this.onTriggerInputFocus }, {
|
|
597
|
+
default: () => (h(NInternalSelection, { ref: "triggerRef", inlineThemeDisabled: this.inlineThemeDisabled, status: this.mergedStatus, inputProps: this.inputProps, clsPrefix: this.mergedClsPrefix, showArrow: this.showArrow, maxTagCount: this.maxTagCount, bordered: this.mergedBordered, active: this.activeWithoutMenuOpen || this.mergedShow, pattern: this.pattern, placeholder: this.localizedPlaceholder, selectedOption: this.selectedOption, selectedOptions: this.selectedOptions, multiple: this.multiple, renderTag: this.renderTag, renderLabel: this.renderLabel, filterable: this.filterable, clearable: this.clearable, disabled: this.mergedDisabled, size: this.mergedSize, theme: this.mergedTheme.peers.InternalSelection, themeOverrides: this.mergedTheme.peerOverrides.InternalSelection, loading: this.loading, focused: this.focused, onClick: this.handleTriggerClick, onDeleteOption: this.handleDeleteOption, onPatternInput: this.handlePatternInput, onClear: this.handleClear, onBlur: this.handleTriggerBlur, onFocus: this.handleTriggerFocus, onKeydown: this.handleKeydown, onPatternBlur: this.onTriggerInputBlur, onPatternFocus: this.onTriggerInputFocus }, {
|
|
592
598
|
arrow: () => { var _a, _b; return [(_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
|
|
593
599
|
}))
|
|
594
600
|
}),
|
|
@@ -598,7 +604,7 @@ export default defineComponent({
|
|
|
598
604
|
var _a, _b;
|
|
599
605
|
return (this.mergedShow ||
|
|
600
606
|
this.displayDirective === 'show') &&
|
|
601
|
-
withDirectives(h(NInternalSelectMenu, Object.assign({}, this.menuProps, { ref: "menuRef", virtualScroll: this.consistentMenuWidth && this.virtualScroll, class: [
|
|
607
|
+
withDirectives(h(NInternalSelectMenu, Object.assign({}, this.menuProps, { ref: "menuRef", inlineThemeDisabled: this.inlineThemeDisabled, virtualScroll: this.consistentMenuWidth && this.virtualScroll, class: [
|
|
602
608
|
`${this.mergedClsPrefix}-select-menu`,
|
|
603
609
|
(_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.class
|
|
604
610
|
], clsPrefix: this.mergedClsPrefix, focusable: true, autoPending: true, theme: this.mergedTheme.peers.InternalSelectMenu, themeOverrides: this.mergedTheme.peerOverrides
|