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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-non-null-assertion */
|
|
2
2
|
import { h, defineComponent, computed } from 'vue';
|
|
3
|
-
import { useConfig, useTheme } from '../../_mixins';
|
|
3
|
+
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
4
4
|
import { pageHeaderLight } from '../styles/light';
|
|
5
5
|
import style from './styles/index.cssr';
|
|
6
6
|
import { ArrowBackIcon } from '../../_internal/icons';
|
|
@@ -11,31 +11,39 @@ export default defineComponent({
|
|
|
11
11
|
name: 'PageHeader',
|
|
12
12
|
props: pageHeaderProps,
|
|
13
13
|
setup(props) {
|
|
14
|
-
const { mergedClsPrefixRef,
|
|
14
|
+
const { mergedClsPrefixRef, mergedRtlRef, inlineThemeDisabled } = useConfig(props);
|
|
15
15
|
const themeRef = useTheme('PageHeader', '-page-header', style, pageHeaderLight, props, mergedClsPrefixRef);
|
|
16
|
-
const rtlEnabledRef = useRtl('PageHeader',
|
|
16
|
+
const rtlEnabledRef = useRtl('PageHeader', mergedRtlRef, mergedClsPrefixRef);
|
|
17
|
+
const cssVarsRef = computed(() => {
|
|
18
|
+
const { self: { titleTextColor, subtitleTextColor, backColor, fontSize, titleFontSize, backSize, titleFontWeight, backColorHover, backColorPressed }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
19
|
+
return {
|
|
20
|
+
'--n-title-text-color': titleTextColor,
|
|
21
|
+
'--n-title-font-size': titleFontSize,
|
|
22
|
+
'--n-title-font-weight': titleFontWeight,
|
|
23
|
+
'--n-font-size': fontSize,
|
|
24
|
+
'--n-back-size': backSize,
|
|
25
|
+
'--n-subtitle-text-color': subtitleTextColor,
|
|
26
|
+
'--n-back-color': backColor,
|
|
27
|
+
'--n-back-color-hover': backColorHover,
|
|
28
|
+
'--n-back-color-pressed': backColorPressed,
|
|
29
|
+
'--n-bezier': cubicBezierEaseInOut
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
const themeClassHandle = inlineThemeDisabled
|
|
33
|
+
? useThemeClass('page-header', undefined, cssVarsRef, props)
|
|
34
|
+
: undefined;
|
|
17
35
|
return {
|
|
18
36
|
rtlEnabled: rtlEnabledRef,
|
|
19
37
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
20
|
-
cssVars:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'--n-title-text-color': titleTextColor,
|
|
24
|
-
'--n-title-font-size': titleFontSize,
|
|
25
|
-
'--n-title-font-weight': titleFontWeight,
|
|
26
|
-
'--n-font-size': fontSize,
|
|
27
|
-
'--n-back-size': backSize,
|
|
28
|
-
'--n-subtitle-text-color': subtitleTextColor,
|
|
29
|
-
'--n-back-color': backColor,
|
|
30
|
-
'--n-back-color-hover': backColorHover,
|
|
31
|
-
'--n-back-color-pressed': backColorPressed,
|
|
32
|
-
'--n-bezier': cubicBezierEaseInOut
|
|
33
|
-
};
|
|
34
|
-
})
|
|
38
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
39
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
40
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
35
41
|
};
|
|
36
42
|
},
|
|
37
43
|
render() {
|
|
44
|
+
var _a;
|
|
38
45
|
const { onBack, title, subtitle, extra, mergedClsPrefix, cssVars, $slots } = this;
|
|
46
|
+
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
39
47
|
const { title: titleSlot, subtitle: subtitleSlot, extra: extraSlot, default: defaultSlot, header: headerSlot, avatar: avatarSlot, footer: footerSlot, back: backSlot } = $slots;
|
|
40
48
|
const showBack = onBack;
|
|
41
49
|
const showTitle = title || titleSlot;
|
|
@@ -43,6 +51,7 @@ export default defineComponent({
|
|
|
43
51
|
const showExtra = extra || extraSlot;
|
|
44
52
|
return (h("div", { style: cssVars, class: [
|
|
45
53
|
`${mergedClsPrefix}-page-header-wrapper`,
|
|
54
|
+
this.themeClass,
|
|
46
55
|
this.rtlEnabled && `${mergedClsPrefix}-page-header-wrapper--rtl`
|
|
47
56
|
] },
|
|
48
57
|
headerSlot ? (h("div", { class: `${mergedClsPrefix}-page-header-header`, key: "breadcrumb" }, headerSlot())) : null,
|
|
@@ -111,7 +111,7 @@ declare const paginationProps: {
|
|
|
111
111
|
borderHover: string;
|
|
112
112
|
borderActive: string;
|
|
113
113
|
borderFocus: string;
|
|
114
|
-
boxShadowHover:
|
|
114
|
+
boxShadowHover: string;
|
|
115
115
|
boxShadowActive: string;
|
|
116
116
|
boxShadowFocus: string;
|
|
117
117
|
caretColor: string;
|
|
@@ -122,7 +122,7 @@ declare const paginationProps: {
|
|
|
122
122
|
borderHoverWarning: string;
|
|
123
123
|
borderActiveWarning: string;
|
|
124
124
|
borderFocusWarning: string;
|
|
125
|
-
boxShadowHoverWarning:
|
|
125
|
+
boxShadowHoverWarning: string;
|
|
126
126
|
boxShadowActiveWarning: string;
|
|
127
127
|
boxShadowFocusWarning: string;
|
|
128
128
|
colorActiveWarning: string;
|
|
@@ -131,7 +131,7 @@ declare const paginationProps: {
|
|
|
131
131
|
borderHoverError: string;
|
|
132
132
|
borderActiveError: string;
|
|
133
133
|
borderFocusError: string;
|
|
134
|
-
boxShadowHoverError:
|
|
134
|
+
boxShadowHoverError: string;
|
|
135
135
|
boxShadowActiveError: string;
|
|
136
136
|
boxShadowFocusError: string;
|
|
137
137
|
colorActiveError: string;
|
|
@@ -254,6 +254,7 @@ declare const paginationProps: {
|
|
|
254
254
|
loadingColorError: string;
|
|
255
255
|
borderError: string;
|
|
256
256
|
borderHoverError: string;
|
|
257
|
+
/** @deprecated */
|
|
257
258
|
colorFocusError: string;
|
|
258
259
|
borderFocusError: string;
|
|
259
260
|
boxShadowFocusError: string;
|
|
@@ -339,7 +340,7 @@ declare const paginationProps: {
|
|
|
339
340
|
borderHover: string;
|
|
340
341
|
borderActive: string;
|
|
341
342
|
borderFocus: string;
|
|
342
|
-
boxShadowHover:
|
|
343
|
+
boxShadowHover: string;
|
|
343
344
|
boxShadowActive: string;
|
|
344
345
|
boxShadowFocus: string;
|
|
345
346
|
caretColor: string;
|
|
@@ -350,7 +351,7 @@ declare const paginationProps: {
|
|
|
350
351
|
borderHoverWarning: string;
|
|
351
352
|
borderActiveWarning: string;
|
|
352
353
|
borderFocusWarning: string;
|
|
353
|
-
boxShadowHoverWarning:
|
|
354
|
+
boxShadowHoverWarning: string;
|
|
354
355
|
boxShadowActiveWarning: string;
|
|
355
356
|
boxShadowFocusWarning: string;
|
|
356
357
|
colorActiveWarning: string;
|
|
@@ -359,7 +360,7 @@ declare const paginationProps: {
|
|
|
359
360
|
borderHoverError: string;
|
|
360
361
|
borderActiveError: string;
|
|
361
362
|
borderFocusError: string;
|
|
362
|
-
boxShadowHoverError:
|
|
363
|
+
boxShadowHoverError: string;
|
|
363
364
|
boxShadowActiveError: string;
|
|
364
365
|
boxShadowFocusError: string;
|
|
365
366
|
colorActiveError: string;
|
|
@@ -482,6 +483,7 @@ declare const paginationProps: {
|
|
|
482
483
|
loadingColorError: string;
|
|
483
484
|
borderError: string;
|
|
484
485
|
borderHoverError: string;
|
|
486
|
+
/** @deprecated */
|
|
485
487
|
colorFocusError: string;
|
|
486
488
|
borderFocusError: string;
|
|
487
489
|
boxShadowFocusError: string;
|
|
@@ -567,7 +569,7 @@ declare const paginationProps: {
|
|
|
567
569
|
borderHover: string;
|
|
568
570
|
borderActive: string;
|
|
569
571
|
borderFocus: string;
|
|
570
|
-
boxShadowHover:
|
|
572
|
+
boxShadowHover: string;
|
|
571
573
|
boxShadowActive: string;
|
|
572
574
|
boxShadowFocus: string;
|
|
573
575
|
caretColor: string;
|
|
@@ -578,7 +580,7 @@ declare const paginationProps: {
|
|
|
578
580
|
borderHoverWarning: string;
|
|
579
581
|
borderActiveWarning: string;
|
|
580
582
|
borderFocusWarning: string;
|
|
581
|
-
boxShadowHoverWarning:
|
|
583
|
+
boxShadowHoverWarning: string;
|
|
582
584
|
boxShadowActiveWarning: string;
|
|
583
585
|
boxShadowFocusWarning: string;
|
|
584
586
|
colorActiveWarning: string;
|
|
@@ -587,7 +589,7 @@ declare const paginationProps: {
|
|
|
587
589
|
borderHoverError: string;
|
|
588
590
|
borderActiveError: string;
|
|
589
591
|
borderFocusError: string;
|
|
590
|
-
boxShadowHoverError:
|
|
592
|
+
boxShadowHoverError: string;
|
|
591
593
|
boxShadowActiveError: string;
|
|
592
594
|
boxShadowFocusError: string;
|
|
593
595
|
colorActiveError: string;
|
|
@@ -710,6 +712,7 @@ declare const paginationProps: {
|
|
|
710
712
|
loadingColorError: string;
|
|
711
713
|
borderError: string;
|
|
712
714
|
borderHoverError: string;
|
|
715
|
+
/** @deprecated */
|
|
713
716
|
colorFocusError: string;
|
|
714
717
|
borderFocusError: string;
|
|
715
718
|
boxShadowFocusError: string;
|
|
@@ -838,7 +841,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
838
841
|
borderHover: string;
|
|
839
842
|
borderActive: string;
|
|
840
843
|
borderFocus: string;
|
|
841
|
-
boxShadowHover:
|
|
844
|
+
boxShadowHover: string;
|
|
842
845
|
boxShadowActive: string;
|
|
843
846
|
boxShadowFocus: string;
|
|
844
847
|
caretColor: string;
|
|
@@ -849,7 +852,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
849
852
|
borderHoverWarning: string;
|
|
850
853
|
borderActiveWarning: string;
|
|
851
854
|
borderFocusWarning: string;
|
|
852
|
-
boxShadowHoverWarning:
|
|
855
|
+
boxShadowHoverWarning: string;
|
|
853
856
|
boxShadowActiveWarning: string;
|
|
854
857
|
boxShadowFocusWarning: string;
|
|
855
858
|
colorActiveWarning: string;
|
|
@@ -858,7 +861,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
858
861
|
borderHoverError: string;
|
|
859
862
|
borderActiveError: string;
|
|
860
863
|
borderFocusError: string;
|
|
861
|
-
boxShadowHoverError:
|
|
864
|
+
boxShadowHoverError: string;
|
|
862
865
|
boxShadowActiveError: string;
|
|
863
866
|
boxShadowFocusError: string;
|
|
864
867
|
colorActiveError: string;
|
|
@@ -981,6 +984,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
981
984
|
loadingColorError: string;
|
|
982
985
|
borderError: string;
|
|
983
986
|
borderHoverError: string;
|
|
987
|
+
/** @deprecated */
|
|
984
988
|
colorFocusError: string;
|
|
985
989
|
borderFocusError: string;
|
|
986
990
|
boxShadowFocusError: string;
|
|
@@ -1066,7 +1070,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1066
1070
|
borderHover: string;
|
|
1067
1071
|
borderActive: string;
|
|
1068
1072
|
borderFocus: string;
|
|
1069
|
-
boxShadowHover:
|
|
1073
|
+
boxShadowHover: string;
|
|
1070
1074
|
boxShadowActive: string;
|
|
1071
1075
|
boxShadowFocus: string;
|
|
1072
1076
|
caretColor: string;
|
|
@@ -1077,7 +1081,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1077
1081
|
borderHoverWarning: string;
|
|
1078
1082
|
borderActiveWarning: string;
|
|
1079
1083
|
borderFocusWarning: string;
|
|
1080
|
-
boxShadowHoverWarning:
|
|
1084
|
+
boxShadowHoverWarning: string;
|
|
1081
1085
|
boxShadowActiveWarning: string;
|
|
1082
1086
|
boxShadowFocusWarning: string;
|
|
1083
1087
|
colorActiveWarning: string;
|
|
@@ -1086,7 +1090,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1086
1090
|
borderHoverError: string;
|
|
1087
1091
|
borderActiveError: string;
|
|
1088
1092
|
borderFocusError: string;
|
|
1089
|
-
boxShadowHoverError:
|
|
1093
|
+
boxShadowHoverError: string;
|
|
1090
1094
|
boxShadowActiveError: string;
|
|
1091
1095
|
boxShadowFocusError: string;
|
|
1092
1096
|
colorActiveError: string;
|
|
@@ -1209,6 +1213,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1209
1213
|
loadingColorError: string;
|
|
1210
1214
|
borderError: string;
|
|
1211
1215
|
borderHoverError: string;
|
|
1216
|
+
/** @deprecated */
|
|
1212
1217
|
colorFocusError: string;
|
|
1213
1218
|
borderFocusError: string;
|
|
1214
1219
|
boxShadowFocusError: string;
|
|
@@ -1294,7 +1299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1294
1299
|
borderHover: string;
|
|
1295
1300
|
borderActive: string;
|
|
1296
1301
|
borderFocus: string;
|
|
1297
|
-
boxShadowHover:
|
|
1302
|
+
boxShadowHover: string;
|
|
1298
1303
|
boxShadowActive: string;
|
|
1299
1304
|
boxShadowFocus: string;
|
|
1300
1305
|
caretColor: string;
|
|
@@ -1305,7 +1310,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1305
1310
|
borderHoverWarning: string;
|
|
1306
1311
|
borderActiveWarning: string;
|
|
1307
1312
|
borderFocusWarning: string;
|
|
1308
|
-
boxShadowHoverWarning:
|
|
1313
|
+
boxShadowHoverWarning: string;
|
|
1309
1314
|
boxShadowActiveWarning: string;
|
|
1310
1315
|
boxShadowFocusWarning: string;
|
|
1311
1316
|
colorActiveWarning: string;
|
|
@@ -1314,7 +1319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1314
1319
|
borderHoverError: string;
|
|
1315
1320
|
borderActiveError: string;
|
|
1316
1321
|
borderFocusError: string;
|
|
1317
|
-
boxShadowHoverError:
|
|
1322
|
+
boxShadowHoverError: string;
|
|
1318
1323
|
boxShadowActiveError: string;
|
|
1319
1324
|
boxShadowFocusError: string;
|
|
1320
1325
|
colorActiveError: string;
|
|
@@ -1437,6 +1442,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1437
1442
|
loadingColorError: string;
|
|
1438
1443
|
borderError: string;
|
|
1439
1444
|
borderHoverError: string;
|
|
1445
|
+
/** @deprecated */
|
|
1440
1446
|
colorFocusError: string;
|
|
1441
1447
|
borderFocusError: string;
|
|
1442
1448
|
boxShadowFocusError: string;
|
|
@@ -1655,7 +1661,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1655
1661
|
borderHover: string;
|
|
1656
1662
|
borderActive: string;
|
|
1657
1663
|
borderFocus: string;
|
|
1658
|
-
boxShadowHover:
|
|
1664
|
+
boxShadowHover: string;
|
|
1659
1665
|
boxShadowActive: string;
|
|
1660
1666
|
boxShadowFocus: string;
|
|
1661
1667
|
caretColor: string;
|
|
@@ -1666,7 +1672,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1666
1672
|
borderHoverWarning: string;
|
|
1667
1673
|
borderActiveWarning: string;
|
|
1668
1674
|
borderFocusWarning: string;
|
|
1669
|
-
boxShadowHoverWarning:
|
|
1675
|
+
boxShadowHoverWarning: string;
|
|
1670
1676
|
boxShadowActiveWarning: string;
|
|
1671
1677
|
boxShadowFocusWarning: string;
|
|
1672
1678
|
colorActiveWarning: string;
|
|
@@ -1675,7 +1681,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1675
1681
|
borderHoverError: string;
|
|
1676
1682
|
borderActiveError: string;
|
|
1677
1683
|
borderFocusError: string;
|
|
1678
|
-
boxShadowHoverError:
|
|
1684
|
+
boxShadowHoverError: string;
|
|
1679
1685
|
boxShadowActiveError: string;
|
|
1680
1686
|
boxShadowFocusError: string;
|
|
1681
1687
|
colorActiveError: string;
|
|
@@ -1798,6 +1804,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1798
1804
|
loadingColorError: string;
|
|
1799
1805
|
borderError: string;
|
|
1800
1806
|
borderHoverError: string;
|
|
1807
|
+
/** @deprecated */
|
|
1801
1808
|
colorFocusError: string;
|
|
1802
1809
|
borderFocusError: string;
|
|
1803
1810
|
boxShadowFocusError: string;
|
|
@@ -1841,7 +1848,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1841
1848
|
borderHover: string;
|
|
1842
1849
|
borderActive: string;
|
|
1843
1850
|
borderFocus: string;
|
|
1844
|
-
boxShadowHover:
|
|
1851
|
+
boxShadowHover: string;
|
|
1845
1852
|
boxShadowActive: string;
|
|
1846
1853
|
boxShadowFocus: string;
|
|
1847
1854
|
caretColor: string;
|
|
@@ -1852,7 +1859,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1852
1859
|
borderHoverWarning: string;
|
|
1853
1860
|
borderActiveWarning: string;
|
|
1854
1861
|
borderFocusWarning: string;
|
|
1855
|
-
boxShadowHoverWarning:
|
|
1862
|
+
boxShadowHoverWarning: string;
|
|
1856
1863
|
boxShadowActiveWarning: string;
|
|
1857
1864
|
boxShadowFocusWarning: string;
|
|
1858
1865
|
colorActiveWarning: string;
|
|
@@ -1861,7 +1868,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1861
1868
|
borderHoverError: string;
|
|
1862
1869
|
borderActiveError: string;
|
|
1863
1870
|
borderFocusError: string;
|
|
1864
|
-
boxShadowHoverError:
|
|
1871
|
+
boxShadowHoverError: string;
|
|
1865
1872
|
boxShadowActiveError: string;
|
|
1866
1873
|
boxShadowFocusError: string;
|
|
1867
1874
|
colorActiveError: string;
|
|
@@ -2003,7 +2010,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2003
2010
|
'--n-button-border': string;
|
|
2004
2011
|
'--n-button-border-hover': string;
|
|
2005
2012
|
'--n-button-border-pressed': string;
|
|
2006
|
-
}
|
|
2013
|
+
}> | undefined;
|
|
2014
|
+
themeClass: import("vue").Ref<string> | undefined;
|
|
2015
|
+
onRender: (() => void) | undefined;
|
|
2007
2016
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2008
2017
|
readonly page: NumberConstructor;
|
|
2009
2018
|
readonly defaultPage: {
|
|
@@ -2111,7 +2120,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2111
2120
|
borderHover: string;
|
|
2112
2121
|
borderActive: string;
|
|
2113
2122
|
borderFocus: string;
|
|
2114
|
-
boxShadowHover:
|
|
2123
|
+
boxShadowHover: string;
|
|
2115
2124
|
boxShadowActive: string;
|
|
2116
2125
|
boxShadowFocus: string;
|
|
2117
2126
|
caretColor: string;
|
|
@@ -2122,7 +2131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2122
2131
|
borderHoverWarning: string;
|
|
2123
2132
|
borderActiveWarning: string;
|
|
2124
2133
|
borderFocusWarning: string;
|
|
2125
|
-
boxShadowHoverWarning:
|
|
2134
|
+
boxShadowHoverWarning: string;
|
|
2126
2135
|
boxShadowActiveWarning: string;
|
|
2127
2136
|
boxShadowFocusWarning: string;
|
|
2128
2137
|
colorActiveWarning: string;
|
|
@@ -2131,7 +2140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2131
2140
|
borderHoverError: string;
|
|
2132
2141
|
borderActiveError: string;
|
|
2133
2142
|
borderFocusError: string;
|
|
2134
|
-
boxShadowHoverError:
|
|
2143
|
+
boxShadowHoverError: string;
|
|
2135
2144
|
boxShadowActiveError: string;
|
|
2136
2145
|
boxShadowFocusError: string;
|
|
2137
2146
|
colorActiveError: string;
|
|
@@ -2254,6 +2263,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2254
2263
|
loadingColorError: string;
|
|
2255
2264
|
borderError: string;
|
|
2256
2265
|
borderHoverError: string;
|
|
2266
|
+
/** @deprecated */
|
|
2257
2267
|
colorFocusError: string;
|
|
2258
2268
|
borderFocusError: string;
|
|
2259
2269
|
boxShadowFocusError: string;
|
|
@@ -2339,7 +2349,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2339
2349
|
borderHover: string;
|
|
2340
2350
|
borderActive: string;
|
|
2341
2351
|
borderFocus: string;
|
|
2342
|
-
boxShadowHover:
|
|
2352
|
+
boxShadowHover: string;
|
|
2343
2353
|
boxShadowActive: string;
|
|
2344
2354
|
boxShadowFocus: string;
|
|
2345
2355
|
caretColor: string;
|
|
@@ -2350,7 +2360,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2350
2360
|
borderHoverWarning: string;
|
|
2351
2361
|
borderActiveWarning: string;
|
|
2352
2362
|
borderFocusWarning: string;
|
|
2353
|
-
boxShadowHoverWarning:
|
|
2363
|
+
boxShadowHoverWarning: string;
|
|
2354
2364
|
boxShadowActiveWarning: string;
|
|
2355
2365
|
boxShadowFocusWarning: string;
|
|
2356
2366
|
colorActiveWarning: string;
|
|
@@ -2359,7 +2369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2359
2369
|
borderHoverError: string;
|
|
2360
2370
|
borderActiveError: string;
|
|
2361
2371
|
borderFocusError: string;
|
|
2362
|
-
boxShadowHoverError:
|
|
2372
|
+
boxShadowHoverError: string;
|
|
2363
2373
|
boxShadowActiveError: string;
|
|
2364
2374
|
boxShadowFocusError: string;
|
|
2365
2375
|
colorActiveError: string;
|
|
@@ -2482,6 +2492,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2482
2492
|
loadingColorError: string;
|
|
2483
2493
|
borderError: string;
|
|
2484
2494
|
borderHoverError: string;
|
|
2495
|
+
/** @deprecated */
|
|
2485
2496
|
colorFocusError: string;
|
|
2486
2497
|
borderFocusError: string;
|
|
2487
2498
|
boxShadowFocusError: string;
|
|
@@ -2567,7 +2578,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2567
2578
|
borderHover: string;
|
|
2568
2579
|
borderActive: string;
|
|
2569
2580
|
borderFocus: string;
|
|
2570
|
-
boxShadowHover:
|
|
2581
|
+
boxShadowHover: string;
|
|
2571
2582
|
boxShadowActive: string;
|
|
2572
2583
|
boxShadowFocus: string;
|
|
2573
2584
|
caretColor: string;
|
|
@@ -2578,7 +2589,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2578
2589
|
borderHoverWarning: string;
|
|
2579
2590
|
borderActiveWarning: string;
|
|
2580
2591
|
borderFocusWarning: string;
|
|
2581
|
-
boxShadowHoverWarning:
|
|
2592
|
+
boxShadowHoverWarning: string;
|
|
2582
2593
|
boxShadowActiveWarning: string;
|
|
2583
2594
|
boxShadowFocusWarning: string;
|
|
2584
2595
|
colorActiveWarning: string;
|
|
@@ -2587,7 +2598,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2587
2598
|
borderHoverError: string;
|
|
2588
2599
|
borderActiveError: string;
|
|
2589
2600
|
borderFocusError: string;
|
|
2590
|
-
boxShadowHoverError:
|
|
2601
|
+
boxShadowHoverError: string;
|
|
2591
2602
|
boxShadowActiveError: string;
|
|
2592
2603
|
boxShadowFocusError: string;
|
|
2593
2604
|
colorActiveError: string;
|
|
@@ -2710,6 +2721,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2710
2721
|
loadingColorError: string;
|
|
2711
2722
|
borderError: string;
|
|
2712
2723
|
borderHoverError: string;
|
|
2724
|
+
/** @deprecated */
|
|
2713
2725
|
colorFocusError: string;
|
|
2714
2726
|
borderFocusError: string;
|
|
2715
2727
|
boxShadowFocusError: string;
|
|
@@ -5,7 +5,7 @@ import { NSelect } from '../../select';
|
|
|
5
5
|
import { NInput } from '../../input';
|
|
6
6
|
import { NBaseIcon } from '../../_internal';
|
|
7
7
|
import { FastForwardIcon, FastBackwardIcon, BackwardIcon, ForwardIcon, MoreIcon } from '../../_internal/icons';
|
|
8
|
-
import { useConfig, useLocale, useTheme } from '../../_mixins';
|
|
8
|
+
import { useConfig, useLocale, useTheme, useThemeClass } from '../../_mixins';
|
|
9
9
|
import { paginationLight } from '../styles';
|
|
10
10
|
import { pageItems } from './utils';
|
|
11
11
|
import style from './styles/index.cssr';
|
|
@@ -49,7 +49,7 @@ export default defineComponent({
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
const {
|
|
52
|
+
const { mergedComponentPropsRef, mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
53
53
|
const themeRef = useTheme('Pagination', '-pagination', style, paginationLight, props, mergedClsPrefixRef);
|
|
54
54
|
const { localeRef } = useLocale('Pagination');
|
|
55
55
|
const selfRef = ref(null);
|
|
@@ -88,12 +88,11 @@ export default defineComponent({
|
|
|
88
88
|
});
|
|
89
89
|
const inputSizeRef = computed(() => {
|
|
90
90
|
var _a, _b;
|
|
91
|
-
return ((
|
|
92
|
-
'small');
|
|
91
|
+
return ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.inputSize) || 'small';
|
|
93
92
|
});
|
|
94
93
|
const selectSizeRef = computed(() => {
|
|
95
94
|
var _a, _b;
|
|
96
|
-
return ((
|
|
95
|
+
return ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.Pagination) === null || _b === void 0 ? void 0 : _b.selectSize) || 'small';
|
|
97
96
|
});
|
|
98
97
|
const startIndexRef = computed(() => {
|
|
99
98
|
return (mergedPageRef.value - 1) * mergedPageSizeRef.value;
|
|
@@ -247,6 +246,55 @@ export default defineComponent({
|
|
|
247
246
|
void mergedPageSizeRef.value;
|
|
248
247
|
disableTransitionOneTick();
|
|
249
248
|
});
|
|
249
|
+
const cssVarsRef = computed(() => {
|
|
250
|
+
const { self: { itemSize, itemPadding, itemMargin, inputWidth, selectWidth, inputMargin, selectMargin, buttonBorder, buttonBorderHover, buttonBorderPressed, buttonIconColor, buttonIconColorHover, buttonIconColorPressed, buttonIconSize, itemTextColor, itemTextColorHover, itemTextColorPressed, itemTextColorActive, itemTextColorDisabled, itemColor, itemColorHover, itemColorPressed, itemColorActive, itemColorActiveHover, itemColorDisabled, itemBorder, itemBorderHover, itemBorderPressed, itemBorderActive, itemBorderDisabled, itemBorderRadius, itemFontSize, jumperFontSize, jumperTextColor, jumperTextColorDisabled, prefixMargin, suffixMargin, buttonColor, buttonColorHover, buttonColorPressed }, common: { cubicBezierEaseInOut } } = themeRef.value;
|
|
251
|
+
return {
|
|
252
|
+
'--n-prefix-margin': prefixMargin,
|
|
253
|
+
'--n-suffix-margin': suffixMargin,
|
|
254
|
+
'--n-item-font-size': itemFontSize,
|
|
255
|
+
'--n-select-width': selectWidth,
|
|
256
|
+
'--n-select-margin': selectMargin,
|
|
257
|
+
'--n-input-width': inputWidth,
|
|
258
|
+
'--n-input-margin': inputMargin,
|
|
259
|
+
'--n-item-size': itemSize,
|
|
260
|
+
'--n-item-text-color': itemTextColor,
|
|
261
|
+
'--n-item-text-color-disabled': itemTextColorDisabled,
|
|
262
|
+
'--n-item-text-color-hover': itemTextColorHover,
|
|
263
|
+
'--n-item-text-color-active': itemTextColorActive,
|
|
264
|
+
'--n-item-text-color-pressed': itemTextColorPressed,
|
|
265
|
+
'--n-item-color': itemColor,
|
|
266
|
+
'--n-item-color-hover': itemColorHover,
|
|
267
|
+
'--n-item-color-disabled': itemColorDisabled,
|
|
268
|
+
'--n-item-color-active': itemColorActive,
|
|
269
|
+
'--n-item-color-active-hover': itemColorActiveHover,
|
|
270
|
+
'--n-item-color-pressed': itemColorPressed,
|
|
271
|
+
'--n-item-border': itemBorder,
|
|
272
|
+
'--n-item-border-hover': itemBorderHover,
|
|
273
|
+
'--n-item-border-disabled': itemBorderDisabled,
|
|
274
|
+
'--n-item-border-active': itemBorderActive,
|
|
275
|
+
'--n-item-border-pressed': itemBorderPressed,
|
|
276
|
+
'--n-item-padding': itemPadding,
|
|
277
|
+
'--n-item-border-radius': itemBorderRadius,
|
|
278
|
+
'--n-bezier': cubicBezierEaseInOut,
|
|
279
|
+
'--n-jumper-font-size': jumperFontSize,
|
|
280
|
+
'--n-jumper-text-color': jumperTextColor,
|
|
281
|
+
'--n-jumper-text-color-disabled': jumperTextColorDisabled,
|
|
282
|
+
'--n-item-margin': itemMargin,
|
|
283
|
+
'--n-button-icon-size': buttonIconSize,
|
|
284
|
+
'--n-button-icon-color': buttonIconColor,
|
|
285
|
+
'--n-button-icon-color-hover': buttonIconColorHover,
|
|
286
|
+
'--n-button-icon-color-pressed': buttonIconColorPressed,
|
|
287
|
+
'--n-button-color-hover': buttonColorHover,
|
|
288
|
+
'--n-button-color': buttonColor,
|
|
289
|
+
'--n-button-color-pressed': buttonColorPressed,
|
|
290
|
+
'--n-button-border': buttonBorder,
|
|
291
|
+
'--n-button-border-hover': buttonBorderHover,
|
|
292
|
+
'--n-button-border-pressed': buttonBorderPressed
|
|
293
|
+
};
|
|
294
|
+
});
|
|
295
|
+
const themeClassHandle = inlineThemeDisabled
|
|
296
|
+
? useThemeClass('pagination', undefined, cssVarsRef, props)
|
|
297
|
+
: undefined;
|
|
250
298
|
return {
|
|
251
299
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
252
300
|
locale: localeRef,
|
|
@@ -274,57 +322,15 @@ export default defineComponent({
|
|
|
274
322
|
handleQuickJumperKeyUp,
|
|
275
323
|
handlePageItemMouseEnter,
|
|
276
324
|
handlePageItemMouseLeave,
|
|
277
|
-
cssVars:
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
'--n-prefix-margin': prefixMargin,
|
|
281
|
-
'--n-suffix-margin': suffixMargin,
|
|
282
|
-
'--n-item-font-size': itemFontSize,
|
|
283
|
-
'--n-select-width': selectWidth,
|
|
284
|
-
'--n-select-margin': selectMargin,
|
|
285
|
-
'--n-input-width': inputWidth,
|
|
286
|
-
'--n-input-margin': inputMargin,
|
|
287
|
-
'--n-item-size': itemSize,
|
|
288
|
-
'--n-item-text-color': itemTextColor,
|
|
289
|
-
'--n-item-text-color-disabled': itemTextColorDisabled,
|
|
290
|
-
'--n-item-text-color-hover': itemTextColorHover,
|
|
291
|
-
'--n-item-text-color-active': itemTextColorActive,
|
|
292
|
-
'--n-item-text-color-pressed': itemTextColorPressed,
|
|
293
|
-
'--n-item-color': itemColor,
|
|
294
|
-
'--n-item-color-hover': itemColorHover,
|
|
295
|
-
'--n-item-color-disabled': itemColorDisabled,
|
|
296
|
-
'--n-item-color-active': itemColorActive,
|
|
297
|
-
'--n-item-color-active-hover': itemColorActiveHover,
|
|
298
|
-
'--n-item-color-pressed': itemColorPressed,
|
|
299
|
-
'--n-item-border': itemBorder,
|
|
300
|
-
'--n-item-border-hover': itemBorderHover,
|
|
301
|
-
'--n-item-border-disabled': itemBorderDisabled,
|
|
302
|
-
'--n-item-border-active': itemBorderActive,
|
|
303
|
-
'--n-item-border-pressed': itemBorderPressed,
|
|
304
|
-
'--n-item-padding': itemPadding,
|
|
305
|
-
'--n-item-border-radius': itemBorderRadius,
|
|
306
|
-
'--n-bezier': cubicBezierEaseInOut,
|
|
307
|
-
'--n-jumper-font-size': jumperFontSize,
|
|
308
|
-
'--n-jumper-text-color': jumperTextColor,
|
|
309
|
-
'--n-jumper-text-color-disabled': jumperTextColorDisabled,
|
|
310
|
-
'--n-item-margin': itemMargin,
|
|
311
|
-
'--n-button-icon-size': buttonIconSize,
|
|
312
|
-
'--n-button-icon-color': buttonIconColor,
|
|
313
|
-
'--n-button-icon-color-hover': buttonIconColorHover,
|
|
314
|
-
'--n-button-icon-color-pressed': buttonIconColorPressed,
|
|
315
|
-
'--n-button-color-hover': buttonColorHover,
|
|
316
|
-
'--n-button-color': buttonColor,
|
|
317
|
-
'--n-button-color-pressed': buttonColorPressed,
|
|
318
|
-
'--n-button-border': buttonBorder,
|
|
319
|
-
'--n-button-border-hover': buttonBorderHover,
|
|
320
|
-
'--n-button-border-pressed': buttonBorderPressed
|
|
321
|
-
};
|
|
322
|
-
})
|
|
325
|
+
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
326
|
+
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
327
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
323
328
|
};
|
|
324
329
|
},
|
|
325
330
|
render() {
|
|
326
331
|
// it's ok to expand all prop here since no slots' deps
|
|
327
|
-
const { $slots, mergedClsPrefix, disabled, cssVars, mergedPage, mergedPageCount, pageItems, showFastBackward, showFastForward, showSizePicker, showQuickJumper, mergedTheme, locale, inputSize, selectSize, mergedPageSize, pageSizeOptions, jumperValue, prev, next, prefix, suffix, label, handleJumperInput, handleSizePickerChange, handleBackwardClick, handlePageItemClick, handlePageItemMouseEnter, handlePageItemMouseLeave, handleForwardClick, handleQuickJumperKeyUp } = this;
|
|
332
|
+
const { $slots, mergedClsPrefix, disabled, cssVars, mergedPage, mergedPageCount, pageItems, showFastBackward, showFastForward, showSizePicker, showQuickJumper, mergedTheme, locale, inputSize, selectSize, mergedPageSize, pageSizeOptions, jumperValue, prev, next, prefix, suffix, label, handleJumperInput, handleSizePickerChange, handleBackwardClick, handlePageItemClick, handlePageItemMouseEnter, handlePageItemMouseLeave, handleForwardClick, handleQuickJumperKeyUp, onRender } = this;
|
|
333
|
+
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
328
334
|
const renderPrefix = $slots.prefix || prefix;
|
|
329
335
|
const renderSuffix = $slots.suffix || suffix;
|
|
330
336
|
const renderPrev = prev || $slots.prev;
|
|
@@ -332,6 +338,7 @@ export default defineComponent({
|
|
|
332
338
|
const renderLabel = label || $slots.label;
|
|
333
339
|
return (h("div", { ref: "selfRef", class: [
|
|
334
340
|
`${mergedClsPrefix}-pagination`,
|
|
341
|
+
this.themeClass,
|
|
335
342
|
disabled && `${mergedClsPrefix}-pagination--disabled`
|
|
336
343
|
], style: cssVars },
|
|
337
344
|
renderPrefix ? (h("div", { class: `${mergedClsPrefix}-pagination-prefix` }, renderPrefix({
|
|
@@ -108,7 +108,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
108
108
|
borderHover: string;
|
|
109
109
|
borderActive: string;
|
|
110
110
|
borderFocus: string;
|
|
111
|
-
boxShadowHover:
|
|
111
|
+
boxShadowHover: string;
|
|
112
112
|
boxShadowActive: string;
|
|
113
113
|
boxShadowFocus: string;
|
|
114
114
|
caretColor: string;
|
|
@@ -119,7 +119,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
119
119
|
borderHoverWarning: string;
|
|
120
120
|
borderActiveWarning: string;
|
|
121
121
|
borderFocusWarning: string;
|
|
122
|
-
boxShadowHoverWarning:
|
|
122
|
+
boxShadowHoverWarning: string;
|
|
123
123
|
boxShadowActiveWarning: string;
|
|
124
124
|
boxShadowFocusWarning: string;
|
|
125
125
|
colorActiveWarning: string;
|
|
@@ -128,7 +128,7 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
128
128
|
borderHoverError: string;
|
|
129
129
|
borderActiveError: string;
|
|
130
130
|
borderFocusError: string;
|
|
131
|
-
boxShadowHoverError:
|
|
131
|
+
boxShadowHoverError: string;
|
|
132
132
|
boxShadowActiveError: string;
|
|
133
133
|
boxShadowFocusError: string;
|
|
134
134
|
colorActiveError: string;
|