naive-ui 2.43.1 → 2.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/README.zh-CN.md +10 -1
- package/dist/index.js +11082 -10495
- package/dist/index.mjs +11082 -10495
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/close/src/Close.d.ts +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/es/_internal/index.d.ts +1 -1
- package/es/_internal/loading/index.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +27 -19
- package/es/_internal/loading/src/Loading.mjs +9 -9
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/es/_internal/scrollbar/src/Scrollbar.mjs +6 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +8 -4
- package/es/_internal/select-menu/src/SelectMenu.mjs +18 -8
- package/es/_internal/selection/src/Selection.d.ts +6 -6
- package/es/_mixins/use-form-item.d.ts +1 -2
- package/es/affix/src/Affix.d.ts +2 -2
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +7 -3
- package/es/auto-complete/src/AutoComplete.mjs +3 -1
- package/es/avatar/src/Avatar.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/es/breadcrumb/src/BreadcrumbItem.mjs +5 -1
- package/es/button/index.d.ts +1 -0
- package/es/button/src/Button.d.ts +21 -18
- package/es/button/src/Button.mjs +14 -11
- package/es/button/src/public-types.d.ts +4 -0
- package/es/button/src/styles/index.cssr.mjs +7 -7
- package/es/button-group/src/ButtonGroup.d.ts +5 -15
- package/es/button-group/src/ButtonGroup.mjs +1 -4
- package/es/card/index.d.ts +1 -0
- package/es/card/src/Card.d.ts +12 -19
- package/es/card/src/Card.mjs +25 -17
- package/es/card/src/public-types.d.ts +1 -0
- package/es/card/src/styles/index.cssr.mjs +44 -21
- package/es/carousel/src/Carousel.d.ts +7 -7
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/cascader/index.d.ts +1 -0
- package/es/cascader/src/Cascader.d.ts +13 -6
- package/es/cascader/src/Cascader.mjs +4 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -1
- package/es/cascader/src/CascaderMenu.mjs +16 -5
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderOption.mjs +4 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -1
- package/es/cascader/src/CascaderSelectMenu.mjs +5 -2
- package/es/cascader/src/interface.d.ts +4 -0
- package/es/cascader/src/public-types.d.ts +2 -0
- package/es/cascader/src/public-types.mjs +1 -0
- package/es/checkbox/index.d.ts +1 -0
- package/es/checkbox/src/Checkbox.d.ts +12 -11
- package/es/checkbox/src/Checkbox.mjs +5 -1
- package/es/checkbox/src/public-types.d.ts +1 -0
- package/es/checkbox/src/public-types.mjs +1 -0
- package/es/code/src/Code.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-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/AlphaSlider.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +9 -4
- package/es/color-picker/src/ColorPicker.mjs +34 -17
- package/es/color-picker/src/ColorPickerTrigger.mjs +3 -3
- package/es/color-picker/src/styles/index.cssr.mjs +11 -14
- package/es/config-provider/src/ConfigProvider.d.ts +3 -3
- package/es/config-provider/src/internal-interface.d.ts +95 -5
- package/es/countdown/src/Countdown.d.ts +2 -2
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/index.mjs +1 -2
- package/es/data-table/src/DataTable.d.ts +13 -20
- package/es/data-table/src/DataTable.mjs +30 -20
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +1 -0
- package/es/data-table/src/MainTable.mjs +4 -2
- package/es/data-table/src/TableParts/Body.d.ts +4 -3
- package/es/data-table/src/TableParts/Body.mjs +46 -54
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/interface.d.ts +5 -7
- package/es/data-table/src/interface.mjs +1 -4
- package/{lib/data-table/src/publicTypes.d.ts → es/data-table/src/public-types.d.ts} +3 -0
- package/es/data-table/src/public-types.mjs +1 -0
- package/es/data-table/src/use-scroll.d.ts +5 -1
- package/es/data-table/src/use-scroll.mjs +16 -4
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +9 -3
- package/es/date-picker/src/DatePicker.mjs +2 -0
- package/es/date-picker/src/interface.d.ts +3 -1
- package/es/date-picker/src/panel/date.d.ts +10 -0
- package/es/date-picker/src/panel/date.mjs +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +10 -0
- package/es/date-picker/src/panel/daterange.mjs +4 -0
- package/es/date-picker/src/panel/datetime.d.ts +10 -0
- package/es/date-picker/src/panel/datetime.mjs +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/es/date-picker/src/panel/datetimerange.mjs +4 -0
- package/es/date-picker/src/panel/month.d.ts +10 -0
- package/es/date-picker/src/panel/month.mjs +6 -0
- package/es/date-picker/src/panel/monthrange.d.ts +10 -0
- package/es/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/es/date-picker/src/panel/panelHeader.mjs +21 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-calendar.mjs +7 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/es/date-picker/src/panel/use-dual-calendar.mjs +5 -2
- package/es/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/es/date-picker/src/panel/use-panel-common.mjs +5 -1
- package/es/date-picker/src/props.d.ts +2 -0
- package/es/date-picker/src/props.mjs +3 -1
- package/es/date-picker/src/utils.d.ts +12 -2
- package/es/date-picker/src/utils.mjs +9 -1
- package/es/descriptions/index.d.ts +1 -0
- package/es/descriptions/src/Descriptions.d.ts +8 -16
- package/es/descriptions/src/Descriptions.mjs +16 -14
- package/es/descriptions/src/public-types.d.ts +1 -0
- package/es/descriptions/src/public-types.mjs +1 -0
- package/es/dialog/src/Dialog.d.ts +2 -2
- package/es/dialog/src/DialogEnvironment.d.ts +3 -3
- package/es/dialog/src/DialogProvider.d.ts +1090 -724
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.mjs +17 -17
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/dropdown/index.d.ts +1 -0
- package/es/dropdown/src/Dropdown.d.ts +11 -20
- package/es/dropdown/src/Dropdown.mjs +9 -7
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/public-types.d.ts +1 -0
- package/es/dropdown/src/public-types.mjs +1 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -3
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -16
- package/es/dynamic-tags/src/DynamicTags.mjs +11 -8
- package/es/dynamic-tags/src/public-types.d.ts +1 -0
- package/es/dynamic-tags/src/public-types.mjs +1 -0
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +3 -3
- package/es/form/src/Form.d.ts +6 -5
- package/es/form/src/Form.mjs +11 -1
- package/es/form/src/FormItem.d.ts +7 -6
- package/es/form/src/FormItem.mjs +16 -13
- package/es/form/src/FormItemCol.d.ts +4 -2
- package/es/form/src/FormItemGridItem.d.ts +8 -5
- package/es/form/src/FormItemGridItem.mjs +1 -0
- package/es/form/src/FormItemRow.d.ts +3 -1
- package/es/form/src/interface.d.ts +8 -2
- package/es/form/src/public-types.d.ts +2 -0
- package/es/form/src/utils.d.ts +4 -3
- package/es/form/src/utils.mjs +7 -0
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +3 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/heatmap/src/Heatmap.d.ts +1 -1
- package/es/heatmap/src/Rect.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +1 -1
- package/es/input/index.d.ts +1 -0
- package/es/input/src/Input.d.ts +19 -18
- package/es/input/src/InputGroupLabel.d.ts +4 -4
- package/es/input/src/InputGroupLabel.mjs +16 -10
- package/es/input/src/interface.d.ts +0 -1
- package/es/input/src/public-types.d.ts +1 -0
- package/es/input/src/public-types.mjs +1 -0
- package/es/input-number/src/InputNumber.d.ts +6 -6
- package/es/input-otp/src/InputOtp.d.ts +4 -4
- package/es/layout/src/Layout.d.ts +2 -2
- package/es/layout/src/LayoutContent.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 +2 -2
- package/es/legacy-grid/src/Col.d.ts +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.mjs +17 -5
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/log/index.d.ts +1 -0
- package/es/log/src/Log.d.ts +6 -2
- package/es/log/src/Log.mjs +3 -1
- package/es/log/src/LogLoader.d.ts +4 -0
- package/es/log/src/LogLoader.mjs +4 -3
- package/es/log/src/public-types.d.ts +2 -0
- package/es/log/src/public-types.mjs +1 -0
- package/es/marquee/src/Marquee.d.ts +1 -1
- package/es/marquee/src/Marquee.mjs +5 -3
- package/es/mention/src/Mention.d.ts +14 -10
- package/es/mention/src/Mention.mjs +3 -1
- package/es/menu/src/Menu.d.ts +3 -3
- package/es/menu/src/MenuOption.d.ts +2 -2
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +2 -2
- package/es/message/index.d.ts +1 -0
- package/es/message/src/Message.d.ts +3 -0
- package/es/message/src/Message.mjs +4 -4
- package/es/message/src/MessageEnvironment.d.ts +3 -1
- package/es/message/src/MessageEnvironment.mjs +1 -0
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/message/src/message-props.d.ts +2 -0
- package/es/message/src/message-props.mjs +1 -0
- package/es/message/src/public-types.d.ts +2 -0
- package/es/message/src/public-types.mjs +1 -0
- package/es/message/src/types.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +10 -14
- package/es/modal/src/Modal.d.ts +13 -19
- package/es/modal/src/ModalEnvironment.d.ts +11 -15
- package/es/modal/src/composables.mjs +31 -4
- package/es/modal/src/presetProps.d.ts +3 -5
- package/es/modal/src/styles/index.cssr.mjs +2 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +23 -23
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/index.d.ts +1 -0
- package/es/pagination/src/Pagination.d.ts +12 -17
- package/es/pagination/src/Pagination.mjs +12 -13
- package/es/pagination/src/interface.d.ts +0 -1
- package/es/pagination/src/public-types.d.ts +1 -0
- package/es/pagination/src/public-types.mjs +1 -0
- package/es/popconfirm/src/Popconfirm.d.ts +7 -7
- package/es/popover/src/Popover.d.ts +6 -6
- package/es/popover/src/PopoverBody.d.ts +3 -3
- package/es/popselect/index.d.ts +1 -0
- package/es/popselect/src/Popselect.d.ts +75 -81
- package/es/popselect/src/Popselect.mjs +4 -2
- package/es/popselect/src/PopselectPanel.d.ts +8 -16
- package/es/popselect/src/PopselectPanel.mjs +12 -7
- package/es/popselect/src/interface.d.ts +0 -1
- package/es/popselect/src/public-types.d.ts +1 -0
- package/es/popselect/src/public-types.mjs +1 -0
- package/es/progress/src/Circle.mjs +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/qr-code/src/QrCode.d.ts +2 -2
- package/es/radio/index.d.ts +1 -0
- package/es/radio/src/Radio.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +5 -5
- package/es/radio/src/public-types.d.ts +1 -0
- package/es/radio/src/public-types.mjs +1 -0
- package/es/radio/src/use-radio.d.ts +4 -3
- package/es/radio/src/use-radio.mjs +8 -1
- package/es/rate/index.d.ts +1 -0
- package/es/rate/src/Rate.d.ts +5 -14
- package/es/rate/src/Rate.mjs +19 -9
- package/es/rate/src/public-types.d.ts +1 -0
- package/es/rate/src/public-types.mjs +1 -0
- package/es/result/index.d.ts +1 -0
- package/es/result/src/Result.d.ts +5 -14
- package/es/result/src/Result.mjs +9 -7
- package/es/result/src/public-types.d.ts +1 -0
- package/es/result/src/public-types.mjs +1 -0
- package/es/select/index.d.ts +1 -0
- package/es/select/src/Select.d.ts +33 -16
- package/es/select/src/Select.mjs +14 -2
- package/es/select/src/interface.d.ts +0 -1
- package/es/select/src/public-types.d.ts +1 -0
- package/es/select/src/public-types.mjs +1 -0
- package/es/skeleton/index.d.ts +1 -0
- package/es/skeleton/src/Skeleton.d.ts +6 -5
- package/es/skeleton/src/Skeleton.mjs +9 -4
- package/es/skeleton/src/public-types.d.ts +1 -0
- package/es/skeleton/src/public-types.mjs +1 -0
- package/es/slider/src/Slider.d.ts +5 -5
- package/es/space/index.d.ts +1 -0
- package/es/space/src/Space.d.ts +6 -15
- package/es/space/src/Space.mjs +8 -8
- package/es/space/src/public-types.d.ts +1 -0
- package/es/space/src/public-types.mjs +1 -0
- package/es/spin/src/Spin.d.ts +52 -6
- package/es/spin/src/Spin.mjs +5 -4
- package/es/split/src/Split.d.ts +1 -1
- package/es/steps/src/Step.d.ts +2 -1
- package/es/steps/src/Step.mjs +35 -19
- package/es/steps/src/Steps.d.ts +13 -0
- package/es/steps/src/Steps.mjs +5 -1
- package/es/steps/src/styles/index.cssr.mjs +8 -1
- package/es/switch/index.d.ts +1 -0
- package/es/switch/src/Switch.d.ts +9 -16
- package/es/switch/src/Switch.mjs +18 -8
- package/es/switch/src/public-types.d.ts +3 -0
- package/es/switch/src/public-types.mjs +1 -0
- package/es/table/index.d.ts +1 -0
- package/es/table/src/Table.d.ts +4 -13
- package/es/table/src/Table.mjs +9 -9
- package/es/table/src/public-types.d.ts +1 -0
- package/es/table/src/public-types.mjs +1 -0
- package/es/tabs/index.d.ts +1 -0
- package/es/tabs/src/Tab.d.ts +10 -10
- package/es/tabs/src/Tabs.d.ts +12 -21
- package/es/tabs/src/Tabs.mjs +13 -8
- package/es/tabs/src/public-types.d.ts +1 -0
- package/es/tabs/src/public-types.mjs +1 -0
- package/es/tag/index.d.ts +1 -0
- package/es/tag/src/Tag.d.ts +8 -8
- package/es/tag/src/Tag.mjs +8 -4
- package/es/tag/src/common-props.d.ts +2 -1
- package/es/tag/src/public-types.d.ts +1 -0
- package/es/tag/src/public-types.mjs +1 -0
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/index.d.ts +1 -0
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +8 -7
- package/es/time-picker/src/interface.d.ts +0 -1
- package/es/time-picker/src/public-types.d.ts +1 -0
- package/es/time-picker/src/public-types.mjs +1 -0
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +6 -6
- package/es/transfer/src/Transfer.d.ts +2 -2
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferList.mjs +12 -2
- package/es/transfer/src/TransferListItem.d.ts +1 -1
- package/es/tree/index.d.ts +1 -0
- package/es/tree/src/Tree.d.ts +10 -5
- package/es/tree/src/Tree.mjs +25 -11
- package/es/tree/src/TreeNodeCheckbox.d.ts +2 -2
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +2 -2
- package/es/tree/src/TreeNodeSwitcher.mjs +4 -3
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/public-types.d.ts +2 -0
- package/es/tree/src/public-types.mjs +1 -0
- package/es/tree-select/src/TreeSelect.d.ts +11 -6
- package/es/tree-select/src/TreeSelect.mjs +16 -5
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/text.d.ts +1 -1
- package/es/upload/src/Upload.d.ts +7 -4
- package/es/upload/src/Upload.mjs +5 -2
- package/es/upload/src/UploadFile.mjs +3 -1
- package/es/upload/src/UploadTrigger.d.ts +2 -2
- package/es/upload/src/interface.d.ts +4 -1
- package/es/upload/src/public-types.d.ts +4 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +1 -1
- package/es/vitest-setup.mjs +27 -0
- package/es/watermark/src/Watermark.d.ts +7 -7
- package/lib/_internal/close/src/Close.d.ts +1 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/lib/_internal/index.d.ts +1 -1
- package/lib/_internal/loading/index.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +27 -19
- package/lib/_internal/loading/src/Loading.js +11 -8
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +8 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +8 -3
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +8 -4
- package/lib/_internal/select-menu/src/SelectMenu.js +14 -7
- package/lib/_internal/selection/src/Selection.d.ts +6 -6
- package/lib/_mixins/use-form-item.d.ts +1 -2
- package/lib/affix/src/Affix.d.ts +2 -2
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +7 -3
- package/lib/auto-complete/src/AutoComplete.js +2 -2
- package/lib/avatar/src/Avatar.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +13 -0
- package/lib/breadcrumb/src/BreadcrumbItem.js +6 -2
- package/lib/button/index.d.ts +1 -0
- package/lib/button/src/Button.d.ts +21 -18
- package/lib/button/src/Button.js +8 -5
- package/lib/button/src/public-types.d.ts +4 -0
- package/lib/button/src/styles/index.cssr.js +7 -7
- package/lib/button-group/src/ButtonGroup.d.ts +5 -15
- package/lib/button-group/src/ButtonGroup.js +1 -4
- package/lib/card/index.d.ts +1 -0
- package/lib/card/src/Card.d.ts +12 -19
- package/lib/card/src/Card.js +17 -10
- package/lib/card/src/public-types.d.ts +1 -0
- package/lib/card/src/styles/index.cssr.js +44 -21
- package/lib/carousel/src/Carousel.d.ts +7 -7
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/index.d.ts +1 -0
- package/lib/cascader/src/Cascader.d.ts +13 -6
- package/lib/cascader/src/Cascader.js +3 -1
- package/lib/cascader/src/CascaderMenu.d.ts +2 -1
- package/lib/cascader/src/CascaderMenu.js +12 -4
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.js +3 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -1
- package/lib/cascader/src/CascaderSelectMenu.js +3 -3
- package/lib/cascader/src/interface.d.ts +4 -0
- package/lib/cascader/src/public-types.d.ts +2 -0
- package/lib/cascader/src/public-types.js +2 -0
- package/lib/checkbox/index.d.ts +1 -0
- package/lib/checkbox/src/Checkbox.d.ts +12 -11
- package/lib/checkbox/src/Checkbox.js +5 -1
- package/lib/checkbox/src/public-types.d.ts +1 -0
- package/lib/checkbox/src/public-types.js +2 -0
- package/lib/code/src/Code.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-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/AlphaSlider.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +9 -4
- package/lib/color-picker/src/ColorPicker.js +46 -26
- package/lib/color-picker/src/ColorPickerTrigger.js +4 -4
- package/lib/color-picker/src/styles/index.cssr.js +11 -14
- package/lib/config-provider/src/ConfigProvider.d.ts +3 -3
- package/lib/config-provider/src/internal-interface.d.ts +95 -5
- package/lib/countdown/src/Countdown.d.ts +2 -2
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/index.js +0 -15
- package/lib/data-table/src/DataTable.d.ts +13 -20
- package/lib/data-table/src/DataTable.js +22 -11
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +1 -0
- package/lib/data-table/src/MainTable.js +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +4 -3
- package/lib/data-table/src/TableParts/Body.js +56 -59
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/interface.d.ts +5 -7
- package/lib/data-table/src/interface.js +1 -1
- package/{es/data-table/src/publicTypes.d.ts → lib/data-table/src/public-types.d.ts} +3 -0
- package/lib/data-table/src/public-types.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +5 -1
- package/lib/data-table/src/use-scroll.js +16 -5
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +9 -3
- package/lib/date-picker/src/DatePicker.js +2 -0
- package/lib/date-picker/src/interface.d.ts +3 -1
- package/lib/date-picker/src/panel/date.d.ts +10 -0
- package/lib/date-picker/src/panel/date.js +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +10 -0
- package/lib/date-picker/src/panel/daterange.js +2 -2
- package/lib/date-picker/src/panel/datetime.d.ts +10 -0
- package/lib/date-picker/src/panel/datetime.js +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +10 -0
- package/lib/date-picker/src/panel/datetimerange.js +2 -2
- package/lib/date-picker/src/panel/month.d.ts +10 -0
- package/lib/date-picker/src/panel/month.js +7 -0
- package/lib/date-picker/src/panel/monthrange.d.ts +10 -0
- package/lib/date-picker/src/panel/panelHeader.d.ts +34 -1
- package/lib/date-picker/src/panel/panelHeader.js +20 -3
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-calendar.js +7 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +4 -0
- package/lib/date-picker/src/panel/use-dual-calendar.js +5 -1
- package/lib/date-picker/src/panel/use-panel-common.d.ts +4 -0
- package/lib/date-picker/src/panel/use-panel-common.js +5 -1
- package/lib/date-picker/src/props.d.ts +2 -0
- package/lib/date-picker/src/props.js +2 -2
- package/lib/date-picker/src/utils.d.ts +12 -2
- package/lib/date-picker/src/utils.js +10 -0
- package/lib/descriptions/index.d.ts +1 -0
- package/lib/descriptions/src/Descriptions.d.ts +8 -16
- package/lib/descriptions/src/Descriptions.js +17 -12
- package/lib/descriptions/src/public-types.d.ts +1 -0
- package/lib/descriptions/src/public-types.js +2 -0
- package/lib/dialog/src/Dialog.d.ts +2 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +1090 -724
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +17 -17
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/dropdown/index.d.ts +1 -0
- package/lib/dropdown/src/Dropdown.d.ts +11 -20
- package/lib/dropdown/src/Dropdown.js +9 -7
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/public-types.d.ts +1 -0
- package/lib/dropdown/src/public-types.js +2 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -3
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -16
- package/lib/dynamic-tags/src/DynamicTags.js +12 -8
- package/lib/dynamic-tags/src/public-types.d.ts +1 -0
- package/lib/dynamic-tags/src/public-types.js +2 -0
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +3 -3
- package/lib/form/src/Form.d.ts +6 -5
- package/lib/form/src/Form.js +11 -1
- package/lib/form/src/FormItem.d.ts +7 -6
- package/lib/form/src/FormItem.js +17 -14
- package/lib/form/src/FormItemCol.d.ts +4 -2
- package/lib/form/src/FormItemGridItem.d.ts +8 -5
- package/lib/form/src/FormItemGridItem.js +1 -0
- package/lib/form/src/FormItemRow.d.ts +3 -1
- package/lib/form/src/interface.d.ts +8 -2
- package/lib/form/src/public-types.d.ts +2 -0
- package/lib/form/src/utils.d.ts +4 -3
- package/lib/form/src/utils.js +6 -0
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +3 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/heatmap/src/Heatmap.d.ts +1 -1
- package/lib/heatmap/src/Rect.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/input/index.d.ts +1 -0
- package/lib/input/src/Input.d.ts +19 -18
- package/lib/input/src/InputGroupLabel.d.ts +4 -4
- package/lib/input/src/InputGroupLabel.js +16 -7
- package/lib/input/src/interface.d.ts +0 -1
- package/lib/input/src/public-types.d.ts +1 -0
- package/lib/input/src/public-types.js +2 -0
- package/lib/input-number/src/InputNumber.d.ts +6 -6
- package/lib/input-otp/src/InputOtp.d.ts +4 -4
- package/lib/layout/src/Layout.d.ts +2 -2
- package/lib/layout/src/LayoutContent.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 +2 -2
- package/lib/legacy-grid/src/Col.d.ts +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.js +13 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/log/index.d.ts +1 -0
- package/lib/log/src/Log.d.ts +6 -2
- package/lib/log/src/Log.js +2 -2
- package/lib/log/src/LogLoader.d.ts +4 -0
- package/lib/log/src/LogLoader.js +3 -2
- package/lib/log/src/public-types.d.ts +2 -0
- package/lib/log/src/public-types.js +2 -0
- package/lib/marquee/src/Marquee.d.ts +1 -1
- package/lib/marquee/src/Marquee.js +3 -2
- package/lib/mention/src/Mention.d.ts +14 -10
- package/lib/mention/src/Mention.js +2 -2
- package/lib/menu/src/Menu.d.ts +3 -3
- package/lib/menu/src/MenuOption.d.ts +2 -2
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +2 -2
- package/lib/message/index.d.ts +1 -0
- package/lib/message/src/Message.d.ts +3 -0
- package/lib/message/src/Message.js +3 -4
- package/lib/message/src/MessageEnvironment.d.ts +3 -1
- package/lib/message/src/MessageEnvironment.js +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/message/src/message-props.d.ts +2 -0
- package/lib/message/src/message-props.js +1 -0
- package/lib/message/src/public-types.d.ts +2 -0
- package/lib/message/src/public-types.js +2 -0
- package/lib/message/src/types.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +10 -14
- package/lib/modal/src/Modal.d.ts +13 -19
- package/lib/modal/src/ModalEnvironment.d.ts +11 -15
- package/lib/modal/src/composables.js +28 -4
- package/lib/modal/src/presetProps.d.ts +3 -5
- package/lib/modal/src/styles/index.cssr.js +2 -2
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +23 -23
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/index.d.ts +1 -0
- package/lib/pagination/src/Pagination.d.ts +12 -17
- package/lib/pagination/src/Pagination.js +14 -12
- package/lib/pagination/src/interface.d.ts +0 -1
- package/lib/pagination/src/public-types.d.ts +1 -0
- package/lib/pagination/src/public-types.js +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +7 -7
- package/lib/popover/src/Popover.d.ts +6 -6
- package/lib/popover/src/PopoverBody.d.ts +3 -3
- package/lib/popselect/index.d.ts +1 -0
- package/lib/popselect/src/Popselect.d.ts +75 -81
- package/lib/popselect/src/Popselect.js +2 -2
- package/lib/popselect/src/PopselectPanel.d.ts +8 -16
- package/lib/popselect/src/PopselectPanel.js +12 -7
- package/lib/popselect/src/interface.d.ts +0 -1
- package/lib/popselect/src/public-types.d.ts +1 -0
- package/lib/popselect/src/public-types.js +2 -0
- package/lib/progress/src/Circle.js +1 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/qr-code/src/QrCode.d.ts +2 -2
- package/lib/radio/index.d.ts +1 -0
- package/lib/radio/src/Radio.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +5 -5
- package/lib/radio/src/public-types.d.ts +1 -0
- package/lib/radio/src/public-types.js +2 -0
- package/lib/radio/src/use-radio.d.ts +4 -3
- package/lib/radio/src/use-radio.js +6 -1
- package/lib/rate/index.d.ts +1 -0
- package/lib/rate/src/Rate.d.ts +5 -14
- package/lib/rate/src/Rate.js +18 -7
- package/lib/rate/src/public-types.d.ts +1 -0
- package/lib/rate/src/public-types.js +2 -0
- package/lib/result/index.d.ts +1 -0
- package/lib/result/src/Result.d.ts +5 -14
- package/lib/result/src/Result.js +10 -7
- package/lib/result/src/public-types.d.ts +1 -0
- package/lib/result/src/public-types.js +2 -0
- package/lib/select/index.d.ts +1 -0
- package/lib/select/src/Select.d.ts +33 -16
- package/lib/select/src/Select.js +10 -4
- package/lib/select/src/interface.d.ts +0 -1
- package/lib/select/src/public-types.d.ts +1 -0
- package/lib/select/src/public-types.js +2 -0
- package/lib/skeleton/index.d.ts +1 -0
- package/lib/skeleton/src/Skeleton.d.ts +6 -5
- package/lib/skeleton/src/Skeleton.js +9 -4
- package/lib/skeleton/src/public-types.d.ts +1 -0
- package/lib/skeleton/src/public-types.js +2 -0
- package/lib/slider/src/Slider.d.ts +5 -5
- package/lib/space/index.d.ts +1 -0
- package/lib/space/src/Space.d.ts +6 -15
- package/lib/space/src/Space.js +7 -6
- package/lib/space/src/public-types.d.ts +1 -0
- package/lib/space/src/public-types.js +2 -0
- package/lib/spin/src/Spin.d.ts +52 -6
- package/lib/spin/src/Spin.js +5 -4
- package/lib/split/src/Split.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +2 -1
- package/lib/steps/src/Step.js +48 -30
- package/lib/steps/src/Steps.d.ts +13 -0
- package/lib/steps/src/Steps.js +7 -2
- package/lib/steps/src/styles/index.cssr.js +8 -1
- package/lib/switch/index.d.ts +1 -0
- package/lib/switch/src/Switch.d.ts +9 -16
- package/lib/switch/src/Switch.js +18 -8
- package/lib/switch/src/public-types.d.ts +3 -0
- package/lib/switch/src/public-types.js +2 -0
- package/lib/table/index.d.ts +1 -0
- package/lib/table/src/Table.d.ts +4 -13
- package/lib/table/src/Table.js +8 -7
- package/lib/table/src/public-types.d.ts +1 -0
- package/lib/table/src/public-types.js +2 -0
- package/lib/tabs/index.d.ts +1 -0
- package/lib/tabs/src/Tab.d.ts +10 -10
- package/lib/tabs/src/Tabs.d.ts +12 -21
- package/lib/tabs/src/Tabs.js +14 -8
- package/lib/tabs/src/public-types.d.ts +1 -0
- package/lib/tabs/src/public-types.js +2 -0
- package/lib/tag/index.d.ts +1 -0
- package/lib/tag/src/Tag.d.ts +8 -8
- package/lib/tag/src/Tag.js +9 -4
- package/lib/tag/src/common-props.d.ts +2 -1
- package/lib/tag/src/public-types.d.ts +1 -0
- package/lib/tag/src/public-types.js +2 -0
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/index.d.ts +1 -0
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +8 -7
- package/lib/time-picker/src/interface.d.ts +0 -1
- package/lib/time-picker/src/public-types.d.ts +1 -0
- package/lib/time-picker/src/public-types.js +2 -0
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +6 -6
- package/lib/transfer/src/Transfer.d.ts +2 -2
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferList.js +9 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/src/Tree.d.ts +10 -5
- package/lib/tree/src/Tree.js +20 -9
- package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -2
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +2 -2
- package/lib/tree/src/TreeNodeSwitcher.js +2 -2
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/public-types.d.ts +2 -0
- package/lib/tree/src/public-types.js +2 -0
- package/lib/tree-select/src/TreeSelect.d.ts +11 -6
- package/lib/tree-select/src/TreeSelect.js +13 -6
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/upload/src/Upload.d.ts +7 -4
- package/lib/upload/src/Upload.js +2 -2
- package/lib/upload/src/UploadFile.js +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +2 -2
- package/lib/upload/src/interface.d.ts +4 -1
- package/lib/upload/src/public-types.d.ts +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +1 -1
- package/lib/vitest-setup.js +29 -0
- package/lib/watermark/src/Watermark.d.ts +7 -7
- package/package.json +45 -46
- package/web-types.json +243 -40
- package/es/button/src/interface.d.ts +0 -2
- package/es/jest-setup.mjs +0 -5
- package/lib/button/src/interface.d.ts +0 -2
- package/lib/jest-setup.js +0 -7
- /package/es/button/src/{interface.mjs → public-types.mjs} +0 -0
- /package/es/{data-table/src/publicTypes.mjs → card/src/public-types.mjs} +0 -0
- /package/es/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
- /package/lib/button/src/{interface.js → public-types.js} +0 -0
- /package/lib/{data-table/src/publicTypes.js → card/src/public-types.js} +0 -0
- /package/lib/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
|
@@ -10,14 +10,7 @@ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
|
|
|
10
10
|
// --n-height
|
|
11
11
|
// --n-box-shadow
|
|
12
12
|
// --n-divider-color
|
|
13
|
-
export default c([cB('color-picker', `
|
|
14
|
-
display: inline-block;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
height: var(--n-height);
|
|
17
|
-
font-size: var(--n-font-size);
|
|
18
|
-
width: 100%;
|
|
19
|
-
position: relative;
|
|
20
|
-
`), cB('color-picker-panel', `
|
|
13
|
+
export default c([cB('color-picker-panel', `
|
|
21
14
|
margin: 4px 0;
|
|
22
15
|
width: 240px;
|
|
23
16
|
font-size: var(--n-panel-font-size);
|
|
@@ -132,14 +125,18 @@ export default c([cB('color-picker', `
|
|
|
132
125
|
border-top: 1px solid var(--n-divider-color);
|
|
133
126
|
padding: 8px 12px;
|
|
134
127
|
justify-content: flex-end;
|
|
135
|
-
`, [cB('button', 'margin-left: 8px;')]), cB('color-picker
|
|
136
|
-
|
|
137
|
-
height: 100%;
|
|
128
|
+
`, [cB('button', 'margin-left: 8px;')]), cB('color-picker', `
|
|
129
|
+
display: inline-block;
|
|
138
130
|
box-sizing: border-box;
|
|
131
|
+
height: var(--n-height);
|
|
132
|
+
font-size: var(--n-font-size);
|
|
133
|
+
width: 100%;
|
|
134
|
+
position: relative;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
border: var(--n-border);
|
|
139
137
|
border-radius: var(--n-border-radius);
|
|
140
138
|
transition: border-color .3s var(--n-bezier);
|
|
141
|
-
cursor:
|
|
142
|
-
`, [cE('value', `
|
|
139
|
+
`, [cM('disabled', 'cursor: not-allowed'), cE('value', `
|
|
143
140
|
white-space: nowrap;
|
|
144
141
|
position: relative;
|
|
145
142
|
`), cE('fill', `
|
|
@@ -152,7 +149,7 @@ export default c([cB('color-picker', `
|
|
|
152
149
|
right: 4px;
|
|
153
150
|
top: 4px;
|
|
154
151
|
bottom: 4px;
|
|
155
|
-
`),
|
|
152
|
+
`), cB('color-picker-checkboard', `
|
|
156
153
|
border-radius: var(--n-border-radius);
|
|
157
154
|
`, [c('&::after', `
|
|
158
155
|
--n-block-size: calc((var(--n-height) - 8px) / 3);
|
|
@@ -112,11 +112,11 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
112
112
|
readonly default: undefined;
|
|
113
113
|
};
|
|
114
114
|
}>> & Readonly<{}>, {
|
|
115
|
-
readonly tag: string;
|
|
116
|
-
readonly abstract: boolean;
|
|
117
|
-
readonly as: string | undefined;
|
|
118
115
|
readonly bordered: boolean | undefined;
|
|
119
116
|
readonly inlineThemeDisabled: boolean;
|
|
117
|
+
readonly tag: string;
|
|
118
|
+
readonly abstract: boolean;
|
|
120
119
|
readonly preflightStyleDisabled: boolean;
|
|
120
|
+
readonly as: string | undefined;
|
|
121
121
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
122
122
|
export default _default;
|
|
@@ -13,27 +13,33 @@ import type { BackTopTheme } from '../../back-top/styles';
|
|
|
13
13
|
import type { BadgeTheme } from '../../badge/styles';
|
|
14
14
|
import type { BreadcrumbTheme } from '../../breadcrumb/styles';
|
|
15
15
|
import type { ButtonGroupTheme } from '../../button-group/styles/light';
|
|
16
|
-
import type {
|
|
16
|
+
import type { ButtonSize } from '../../button/src/public-types';
|
|
17
17
|
import type { ButtonTheme } from '../../button/styles';
|
|
18
18
|
import type { CalendarTheme } from '../../calendar/styles';
|
|
19
|
+
import type { CardSize } from '../../card/src/public-types';
|
|
19
20
|
import type { CardTheme } from '../../card/styles';
|
|
20
21
|
import type { CarouselTheme } from '../../carousel/styles';
|
|
21
22
|
import type { CascaderTheme } from '../../cascader/styles';
|
|
23
|
+
import type { CheckboxSize } from '../../checkbox/src/public-types';
|
|
22
24
|
import type { CheckboxTheme } from '../../checkbox/styles';
|
|
23
25
|
import type { CodeTheme } from '../../code/styles';
|
|
24
26
|
import type { CollapseTransitionTheme } from '../../collapse-transition/styles';
|
|
25
27
|
import type { CollapseTheme } from '../../collapse/styles';
|
|
26
28
|
import type { ColorPickerTheme } from '../../color-picker/styles';
|
|
27
29
|
import type { DataTableRenderFilter, DataTableRenderSorter } from '../../data-table';
|
|
30
|
+
import type { DataTableSize } from '../../data-table/src/public-types';
|
|
28
31
|
import type { DataTableTheme } from '../../data-table/styles';
|
|
29
32
|
import type { DatePickerTheme } from '../../date-picker/styles';
|
|
33
|
+
import type { DescriptionsSize } from '../../descriptions/src/public-types';
|
|
30
34
|
import type { DescriptionsTheme } from '../../descriptions/styles';
|
|
31
35
|
import type { IconPlacement } from '../../dialog/src/interface';
|
|
32
36
|
import type { DialogTheme } from '../../dialog/styles';
|
|
33
37
|
import type { DividerTheme } from '../../divider/styles';
|
|
34
38
|
import type { DrawerTheme } from '../../drawer/styles';
|
|
39
|
+
import type { DropdownSize } from '../../dropdown/src/public-types';
|
|
35
40
|
import type { DropdownTheme } from '../../dropdown/styles';
|
|
36
41
|
import type { DynamicInputTheme } from '../../dynamic-input/styles';
|
|
42
|
+
import type { DynamicTagsSize } from '../../dynamic-tags/src/public-types';
|
|
37
43
|
import type { DynamicTagsTheme } from '../../dynamic-tags/styles';
|
|
38
44
|
import type { ElementTheme } from '../../element/styles';
|
|
39
45
|
import type { EllipsisTheme } from '../../ellipsis/styles';
|
|
@@ -43,6 +49,7 @@ import type { EquationTheme } from '../../equation/styles';
|
|
|
43
49
|
import type { FlexTheme } from '../../flex/styles';
|
|
44
50
|
import type { FloatButtonGroupTheme } from '../../float-button-group/styles';
|
|
45
51
|
import type { FloatButtonTheme } from '../../float-button/styles';
|
|
52
|
+
import type { FormSize } from '../../form/src/public-types';
|
|
46
53
|
import type { FormTheme } from '../../form/styles';
|
|
47
54
|
import type { GradientTextTheme } from '../../gradient-text/styles';
|
|
48
55
|
import type { HeatmapTheme } from '../../heatmap/styles';
|
|
@@ -51,7 +58,7 @@ import type { IconTheme } from '../../icon/styles';
|
|
|
51
58
|
import type { ImageTheme } from '../../image/styles';
|
|
52
59
|
import type { InputNumberTheme } from '../../input-number/styles';
|
|
53
60
|
import type { InputOtpTheme } from '../../input-otp/styles';
|
|
54
|
-
import type {
|
|
61
|
+
import type { InputSize } from '../../input/src/public-types';
|
|
55
62
|
import type { InputTheme } from '../../input/styles';
|
|
56
63
|
import type { LayoutTheme } from '../../layout/styles';
|
|
57
64
|
import type { RowTheme } from '../../legacy-grid/styles';
|
|
@@ -67,30 +74,41 @@ import type { MessageTheme } from '../../message/styles';
|
|
|
67
74
|
import type { ModalTheme } from '../../modal/styles';
|
|
68
75
|
import type { NotificationTheme } from '../../notification/styles';
|
|
69
76
|
import type { PageHeaderTheme } from '../../page-header/styles';
|
|
77
|
+
import type { PaginationSize } from '../../pagination/src/public-types';
|
|
70
78
|
import type { PaginationTheme } from '../../pagination/styles';
|
|
71
79
|
import type { PopconfirmTheme } from '../../popconfirm/styles';
|
|
72
80
|
import type { PopoverTheme } from '../../popover/styles';
|
|
81
|
+
import type { PopselectSize } from '../../popselect/src/public-types';
|
|
73
82
|
import type { PopselectTheme } from '../../popselect/styles';
|
|
74
83
|
import type { ProgressTheme } from '../../progress/styles';
|
|
75
84
|
import type { QrCodeTheme } from '../../qr-code/styles';
|
|
85
|
+
import type { RadioSize } from '../../radio/src/public-types';
|
|
76
86
|
import type { RadioTheme } from '../../radio/styles';
|
|
87
|
+
import type { RateSize } from '../../rate/src/public-types';
|
|
77
88
|
import type { RateTheme } from '../../rate/styles';
|
|
89
|
+
import type { ResultSize } from '../../result/src/public-types';
|
|
78
90
|
import type { ResultTheme } from '../../result/styles';
|
|
79
|
-
import type {
|
|
91
|
+
import type { SelectSize } from '../../select/src/public-types';
|
|
80
92
|
import type { SelectTheme } from '../../select/styles';
|
|
93
|
+
import type { SkeletonSize } from '../../skeleton/src/public-types';
|
|
81
94
|
import type { SkeletonTheme } from '../../skeleton/styles';
|
|
82
95
|
import type { SliderTheme } from '../../slider/styles';
|
|
96
|
+
import type { SpaceSize } from '../../space/src/public-types';
|
|
83
97
|
import type { SpaceTheme } from '../../space/styles';
|
|
84
98
|
import type { SpinTheme } from '../../spin/styles';
|
|
85
99
|
import type { SplitTheme } from '../../split/styles';
|
|
86
100
|
import type { StatisticTheme } from '../../statistic/styles';
|
|
87
101
|
import type { StepsTheme } from '../../steps/styles';
|
|
102
|
+
import type { SwitchSize } from '../../switch/src/public-types';
|
|
88
103
|
import type { SwitchTheme } from '../../switch/styles';
|
|
104
|
+
import type { TableSize } from '../../table/src/public-types';
|
|
89
105
|
import type { TableTheme } from '../../table/styles';
|
|
106
|
+
import type { TabsSize } from '../../tabs/src/public-types';
|
|
90
107
|
import type { TabsTheme } from '../../tabs/styles';
|
|
108
|
+
import type { TagSize } from '../../tag/src/public-types';
|
|
91
109
|
import type { TagTheme } from '../../tag/styles';
|
|
92
110
|
import type { ThingTheme } from '../../thing/styles';
|
|
93
|
-
import type {
|
|
111
|
+
import type { TimePickerSize } from '../../time-picker/src/public-types';
|
|
94
112
|
import type { TimePickerTheme } from '../../time-picker/styles';
|
|
95
113
|
import type { TimelineTheme } from '../../timeline/styles';
|
|
96
114
|
import type { TooltipTheme } from '../../tooltip/styles';
|
|
@@ -145,6 +163,7 @@ export interface GlobalThemeWithoutCommon {
|
|
|
145
163
|
Image?: ImageTheme;
|
|
146
164
|
Input?: InputTheme;
|
|
147
165
|
InputNumber?: InputNumberTheme;
|
|
166
|
+
InputOtp?: InputOtpTheme;
|
|
148
167
|
Layout?: LayoutTheme;
|
|
149
168
|
LegacyTransfer?: LegacyTransferTheme;
|
|
150
169
|
List?: ListTheme;
|
|
@@ -193,10 +212,22 @@ export interface GlobalThemeWithoutCommon {
|
|
|
193
212
|
Heatmap?: HeatmapTheme;
|
|
194
213
|
InternalSelectMenu?: InternalSelectMenuTheme;
|
|
195
214
|
InternalSelection?: InternalSelectionTheme;
|
|
196
|
-
InputOtp?: InputOtpTheme;
|
|
197
215
|
}
|
|
198
216
|
export interface GlobalComponentConfig {
|
|
217
|
+
Cascader?: {
|
|
218
|
+
renderEmpty?: () => VNodeChild;
|
|
219
|
+
};
|
|
220
|
+
Button?: {
|
|
221
|
+
size?: ButtonSize;
|
|
222
|
+
};
|
|
223
|
+
Card?: {
|
|
224
|
+
size?: CardSize;
|
|
225
|
+
};
|
|
226
|
+
Checkbox?: {
|
|
227
|
+
size?: CheckboxSize;
|
|
228
|
+
};
|
|
199
229
|
Pagination?: {
|
|
230
|
+
size?: PaginationSize;
|
|
200
231
|
inputSize?: InputSize;
|
|
201
232
|
selectSize?: SelectSize;
|
|
202
233
|
};
|
|
@@ -207,13 +238,72 @@ export interface GlobalComponentConfig {
|
|
|
207
238
|
iconPlacement?: IconPlacement;
|
|
208
239
|
};
|
|
209
240
|
DataTable?: {
|
|
241
|
+
size?: DataTableSize;
|
|
210
242
|
renderFilter?: DataTableRenderFilter;
|
|
211
243
|
renderSorter?: DataTableRenderSorter;
|
|
244
|
+
renderEmpty?: () => VNodeChild;
|
|
245
|
+
};
|
|
246
|
+
Descriptions?: {
|
|
247
|
+
size?: DescriptionsSize;
|
|
248
|
+
};
|
|
249
|
+
Dropdown?: {
|
|
250
|
+
size?: DropdownSize;
|
|
212
251
|
};
|
|
213
252
|
DynamicInput?: {
|
|
214
253
|
buttonSize?: ButtonSize;
|
|
215
254
|
};
|
|
255
|
+
DynamicTags?: {
|
|
256
|
+
size?: DynamicTagsSize;
|
|
257
|
+
};
|
|
216
258
|
Empty?: Pick<EmptyProps, 'description' | 'renderIcon'>;
|
|
259
|
+
Form?: {
|
|
260
|
+
size?: FormSize;
|
|
261
|
+
};
|
|
262
|
+
Input?: {
|
|
263
|
+
size?: InputSize;
|
|
264
|
+
};
|
|
265
|
+
Select?: {
|
|
266
|
+
renderEmpty?: () => VNodeChild;
|
|
267
|
+
};
|
|
268
|
+
Popselect?: {
|
|
269
|
+
size?: PopselectSize;
|
|
270
|
+
};
|
|
271
|
+
Radio?: {
|
|
272
|
+
size?: RadioSize;
|
|
273
|
+
};
|
|
274
|
+
Rate?: {
|
|
275
|
+
size?: RateSize;
|
|
276
|
+
};
|
|
277
|
+
Result?: {
|
|
278
|
+
size?: ResultSize;
|
|
279
|
+
};
|
|
280
|
+
Skeleton?: {
|
|
281
|
+
size?: SkeletonSize;
|
|
282
|
+
};
|
|
283
|
+
Space?: {
|
|
284
|
+
size?: SpaceSize;
|
|
285
|
+
};
|
|
286
|
+
Switch?: {
|
|
287
|
+
size?: SwitchSize;
|
|
288
|
+
};
|
|
289
|
+
Table?: {
|
|
290
|
+
size?: TableSize;
|
|
291
|
+
};
|
|
292
|
+
Tabs?: {
|
|
293
|
+
size?: TabsSize;
|
|
294
|
+
};
|
|
295
|
+
Tag?: {
|
|
296
|
+
size?: TagSize;
|
|
297
|
+
};
|
|
298
|
+
Transfer?: {
|
|
299
|
+
renderEmpty?: () => VNodeChild;
|
|
300
|
+
};
|
|
301
|
+
Tree?: {
|
|
302
|
+
renderEmpty?: () => VNodeChild;
|
|
303
|
+
};
|
|
304
|
+
TreeSelect?: {
|
|
305
|
+
renderEmpty?: () => VNodeChild;
|
|
306
|
+
};
|
|
217
307
|
}
|
|
218
308
|
export interface GlobalIconConfig {
|
|
219
309
|
attach?: () => VNodeChild;
|
|
@@ -61,8 +61,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
61
|
render: PropType<(props: CountdownTimeInfo) => VNodeChild>;
|
|
62
62
|
onFinish: PropType<() => void>;
|
|
63
63
|
}>> & Readonly<{}>, {
|
|
64
|
-
active: boolean;
|
|
65
64
|
duration: number;
|
|
66
|
-
|
|
65
|
+
active: boolean;
|
|
66
|
+
precision: 0 | 1 | 3 | 2;
|
|
67
67
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
68
|
export default _default;
|
package/es/data-table/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { default as NDataTable } from './src/DataTable';
|
|
2
2
|
export { dataTableProps } from './src/interface';
|
|
3
3
|
export type { TableBaseColumn as DataTableBaseColumn, TableColumn as DataTableColumn, TableColumnGroup as DataTableColumnGroup, ColumnKey as DataTableColumnKey, TableColumns as DataTableColumns, CreateRowClassName as DataTableCreateRowClassName, CreateRowKey as DataTableCreateRowKey, CreateRowProps as DataTableCreateRowProps, CreateSummary as DataTableCreateSummary, TableExpandColumn as DataTableExpandColumn, FilterState as DataTableFilterState, DataTableInst, DataTableProps, RenderFilter as DataTableRenderFilter, RenderFilterIcon as DataTableRenderFilterIcon, RenderSorter as DataTableRenderSorter, RenderSorterIcon as DataTableRenderSorterIcon, RowData as DataTableRowData, RowKey as DataTableRowKey, TableSelectionColumn as DataTableSelectionColumn, DataTableSlots, SortOrder as DataTableSortOrder, SortState as DataTableSortState } from './src/interface';
|
|
4
|
-
export * from './src/
|
|
4
|
+
export type * from './src/public-types';
|
package/es/data-table/index.mjs
CHANGED
|
@@ -46,7 +46,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
};
|
|
47
47
|
readonly singleColumn: BooleanConstructor;
|
|
48
48
|
readonly size: {
|
|
49
|
-
readonly type: import("vue").PropType<"
|
|
49
|
+
readonly type: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
50
50
|
readonly default: "medium";
|
|
51
51
|
};
|
|
52
52
|
readonly remote: BooleanConstructor;
|
|
@@ -99,12 +99,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
99
99
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
100
100
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
101
101
|
readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
|
|
102
|
-
readonly spinProps:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
106
|
-
readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
|
|
107
|
-
readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
|
|
102
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
103
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
104
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
108
105
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
109
106
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
110
107
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -4315,7 +4312,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4315
4312
|
};
|
|
4316
4313
|
readonly singleColumn: BooleanConstructor;
|
|
4317
4314
|
readonly size: {
|
|
4318
|
-
readonly type: import("vue").PropType<"
|
|
4315
|
+
readonly type: import("vue").PropType<import("./public-types").DataTableSize>;
|
|
4319
4316
|
readonly default: "medium";
|
|
4320
4317
|
};
|
|
4321
4318
|
readonly remote: BooleanConstructor;
|
|
@@ -4368,12 +4365,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
4368
4365
|
readonly scrollbarProps: import("vue").PropType<import("../..").ScrollbarProps>;
|
|
4369
4366
|
readonly renderCell: import("vue").PropType<(value: any, rowData: object, column: import("./interface").TableBaseColumn) => import("vue").VNodeChild>;
|
|
4370
4367
|
readonly renderExpandIcon: import("vue").PropType<import("./interface").RenderExpandIcon>;
|
|
4371
|
-
readonly spinProps:
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
};
|
|
4375
|
-
readonly getCsvCell: import("vue").PropType<import("./publicTypes").DataTableGetCsvCell>;
|
|
4376
|
-
readonly getCsvHeader: import("vue").PropType<import("./publicTypes").DataTableGetCsvHeader>;
|
|
4368
|
+
readonly spinProps: import("vue").PropType<import("./public-types").DataTableSpinProps>;
|
|
4369
|
+
readonly getCsvCell: import("vue").PropType<import("./public-types").DataTableGetCsvCell>;
|
|
4370
|
+
readonly getCsvHeader: import("vue").PropType<import("./public-types").DataTableGetCsvHeader>;
|
|
4377
4371
|
readonly onLoad: import("vue").PropType<import("./interface").DataTableOnLoad>;
|
|
4378
4372
|
readonly 'onUpdate:page': import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
4379
4373
|
readonly onUpdatePage: import("vue").PropType<import("../..").PaginationProps["onUpdate:page"]>;
|
|
@@ -7109,19 +7103,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7109
7103
|
}>;
|
|
7110
7104
|
}>>>;
|
|
7111
7105
|
}>> & Readonly<{}>, {
|
|
7106
|
+
readonly size: import("./public-types").DataTableSize;
|
|
7112
7107
|
readonly data: import("./interface").RowData[];
|
|
7113
|
-
readonly size: "small" | "medium" | "large";
|
|
7114
|
-
readonly tableLayout: "fixed" | "auto";
|
|
7115
|
-
readonly columns: import("./interface").TableColumns<any>;
|
|
7116
|
-
readonly loading: boolean;
|
|
7117
|
-
readonly spinProps: import("../../_internal").BaseLoadingExposedProps;
|
|
7118
7108
|
readonly bordered: boolean | undefined;
|
|
7109
|
+
readonly loading: boolean;
|
|
7119
7110
|
readonly allowCheckingNotLoaded: boolean;
|
|
7120
7111
|
readonly remote: boolean;
|
|
7121
7112
|
readonly cascade: boolean;
|
|
7122
7113
|
readonly virtualScroll: boolean;
|
|
7123
7114
|
readonly pagination: false | import("../..").PaginationProps;
|
|
7124
7115
|
readonly paginateSinglePage: boolean;
|
|
7116
|
+
readonly columns: import("./interface").TableColumns<any>;
|
|
7125
7117
|
readonly bottomBordered: boolean | undefined;
|
|
7126
7118
|
readonly striped: boolean;
|
|
7127
7119
|
readonly defaultCheckedRowKeys: RowKey[];
|
|
@@ -7134,10 +7126,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
7134
7126
|
readonly virtualScrollHeader: boolean;
|
|
7135
7127
|
readonly headerHeight: number;
|
|
7136
7128
|
readonly minRowHeight: number;
|
|
7129
|
+
readonly tableLayout: "fixed" | "auto";
|
|
7137
7130
|
readonly childrenKey: string;
|
|
7138
7131
|
readonly indent: number;
|
|
7139
7132
|
readonly flexHeight: boolean;
|
|
7140
7133
|
readonly summaryPlacement: "top" | "bottom";
|
|
7141
|
-
readonly paginationBehaviorOnFilter: "
|
|
7134
|
+
readonly paginationBehaviorOnFilter: "current" | "first";
|
|
7142
7135
|
}, SlotsType<DataTableSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7143
7136
|
export default _default;
|
|
@@ -46,9 +46,14 @@ export default defineComponent({
|
|
|
46
46
|
mergedBorderedRef,
|
|
47
47
|
mergedClsPrefixRef,
|
|
48
48
|
inlineThemeDisabled,
|
|
49
|
-
mergedRtlRef
|
|
49
|
+
mergedRtlRef,
|
|
50
|
+
mergedComponentPropsRef
|
|
50
51
|
} = useConfig(props);
|
|
51
52
|
const rtlEnabledRef = useRtl('DataTable', mergedRtlRef, mergedClsPrefixRef);
|
|
53
|
+
const mergedSizeRef = computed(() => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
return props.size || ((_b = (_a = mergedComponentPropsRef === null || mergedComponentPropsRef === void 0 ? void 0 : mergedComponentPropsRef.value) === null || _a === void 0 ? void 0 : _a.DataTable) === null || _b === void 0 ? void 0 : _b.size) || 'medium';
|
|
56
|
+
});
|
|
52
57
|
const mergedBottomBorderedRef = computed(() => {
|
|
53
58
|
const {
|
|
54
59
|
bottomBordered
|
|
@@ -134,6 +139,16 @@ export default defineComponent({
|
|
|
134
139
|
expandableRef,
|
|
135
140
|
doUpdateExpandedRowKeys
|
|
136
141
|
} = useExpand(props, treeMateRef);
|
|
142
|
+
const maxHeightRef = toRef(props, 'maxHeight');
|
|
143
|
+
const mergedTableLayoutRef = computed(() => {
|
|
144
|
+
// Layout
|
|
145
|
+
// virtual |descrete header | ellpisis => fixed
|
|
146
|
+
// = virtual | maxHeight | ellpisis => fixed
|
|
147
|
+
if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
|
|
148
|
+
return 'fixed';
|
|
149
|
+
}
|
|
150
|
+
return props.tableLayout;
|
|
151
|
+
});
|
|
137
152
|
const {
|
|
138
153
|
handleTableBodyScroll,
|
|
139
154
|
handleTableHeaderScroll,
|
|
@@ -146,25 +161,22 @@ export default defineComponent({
|
|
|
146
161
|
leftFixedColumnsRef,
|
|
147
162
|
rightFixedColumnsRef,
|
|
148
163
|
fixedColumnLeftMapRef,
|
|
149
|
-
fixedColumnRightMapRef
|
|
164
|
+
fixedColumnRightMapRef,
|
|
165
|
+
xScrollableRef,
|
|
166
|
+
explicitlyScrollableRef
|
|
150
167
|
} = useScroll(props, {
|
|
151
168
|
bodyWidthRef,
|
|
152
169
|
mainTableInstRef,
|
|
153
|
-
mergedCurrentPageRef
|
|
170
|
+
mergedCurrentPageRef,
|
|
171
|
+
maxHeightRef,
|
|
172
|
+
mergedTableLayoutRef
|
|
154
173
|
});
|
|
155
174
|
const {
|
|
156
175
|
localeRef
|
|
157
176
|
} = useLocale('DataTable');
|
|
158
|
-
const mergedTableLayoutRef = computed(() => {
|
|
159
|
-
// Layout
|
|
160
|
-
// virtual |descrete header | ellpisis => fixed
|
|
161
|
-
// = virtual | maxHeight | ellpisis => fixed
|
|
162
|
-
if (props.virtualScroll || props.flexHeight || props.maxHeight !== undefined || hasEllipsisRef.value) {
|
|
163
|
-
return 'fixed';
|
|
164
|
-
}
|
|
165
|
-
return props.tableLayout;
|
|
166
|
-
});
|
|
167
177
|
provide(dataTableInjectionKey, {
|
|
178
|
+
xScrollableRef,
|
|
179
|
+
explicitlyScrollableRef,
|
|
168
180
|
props,
|
|
169
181
|
treeMateRef,
|
|
170
182
|
renderExpandIconRef: toRef(props, 'renderExpandIcon'),
|
|
@@ -236,7 +248,7 @@ export default defineComponent({
|
|
|
236
248
|
}),
|
|
237
249
|
onLoadRef: toRef(props, 'onLoad'),
|
|
238
250
|
mergedTableLayoutRef,
|
|
239
|
-
maxHeightRef
|
|
251
|
+
maxHeightRef,
|
|
240
252
|
minHeightRef: toRef(props, 'minHeight'),
|
|
241
253
|
flexHeightRef: toRef(props, 'flexHeight'),
|
|
242
254
|
headerCheckboxDisabledRef,
|
|
@@ -277,9 +289,7 @@ export default defineComponent({
|
|
|
277
289
|
}
|
|
278
290
|
};
|
|
279
291
|
const cssVarsRef = computed(() => {
|
|
280
|
-
const
|
|
281
|
-
size
|
|
282
|
-
} = props;
|
|
292
|
+
const mergedSize = mergedSizeRef.value;
|
|
283
293
|
const {
|
|
284
294
|
common: {
|
|
285
295
|
cubicBezierEaseInOut
|
|
@@ -328,9 +338,9 @@ export default defineComponent({
|
|
|
328
338
|
tdColorStriped,
|
|
329
339
|
tdColorStripedModal,
|
|
330
340
|
tdColorStripedPopover,
|
|
331
|
-
[createKey('fontSize',
|
|
332
|
-
[createKey('thPadding',
|
|
333
|
-
[createKey('tdPadding',
|
|
341
|
+
[createKey('fontSize', mergedSize)]: fontSize,
|
|
342
|
+
[createKey('thPadding', mergedSize)]: thPadding,
|
|
343
|
+
[createKey('tdPadding', mergedSize)]: tdPadding
|
|
334
344
|
}
|
|
335
345
|
} = themeRef.value;
|
|
336
346
|
return {
|
|
@@ -383,7 +393,7 @@ export default defineComponent({
|
|
|
383
393
|
'--n-th-color-sorting-popover': thColorSortingPopover
|
|
384
394
|
};
|
|
385
395
|
});
|
|
386
|
-
const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() =>
|
|
396
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass('data-table', computed(() => mergedSizeRef.value[0]), cssVarsRef, props) : undefined;
|
|
387
397
|
const mergedShowPaginationRef = computed(() => {
|
|
388
398
|
if (!props.pagination) return false;
|
|
389
399
|
if (props.paginateSinglePage) return true;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
29
|
}>> & Readonly<{}>, {
|
|
30
|
-
show: boolean;
|
|
31
30
|
active: boolean;
|
|
31
|
+
show: boolean;
|
|
32
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
33
33
|
export default _default;
|
|
@@ -26,5 +26,6 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
26
26
|
}>;
|
|
27
27
|
flexHeight: import("vue").Ref<boolean, boolean>;
|
|
28
28
|
handleBodyResize: (entry: ResizeObserverEntry) => void;
|
|
29
|
+
scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
29
30
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
30
31
|
export default _default;
|
|
@@ -15,7 +15,8 @@ export default defineComponent({
|
|
|
15
15
|
minHeightRef,
|
|
16
16
|
flexHeightRef,
|
|
17
17
|
virtualScrollHeaderRef,
|
|
18
|
-
syncScrollState
|
|
18
|
+
syncScrollState,
|
|
19
|
+
scrollXRef
|
|
19
20
|
} = inject(dataTableInjectionKey);
|
|
20
21
|
const headerInstRef = ref(null);
|
|
21
22
|
const bodyInstRef = ref(null);
|
|
@@ -87,7 +88,8 @@ export default defineComponent({
|
|
|
87
88
|
bodyInstRef,
|
|
88
89
|
bodyStyle: bodyStyleRef,
|
|
89
90
|
flexHeight: flexHeightRef,
|
|
90
|
-
handleBodyResize
|
|
91
|
+
handleBodyResize,
|
|
92
|
+
scrollX: scrollXRef
|
|
91
93
|
}, exposedMethods);
|
|
92
94
|
},
|
|
93
95
|
render() {
|
|
@@ -2755,11 +2755,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2755
2755
|
} | undefined;
|
|
2756
2756
|
};
|
|
2757
2757
|
}>;
|
|
2758
|
+
mergedRenderEmpty: import("vue").ComputedRef<(() => VNodeChild) | undefined>;
|
|
2758
2759
|
scrollX: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
2759
2760
|
cols: import("vue").Ref<ColItem[], ColItem[]>;
|
|
2760
2761
|
loading: import("vue").Ref<boolean, boolean>;
|
|
2761
|
-
|
|
2762
|
-
shouldDisplaySomeTablePart: import("vue").ComputedRef<boolean>;
|
|
2762
|
+
shouldDisplayVirtualList: import("vue").ComputedRef<boolean>;
|
|
2763
2763
|
empty: import("vue").ComputedRef<boolean>;
|
|
2764
2764
|
paginatedDataAndInfo: import("vue").ComputedRef<{
|
|
2765
2765
|
data: {
|
|
@@ -2799,7 +2799,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2799
2799
|
childTriggerColIndex: import("vue").Ref<number, number>;
|
|
2800
2800
|
indent: import("vue").Ref<number, number>;
|
|
2801
2801
|
rowProps: import("vue").Ref<import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined, import("../interface").CreateRowProps<import("../interface").InternalRowData> | undefined>;
|
|
2802
|
-
maxHeight: import("vue").Ref<string | number | undefined, string | number | undefined>;
|
|
2803
2802
|
loadingKeySet: import("vue").Ref<Set<RowKey>, Set<RowKey>>;
|
|
2804
2803
|
expandable: import("vue").Ref<import("../interface").Expandable<any> | undefined, import("../interface").Expandable<any> | undefined>;
|
|
2805
2804
|
stickyExpandedRows: import("vue").Ref<boolean, boolean>;
|
|
@@ -2820,6 +2819,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2820
2819
|
}) => void;
|
|
2821
2820
|
handleUpdateExpanded: (key: RowKey, tmNode: TmNode | null) => void;
|
|
2822
2821
|
renderCell: import("vue").Ref<((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined, ((value: any, rowData: object, column: import("../interface").TableBaseColumn) => VNodeChild) | undefined>;
|
|
2822
|
+
explicitlyScrollable: import("vue").Ref<boolean, boolean>;
|
|
2823
|
+
xScrollable: import("vue").Ref<boolean, boolean>;
|
|
2823
2824
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2824
2825
|
onResize: PropType<(e: ResizeObserverEntry) => void>;
|
|
2825
2826
|
showHeader: BooleanConstructor;
|