naive-ui 2.25.2 → 2.25.5
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 -23
- package/es/_internal/select-menu/src/SelectMenu.js +10 -16
- package/es/_internal/selection/src/Selection.d.ts +5 -5
- package/es/_internal/selection/src/Selection.js +20 -7
- 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 +1 -4
- package/es/_mixins/use-css-vars-class.js +8 -7
- package/es/_utils/vue/resolve-slot.d.ts +5 -2
- package/es/_utils/vue/resolve-slot.js +4 -3
- package/es/alert/src/Alert.d.ts +3 -1
- package/es/alert/src/Alert.js +36 -21
- package/es/anchor/src/AnchorAdapter.js +9 -3
- package/es/auto-complete/src/AutoComplete.d.ts +3 -1
- 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 +12 -37
- 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 +7 -6
- package/es/button/src/Button.js +31 -21
- package/es/calendar/src/Calendar.d.ts +3 -1
- package/es/calendar/src/Calendar.js +37 -30
- package/es/card/src/Card.d.ts +2 -2
- package/es/card/src/Card.js +27 -16
- package/es/carousel/src/Carousel.d.ts +3 -1
- package/es/carousel/src/Carousel.js +29 -20
- package/es/cascader/src/Cascader.d.ts +16 -1
- package/es/cascader/src/Cascader.js +53 -31
- package/es/cascader/src/CascaderMenu.js +7 -6
- package/es/cascader/src/CascaderSelectMenu.js +2 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +1 -0
- 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 +7 -7
- 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 +43 -41
- package/es/data-table/src/DataTable.js +54 -48
- package/es/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/es/data-table/src/HeaderButton/SortButton.js +3 -2
- package/es/data-table/src/TableParts/Body.d.ts +1 -0
- package/es/data-table/src/TableParts/Body.js +4 -2
- package/es/data-table/src/interface.d.ts +1 -1
- package/es/data-table/src/use-table-data.js +19 -7
- 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 +14 -1
- 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 +3 -1
- package/es/dialog/src/Dialog.js +57 -56
- package/es/dialog/src/DialogEnvironment.js +1 -1
- package/es/divider/src/Divider.d.ts +3 -1
- package/es/divider/src/Divider.js +20 -11
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -1
- package/es/dynamic-input/src/DynamicInput.js +18 -11
- package/es/dynamic-tags/src/DynamicTags.d.ts +3 -1
- 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.js +1 -2
- package/es/grid/src/Grid.js +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +6 -8
- package/es/input/src/Input.d.ts +6 -3
- 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 +6 -17
- 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/legacy-grid/src/styles/index.cssr.js +1 -1
- package/es/locales/common/esAR.js +2 -2
- package/es/locales/common/frFR.js +8 -9
- package/es/locales/common/skSK.d.ts +3 -0
- package/es/locales/common/skSK.js +110 -0
- package/es/locales/date/skSK.d.ts +3 -0
- package/es/locales/date/skSK.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -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 +3 -1
- package/es/mention/src/Mention.js +20 -10
- package/es/mention/src/interface.d.ts +4 -0
- package/es/menu/src/Menu.d.ts +3 -1
- package/es/menu/src/Menu.js +68 -63
- package/es/modal/src/BodyWrapper.d.ts +1 -0
- package/es/modal/src/Modal.d.ts +11 -14
- package/es/modal/src/Modal.js +41 -32
- 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 +13 -1
- package/es/pagination/src/Pagination.js +59 -52
- package/es/popover/src/PopoverBody.js +10 -4
- package/es/progress/src/Progress.d.ts +2 -2
- package/es/progress/src/Progress.js +12 -6
- 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 +4 -2
- 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 +1 -1
- package/es/select/src/Select.js +5 -4
- 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 +79 -77
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/tag/src/Tag.js +8 -11
- 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/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-select/src/TreeSelect.d.ts +13 -0
- package/es/tree-select/src/TreeSelect.js +6 -2
- 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 +3 -1
- package/es/typography/src/create-header.js +25 -16
- package/es/typography/src/headers.d.ts +18 -6
- 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/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 -23
- package/lib/_internal/select-menu/src/SelectMenu.js +9 -15
- package/lib/_internal/selection/src/Selection.d.ts +5 -5
- package/lib/_internal/selection/src/Selection.js +19 -6
- package/lib/_mixins/index.d.ts +1 -1
- package/lib/_mixins/index.js +1 -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 +1 -4
- package/lib/_mixins/use-css-vars-class.js +9 -8
- package/lib/_utils/vue/resolve-slot.d.ts +5 -2
- package/lib/_utils/vue/resolve-slot.js +4 -3
- package/lib/alert/src/Alert.d.ts +3 -1
- package/lib/alert/src/Alert.js +34 -19
- package/lib/anchor/src/AnchorAdapter.js +8 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -1
- 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 +12 -37
- 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 +7 -6
- package/lib/button/src/Button.js +29 -19
- package/lib/calendar/src/Calendar.d.ts +3 -1
- package/lib/calendar/src/Calendar.js +36 -29
- package/lib/card/src/Card.d.ts +2 -2
- package/lib/card/src/Card.js +25 -14
- package/lib/carousel/src/Carousel.d.ts +3 -1
- package/lib/carousel/src/Carousel.js +27 -18
- package/lib/cascader/src/Cascader.d.ts +16 -1
- package/lib/cascader/src/Cascader.js +52 -30
- package/lib/cascader/src/CascaderMenu.js +7 -6
- package/lib/cascader/src/CascaderSelectMenu.js +2 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +1 -0
- 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 +7 -7
- 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 +43 -41
- package/lib/data-table/src/DataTable.js +53 -47
- package/lib/data-table/src/HeaderButton/FilterButton.js +3 -2
- package/lib/data-table/src/HeaderButton/SortButton.js +3 -2
- package/lib/data-table/src/TableParts/Body.d.ts +1 -0
- package/lib/data-table/src/TableParts/Body.js +3 -1
- package/lib/data-table/src/interface.d.ts +1 -1
- package/lib/data-table/src/use-table-data.js +19 -7
- 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 +14 -1
- 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 +3 -1
- package/lib/dialog/src/Dialog.js +55 -54
- package/lib/dialog/src/DialogEnvironment.js +1 -1
- package/lib/divider/src/Divider.d.ts +3 -1
- package/lib/divider/src/Divider.js +19 -10
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -1
- package/lib/dynamic-input/src/DynamicInput.js +17 -10
- package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -1
- 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.js +1 -2
- package/lib/grid/src/Grid.js +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +5 -7
- package/lib/input/src/Input.d.ts +6 -3
- 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 +6 -17
- 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/legacy-grid/src/styles/index.cssr.js +1 -1
- package/lib/locales/common/esAR.js +2 -2
- package/lib/locales/common/frFR.js +8 -9
- package/lib/locales/common/skSK.d.ts +3 -0
- package/lib/locales/common/skSK.js +112 -0
- package/lib/locales/date/skSK.d.ts +3 -0
- package/lib/locales/date/skSK.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +5 -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 +3 -1
- package/lib/mention/src/Mention.js +19 -9
- package/lib/mention/src/interface.d.ts +4 -0
- package/lib/menu/src/Menu.d.ts +3 -1
- package/lib/menu/src/Menu.js +67 -62
- package/lib/modal/src/BodyWrapper.d.ts +1 -0
- package/lib/modal/src/Modal.d.ts +11 -14
- package/lib/modal/src/Modal.js +40 -31
- 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 +13 -1
- package/lib/pagination/src/Pagination.js +58 -51
- package/lib/popover/src/PopoverBody.js +9 -3
- package/lib/progress/src/Progress.d.ts +2 -2
- package/lib/progress/src/Progress.js +11 -5
- 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 +4 -2
- 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 +1 -1
- package/lib/select/src/Select.js +5 -4
- 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 +79 -77
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/tag/src/Tag.js +7 -10
- 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/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-select/src/TreeSelect.d.ts +13 -0
- package/lib/tree-select/src/TreeSelect.js +6 -2
- 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 +3 -1
- package/lib/typography/src/create-header.js +24 -15
- package/lib/typography/src/headers.d.ts +18 -6
- 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/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 +8 -9
- package/volar.d.ts +1 -0
- package/web-types.json +252 -29
|
@@ -53,7 +53,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
'--n-color': string;
|
|
54
54
|
'--n-text-color': string;
|
|
55
55
|
'--n-font-weight': string;
|
|
56
|
-
}
|
|
56
|
+
}> | undefined;
|
|
57
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
58
|
+
onRender: (() => void) | undefined;
|
|
57
59
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
58
60
|
readonly titlePlacement: {
|
|
59
61
|
readonly type: PropType<"left" | "right" | "center">;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, computed, defineComponent, Fragment } from 'vue';
|
|
2
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { dividerLight } from '../styles';
|
|
4
4
|
import style from './styles/index.cssr';
|
|
5
5
|
const dividerProps = Object.assign(Object.assign({}, useTheme.props), { titlePlacement: {
|
|
@@ -10,25 +10,34 @@ export default defineComponent({
|
|
|
10
10
|
name: 'Divider',
|
|
11
11
|
props: dividerProps,
|
|
12
12
|
setup(props) {
|
|
13
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
13
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
14
14
|
const themeRef = useTheme('Divider', '-divider', style, dividerLight, props, mergedClsPrefixRef);
|
|
15
|
+
const cssVarsRef = computed(() => {
|
|
16
|
+
const { common: { cubicBezierEaseInOut }, self: { color, textColor, fontWeight } } = themeRef.value;
|
|
17
|
+
return {
|
|
18
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
19
|
+
'--n-color': color,
|
|
20
|
+
'--n-text-color': textColor,
|
|
21
|
+
'--n-font-weight': fontWeight
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
const themeClassHandle = inlineThemeDisabled
|
|
25
|
+
? useThemeClass('divider', undefined, cssVarsRef, props)
|
|
26
|
+
: undefined;
|
|
15
27
|
return {
|
|
16
28
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
17
|
-
cssVars:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
21
|
-
'--n-color': color,
|
|
22
|
-
'--n-text-color': textColor,
|
|
23
|
-
'--n-font-weight': fontWeight
|
|
24
|
-
};
|
|
25
|
-
})
|
|
29
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
30
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
31
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
26
32
|
};
|
|
27
33
|
},
|
|
28
34
|
render() {
|
|
35
|
+
var _a;
|
|
29
36
|
const { $slots, titlePlacement, vertical, dashed, cssVars, mergedClsPrefix } = this;
|
|
37
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
30
38
|
return (h("div", { role: "separator", class: [
|
|
31
39
|
`${mergedClsPrefix}-divider`,
|
|
40
|
+
this.themeClass,
|
|
32
41
|
{
|
|
33
42
|
[`${mergedClsPrefix}-divider--vertical`]: vertical,
|
|
34
43
|
[`${mergedClsPrefix}-divider--no-title`]: !$slots.default,
|
|
@@ -2091,7 +2091,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2091
2091
|
}>;
|
|
2092
2092
|
cssVars: import("vue").ComputedRef<{
|
|
2093
2093
|
'--action-margin': string;
|
|
2094
|
-
}
|
|
2094
|
+
}> | undefined;
|
|
2095
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
2096
|
+
onRender: (() => void) | undefined;
|
|
2095
2097
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2096
2098
|
readonly max: NumberConstructor;
|
|
2097
2099
|
readonly min: {
|
|
@@ -5,7 +5,7 @@ import { RemoveIcon, AddIcon, ArrowDownIcon, ArrowUpIcon } from '../../_internal
|
|
|
5
5
|
import { formItemInjectionKey } from '../../_mixins/use-form-item';
|
|
6
6
|
import { NBaseIcon } from '../../_internal';
|
|
7
7
|
import { NButton, NButtonGroup } from '../../button';
|
|
8
|
-
import { useTheme, useLocale, useConfig } from '../../_mixins';
|
|
8
|
+
import { useTheme, useLocale, useConfig, useThemeClass } from '../../_mixins';
|
|
9
9
|
import { call, warnOnce, resolveSlotWithProps, resolveSlot } from '../../_utils';
|
|
10
10
|
import { dynamicInputLight } from '../styles';
|
|
11
11
|
import NDynamicInputInputPreset from './InputPreset';
|
|
@@ -54,7 +54,7 @@ export default defineComponent({
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
|
-
const {
|
|
57
|
+
const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled } = useConfig();
|
|
58
58
|
const NFormItem = inject(formItemInjectionKey, null);
|
|
59
59
|
const uncontrolledValueRef = ref(props.defaultValue);
|
|
60
60
|
const controlledValueRef = toRef(props, 'value');
|
|
@@ -76,7 +76,7 @@ export default defineComponent({
|
|
|
76
76
|
});
|
|
77
77
|
const buttonSizeRef = computed(() => {
|
|
78
78
|
var _a, _b;
|
|
79
|
-
return (_b = (_a =
|
|
79
|
+
return (_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DynamicInput) === null || _b === void 0 ? void 0 : _b.buttonSize;
|
|
80
80
|
});
|
|
81
81
|
function doUpdateValue(value) {
|
|
82
82
|
const { onInput, 'onUpdate:value': _onUpdateValue, onUpdateValue } = props;
|
|
@@ -196,6 +196,15 @@ export default defineComponent({
|
|
|
196
196
|
valuePlaceholderRef: toRef(props, 'valuePlaceholder'),
|
|
197
197
|
placeholderRef: toRef(props, 'placeholder')
|
|
198
198
|
});
|
|
199
|
+
const cssVarsRef = computed(() => {
|
|
200
|
+
const { self: { actionMargin } } = themeRef.value;
|
|
201
|
+
return {
|
|
202
|
+
'--action-margin': actionMargin
|
|
203
|
+
};
|
|
204
|
+
});
|
|
205
|
+
const themeClassHandle = inlineThemeDisabled
|
|
206
|
+
? useThemeClass('dynamic-input', undefined, cssVarsRef, props)
|
|
207
|
+
: undefined;
|
|
199
208
|
return {
|
|
200
209
|
locale: useLocale('DynamicInput').localeRef,
|
|
201
210
|
buttonSize: buttonSizeRef,
|
|
@@ -212,17 +221,15 @@ export default defineComponent({
|
|
|
212
221
|
move,
|
|
213
222
|
createItem,
|
|
214
223
|
mergedTheme: themeRef,
|
|
215
|
-
cssVars:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
'--action-margin': actionMargin
|
|
219
|
-
};
|
|
220
|
-
})
|
|
224
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
225
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
226
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
221
227
|
};
|
|
222
228
|
},
|
|
223
229
|
render() {
|
|
224
|
-
const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move } = this;
|
|
225
|
-
|
|
230
|
+
const { $slots, buttonSize, mergedClsPrefix, mergedValue, locale, mergedTheme, keyField, itemStyle, preset, showSortButton, NFormItem, ensureKey, handleValueChange, remove, createItem, move, onRender } = this;
|
|
231
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
232
|
+
return (h("div", { class: [`${mergedClsPrefix}-dynamic-input`, this.themeClass], style: this.cssVars }, !Array.isArray(mergedValue) || mergedValue.length === 0 ? (h(NButton, Object.assign({ block: true, ghost: true, dashed: true, size: buttonSize }, this.createButtonProps, { disabled: this.insertionDisabled, theme: mergedTheme.peers.Button, themeOverrides: mergedTheme.peerOverrides.Button, onClick: this.handleCreateClick }), {
|
|
226
233
|
default: () => resolveSlot($slots['create-button-default'], () => [
|
|
227
234
|
locale.create
|
|
228
235
|
]),
|
|
@@ -2567,7 +2567,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2567
2567
|
}>;
|
|
2568
2568
|
cssVars: import("vue").ComputedRef<{
|
|
2569
2569
|
'--n-input-width': string;
|
|
2570
|
-
}
|
|
2570
|
+
}> | undefined;
|
|
2571
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
2572
|
+
onRender: (() => void) | undefined;
|
|
2571
2573
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2572
2574
|
closable: {
|
|
2573
2575
|
type: BooleanConstructor;
|
|
@@ -7,7 +7,7 @@ import { NSpace } from '../../space';
|
|
|
7
7
|
import { NInput } from '../../input';
|
|
8
8
|
import { NTag } from '../../tag';
|
|
9
9
|
import { NBaseIcon } from '../../_internal';
|
|
10
|
-
import { useTheme, useFormItem, useLocale, useConfig } from '../../_mixins';
|
|
10
|
+
import { useTheme, useFormItem, useLocale, useConfig, useThemeClass } from '../../_mixins';
|
|
11
11
|
import { call, smallerSize, warnOnce } from '../../_utils';
|
|
12
12
|
import { dynamicTagsLight } from '../styles';
|
|
13
13
|
import style from './styles/index.cssr';
|
|
@@ -31,7 +31,7 @@ export default defineComponent({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
34
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
35
35
|
const { localeRef } = useLocale('DynamicTags');
|
|
36
36
|
const formItem = useFormItem(props);
|
|
37
37
|
const { mergedDisabledRef } = formItem;
|
|
@@ -100,6 +100,15 @@ export default defineComponent({
|
|
|
100
100
|
inputForceFocusedRef.value = false;
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
+
const cssVarsRef = computed(() => {
|
|
104
|
+
const { self: { inputWidth } } = themeRef.value;
|
|
105
|
+
return {
|
|
106
|
+
'--n-input-width': inputWidth
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
const themeClassHandle = inlineThemeDisabled
|
|
110
|
+
? useThemeClass('dynamic-tags', undefined, cssVarsRef, props)
|
|
111
|
+
: undefined;
|
|
103
112
|
return {
|
|
104
113
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
105
114
|
inputInstRef,
|
|
@@ -117,17 +126,15 @@ export default defineComponent({
|
|
|
117
126
|
handleCloseClick,
|
|
118
127
|
handleInputConfirm,
|
|
119
128
|
mergedTheme: themeRef,
|
|
120
|
-
cssVars:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
'--n-input-width': inputWidth
|
|
124
|
-
};
|
|
125
|
-
})
|
|
129
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
130
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
131
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
126
132
|
};
|
|
127
133
|
},
|
|
128
134
|
render() {
|
|
129
|
-
const { mergedTheme, cssVars, mergedClsPrefix } = this;
|
|
130
|
-
|
|
135
|
+
const { mergedTheme, cssVars, mergedClsPrefix, onRender } = this;
|
|
136
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
137
|
+
return (h(NSpace, { class: [`${mergedClsPrefix}-dynamic-tags`, this.themeClass], size: "small", style: cssVars, theme: mergedTheme.peers.Space, themeOverrides: mergedTheme.peerOverrides.Space, itemStyle: "display: flex;" }, {
|
|
131
138
|
default: () => {
|
|
132
139
|
const { mergedTheme, tagStyle, type, round, size, color, closable, mergedDisabled, showInput, inputValue, inputStyle, inputSize, inputForceFocused, triggerDisabled, handleInputKeyUp, handleInputBlur, handleAddClick, handleCloseClick, handleInputConfirm, $slots } = this;
|
|
133
140
|
return this.mergedValue
|
|
@@ -19,7 +19,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Element", {}, any>>>;
|
|
20
20
|
}, {
|
|
21
21
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
22
|
-
cssVars: import("vue").ComputedRef<Record<string, string |
|
|
22
|
+
cssVars: import("vue").ComputedRef<Record<string, string>> | undefined;
|
|
23
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
24
|
+
onRender: (() => void) | undefined;
|
|
23
25
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
26
|
readonly tag: {
|
|
25
27
|
readonly type: StringConstructor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computed, h, defineComponent } from 'vue';
|
|
2
2
|
import { kebabCase } from 'lodash-es';
|
|
3
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
3
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
4
4
|
import { elementLight } from '../styles';
|
|
5
5
|
const elementProps = Object.assign(Object.assign({}, useTheme.props), { tag: {
|
|
6
6
|
type: String,
|
|
@@ -11,25 +11,32 @@ export default defineComponent({
|
|
|
11
11
|
alias: ['El'],
|
|
12
12
|
props: elementProps,
|
|
13
13
|
setup(props) {
|
|
14
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
14
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
15
15
|
const themeRef = useTheme('Element', '-element', undefined, elementLight, props, mergedClsPrefixRef);
|
|
16
|
+
const cssVarsRef = computed(() => {
|
|
17
|
+
const { common } = themeRef.value;
|
|
18
|
+
return Object.keys(common).reduce((prevValue, key) => {
|
|
19
|
+
prevValue[`--${kebabCase(key)}`] = common[key];
|
|
20
|
+
return prevValue;
|
|
21
|
+
}, {});
|
|
22
|
+
});
|
|
23
|
+
const themeClassHandle = inlineThemeDisabled
|
|
24
|
+
? useThemeClass('element', undefined, cssVarsRef, props)
|
|
25
|
+
: undefined;
|
|
16
26
|
return {
|
|
17
27
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
18
|
-
cssVars:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
prevValue[`--${kebabCase(key)}`] = common[key];
|
|
22
|
-
return prevValue;
|
|
23
|
-
}, {});
|
|
24
|
-
})
|
|
28
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
29
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
30
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
25
31
|
};
|
|
26
32
|
},
|
|
27
33
|
render() {
|
|
28
34
|
var _a;
|
|
29
|
-
const { tag, mergedClsPrefix, cssVars, $slots } = this;
|
|
35
|
+
const { tag, mergedClsPrefix, cssVars, themeClass, onRender, $slots } = this;
|
|
36
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
30
37
|
return h(tag, {
|
|
31
38
|
role: 'none',
|
|
32
|
-
class: `${mergedClsPrefix}-element`,
|
|
39
|
+
class: [`${mergedClsPrefix}-element`, themeClass],
|
|
33
40
|
style: cssVars
|
|
34
41
|
}, (_a = $slots.default) === null || _a === void 0 ? void 0 : _a.call($slots));
|
|
35
42
|
}
|
package/es/empty/src/Empty.d.ts
CHANGED
|
@@ -121,7 +121,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
121
121
|
'--n-text-color': string;
|
|
122
122
|
'--n-icon-color': string;
|
|
123
123
|
'--n-extra-text-color': string;
|
|
124
|
-
}
|
|
124
|
+
}> | undefined;
|
|
125
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
126
|
+
onRender: (() => void) | undefined;
|
|
125
127
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
126
128
|
description: StringConstructor;
|
|
127
129
|
showDescription: {
|
package/es/empty/src/Empty.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, defineComponent, computed, inject } from 'vue';
|
|
2
2
|
import { configProviderInjectionKey } from '../../config-provider/src/context';
|
|
3
3
|
import { EmptyIcon } from '../../_internal/icons';
|
|
4
|
-
import { useConfig, useLocale, useTheme } from '../../_mixins';
|
|
4
|
+
import { useConfig, useLocale, useTheme, useThemeClass } from '../../_mixins';
|
|
5
5
|
import { createKey } from '../../_utils';
|
|
6
6
|
import { NBaseIcon } from '../../_internal';
|
|
7
7
|
import { emptyLight } from '../styles';
|
|
@@ -20,7 +20,7 @@ export default defineComponent({
|
|
|
20
20
|
name: 'Empty',
|
|
21
21
|
props: emptyProps,
|
|
22
22
|
setup(props) {
|
|
23
|
-
const { mergedClsPrefixRef } = useConfig(props);
|
|
23
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
24
24
|
const themeRef = useTheme('Empty', '-empty', style, emptyLight, props, mergedClsPrefixRef);
|
|
25
25
|
const { localeRef } = useLocale('Empty');
|
|
26
26
|
const NConfigProvider = inject(configProviderInjectionKey, null);
|
|
@@ -33,29 +33,41 @@ export default defineComponent({
|
|
|
33
33
|
return ((_b = (_a = NConfigProvider === null || NConfigProvider === void 0 ? void 0 : NConfigProvider.mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Empty) === null || _b === void 0 ? void 0 : _b.renderIcon) ||
|
|
34
34
|
(() => h(EmptyIcon, null));
|
|
35
35
|
});
|
|
36
|
+
const cssVarsRef = computed(() => {
|
|
37
|
+
const { size } = props;
|
|
38
|
+
const { common: { cubicBezierEaseInOut }, self: { [createKey('iconSize', size)]: iconSize, [createKey('fontSize', size)]: fontSize, textColor, iconColor, extraTextColor } } = themeRef.value;
|
|
39
|
+
return {
|
|
40
|
+
'--n-icon-size': iconSize,
|
|
41
|
+
'--n-font-size': fontSize,
|
|
42
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
43
|
+
'--n-text-color': textColor,
|
|
44
|
+
'--n-icon-color': iconColor,
|
|
45
|
+
'--n-extra-text-color': extraTextColor
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
const themeClassHandle = inlineThemeDisabled
|
|
49
|
+
? useThemeClass('empty', computed(() => {
|
|
50
|
+
let hash = '';
|
|
51
|
+
const { size } = props;
|
|
52
|
+
hash += size[0];
|
|
53
|
+
return hash;
|
|
54
|
+
}), cssVarsRef, props)
|
|
55
|
+
: undefined;
|
|
36
56
|
return {
|
|
37
57
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
38
58
|
mergedRenderIcon: mergedRenderIconRef,
|
|
39
59
|
localizedDescription: computed(() => {
|
|
40
60
|
return mergedDescriptionRef.value || localeRef.value.description;
|
|
41
61
|
}),
|
|
42
|
-
cssVars:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
'--n-icon-size': iconSize,
|
|
47
|
-
'--n-font-size': fontSize,
|
|
48
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
49
|
-
'--n-text-color': textColor,
|
|
50
|
-
'--n-icon-color': iconColor,
|
|
51
|
-
'--n-extra-text-color': extraTextColor
|
|
52
|
-
};
|
|
53
|
-
})
|
|
62
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
63
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
64
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
54
65
|
};
|
|
55
66
|
},
|
|
56
67
|
render() {
|
|
57
|
-
const { $slots, mergedClsPrefix } = this;
|
|
58
|
-
|
|
68
|
+
const { $slots, mergedClsPrefix, onRender } = this;
|
|
69
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
70
|
+
return (h("div", { class: [`${mergedClsPrefix}-empty`, this.themeClass], style: this.cssVars },
|
|
59
71
|
this.showIcon ? (h("div", { class: `${mergedClsPrefix}-empty__icon` }, $slots.icon ? ($slots.icon()) : (h(NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: this.mergedRenderIcon })))) : null,
|
|
60
72
|
this.showDescription ? (h("div", { class: `${mergedClsPrefix}-empty__description` }, $slots.default ? $slots.default() : this.localizedDescription)) : null,
|
|
61
73
|
$slots.extra ? (h("div", { class: `${mergedClsPrefix}-empty__extra` }, $slots.extra())) : null));
|
package/es/form/src/FormItem.js
CHANGED
|
@@ -161,8 +161,7 @@ export default defineComponent({
|
|
|
161
161
|
options.first = props.first;
|
|
162
162
|
}
|
|
163
163
|
const { value: rules } = mergedRulesRef;
|
|
164
|
-
|
|
165
|
-
const value = NForm ? get(NForm.props.model, path, null) : undefined;
|
|
164
|
+
const value = NForm ? get(NForm.props.model, path || '') : undefined;
|
|
166
165
|
const activeRules = (!trigger
|
|
167
166
|
? rules
|
|
168
167
|
: rules.filter((rule) => {
|
package/es/grid/src/Grid.js
CHANGED
|
@@ -38,10 +38,10 @@ export default defineComponent({
|
|
|
38
38
|
inheritAttrs: false,
|
|
39
39
|
props: gridProps,
|
|
40
40
|
setup(props) {
|
|
41
|
-
const { mergedClsPrefixRef,
|
|
41
|
+
const { mergedClsPrefixRef, mergedBreakpointsRef } = useConfig(props);
|
|
42
42
|
const numRegex = /^\d+$/;
|
|
43
43
|
const widthRef = ref(undefined);
|
|
44
|
-
const breakpointsRef = useBreakpoints((
|
|
44
|
+
const breakpointsRef = useBreakpoints((mergedBreakpointsRef === null || mergedBreakpointsRef === void 0 ? void 0 : mergedBreakpointsRef.value) || defaultBreakpoints);
|
|
45
45
|
const isResponsiveRef = useMemo(() => {
|
|
46
46
|
if (props.itemResponsive)
|
|
47
47
|
return true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed, defineComponent, h } from 'vue';
|
|
2
|
-
import {
|
|
2
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
3
3
|
import { formatLength } from '../../_utils';
|
|
4
4
|
import { iconWrapperLight } from '../styles';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
@@ -15,8 +15,7 @@ export const NIconWrapper = defineComponent({
|
|
|
15
15
|
props: iconWrapperProps,
|
|
16
16
|
setup(props, { slots }) {
|
|
17
17
|
const themeRef = useTheme('IconWrapper', '-icon-wrapper', style, iconWrapperLight, props);
|
|
18
|
-
const { mergedClsPrefixRef,
|
|
19
|
-
const { disableInlineTheme } = NConfigProvider || {};
|
|
18
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
20
19
|
const cssVarsRef = computed(() => {
|
|
21
20
|
const { common: { cubicBezierEaseInOut }, self: { color, iconColor } } = themeRef.value;
|
|
22
21
|
return {
|
|
@@ -25,16 +24,15 @@ export const NIconWrapper = defineComponent({
|
|
|
25
24
|
'--n-icon-color': iconColor
|
|
26
25
|
};
|
|
27
26
|
});
|
|
28
|
-
const themeClassHandle =
|
|
27
|
+
const themeClassHandle = inlineThemeDisabled
|
|
29
28
|
? useThemeClass('icon-wrapper', undefined, cssVarsRef, props)
|
|
30
|
-
:
|
|
29
|
+
: undefined;
|
|
31
30
|
return () => {
|
|
32
|
-
var _a, _b;
|
|
33
31
|
const size = formatLength(props.size);
|
|
34
|
-
|
|
32
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender();
|
|
35
33
|
return (h("div", { class: [
|
|
36
34
|
`${mergedClsPrefixRef.value}-icon-wrapper`,
|
|
37
|
-
|
|
35
|
+
themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass.value
|
|
38
36
|
], style: [
|
|
39
37
|
cssVarsRef === null || cssVarsRef === void 0 ? void 0 : cssVarsRef.value,
|
|
40
38
|
{
|
package/es/input/src/Input.d.ts
CHANGED
|
@@ -552,6 +552,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
552
552
|
containerScrollTop: number;
|
|
553
553
|
syncUnifiedContainer: () => void;
|
|
554
554
|
scrollTo: import("../../_internal/scrollbar/src/ScrollBar").ScrollTo;
|
|
555
|
+
scrollBy: import("../../_internal/scrollbar/src/ScrollBar").ScrollBy;
|
|
555
556
|
sync: () => void;
|
|
556
557
|
handleMouseEnterWrapper: () => void;
|
|
557
558
|
handleMouseLeaveWrapper: () => void;
|
|
@@ -633,8 +634,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
634
|
iconColorDisabled: string;
|
|
634
635
|
opacity1: string;
|
|
635
636
|
opacity2: string;
|
|
636
|
-
opacity3: string;
|
|
637
|
-
opacity4: string;
|
|
637
|
+
opacity3: string;
|
|
638
|
+
opacity4: string; /** private */
|
|
638
639
|
opacity5: string;
|
|
639
640
|
dividerColor: string;
|
|
640
641
|
borderColor: string;
|
|
@@ -814,7 +815,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
814
815
|
'--n-icon-color-pressed': string;
|
|
815
816
|
'--n-icon-color-disabled': string;
|
|
816
817
|
'--n-suffix-text-color': string;
|
|
817
|
-
}
|
|
818
|
+
}> | undefined;
|
|
819
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
820
|
+
onRender: (() => void) | undefined;
|
|
818
821
|
isCompositing: import("vue").Ref<boolean>;
|
|
819
822
|
blur: () => void;
|
|
820
823
|
focus: () => void;
|