naive-ui 2.34.2 → 2.34.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/dist/index.js +11964 -9783
- package/dist/index.prod.js +3 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/es/_internal/scrollbar/styles/light.d.ts +2 -2
- package/es/_internal/select-menu/src/interface.d.ts +7 -7
- package/es/_internal/select-menu/styles/light.d.ts +2 -2
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +2 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-theme.d.ts +6 -6
- package/es/_styles/common/light.d.ts +1 -1
- package/es/_utils/cssr/create-key.d.ts +3 -3
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/es/_utils/env/is-native-lazy-load.js +2 -3
- package/es/_utils/naive/extract-public-props.d.ts +4 -4
- package/es/_utils/naive/mutable.d.ts +1 -1
- package/es/_utils/naive/prop.d.ts +1 -1
- package/es/_utils/vue/call.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/affix/src/utils.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/styles/light.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/utils.d.ts +1 -1
- package/es/anchor/styles/light.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/interface.d.ts +5 -5
- package/es/auto-complete/styles/light.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.js +7 -1
- package/es/avatar/src/interface.d.ts +2 -2
- package/es/avatar/styles/light.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/styles/light.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/styles/light.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +7 -1
- package/es/badge/src/Badge.js +15 -3
- package/es/badge/styles/light.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/styles/light.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/interface.d.ts +2 -2
- package/es/button/styles/light.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/styles/light.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/interface.d.ts +2 -2
- package/es/calendar/styles/light.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -18
- package/es/card/src/Card.js +8 -7
- package/es/card/styles/light.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +11 -1
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +11 -11
- package/es/cascader/styles/light.d.ts +3 -2
- package/es/checkbox/src/Checkbox.d.ts +12 -1
- package/es/checkbox/src/Checkbox.js +2 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/interface.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +1 -0
- package/es/checkbox/styles/_common.d.ts +1 -0
- package/es/checkbox/styles/_common.js +2 -1
- package/es/checkbox/styles/light.d.ts +3 -2
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/interface.d.ts +4 -4
- package/es/collapse/styles/light.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/styles/light.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +5 -5
- package/es/color-picker/src/utils.d.ts +2 -2
- package/es/color-picker/styles/light.d.ts +2 -2
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +3 -5
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +52 -52
- package/es/data-table/styles/light.d.ts +4 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +21 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/styles/light.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/interface.d.ts +1 -1
- package/es/dialog/styles/light.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +2 -2
- package/es/discrete/src/interface.d.ts +3 -3
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/styles/light.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/drawer/styles/light.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/interface.d.ts +21 -21
- package/es/dropdown/styles/light.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/light.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/interface.d.ts +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +7 -1
- package/es/ellipsis/styles/light.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/styles/light.d.ts +2 -2
- package/es/equation/styles/light.d.ts +2 -2
- package/es/form/src/Form.d.ts +11 -2
- package/es/form/src/FormItem.d.ts +14 -4
- package/es/form/src/FormItem.js +2 -1
- package/es/form/src/FormItemCol.d.ts +12 -3
- package/es/form/src/FormItemGridItem.d.ts +12 -3
- package/es/form/src/FormItemRow.d.ts +11 -2
- package/es/form/src/interface.d.ts +19 -19
- package/es/form/src/styles/form-item.cssr.js +1 -0
- package/es/form/styles/_common.d.ts +1 -0
- package/es/form/styles/_common.js +2 -1
- package/es/form/styles/light.d.ts +3 -2
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/gradient-text/styles/light.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/styles/light.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/icon-wrapper/styles/light.d.ts +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +5 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.js +5 -4
- package/es/image/src/utils.d.ts +1 -1
- package/es/image/styles/light.d.ts +2 -2
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/interface.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/styles/light.d.ts +2 -2
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/interface.d.ts +2 -2
- package/es/input-number/styles/light.d.ts +2 -2
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/light.d.ts +2 -2
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-grid/src/interface.d.ts +1 -1
- package/es/legacy-grid/styles/dark.d.ts +1 -1
- package/es/legacy-grid/styles/light.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +11 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/src/interface.d.ts +3 -3
- package/es/legacy-transfer/styles/light.d.ts +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/es/loading-bar/styles/light.d.ts +2 -2
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/koKR.js +9 -9
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/styles/light.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +1 -1
- package/es/mention/styles/light.d.ts +2 -2
- package/es/menu/src/Menu.d.ts +2 -2
- package/es/menu/src/Submenu.js +2 -2
- package/es/menu/src/interface.d.ts +11 -11
- package/es/menu/src/use-menu-child-props.d.ts +1 -1
- package/es/menu/styles/light.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +5 -7
- package/es/message/src/message-props.d.ts +2 -2
- package/es/message/src/types.d.ts +3 -3
- package/es/message/styles/light.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +9 -0
- package/es/modal/src/Modal.d.ts +14 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/styles/light.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +7 -7
- package/es/notification/styles/light.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/styles/light.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +9 -2
- package/es/pagination/src/Pagination.js +6 -4
- package/es/pagination/src/interface.d.ts +9 -8
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/styles/light.d.ts +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +2 -2
- package/es/popover/src/Popover.d.ts +2 -2
- package/es/popover/src/interface.d.ts +3 -3
- package/es/popover/styles/light.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +2 -2
- package/es/popselect/src/interface.d.ts +2 -2
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Line.js +3 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/interface.d.ts +1 -1
- package/es/progress/styles/light.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +8 -1
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +10 -1
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/radio/styles/_common.d.ts +1 -0
- package/es/radio/styles/_common.js +2 -1
- package/es/radio/styles/light.d.ts +3 -2
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/interface.d.ts +2 -2
- package/es/rate/styles/light.d.ts +2 -2
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/styles/light.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +5 -1
- package/es/select/src/Select.js +5 -2
- package/es/select/src/interface.d.ts +12 -12
- package/es/select/styles/light.d.ts +2 -2
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/utils.d.ts +3 -3
- package/es/slider/styles/light.d.ts +2 -2
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/light.d.ts +2 -2
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/styles/light.d.ts +2 -2
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/interface.d.ts +2 -2
- package/es/switch/styles/light.d.ts +2 -2
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +123 -1
- package/es/tabs/src/Tabs.js +83 -61
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/src/styles/index.cssr.js +49 -2
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +12 -0
- package/es/tabs/styles/light.d.ts +14 -2
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/styles/light.d.ts +2 -2
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +2 -2
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/styles/light.d.ts +2 -2
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/interface.d.ts +9 -9
- package/es/time-picker/styles/light.d.ts +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/styles/light.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +2 -2
- package/es/tooltip/styles/light.d.ts +2 -2
- package/es/transfer/src/Transfer.d.ts +11 -1
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +6 -6
- package/es/transfer/styles/light.d.ts +3 -2
- package/es/tree/src/Tree.d.ts +24 -12
- package/es/tree/src/Tree.js +36 -34
- package/es/tree/src/TreeNode.js +4 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/interface.d.ts +16 -16
- package/es/tree/styles/light.d.ts +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +22 -5
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/interface.d.ts +12 -12
- package/es/tree-select/styles/light.d.ts +3 -2
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/styles/light.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +2 -4
- package/es/upload/src/interface.d.ts +16 -16
- package/es/upload/src/utils.js +7 -9
- package/es/upload/styles/light.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/styles/light.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
- package/lib/_internal/select-menu/src/interface.d.ts +7 -7
- package/lib/_internal/select-menu/styles/light.d.ts +2 -2
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -2
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-theme.d.ts +6 -6
- package/lib/_styles/common/light.d.ts +1 -1
- package/lib/_utils/cssr/create-key.d.ts +3 -3
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/lib/_utils/env/is-native-lazy-load.js +2 -3
- package/lib/_utils/naive/extract-public-props.d.ts +4 -4
- package/lib/_utils/naive/mutable.d.ts +1 -1
- package/lib/_utils/naive/prop.d.ts +1 -1
- package/lib/_utils/vue/call.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/affix/src/utils.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/styles/light.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/utils.d.ts +1 -1
- package/lib/anchor/styles/light.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/interface.d.ts +5 -5
- package/lib/auto-complete/styles/light.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +7 -1
- package/lib/avatar/src/interface.d.ts +2 -2
- package/lib/avatar/styles/light.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/styles/light.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/styles/light.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +7 -1
- package/lib/badge/src/Badge.js +15 -3
- package/lib/badge/styles/light.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/styles/light.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/interface.d.ts +2 -2
- package/lib/button/styles/light.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/styles/light.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/interface.d.ts +2 -2
- package/lib/calendar/styles/light.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -18
- package/lib/card/src/Card.js +8 -7
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +11 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +11 -11
- package/lib/cascader/styles/light.d.ts +3 -2
- package/lib/checkbox/src/Checkbox.d.ts +12 -1
- package/lib/checkbox/src/Checkbox.js +2 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/interface.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +1 -0
- package/lib/checkbox/styles/_common.d.ts +1 -0
- package/lib/checkbox/styles/_common.js +2 -1
- package/lib/checkbox/styles/light.d.ts +3 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/interface.d.ts +4 -4
- package/lib/collapse/styles/light.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/styles/light.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +5 -5
- package/lib/color-picker/src/utils.d.ts +2 -2
- package/lib/color-picker/styles/light.d.ts +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +3 -5
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +52 -52
- package/lib/data-table/styles/light.d.ts +4 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +21 -21
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/styles/light.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/interface.d.ts +1 -1
- package/lib/dialog/styles/light.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +2 -2
- package/lib/discrete/src/interface.d.ts +3 -3
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/styles/light.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/drawer/styles/light.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/interface.d.ts +21 -21
- package/lib/dropdown/styles/light.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/light.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/interface.d.ts +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +6 -0
- package/lib/ellipsis/styles/light.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/styles/light.d.ts +2 -2
- package/lib/equation/styles/light.d.ts +2 -2
- package/lib/form/src/Form.d.ts +11 -2
- package/lib/form/src/FormItem.d.ts +14 -4
- package/lib/form/src/FormItem.js +2 -1
- package/lib/form/src/FormItemCol.d.ts +12 -3
- package/lib/form/src/FormItemGridItem.d.ts +12 -3
- package/lib/form/src/FormItemRow.d.ts +11 -2
- package/lib/form/src/interface.d.ts +19 -19
- package/lib/form/src/styles/form-item.cssr.js +1 -0
- package/lib/form/styles/_common.d.ts +1 -0
- package/lib/form/styles/_common.js +2 -1
- package/lib/form/styles/light.d.ts +3 -2
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/gradient-text/styles/light.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/styles/light.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.d.ts +2 -2
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +5 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +5 -4
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/image/styles/light.d.ts +2 -2
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/interface.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/styles/light.d.ts +2 -2
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/interface.d.ts +2 -2
- package/lib/input-number/styles/light.d.ts +2 -2
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/light.d.ts +2 -2
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-grid/src/interface.d.ts +1 -1
- package/lib/legacy-grid/styles/dark.d.ts +1 -1
- package/lib/legacy-grid/styles/light.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/src/interface.d.ts +3 -3
- package/lib/legacy-transfer/styles/light.d.ts +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/lib/loading-bar/styles/light.d.ts +2 -2
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/koKR.js +9 -9
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/styles/light.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +1 -1
- package/lib/mention/styles/light.d.ts +2 -2
- package/lib/menu/src/Menu.d.ts +2 -2
- package/lib/menu/src/Submenu.js +2 -2
- package/lib/menu/src/interface.d.ts +11 -11
- package/lib/menu/src/use-menu-child-props.d.ts +1 -1
- package/lib/menu/styles/light.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +5 -7
- package/lib/message/src/message-props.d.ts +2 -2
- package/lib/message/src/types.d.ts +3 -3
- package/lib/message/styles/light.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +9 -0
- package/lib/modal/src/Modal.d.ts +14 -1
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/modal/styles/light.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +7 -7
- package/lib/notification/styles/light.d.ts +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/styles/light.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +9 -2
- package/lib/pagination/src/Pagination.js +6 -4
- package/lib/pagination/src/interface.d.ts +9 -8
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/styles/light.d.ts +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +2 -2
- package/lib/popover/src/Popover.d.ts +2 -2
- package/lib/popover/src/interface.d.ts +3 -3
- package/lib/popover/styles/light.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +2 -2
- package/lib/popselect/src/interface.d.ts +2 -2
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Line.js +3 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/interface.d.ts +1 -1
- package/lib/progress/styles/light.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +8 -1
- package/lib/radio/src/Radio.js +2 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +10 -1
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/radio/styles/_common.d.ts +1 -0
- package/lib/radio/styles/_common.js +2 -1
- package/lib/radio/styles/light.d.ts +3 -2
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/interface.d.ts +2 -2
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/styles/light.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +5 -1
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +12 -12
- package/lib/select/styles/light.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/utils.d.ts +3 -3
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/light.d.ts +2 -2
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/styles/light.d.ts +2 -2
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/interface.d.ts +2 -2
- package/lib/switch/styles/light.d.ts +2 -2
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +123 -1
- package/lib/tabs/src/Tabs.js +83 -61
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/src/styles/index.cssr.js +49 -2
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +12 -0
- package/lib/tabs/styles/light.d.ts +14 -2
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +2 -2
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +2 -2
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/styles/light.d.ts +2 -2
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/interface.d.ts +9 -9
- package/lib/time-picker/styles/light.d.ts +2 -2
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/styles/light.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +2 -2
- package/lib/tooltip/styles/light.d.ts +2 -2
- package/lib/transfer/src/Transfer.d.ts +11 -1
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +6 -6
- package/lib/transfer/styles/light.d.ts +3 -2
- package/lib/tree/src/Tree.d.ts +24 -12
- package/lib/tree/src/Tree.js +36 -34
- package/lib/tree/src/TreeNode.js +4 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/interface.d.ts +16 -16
- package/lib/tree/styles/light.d.ts +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +22 -5
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/interface.d.ts +12 -12
- package/lib/tree-select/styles/light.d.ts +3 -2
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/styles/light.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +2 -4
- package/lib/upload/src/interface.d.ts +16 -16
- package/lib/upload/src/utils.js +7 -9
- package/lib/upload/styles/light.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/styles/light.d.ts +1 -1
- package/package.json +13 -13
- package/web-types.json +80 -14
package/es/log/styles/light.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const self: (vars: ThemeCommonVars) => {
|
|
|
6
6
|
loaderBorder: string;
|
|
7
7
|
loadingColor: string;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type LogThemeVars = ReturnType<typeof self>;
|
|
10
10
|
declare const logLight: import("../../_mixins").Theme<"Log", {
|
|
11
11
|
loaderFontSize: string;
|
|
12
12
|
loaderTextColor: string;
|
|
@@ -35,4 +35,4 @@ declare const logLight: import("../../_mixins").Theme<"Log", {
|
|
|
35
35
|
}, any>;
|
|
36
36
|
}>;
|
|
37
37
|
export default logLight;
|
|
38
|
-
export
|
|
38
|
+
export type LogTheme = typeof logLight;
|
|
@@ -419,7 +419,7 @@ export declare const mentionProps: {
|
|
|
419
419
|
}, any>;
|
|
420
420
|
}>>>;
|
|
421
421
|
};
|
|
422
|
-
export
|
|
422
|
+
export type MentionProps = ExtractPublicPropTypes<typeof mentionProps>;
|
|
423
423
|
declare const _default: import("vue").DefineComponent<{
|
|
424
424
|
readonly to: {
|
|
425
425
|
type: PropType<string | boolean | HTMLElement>;
|
|
@@ -121,5 +121,5 @@ declare const mentionLight: import("../../_mixins").Theme<"Mention", {
|
|
|
121
121
|
}, any>;
|
|
122
122
|
}>;
|
|
123
123
|
export default mentionLight;
|
|
124
|
-
export
|
|
125
|
-
export
|
|
124
|
+
export type MentionTheme = typeof mentionLight;
|
|
125
|
+
export type MentionThemeVars = ReturnType<typeof self>;
|
package/es/menu/src/Menu.d.ts
CHANGED
|
@@ -612,8 +612,8 @@ export declare const menuProps: {
|
|
|
612
612
|
}>;
|
|
613
613
|
}>>>;
|
|
614
614
|
};
|
|
615
|
-
export
|
|
616
|
-
export
|
|
615
|
+
export type MenuSetupProps = ExtractPropTypes<typeof menuProps>;
|
|
616
|
+
export type MenuProps = Partial<MenuSetupProps>;
|
|
617
617
|
declare const _default: import("vue").DefineComponent<{
|
|
618
618
|
readonly options: {
|
|
619
619
|
readonly type: PropType<MenuMixedOption[]>;
|
package/es/menu/src/Submenu.js
CHANGED
|
@@ -109,10 +109,10 @@ export const NSubmenu = defineComponent({
|
|
|
109
109
|
}
|
|
110
110
|
}));
|
|
111
111
|
};
|
|
112
|
-
return this.root ? (h(NDropdown, Object.assign({ size: "large" }, (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.dropdownProps, { themeOverrides: this.mergedTheme.peerOverrides.Dropdown, theme: this.mergedTheme.peers.Dropdown, builtinThemeOverrides: {
|
|
112
|
+
return this.root ? (h(NDropdown, Object.assign({ size: "large", trigger: "hover" }, (_a = this.menuProps) === null || _a === void 0 ? void 0 : _a.dropdownProps, { themeOverrides: this.mergedTheme.peerOverrides.Dropdown, theme: this.mergedTheme.peers.Dropdown, builtinThemeOverrides: {
|
|
113
113
|
fontSizeLarge: '14px',
|
|
114
114
|
optionIconSizeLarge: '18px'
|
|
115
|
-
}, value: this.mergedValue,
|
|
115
|
+
}, value: this.mergedValue, disabled: !this.dropdownEnabled, placement: this.dropdownPlacement, keyField: this.menuProps.keyField, labelField: this.menuProps.labelField, childrenField: this.menuProps.childrenField, onUpdateShow: this.handlePopoverShowChange, options: this.rawNodes, onSelect: this.doSelect, inverted: this.inverted, renderIcon: renderIcon, renderLabel: renderLabel }), {
|
|
116
116
|
default: () => (h("div", { class: `${mergedClsPrefix}-submenu`, role: "menuitem", "aria-expanded": !this.collapsed },
|
|
117
117
|
createSubmenuItem(),
|
|
118
118
|
this.isHorizontal ? null : createSubmenuChildren()))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TreeNode } from 'treemate';
|
|
2
2
|
import { VNodeChild, HTMLAttributes } from 'vue';
|
|
3
|
-
export
|
|
3
|
+
export type Key = string | number;
|
|
4
4
|
export interface MenuOptionSharedPart {
|
|
5
5
|
key?: Key;
|
|
6
6
|
disabled?: boolean;
|
|
@@ -16,7 +16,7 @@ export interface MenuOptionSharedPart {
|
|
|
16
16
|
/**
|
|
17
17
|
* @private
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
19
|
+
export type MenuIgnoredOption = MenuDividerOption | MenuRenderOption;
|
|
20
20
|
export interface MenuDividerOption {
|
|
21
21
|
type: 'divider';
|
|
22
22
|
key?: Key;
|
|
@@ -34,25 +34,25 @@ export interface MenuGroupOptionBase extends MenuOptionSharedPart {
|
|
|
34
34
|
type: 'group';
|
|
35
35
|
children: Array<MenuOption | MenuDividerOption>;
|
|
36
36
|
}
|
|
37
|
-
export
|
|
37
|
+
export type MenuOption = (MenuOptionSharedPart & {
|
|
38
38
|
/** @deprecated */
|
|
39
39
|
title?: string | (() => VNodeChild);
|
|
40
40
|
}) | (MenuOptionSharedPart & {
|
|
41
41
|
label?: string | (() => VNodeChild);
|
|
42
42
|
});
|
|
43
|
-
export
|
|
43
|
+
export type MenuGroupOption = (MenuGroupOptionBase & {
|
|
44
44
|
/** @deprecated */
|
|
45
45
|
title?: string | (() => VNodeChild);
|
|
46
46
|
}) | (MenuGroupOptionBase & {
|
|
47
47
|
label?: string | (() => VNodeChild);
|
|
48
48
|
});
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
49
|
+
export type MenuMixedOption = MenuDividerOption | MenuOption | MenuGroupOption;
|
|
50
|
+
export type TmNode = TreeNode<MenuOption, MenuGroupOption, MenuIgnoredOption>;
|
|
51
|
+
export type OnUpdateValue = (value: string & number & (string | number), item: MenuOption) => void;
|
|
52
|
+
export type OnUpdateKeys = (keys: string[] & number[] & Array<string | number>) => void;
|
|
53
|
+
export type OnUpdateValueImpl = (value: string | number | (string | number), item: MenuOption) => void;
|
|
54
|
+
export type OnUpdateKeysImpl = (keys: string[] | number[] | Array<string | number>) => void;
|
|
55
|
+
export type MenuNodeProps = (option: MenuOption | MenuGroupOption) => HTMLAttributes & Record<string, string | number | undefined>;
|
|
56
56
|
export interface MenuInst {
|
|
57
57
|
showOption: (key?: Key) => void;
|
|
58
58
|
}
|
|
@@ -14,4 +14,4 @@ export declare const useMenuChildProps: {
|
|
|
14
14
|
readonly title: PropType<string | (() => VNodeChild)>;
|
|
15
15
|
readonly extra: PropType<string | (() => VNodeChild)>;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type UseMenuChildProps = ExtractPropTypes<typeof useMenuChildProps>;
|
|
@@ -118,7 +118,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
118
118
|
fontSize: string;
|
|
119
119
|
dividerColor: string;
|
|
120
120
|
};
|
|
121
|
-
export
|
|
121
|
+
export type MenuThemeVars = ReturnType<typeof self>;
|
|
122
122
|
declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
123
123
|
itemColorHoverInverted: string;
|
|
124
124
|
itemColorActiveInverted: string;
|
|
@@ -294,4 +294,4 @@ declare const menuLight: import("../../_mixins/use-theme").Theme<"Menu", {
|
|
|
294
294
|
}>;
|
|
295
295
|
}>;
|
|
296
296
|
export default menuLight;
|
|
297
|
-
export
|
|
297
|
+
export type MenuTheme = typeof menuLight;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VNodeChild, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
2
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
3
|
import type { MessageOptions, MessageType } from './types';
|
|
4
|
-
|
|
4
|
+
type ContentType = string | (() => VNodeChild);
|
|
5
5
|
export interface MessageApiInjection {
|
|
6
6
|
create: (content: ContentType, options?: MessageOptions) => MessageReactive;
|
|
7
7
|
info: (content: ContentType, options?: MessageOptions) => MessageReactive;
|
|
@@ -26,7 +26,7 @@ interface PrivateMessageRef extends MessageReactive {
|
|
|
26
26
|
key: string;
|
|
27
27
|
hide: () => void;
|
|
28
28
|
}
|
|
29
|
-
export
|
|
29
|
+
export type MessageProviderInst = MessageApiInjection;
|
|
30
30
|
export declare const messageProviderProps: {
|
|
31
31
|
to: PropType<string | HTMLElement>;
|
|
32
32
|
duration: {
|
|
@@ -252,8 +252,8 @@ export declare const messageProviderProps: {
|
|
|
252
252
|
fontSize: string;
|
|
253
253
|
}, any>>>;
|
|
254
254
|
};
|
|
255
|
-
export
|
|
256
|
-
export
|
|
255
|
+
export type MessageProviderProps = ExtractPublicPropTypes<typeof messageProviderProps>;
|
|
256
|
+
export type MessageProviderSetupProps = ExtractPropTypes<typeof messageProviderProps>;
|
|
257
257
|
declare const _default: import("vue").DefineComponent<{
|
|
258
258
|
to: PropType<string | HTMLElement>;
|
|
259
259
|
duration: {
|
|
@@ -480,9 +480,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
480
480
|
}, any>>>;
|
|
481
481
|
}, {
|
|
482
482
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
483
|
-
messageRefs: import("vue").Ref<
|
|
484
|
-
[key: string]: PrivateMessageRef;
|
|
485
|
-
}>;
|
|
483
|
+
messageRefs: import("vue").Ref<Record<string, PrivateMessageRef>>;
|
|
486
484
|
messageList: import("vue").Ref<{
|
|
487
485
|
key: string;
|
|
488
486
|
content?: ContentType | undefined;
|
|
@@ -18,5 +18,5 @@ export declare const messageProps: {
|
|
|
18
18
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
19
19
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
22
|
-
export
|
|
21
|
+
export type MessageProps = ExtractPublicPropTypes<typeof messageProps>;
|
|
22
|
+
export type MessageSetupProps = ExtractPropTypes<typeof messageProps>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import type { MessageSetupProps } from './message-props';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading' | 'default';
|
|
4
|
+
export type RenderMessageProps = Pick<MessageSetupProps, 'closable' | 'content' | 'icon' | 'onClose' | 'type'>;
|
|
5
|
+
export type MessageRenderMessage = (props: RenderMessageProps) => VNodeChild;
|
|
6
6
|
export interface MessageOptions {
|
|
7
7
|
type?: MessageType;
|
|
8
8
|
render?: MessageRenderMessage;
|
|
@@ -70,7 +70,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
70
70
|
iconSize: string;
|
|
71
71
|
fontSize: string;
|
|
72
72
|
};
|
|
73
|
-
export
|
|
73
|
+
export type MessageThemeVars = ReturnType<typeof self>;
|
|
74
74
|
declare const messageLight: Theme<'Message', MessageThemeVars>;
|
|
75
75
|
export default messageLight;
|
|
76
|
-
export
|
|
76
|
+
export type MessageTheme = typeof messageLight;
|
|
@@ -62,6 +62,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
};
|
|
63
63
|
hoverable: BooleanConstructor;
|
|
64
64
|
role: StringConstructor;
|
|
65
|
+
tag: {
|
|
66
|
+
readonly type: PropType<keyof HTMLElementTagNameMap>;
|
|
67
|
+
readonly default: "div";
|
|
68
|
+
};
|
|
65
69
|
show: {
|
|
66
70
|
type: BooleanConstructor;
|
|
67
71
|
required: true;
|
|
@@ -782,6 +786,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
782
786
|
};
|
|
783
787
|
hoverable: BooleanConstructor;
|
|
784
788
|
role: StringConstructor;
|
|
789
|
+
tag: {
|
|
790
|
+
readonly type: PropType<keyof HTMLElementTagNameMap>;
|
|
791
|
+
readonly default: "div";
|
|
792
|
+
};
|
|
785
793
|
show: {
|
|
786
794
|
type: BooleanConstructor;
|
|
787
795
|
required: true;
|
|
@@ -802,6 +810,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
802
810
|
blockScroll: BooleanConstructor;
|
|
803
811
|
}>>, {
|
|
804
812
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
813
|
+
tag: keyof HTMLElementTagNameMap;
|
|
805
814
|
size: "small" | "medium" | "large" | "huge";
|
|
806
815
|
autoFocus: boolean;
|
|
807
816
|
loading: boolean;
|
package/es/modal/src/Modal.d.ts
CHANGED
|
@@ -58,6 +58,10 @@ export declare const modalProps: {
|
|
|
58
58
|
};
|
|
59
59
|
hoverable: BooleanConstructor;
|
|
60
60
|
role: StringConstructor;
|
|
61
|
+
tag: {
|
|
62
|
+
readonly type: PropType<keyof HTMLElementTagNameMap>;
|
|
63
|
+
readonly default: "div";
|
|
64
|
+
};
|
|
61
65
|
show: BooleanConstructor;
|
|
62
66
|
unstableShowMask: {
|
|
63
67
|
type: BooleanConstructor;
|
|
@@ -947,7 +951,7 @@ export declare const modalProps: {
|
|
|
947
951
|
}, any>;
|
|
948
952
|
}>>>;
|
|
949
953
|
};
|
|
950
|
-
export
|
|
954
|
+
export type ModalProps = ExtractPublicPropTypes<typeof modalProps>;
|
|
951
955
|
declare const _default: import("vue").DefineComponent<{
|
|
952
956
|
onEsc: PropType<() => void>;
|
|
953
957
|
'onUpdate:show': PropType<MaybeArray<(value: boolean) => void>>;
|
|
@@ -1006,6 +1010,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1006
1010
|
};
|
|
1007
1011
|
hoverable: BooleanConstructor;
|
|
1008
1012
|
role: StringConstructor;
|
|
1013
|
+
tag: {
|
|
1014
|
+
readonly type: PropType<keyof HTMLElementTagNameMap>;
|
|
1015
|
+
readonly default: "div";
|
|
1016
|
+
};
|
|
1009
1017
|
show: BooleanConstructor;
|
|
1010
1018
|
unstableShowMask: {
|
|
1011
1019
|
type: BooleanConstructor;
|
|
@@ -1974,6 +1982,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1974
1982
|
};
|
|
1975
1983
|
hoverable: BooleanConstructor;
|
|
1976
1984
|
role: StringConstructor;
|
|
1985
|
+
tag: {
|
|
1986
|
+
readonly type: PropType<keyof HTMLElementTagNameMap>;
|
|
1987
|
+
readonly default: "div";
|
|
1988
|
+
};
|
|
1977
1989
|
show: BooleanConstructor;
|
|
1978
1990
|
unstableShowMask: {
|
|
1979
1991
|
type: BooleanConstructor;
|
|
@@ -2864,6 +2876,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2864
2876
|
}>>>;
|
|
2865
2877
|
}>>, {
|
|
2866
2878
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
2879
|
+
tag: keyof HTMLElementTagNameMap;
|
|
2867
2880
|
size: "small" | "medium" | "large" | "huge";
|
|
2868
2881
|
show: boolean;
|
|
2869
2882
|
transformOrigin: "center" | "mouse";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Ref, ComponentPublicInstance } from 'vue';
|
|
2
2
|
import type { MergedTheme } from '../../_mixins';
|
|
3
3
|
import type { ModalTheme } from '../styles';
|
|
4
|
-
export
|
|
4
|
+
export type ModalBodyInjection = Ref<HTMLElement | ComponentPublicInstance | null> | null;
|
|
5
5
|
export declare const modalBodyInjectionKey: import("vue").InjectionKey<ModalBodyInjection>;
|
|
6
6
|
export interface ModalInjection {
|
|
7
7
|
getMousePosition: () => {
|
|
@@ -40,6 +40,10 @@ declare const presetProps: {
|
|
|
40
40
|
};
|
|
41
41
|
hoverable: BooleanConstructor;
|
|
42
42
|
role: StringConstructor;
|
|
43
|
+
tag: {
|
|
44
|
+
readonly type: import("vue").PropType<keyof HTMLElementTagNameMap>;
|
|
45
|
+
readonly default: "div";
|
|
46
|
+
};
|
|
43
47
|
};
|
|
44
|
-
declare const presetPropsKeys: ("type" | "content" | "size" | "icon" | "title" | "role" | "action" | "positiveText" | "negativeText" | "loading" | "bordered" | "showIcon" | "closable" | "contentStyle" | "onClose" | "headerStyle" | "footerStyle" | "iconPlacement" | "hoverable" | "embedded" | "headerExtraStyle" | "segmented" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
|
|
48
|
+
declare const presetPropsKeys: ("type" | "tag" | "content" | "size" | "icon" | "title" | "role" | "action" | "positiveText" | "negativeText" | "loading" | "bordered" | "showIcon" | "closable" | "contentStyle" | "onClose" | "headerStyle" | "footerStyle" | "iconPlacement" | "hoverable" | "embedded" | "headerExtraStyle" | "segmented" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
|
|
45
49
|
export { presetProps, presetPropsKeys };
|
|
@@ -4,7 +4,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
4
4
|
textColor: string;
|
|
5
5
|
boxShadow: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type ModalThemeVars = ReturnType<typeof self>;
|
|
8
8
|
declare const modalLight: import("../../_mixins").Theme<"Modal", {
|
|
9
9
|
color: string;
|
|
10
10
|
textColor: string;
|
|
@@ -290,4 +290,4 @@ declare const modalLight: import("../../_mixins").Theme<"Modal", {
|
|
|
290
290
|
}, any>;
|
|
291
291
|
}>;
|
|
292
292
|
export default modalLight;
|
|
293
|
-
export
|
|
293
|
+
export type ModalTheme = typeof modalLight;
|
|
@@ -29,7 +29,7 @@ export declare const notificationEnvOptions: {
|
|
|
29
29
|
readonly onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
30
30
|
readonly onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type NotificationOptions = Partial<ExtractPropTypes<typeof notificationEnvOptions>>;
|
|
33
33
|
export declare const NotificationEnvironment: import("vue").DefineComponent<{
|
|
34
34
|
internalKey: {
|
|
35
35
|
type: StringConstructor;
|
|
@@ -3,15 +3,15 @@ import type { MergedTheme } from '../../_mixins';
|
|
|
3
3
|
import { ExtractPublicPropTypes, Mutable } from '../../_utils';
|
|
4
4
|
import { NotificationTheme } from '../styles';
|
|
5
5
|
import type { NotificationOptions } from './NotificationEnvironment';
|
|
6
|
-
export
|
|
6
|
+
export type NotificationPlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'top' | 'bottom';
|
|
7
7
|
export interface NotificationProviderInjection {
|
|
8
8
|
props: ExtractPropTypes<typeof notificationProviderProps>;
|
|
9
9
|
mergedClsPrefixRef: Ref<string>;
|
|
10
10
|
mergedThemeRef: Ref<MergedTheme<NotificationTheme>>;
|
|
11
11
|
wipTransitionCountRef: Ref<number>;
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
type Create = (options: NotificationOptions) => NotificationReactive;
|
|
14
|
+
type TypedCreate = (options: Omit<NotificationOptions, 'type'>) => NotificationReactive;
|
|
15
15
|
export interface NotificationApiInjection {
|
|
16
16
|
create: Create;
|
|
17
17
|
info: TypedCreate;
|
|
@@ -22,10 +22,10 @@ export interface NotificationApiInjection {
|
|
|
22
22
|
open: Create;
|
|
23
23
|
destroyAll: () => void;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type NotificationProviderInst = NotificationApiInjection;
|
|
26
26
|
export declare const notificationApiInjectionKey: import("vue").InjectionKey<NotificationApiInjection>;
|
|
27
|
-
export
|
|
28
|
-
export
|
|
27
|
+
export type NotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
28
|
+
export type NotificationReactive = {
|
|
29
29
|
readonly key: string;
|
|
30
30
|
readonly destroy: () => void;
|
|
31
31
|
/** @deprecated */
|
|
@@ -158,7 +158,7 @@ export declare const notificationProviderProps: {
|
|
|
158
158
|
}, any>;
|
|
159
159
|
}>>>;
|
|
160
160
|
};
|
|
161
|
-
export
|
|
161
|
+
export type NotificationProviderProps = ExtractPublicPropTypes<typeof notificationProviderProps>;
|
|
162
162
|
declare const _default: import("vue").DefineComponent<{
|
|
163
163
|
containerStyle: PropType<string | CSSProperties>;
|
|
164
164
|
to: PropType<string | HTMLElement>;
|
|
@@ -30,7 +30,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
30
30
|
metaFontSize: string;
|
|
31
31
|
descriptionFontSize: string;
|
|
32
32
|
};
|
|
33
|
-
export
|
|
33
|
+
export type NotificationThemeVars = ReturnType<typeof self>;
|
|
34
34
|
declare const notificationLight: import("../../_mixins").Theme<"Notification", {
|
|
35
35
|
borderRadius: string;
|
|
36
36
|
lineHeight: string;
|
|
@@ -68,4 +68,4 @@ declare const notificationLight: import("../../_mixins").Theme<"Notification", {
|
|
|
68
68
|
}, any>;
|
|
69
69
|
}>;
|
|
70
70
|
export default notificationLight;
|
|
71
|
-
export
|
|
71
|
+
export type NotificationTheme = typeof notificationLight;
|
|
@@ -25,7 +25,7 @@ export declare const numberAnimationProps: {
|
|
|
25
25
|
};
|
|
26
26
|
onFinish: PropType<() => void>;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type NumberAnimationProps = ExtractPublicPropTypes<typeof numberAnimationProps>;
|
|
29
29
|
export interface NumberAnimationInst {
|
|
30
30
|
play: () => void;
|
|
31
31
|
}
|
|
@@ -39,7 +39,7 @@ export declare const pageHeaderProps: {
|
|
|
39
39
|
backSize: string;
|
|
40
40
|
}, unknown>>>;
|
|
41
41
|
};
|
|
42
|
-
export
|
|
42
|
+
export type PageHeaderProps = ExtractPublicPropTypes<typeof pageHeaderProps>;
|
|
43
43
|
declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
title: StringConstructor;
|
|
45
45
|
subtitle: StringConstructor;
|
|
@@ -21,5 +21,5 @@ export declare const pageHeaderLight: import("../../_mixins").Theme<"PageHeader"
|
|
|
21
21
|
titleFontSize: string;
|
|
22
22
|
backSize: string;
|
|
23
23
|
}, unknown>;
|
|
24
|
-
export
|
|
25
|
-
export
|
|
24
|
+
export type PageHeaderThemeVars = ReturnType<typeof self>;
|
|
25
|
+
export type PageHeaderTheme = typeof pageHeaderLight;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import type { SelectProps } from '../../select';
|
|
2
3
|
import type { PageItem } from './utils';
|
|
3
4
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
5
|
import type { Size as InputSize } from '../../input/src/interface';
|
|
5
6
|
import type { Size as SelectSize } from '../../select/src/interface';
|
|
6
|
-
import { PaginationRenderLabel, PaginationSizeOption, RenderPrefix, Size } from './interface';
|
|
7
|
+
import { PaginationRenderLabel, PaginationSizeOption, RenderGoto, RenderPrefix, Size } from './interface';
|
|
7
8
|
export declare const paginationProps: {
|
|
8
9
|
readonly simple: BooleanConstructor;
|
|
9
10
|
readonly page: NumberConstructor;
|
|
@@ -34,8 +35,10 @@ export declare const paginationProps: {
|
|
|
34
35
|
readonly type: NumberConstructor;
|
|
35
36
|
readonly default: 9;
|
|
36
37
|
};
|
|
38
|
+
readonly selectProps: PropType<SelectProps>;
|
|
37
39
|
readonly prev: PropType<RenderPrefix>;
|
|
38
40
|
readonly next: PropType<RenderPrefix>;
|
|
41
|
+
readonly goto: PropType<RenderGoto>;
|
|
39
42
|
readonly prefix: PropType<RenderPrefix>;
|
|
40
43
|
readonly suffix: PropType<RenderPrefix>;
|
|
41
44
|
readonly label: PropType<PaginationRenderLabel>;
|
|
@@ -1049,7 +1052,7 @@ export declare const paginationProps: {
|
|
|
1049
1052
|
}>;
|
|
1050
1053
|
}>>>;
|
|
1051
1054
|
};
|
|
1052
|
-
export
|
|
1055
|
+
export type PaginationProps = ExtractPublicPropTypes<typeof paginationProps>;
|
|
1053
1056
|
declare const _default: import("vue").DefineComponent<{
|
|
1054
1057
|
readonly simple: BooleanConstructor;
|
|
1055
1058
|
readonly page: NumberConstructor;
|
|
@@ -1080,8 +1083,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1080
1083
|
readonly type: NumberConstructor;
|
|
1081
1084
|
readonly default: 9;
|
|
1082
1085
|
};
|
|
1086
|
+
readonly selectProps: PropType<SelectProps>;
|
|
1083
1087
|
readonly prev: PropType<RenderPrefix>;
|
|
1084
1088
|
readonly next: PropType<RenderPrefix>;
|
|
1089
|
+
readonly goto: PropType<RenderGoto>;
|
|
1085
1090
|
readonly prefix: PropType<RenderPrefix>;
|
|
1086
1091
|
readonly suffix: PropType<RenderPrefix>;
|
|
1087
1092
|
readonly label: PropType<PaginationRenderLabel>;
|
|
@@ -2848,8 +2853,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2848
2853
|
readonly type: NumberConstructor;
|
|
2849
2854
|
readonly default: 9;
|
|
2850
2855
|
};
|
|
2856
|
+
readonly selectProps: PropType<SelectProps>;
|
|
2851
2857
|
readonly prev: PropType<RenderPrefix>;
|
|
2852
2858
|
readonly next: PropType<RenderPrefix>;
|
|
2859
|
+
readonly goto: PropType<RenderGoto>;
|
|
2853
2860
|
readonly prefix: PropType<RenderPrefix>;
|
|
2854
2861
|
readonly suffix: PropType<RenderPrefix>;
|
|
2855
2862
|
readonly label: PropType<PaginationRenderLabel>;
|
|
@@ -29,7 +29,7 @@ export const paginationProps = Object.assign(Object.assign({}, useTheme.props),
|
|
|
29
29
|
}, disabled: Boolean, pageSlot: {
|
|
30
30
|
type: Number,
|
|
31
31
|
default: 9
|
|
32
|
-
}, prev: Function, next: Function, prefix: Function, suffix: Function, label: Function, displayOrder: {
|
|
32
|
+
}, selectProps: Object, prev: Function, next: Function, goto: Function, prefix: Function, suffix: Function, label: Function, displayOrder: {
|
|
33
33
|
type: Array,
|
|
34
34
|
default: ['pages', 'size-picker', 'quick-jumper']
|
|
35
35
|
}, to: useAdjustedTo.propTo, 'onUpdate:page': [Function, Array], onUpdatePage: [Function, Array], 'onUpdate:pageSize': [Function, Array], onUpdatePageSize: [Function, Array],
|
|
@@ -372,7 +372,7 @@ export default defineComponent({
|
|
|
372
372
|
},
|
|
373
373
|
render() {
|
|
374
374
|
// it's ok to expand all prop here since no slots' deps
|
|
375
|
-
const { $slots, mergedClsPrefix, disabled, cssVars, mergedPage, mergedPageCount, pageItems, showSizePicker, showQuickJumper, mergedTheme, locale, inputSize, selectSize, mergedPageSize, pageSizeOptions, jumperValue, simple, prev, next, prefix, suffix, label, handleJumperInput, handleSizePickerChange, handleBackwardClick, handlePageItemClick, handleForwardClick, handleQuickJumperChange, onRender } = this;
|
|
375
|
+
const { $slots, mergedClsPrefix, disabled, cssVars, mergedPage, mergedPageCount, pageItems, showSizePicker, showQuickJumper, mergedTheme, locale, inputSize, selectSize, mergedPageSize, pageSizeOptions, jumperValue, simple, prev, next, prefix, suffix, label, goto, handleJumperInput, handleSizePickerChange, handleBackwardClick, handlePageItemClick, handleForwardClick, handleQuickJumperChange, onRender } = this;
|
|
376
376
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
377
377
|
const renderPrefix = $slots.prefix || prefix;
|
|
378
378
|
const renderSuffix = $slots.suffix || suffix;
|
|
@@ -557,11 +557,13 @@ export default defineComponent({
|
|
|
557
557
|
default: () => this.rtlEnabled ? h(BackwardIcon, null) : h(ForwardIcon, null)
|
|
558
558
|
})))));
|
|
559
559
|
case 'size-picker': {
|
|
560
|
-
return !simple && showSizePicker ? (h(NSelect, {
|
|
560
|
+
return !simple && showSizePicker ? (h(NSelect, Object.assign({ consistentMenuWidth: false, placeholder: "", showCheckmark: false, to: this.to }, this.selectProps, { size: selectSize, options: pageSizeOptions, value: mergedPageSize, disabled: disabled, theme: mergedTheme.peers.Select, themeOverrides: mergedTheme.peerOverrides.Select, onUpdateValue: handleSizePickerChange }))) : null;
|
|
561
561
|
}
|
|
562
562
|
case 'quick-jumper':
|
|
563
563
|
return !simple && showQuickJumper ? (h("div", { class: `${mergedClsPrefix}-pagination-quick-jumper` },
|
|
564
|
-
|
|
564
|
+
goto
|
|
565
|
+
? goto()
|
|
566
|
+
: resolveSlot(this.$slots.goto, () => [locale.goto]),
|
|
565
567
|
h(NInput, { value: jumperValue, onUpdateValue: handleJumperInput, size: inputSize, placeholder: "", disabled: disabled, theme: mergedTheme.peers.Input, themeOverrides: mergedTheme.peerOverrides.Input, onChange: handleQuickJumperChange }))) : null;
|
|
566
568
|
default:
|
|
567
569
|
return null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
2
|
import { SelectBaseOption } from '../../select/src/interface';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
3
|
+
export type Size = 'small' | 'medium' | 'large';
|
|
4
|
+
export type PaginationInfo = Parameters<RenderPrefix>[0];
|
|
5
|
+
export type RenderPrefix = (info: {
|
|
6
6
|
startIndex: number;
|
|
7
7
|
endIndex: number;
|
|
8
8
|
page: number;
|
|
@@ -10,11 +10,12 @@ export declare type RenderPrefix = (info: {
|
|
|
10
10
|
pageCount: number;
|
|
11
11
|
itemCount: number | undefined;
|
|
12
12
|
}) => VNodeChild;
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
13
|
+
export type PaginationSizeOption = SelectBaseOption<number, string>;
|
|
14
|
+
export type RenderSuffix = RenderPrefix;
|
|
15
|
+
export type RenderNext = RenderPrefix;
|
|
16
|
+
export type RenderPrev = RenderPrefix;
|
|
17
|
+
export type RenderGoto = () => VNodeChild;
|
|
18
|
+
export type PaginationRenderLabel = (info: {
|
|
18
19
|
type: 'fast-backward' | 'fast-forward';
|
|
19
20
|
node: VNodeChild;
|
|
20
21
|
active: boolean;
|
|
@@ -5,7 +5,7 @@ declare function createPageItemsInfo(currentPage: number, pageCount: number, pag
|
|
|
5
5
|
fastForwardTo: number;
|
|
6
6
|
items: PageItem[];
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type PageItem = {
|
|
9
9
|
type: 'fast-backward' | 'fast-forward';
|
|
10
10
|
label: undefined;
|
|
11
11
|
active: false;
|
|
@@ -71,7 +71,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
71
71
|
prefixMarginLarge: string;
|
|
72
72
|
suffixMarginLarge: string;
|
|
73
73
|
};
|
|
74
|
-
export
|
|
74
|
+
export type PaginationThemeVars = ReturnType<typeof self>;
|
|
75
75
|
declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
76
76
|
buttonColor: string;
|
|
77
77
|
buttonColorHover: string;
|
|
@@ -404,4 +404,4 @@ declare const paginationLight: import("../../_mixins").Theme<"Pagination", {
|
|
|
404
404
|
}>;
|
|
405
405
|
}>;
|
|
406
406
|
export default paginationLight;
|
|
407
|
-
export
|
|
407
|
+
export type PaginationTheme = typeof paginationLight;
|
|
@@ -770,8 +770,8 @@ export declare const popconfirmProps: {
|
|
|
770
770
|
}, any>;
|
|
771
771
|
}>>>;
|
|
772
772
|
};
|
|
773
|
-
export
|
|
774
|
-
export
|
|
773
|
+
export type PopconfirmProps = ExtractPublicPropTypes<typeof popconfirmProps>;
|
|
774
|
+
export type PopconfirmSetupProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
775
775
|
declare const _default: import("vue").DefineComponent<{
|
|
776
776
|
positiveText: PropType<string | null>;
|
|
777
777
|
negativeText: PropType<string | null>;
|
|
@@ -3,7 +3,7 @@ import type { PopoverInst } from '../../popover';
|
|
|
3
3
|
import type { MergedTheme } from '../../_mixins';
|
|
4
4
|
import type { PopconfirmTheme } from '../styles';
|
|
5
5
|
import type { PopconfirmSetupProps } from './Popconfirm';
|
|
6
|
-
export
|
|
6
|
+
export type PopconfirmInst = PopoverInst;
|
|
7
7
|
export interface PopconfirmInjection {
|
|
8
8
|
mergedThemeRef: Ref<MergedTheme<PopconfirmTheme>>;
|
|
9
9
|
mergedClsPrefixRef: Ref<string>;
|
|
@@ -4,7 +4,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
4
4
|
iconColor: string;
|
|
5
5
|
iconSize: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type PopconfirmThemeVars = ReturnType<typeof self>;
|
|
8
8
|
declare const popconfirmLight: import("../../_mixins").Theme<"Popconfirm", {
|
|
9
9
|
fontSize: string;
|
|
10
10
|
iconColor: string;
|
|
@@ -230,4 +230,4 @@ declare const popconfirmLight: import("../../_mixins").Theme<"Popconfirm", {
|
|
|
230
230
|
}, any>;
|
|
231
231
|
}>;
|
|
232
232
|
export default popconfirmLight;
|
|
233
|
-
export
|
|
233
|
+
export type PopconfirmTheme = typeof popconfirmLight;
|
|
@@ -243,8 +243,8 @@ export declare const popoverProps: {
|
|
|
243
243
|
padding: string;
|
|
244
244
|
}, any>>>;
|
|
245
245
|
};
|
|
246
|
-
export
|
|
247
|
-
export
|
|
246
|
+
export type PopoverProps = ExtractPublicPropTypes<typeof popoverBaseProps>;
|
|
247
|
+
export type PopoverInternalProps = ExtractInternalPropTypes<typeof popoverProps>;
|
|
248
248
|
declare const _default: import("vue").DefineComponent<{
|
|
249
249
|
internalOnAfterLeave: PropType<() => void>;
|
|
250
250
|
internalRenderBody: PropType<InternalRenderBody>;
|