naive-ui 2.33.2 → 2.33.4
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 +3 -2
- package/README.zh-CN.md +3 -2
- package/dist/index.js +8272 -3401
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/close/src/Close.d.ts +10 -1
- package/es/_internal/close/src/Close.js +7 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/es/_internal/icon/src/Icon.d.ts +1 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/es/_internal/icons/Add.d.ts +1 -1
- package/es/_internal/icons/ArrowBack.d.ts +1 -1
- package/es/_internal/icons/ArrowDown.d.ts +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +1 -1
- package/es/_internal/icons/Attach.d.ts +1 -1
- package/es/_internal/icons/Backward.d.ts +1 -1
- package/es/_internal/icons/Cancel.d.ts +1 -1
- package/es/_internal/icons/Checkmark.d.ts +1 -1
- package/es/_internal/icons/ChevronDown.d.ts +1 -1
- package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/es/_internal/icons/ChevronLeft.d.ts +1 -1
- package/es/_internal/icons/ChevronRight.d.ts +1 -1
- package/es/_internal/icons/Clear.d.ts +1 -1
- package/es/_internal/icons/Close.d.ts +1 -1
- package/es/_internal/icons/Date.d.ts +1 -1
- package/es/_internal/icons/Download.d.ts +1 -1
- package/es/_internal/icons/Empty.d.ts +1 -1
- package/es/_internal/icons/Error.d.ts +1 -1
- package/es/_internal/icons/Eye.d.ts +1 -1
- package/es/_internal/icons/EyeOff.d.ts +1 -1
- package/es/_internal/icons/FastBackward.d.ts +1 -1
- package/es/_internal/icons/FastForward.d.ts +1 -1
- package/es/_internal/icons/File.d.ts +1 -1
- package/es/_internal/icons/Filter.d.ts +1 -1
- package/es/_internal/icons/Forward.d.ts +1 -1
- package/es/_internal/icons/Info.d.ts +1 -1
- package/es/_internal/icons/More.d.ts +1 -1
- package/es/_internal/icons/Photo.d.ts +1 -1
- package/es/_internal/icons/Remove.d.ts +1 -1
- package/es/_internal/icons/ResizeSmall.d.ts +1 -1
- package/es/_internal/icons/Retry.d.ts +1 -1
- package/es/_internal/icons/RotateClockwise.d.ts +1 -1
- package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/es/_internal/icons/Search.d.ts +1 -1
- package/es/_internal/icons/Success.d.ts +1 -1
- package/es/_internal/icons/Switcher.d.ts +1 -1
- package/es/_internal/icons/Time.d.ts +1 -1
- package/es/_internal/icons/To.d.ts +1 -1
- package/es/_internal/icons/Trash.d.ts +1 -1
- package/es/_internal/icons/Warning.d.ts +1 -1
- package/es/_internal/icons/ZoomIn.d.ts +1 -1
- package/es/_internal/icons/ZoomOut.d.ts +1 -1
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/es/_internal/selection/src/Selection.d.ts +12 -3
- package/es/_internal/selection/src/Selection.js +28 -14
- package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +1 -1
- package/es/_internal/wave/src/Wave.d.ts +1 -1
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/_utils/vue/call.d.ts +1 -0
- package/es/_utils/vue/index.d.ts +1 -1
- package/es/_utils/vue/index.js +1 -1
- package/es/_utils/vue/keysOf.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +1 -0
- package/es/_utils/vue/resolve-slot.js +7 -0
- package/es/_utils/vue/wrapper.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/avatar/src/Avatar.d.ts +11 -2
- package/es/avatar/src/Avatar.js +12 -4
- package/es/avatar-group/src/AvatarGroup.d.ts +34 -11
- package/es/avatar-group/src/AvatarGroup.js +7 -2
- package/es/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
- package/es/avatar-group/src/styles/avatar-group.cssr.js +4 -3
- package/es/avatar-group/styles/dark.js +3 -1
- package/es/avatar-group/styles/light.d.ts +6 -1
- package/es/avatar-group/styles/light.js +7 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/button/src/Button.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/card/index.d.ts +1 -1
- package/es/card/src/Card.d.ts +7 -7
- package/es/carousel/index.d.ts +1 -0
- package/es/carousel/src/Carousel.d.ts +1 -1
- package/es/carousel/src/CarouselArrow.d.ts +1 -1
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselItem.d.ts +1 -1
- package/es/carousel/src/utils/index.js +1 -1
- package/es/cascader/src/Cascader.d.ts +2 -2
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +1 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +12 -1
- package/es/collapse/src/Collapse.js +3 -2
- package/es/collapse/src/CollapseItem.d.ts +2 -2
- package/es/collapse/src/CollapseItem.js +13 -9
- package/es/collapse/src/CollapseItemContent.d.ts +1 -1
- package/es/collapse/src/styles/index.cssr.js +2 -1
- package/es/collapse/styles/light.d.ts +1 -0
- package/es/collapse/styles/light.js +2 -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/ColorInput.d.ts +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPreview.d.ts +1 -1
- package/es/color-picker/src/HueSlider.d.ts +1 -1
- package/es/color-picker/src/Pallete.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +3 -3
- package/es/data-table/index.js +2 -1
- package/es/data-table/src/DataTable.d.ts +627 -2319
- package/es/data-table/src/DataTable.js +14 -54
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
- package/es/data-table/src/HeaderButton/ResizeButton.js +58 -0
- package/es/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +92 -1
- package/es/data-table/src/TableParts/Body.js +39 -31
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/es/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +181 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/Header.d.ts +97 -4
- package/es/data-table/src/TableParts/Header.js +48 -16
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
- package/es/data-table/src/TableParts/SelectionMenu.js +12 -13
- package/es/data-table/src/interface.d.ts +2467 -5
- package/es/data-table/src/interface.js +54 -0
- package/es/data-table/src/styles/index.cssr.js +27 -1
- package/es/data-table/src/use-check.d.ts +4 -5
- package/es/data-table/src/use-check.js +17 -14
- package/es/data-table/src/use-expand.d.ts +1 -2
- package/es/data-table/src/use-group-header.d.ts +2 -3
- package/es/data-table/src/use-group-header.js +6 -4
- package/es/data-table/src/use-resizable.d.ts +6 -0
- package/es/data-table/src/use-resizable.js +22 -0
- package/es/data-table/src/use-scroll.d.ts +1 -2
- package/es/data-table/src/use-sorter.d.ts +1 -2
- package/es/data-table/src/use-sorter.js +1 -1
- package/es/data-table/src/use-table-data.d.ts +2 -2
- package/es/data-table/src/use-table-data.js +6 -1
- package/es/data-table/src/utils.d.ts +3 -1
- package/es/data-table/src/utils.js +26 -2
- package/es/data-table/styles/_common.d.ts +2 -0
- package/es/data-table/styles/_common.js +2 -0
- package/es/data-table/styles/dark.js +3 -1
- package/es/data-table/styles/light.d.ts +74 -0
- package/es/data-table/styles/light.js +3 -1
- package/es/date-picker/src/DatePicker.d.ts +1 -1
- package/es/date-picker/src/DatePicker.js +5 -3
- package/es/date-picker/src/panel/date.d.ts +17 -49
- package/es/date-picker/src/panel/date.js +6 -10
- package/es/date-picker/src/panel/daterange.d.ts +1 -1
- package/es/date-picker/src/panel/daterange.js +10 -18
- package/es/date-picker/src/panel/datetime.d.ts +7 -7
- package/es/date-picker/src/panel/datetime.js +6 -9
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/es/date-picker/src/panel/datetimerange.js +10 -18
- package/es/date-picker/src/panel/month.d.ts +7 -7
- package/es/date-picker/src/panel/monthrange.d.ts +1 -1
- package/es/date-picker/src/panel/monthrange.js +4 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +2 -2
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +1 -1
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/src/utils.d.ts +1 -1
- package/es/descriptions/src/utils.js +1 -1
- package/es/dialog/src/Dialog.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +4 -1
- package/es/dialog/src/DialogEnvironment.js +6 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -3
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/discrete/src/discreteApp.d.ts +2 -1
- package/es/discrete/src/discreteApp.js +10 -5
- package/es/discrete/src/interface.d.ts +2 -1
- package/es/divider/src/Divider.d.ts +1 -1
- 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/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/Dropdown.js +21 -20
- package/es/dropdown/src/DropdownDivider.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.js +4 -1
- package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.js +2 -0
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/InputPreset.d.ts +1 -1
- package/es/dynamic-input/src/PairPreset.d.ts +1 -1
- package/es/dynamic-tags/index.d.ts +1 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/es/element/src/Element.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/form/src/Form.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/global-style/src/GlobalStyle.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +1 -1
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/Grid.js +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.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/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/input/src/Input.d.ts +2 -2
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/WordCount.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/InputNumber.js +6 -1
- package/es/layout/index.d.ts +1 -1
- 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 +1 -1
- package/es/layout/src/ToggleBar.d.ts +1 -1
- package/es/layout/src/ToggleButton.d.ts +1 -1
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +1 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/es/legacy-transfer/src/TransferList.d.ts +1 -1
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +8 -3
- package/es/loading-bar/src/LoadingBar.js +5 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +8 -5
- package/es/loading-bar/src/LoadingBarProvider.js +6 -6
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/src/LogLine.d.ts +1 -1
- package/es/log/src/LogLoader.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/menu/src/Menu.js +5 -2
- package/es/menu/src/MenuDivider.d.ts +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOption.js +1 -4
- 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 +1 -1
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/utils.js +1 -1
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +4 -4
- package/es/modal/src/Modal.d.ts +5 -5
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationContainer.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +14 -1
- package/es/pagination/src/Pagination.js +5 -5
- package/es/popconfirm/src/Popconfirm.d.ts +1 -1
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +1 -1
- package/es/popover/src/Popover.js +5 -0
- package/es/popover/src/PopoverBody.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +5 -5
- package/es/popselect/src/PopselectPanel.d.ts +6 -6
- package/es/popselect/src/PopselectPanel.js +2 -2
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Circle.js +5 -3
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/radio/src/Radio.d.ts +1 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/result/src/Result.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/select/src/Select.d.ts +19 -6
- package/es/select/src/Select.js +5 -5
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +11 -1
- package/es/slider/src/Slider.js +3 -2
- package/es/slider/src/styles/index.cssr.js +2 -0
- package/es/slider/styles/dark.js +1 -2
- package/es/slider/styles/light.d.ts +1 -0
- package/es/slider/styles/light.js +1 -2
- package/es/space/src/Space.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/src/Tbody.d.ts +1 -1
- package/es/table/src/Td.d.ts +1 -1
- package/es/table/src/Th.d.ts +1 -1
- package/es/table/src/Thead.d.ts +1 -1
- package/es/table/src/Tr.d.ts +1 -1
- 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 +2 -2
- package/es/tabs/src/Tabs.js +28 -0
- package/es/tag/src/Tag.d.ts +14 -14
- package/es/tag/src/Tag.js +14 -13
- package/es/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/es/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/PanelCol.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/src/styles/index.cssr.js +2 -3
- package/es/timeline/styles/_common.js +2 -2
- package/es/tooltip/src/Tooltip.d.ts +1 -1
- package/es/transfer/src/Transfer.d.ts +4 -1
- package/es/transfer/src/Transfer.js +9 -4
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +1 -1
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -1
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +1 -1
- package/es/tree/src/Tree.js +42 -14
- package/es/tree/src/TreeNode.d.ts +1 -1
- package/es/tree/src/TreeNode.js +9 -4
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/es/tree/src/interface.d.ts +1 -0
- package/es/tree/src/utils.d.ts +2 -1
- package/es/tree/src/utils.js +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +4 -4
- package/es/tree-select/src/TreeSelect.js +8 -10
- 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/headers.d.ts +6 -6
- package/es/typography/src/hr.d.ts +1 -1
- package/es/typography/src/li.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/upload/src/Upload.d.ts +14 -11
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadDragger.d.ts +1 -1
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadFileList.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/close/src/Close.d.ts +10 -1
- package/lib/_internal/close/src/Close.js +7 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/lib/_internal/icon/src/Icon.d.ts +1 -1
- package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/lib/_internal/icons/Add.d.ts +1 -1
- package/lib/_internal/icons/ArrowBack.d.ts +1 -1
- package/lib/_internal/icons/ArrowDown.d.ts +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +1 -1
- package/lib/_internal/icons/Attach.d.ts +1 -1
- package/lib/_internal/icons/Backward.d.ts +1 -1
- package/lib/_internal/icons/Cancel.d.ts +1 -1
- package/lib/_internal/icons/Checkmark.d.ts +1 -1
- package/lib/_internal/icons/ChevronDown.d.ts +1 -1
- package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
- package/lib/_internal/icons/ChevronRight.d.ts +1 -1
- package/lib/_internal/icons/Clear.d.ts +1 -1
- package/lib/_internal/icons/Close.d.ts +1 -1
- package/lib/_internal/icons/Date.d.ts +1 -1
- package/lib/_internal/icons/Download.d.ts +1 -1
- package/lib/_internal/icons/Empty.d.ts +1 -1
- package/lib/_internal/icons/Error.d.ts +1 -1
- package/lib/_internal/icons/Eye.d.ts +1 -1
- package/lib/_internal/icons/EyeOff.d.ts +1 -1
- package/lib/_internal/icons/FastBackward.d.ts +1 -1
- package/lib/_internal/icons/FastForward.d.ts +1 -1
- package/lib/_internal/icons/File.d.ts +1 -1
- package/lib/_internal/icons/Filter.d.ts +1 -1
- package/lib/_internal/icons/Forward.d.ts +1 -1
- package/lib/_internal/icons/Info.d.ts +1 -1
- package/lib/_internal/icons/More.d.ts +1 -1
- package/lib/_internal/icons/Photo.d.ts +1 -1
- package/lib/_internal/icons/Remove.d.ts +1 -1
- package/lib/_internal/icons/ResizeSmall.d.ts +1 -1
- package/lib/_internal/icons/Retry.d.ts +1 -1
- package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
- package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/lib/_internal/icons/Search.d.ts +1 -1
- package/lib/_internal/icons/Success.d.ts +1 -1
- package/lib/_internal/icons/Switcher.d.ts +1 -1
- package/lib/_internal/icons/Time.d.ts +1 -1
- package/lib/_internal/icons/To.d.ts +1 -1
- package/lib/_internal/icons/Trash.d.ts +1 -1
- package/lib/_internal/icons/Warning.d.ts +1 -1
- package/lib/_internal/icons/ZoomIn.d.ts +1 -1
- package/lib/_internal/icons/ZoomOut.d.ts +1 -1
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +12 -3
- package/lib/_internal/selection/src/Selection.js +28 -14
- package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
- package/lib/_internal/wave/src/Wave.d.ts +1 -1
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/_utils/vue/call.d.ts +1 -0
- package/lib/_utils/vue/index.d.ts +1 -1
- package/lib/_utils/vue/index.js +2 -1
- package/lib/_utils/vue/keysOf.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.d.ts +1 -0
- package/lib/_utils/vue/resolve-slot.js +9 -1
- package/lib/_utils/vue/wrapper.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/BaseAnchor.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/avatar/src/Avatar.d.ts +11 -2
- package/lib/avatar/src/Avatar.js +11 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +34 -11
- package/lib/avatar-group/src/AvatarGroup.js +7 -2
- package/lib/avatar-group/src/styles/avatar-group-rtl.cssr.js +3 -2
- package/lib/avatar-group/src/styles/avatar-group.cssr.js +4 -3
- package/lib/avatar-group/styles/dark.js +3 -1
- package/lib/avatar-group/styles/light.d.ts +6 -1
- package/lib/avatar-group/styles/light.js +9 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/button/src/Button.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/card/index.d.ts +1 -1
- package/lib/card/src/Card.d.ts +7 -7
- package/lib/carousel/index.d.ts +1 -0
- package/lib/carousel/src/Carousel.d.ts +1 -1
- package/lib/carousel/src/CarouselArrow.d.ts +1 -1
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/src/CarouselItem.d.ts +1 -1
- package/lib/carousel/src/utils/index.js +1 -1
- package/lib/cascader/src/Cascader.d.ts +2 -2
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +1 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +12 -1
- package/lib/collapse/src/Collapse.js +3 -2
- package/lib/collapse/src/CollapseItem.d.ts +2 -2
- package/lib/collapse/src/CollapseItem.js +12 -8
- package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
- package/lib/collapse/src/styles/index.cssr.js +2 -1
- package/lib/collapse/styles/light.d.ts +1 -0
- package/lib/collapse/styles/light.js +2 -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/ColorInput.d.ts +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPreview.d.ts +1 -1
- package/lib/color-picker/src/HueSlider.d.ts +1 -1
- package/lib/color-picker/src/Pallete.d.ts +1 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +3 -3
- package/lib/data-table/index.js +2 -1
- package/lib/data-table/src/DataTable.d.ts +627 -2319
- package/lib/data-table/src/DataTable.js +14 -55
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +91 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +92 -2
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/ResizeButton.d.ts +15 -0
- package/lib/data-table/src/HeaderButton/ResizeButton.js +60 -0
- package/lib/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +1 -1
- package/lib/data-table/src/TableParts/Body.d.ts +92 -1
- package/lib/data-table/src/TableParts/Body.js +39 -31
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +181 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/Header.d.ts +97 -4
- package/lib/data-table/src/TableParts/Header.js +46 -14
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -8
- package/lib/data-table/src/TableParts/SelectionMenu.js +12 -13
- package/lib/data-table/src/interface.d.ts +2467 -5
- package/lib/data-table/src/interface.js +55 -1
- package/lib/data-table/src/styles/index.cssr.js +27 -1
- package/lib/data-table/src/use-check.d.ts +4 -5
- package/lib/data-table/src/use-check.js +17 -14
- package/lib/data-table/src/use-expand.d.ts +1 -2
- package/lib/data-table/src/use-group-header.d.ts +2 -3
- package/lib/data-table/src/use-group-header.js +6 -4
- package/lib/data-table/src/use-resizable.d.ts +6 -0
- package/lib/data-table/src/use-resizable.js +26 -0
- package/lib/data-table/src/use-scroll.d.ts +1 -2
- package/lib/data-table/src/use-sorter.d.ts +1 -2
- package/lib/data-table/src/use-sorter.js +1 -1
- package/lib/data-table/src/use-table-data.d.ts +2 -2
- package/lib/data-table/src/use-table-data.js +6 -1
- package/lib/data-table/src/utils.d.ts +3 -1
- package/lib/data-table/src/utils.js +29 -3
- package/lib/data-table/styles/_common.d.ts +2 -0
- package/lib/data-table/styles/_common.js +2 -0
- package/lib/data-table/styles/dark.js +3 -1
- package/lib/data-table/styles/light.d.ts +74 -0
- package/lib/data-table/styles/light.js +3 -1
- package/lib/date-picker/src/DatePicker.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.js +5 -3
- package/lib/date-picker/src/panel/date.d.ts +17 -49
- package/lib/date-picker/src/panel/date.js +5 -9
- package/lib/date-picker/src/panel/daterange.d.ts +1 -1
- package/lib/date-picker/src/panel/daterange.js +9 -17
- package/lib/date-picker/src/panel/datetime.d.ts +7 -7
- package/lib/date-picker/src/panel/datetime.js +6 -9
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/lib/date-picker/src/panel/datetimerange.js +9 -17
- package/lib/date-picker/src/panel/month.d.ts +7 -7
- package/lib/date-picker/src/panel/monthrange.d.ts +1 -1
- package/lib/date-picker/src/panel/monthrange.js +4 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +2 -2
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +1 -1
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/src/utils.d.ts +1 -1
- package/lib/descriptions/src/utils.js +1 -1
- package/lib/dialog/src/Dialog.d.ts +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -1
- package/lib/dialog/src/DialogEnvironment.js +6 -2
- package/lib/dialog/src/DialogProvider.d.ts +4 -3
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/discrete/src/discreteApp.d.ts +2 -1
- package/lib/discrete/src/discreteApp.js +9 -4
- package/lib/discrete/src/interface.d.ts +2 -1
- package/lib/divider/src/Divider.d.ts +1 -1
- 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/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.js +21 -20
- package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.js +4 -1
- package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.js +2 -0
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
- package/lib/dynamic-tags/index.d.ts +1 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/form/src/Form.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/global-style/src/GlobalStyle.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +1 -1
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/Grid.js +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.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/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/input/src/Input.d.ts +2 -2
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/WordCount.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/InputNumber.js +5 -0
- package/lib/layout/index.d.ts +1 -1
- 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 +1 -1
- package/lib/layout/src/ToggleBar.d.ts +1 -1
- package/lib/layout/src/ToggleButton.d.ts +1 -1
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +8 -3
- package/lib/loading-bar/src/LoadingBar.js +5 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +8 -5
- package/lib/loading-bar/src/LoadingBarProvider.js +6 -6
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/src/LogLine.d.ts +1 -1
- package/lib/log/src/LogLoader.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/menu/src/Menu.js +4 -1
- package/lib/menu/src/MenuDivider.d.ts +1 -1
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOption.js +1 -4
- 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 +1 -1
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/utils.js +1 -1
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +4 -4
- package/lib/modal/src/Modal.d.ts +5 -5
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationContainer.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +1 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +14 -1
- package/lib/pagination/src/Pagination.js +4 -4
- package/lib/popconfirm/src/Popconfirm.d.ts +1 -1
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +1 -1
- package/lib/popover/src/Popover.js +5 -0
- package/lib/popover/src/PopoverBody.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +5 -5
- package/lib/popselect/src/PopselectPanel.d.ts +6 -6
- package/lib/popselect/src/PopselectPanel.js +2 -2
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Circle.js +5 -3
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/radio/src/Radio.d.ts +1 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/select/src/Select.d.ts +19 -6
- package/lib/select/src/Select.js +5 -5
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +11 -1
- package/lib/slider/src/Slider.js +3 -2
- package/lib/slider/src/styles/index.cssr.js +2 -0
- package/lib/slider/styles/dark.js +1 -2
- package/lib/slider/styles/light.d.ts +1 -0
- package/lib/slider/styles/light.js +1 -2
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/src/Tbody.d.ts +1 -1
- package/lib/table/src/Td.d.ts +1 -1
- package/lib/table/src/Th.d.ts +1 -1
- package/lib/table/src/Thead.d.ts +1 -1
- package/lib/table/src/Tr.d.ts +1 -1
- 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 +2 -2
- package/lib/tabs/src/Tabs.js +28 -0
- package/lib/tag/src/Tag.d.ts +14 -14
- package/lib/tag/src/Tag.js +12 -11
- package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/PanelCol.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/src/styles/index.cssr.js +2 -3
- package/lib/timeline/styles/_common.js +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +1 -1
- package/lib/transfer/src/Transfer.d.ts +4 -1
- package/lib/transfer/src/Transfer.js +9 -4
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +1 -1
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -1
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +1 -1
- package/lib/tree/src/Tree.js +41 -13
- package/lib/tree/src/TreeNode.d.ts +1 -1
- package/lib/tree/src/TreeNode.js +9 -4
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +1 -1
- package/lib/tree/src/interface.d.ts +1 -0
- package/lib/tree/src/utils.d.ts +2 -1
- package/lib/tree/src/utils.js +5 -1
- package/lib/tree-select/src/TreeSelect.d.ts +4 -4
- package/lib/tree-select/src/TreeSelect.js +8 -10
- 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/headers.d.ts +6 -6
- package/lib/typography/src/hr.d.ts +1 -1
- package/lib/typography/src/li.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/upload/src/Upload.d.ts +14 -11
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadDragger.d.ts +1 -1
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadFileList.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/package.json +26 -33
- package/web-types.json +10314 -10309
|
@@ -34,7 +34,7 @@ export default defineComponent({
|
|
|
34
34
|
}, loading: Boolean, autofocus: Boolean, showArrow: {
|
|
35
35
|
type: Boolean,
|
|
36
36
|
default: true
|
|
37
|
-
}, inputProps: Object, focused: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, inlineThemeDisabled: Boolean, onResize: Function }),
|
|
37
|
+
}, inputProps: Object, focused: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, inlineThemeDisabled: Boolean, ignoreComposition: { type: Boolean, default: true }, onResize: Function }),
|
|
38
38
|
setup(props) {
|
|
39
39
|
const patternInputMirrorRef = ref(null);
|
|
40
40
|
const patternInputRef = ref(null);
|
|
@@ -169,7 +169,7 @@ export default defineComponent({
|
|
|
169
169
|
doDeleteOption(option);
|
|
170
170
|
}
|
|
171
171
|
function handlePatternKeyDown(e) {
|
|
172
|
-
if (e.key === 'Backspace' && !
|
|
172
|
+
if (e.key === 'Backspace' && !isComposingRef.value) {
|
|
173
173
|
if (!props.pattern.length) {
|
|
174
174
|
const { selectedOptions } = props;
|
|
175
175
|
if (selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.length) {
|
|
@@ -178,7 +178,7 @@ export default defineComponent({
|
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const isComposingRef = ref(false);
|
|
182
182
|
// the composition end is later than its input so we can cached the event
|
|
183
183
|
// and return the input event
|
|
184
184
|
let cachedInputEvent = null;
|
|
@@ -190,19 +190,26 @@ export default defineComponent({
|
|
|
190
190
|
patternInputMirrorEl.textContent = inputText;
|
|
191
191
|
syncMirrorWidth();
|
|
192
192
|
}
|
|
193
|
-
if (
|
|
194
|
-
|
|
193
|
+
if (props.ignoreComposition) {
|
|
194
|
+
if (!isComposingRef.value) {
|
|
195
|
+
doPatternInput(e);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
cachedInputEvent = e;
|
|
199
|
+
}
|
|
195
200
|
}
|
|
196
201
|
else {
|
|
197
|
-
|
|
202
|
+
doPatternInput(e);
|
|
198
203
|
}
|
|
199
204
|
}
|
|
200
205
|
function handleCompositionStart() {
|
|
201
|
-
|
|
206
|
+
isComposingRef.value = true;
|
|
202
207
|
}
|
|
203
208
|
function handleCompositionEnd() {
|
|
204
|
-
|
|
205
|
-
|
|
209
|
+
isComposingRef.value = false;
|
|
210
|
+
if (props.ignoreComposition) {
|
|
211
|
+
doPatternInput(cachedInputEvent);
|
|
212
|
+
}
|
|
206
213
|
cachedInputEvent = null;
|
|
207
214
|
}
|
|
208
215
|
function handlePatternInputFocus(e) {
|
|
@@ -280,7 +287,9 @@ export default defineComponent({
|
|
|
280
287
|
return;
|
|
281
288
|
clearEnterTimer();
|
|
282
289
|
enterTimerId = window.setTimeout(() => {
|
|
283
|
-
|
|
290
|
+
if (selectedRef.value) {
|
|
291
|
+
showTagsPopoverRef.value = true;
|
|
292
|
+
}
|
|
284
293
|
}, 100);
|
|
285
294
|
}
|
|
286
295
|
function handleMouseLeaveCounter() {
|
|
@@ -292,6 +301,11 @@ export default defineComponent({
|
|
|
292
301
|
showTagsPopoverRef.value = false;
|
|
293
302
|
}
|
|
294
303
|
}
|
|
304
|
+
watch(selectedRef, (value) => {
|
|
305
|
+
if (!value) {
|
|
306
|
+
showTagsPopoverRef.value = false;
|
|
307
|
+
}
|
|
308
|
+
});
|
|
295
309
|
onMounted(() => {
|
|
296
310
|
watchEffect(() => {
|
|
297
311
|
const patternInputWrapperEl = patternInputWrapperRef.value;
|
|
@@ -379,7 +393,7 @@ export default defineComponent({
|
|
|
379
393
|
label: labelRef,
|
|
380
394
|
selected: selectedRef,
|
|
381
395
|
showTagsPanel: showTagsPopoverRef,
|
|
382
|
-
|
|
396
|
+
isComposing: isComposingRef,
|
|
383
397
|
// dom ref
|
|
384
398
|
counterRef,
|
|
385
399
|
counterWrapperRef,
|
|
@@ -437,7 +451,7 @@ export default defineComponent({
|
|
|
437
451
|
const createTag = (option) => (h("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
|
|
438
452
|
option,
|
|
439
453
|
handleClose: () => this.handleDeleteOption(option)
|
|
440
|
-
})) : (h(NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseFocusable: false }, {
|
|
454
|
+
})) : (h(NTag, { size: size, closable: !option.disabled, disabled: disabled, onClose: () => this.handleDeleteOption(option), internalCloseIsButtonTag: false, internalCloseFocusable: false }, {
|
|
441
455
|
default: () => renderLabel
|
|
442
456
|
? renderLabel(option, true)
|
|
443
457
|
: render(option[labelField], option, true)
|
|
@@ -499,7 +513,7 @@ export default defineComponent({
|
|
|
499
513
|
const showPlaceholder = this.selected
|
|
500
514
|
? false
|
|
501
515
|
: this.active
|
|
502
|
-
? !this.pattern && !this.
|
|
516
|
+
? !this.pattern && !this.isComposing
|
|
503
517
|
: true;
|
|
504
518
|
const placeholder = showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay` },
|
|
505
519
|
h("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder))) : null;
|
|
@@ -518,7 +532,7 @@ export default defineComponent({
|
|
|
518
532
|
}
|
|
519
533
|
else {
|
|
520
534
|
if (filterable) {
|
|
521
|
-
const hasInput = this.pattern || this.
|
|
535
|
+
const hasInput = this.pattern || this.isComposing;
|
|
522
536
|
const showPlaceholder = this.active ? !hasInput : !this.selected;
|
|
523
537
|
const showSelectedLabel = this.active ? false : this.selected;
|
|
524
538
|
body = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
|
|
@@ -15,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
required: true;
|
|
17
17
|
};
|
|
18
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
19
|
clsPrefix: {
|
|
20
20
|
type: StringConstructor;
|
|
21
21
|
required: true;
|
|
@@ -16,7 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
16
|
type: NumberConstructor;
|
|
17
17
|
default: undefined;
|
|
18
18
|
};
|
|
19
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
19
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
20
|
clsPrefix: {
|
|
21
21
|
type: StringConstructor;
|
|
22
22
|
required: true;
|
|
@@ -17,7 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
19
|
onClear: PropType<(e: MouseEvent) => void>;
|
|
20
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
clsPrefix: {
|
|
22
22
|
type: StringConstructor;
|
|
23
23
|
required: true;
|
|
@@ -10,7 +10,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
active: import("vue").Ref<boolean>;
|
|
11
11
|
selfRef: import("vue").Ref<HTMLElement | null>;
|
|
12
12
|
play(): void;
|
|
13
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
13
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
14
|
clsPrefix: {
|
|
15
15
|
type: StringConstructor;
|
|
16
16
|
required: true;
|
package/es/_utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, getFirstSlotVNode, createDataKey, createRefSetter, createInjectionKey, resolveSlot, resolveSlotWithProps, resolveWrappedSlot, isSlotEmpty, mergeEventHandlers, isNodeVShowFalse, Wrapper } from './vue';
|
|
1
|
+
export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, getFirstSlotVNode, createDataKey, createRefSetter, createInjectionKey, resolveSlot, resolveSlotWithProps, resolveWrappedSlot, isSlotEmpty, mergeEventHandlers, isNodeVShowFalse, resolveWrappedSlotWithProps, Wrapper } from './vue';
|
|
2
2
|
export type { MaybeArray } from './vue';
|
|
3
3
|
export { warn, warnOnce, throwError, smallerSize, largerSize, getTitleAttribute } from './naive';
|
|
4
4
|
export type { ExtractPublicPropTypes, ExtractInternalPropTypes, Mutable } from './naive';
|
package/es/_utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, getFirstSlotVNode, createDataKey, createRefSetter, createInjectionKey, resolveSlot, resolveSlotWithProps, resolveWrappedSlot, isSlotEmpty, mergeEventHandlers, isNodeVShowFalse, Wrapper } from './vue';
|
|
1
|
+
export { call, keep, omit, flatten, getSlot, getVNodeChildren, keysOf, render, getFirstSlotVNode, createDataKey, createRefSetter, createInjectionKey, resolveSlot, resolveSlotWithProps, resolveWrappedSlot, isSlotEmpty, mergeEventHandlers, isNodeVShowFalse, resolveWrappedSlotWithProps, Wrapper } from './vue';
|
|
2
2
|
export { warn, warnOnce, throwError, smallerSize, largerSize, getTitleAttribute } from './naive';
|
|
3
3
|
export { formatLength, color2Class } from './css';
|
|
4
4
|
export { createKey } from './cssr';
|
package/es/_utils/vue/call.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ declare function call(funcs: MaybeArray<() => void>): void;
|
|
|
2
2
|
declare function call<A1>(funcs: MaybeArray<(a1: A1) => void>, a1: A1): void;
|
|
3
3
|
declare function call<A1, A2>(funcs: MaybeArray<(a1: A1, a2: A2) => void>, a1: A1, a2: A2): void;
|
|
4
4
|
declare function call<A1, A2, A3>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3) => void>, a1: A1, a2: A2, a3: A3): void;
|
|
5
|
+
declare function call<A1, A2, A3, A4>(funcs: MaybeArray<(a1: A1, a2: A2, a3: A3, a4: A4) => void>, a1: A1, a2: A2, a3: A3, a4: A4): void;
|
|
5
6
|
export { call };
|
|
6
7
|
export declare type MaybeArray<T> = T | T[];
|
package/es/_utils/vue/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { getFirstSlotVNode } from './get-first-slot-vnode';
|
|
|
10
10
|
export { createDataKey } from './create-data-key';
|
|
11
11
|
export { createRefSetter } from './create-ref-setter';
|
|
12
12
|
export { createInjectionKey } from './create-injection-key';
|
|
13
|
-
export { resolveSlot, resolveWrappedSlot, resolveSlotWithProps, isSlotEmpty } from './resolve-slot';
|
|
13
|
+
export { resolveSlot, resolveWrappedSlot, resolveSlotWithProps, resolveWrappedSlotWithProps, isSlotEmpty } from './resolve-slot';
|
|
14
14
|
export type { MaybeArray } from './call';
|
|
15
15
|
export { mergeEventHandlers } from './merge-handlers';
|
|
16
16
|
export { isNodeVShowFalse } from './is-node-v-show-false';
|
package/es/_utils/vue/index.js
CHANGED
|
@@ -10,7 +10,7 @@ export { getFirstSlotVNode } from './get-first-slot-vnode';
|
|
|
10
10
|
export { createDataKey } from './create-data-key';
|
|
11
11
|
export { createRefSetter } from './create-ref-setter';
|
|
12
12
|
export { createInjectionKey } from './create-injection-key';
|
|
13
|
-
export { resolveSlot, resolveWrappedSlot, resolveSlotWithProps, isSlotEmpty } from './resolve-slot';
|
|
13
|
+
export { resolveSlot, resolveWrappedSlot, resolveSlotWithProps, resolveWrappedSlotWithProps, isSlotEmpty } from './resolve-slot';
|
|
14
14
|
export { mergeEventHandlers } from './merge-handlers';
|
|
15
15
|
export { isNodeVShowFalse } from './is-node-v-show-false';
|
|
16
16
|
export { Wrapper } from './wrapper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function keysOf<T>(obj: T): Array<keyof T>;
|
|
1
|
+
export declare function keysOf<T extends {}>(obj: T): Array<keyof T>;
|
|
@@ -8,4 +8,5 @@ export declare function resolveSlotWithProps<T>(slot: Slot | undefined, props: T
|
|
|
8
8
|
* Resolve slot with wrapper if content exists, no fallback
|
|
9
9
|
*/
|
|
10
10
|
export declare function resolveWrappedSlot(slot: Slot | undefined, wrapper: (children: VNodeArrayChildren | null) => VNodeChild): VNodeChild;
|
|
11
|
+
export declare function resolveWrappedSlotWithProps(slot: Slot | undefined, props: any, wrapper: (children: VNodeArrayChildren | null) => VNodeChild): VNodeChild;
|
|
11
12
|
export declare function isSlotEmpty(slot: Slot | undefined): boolean;
|
|
@@ -32,6 +32,13 @@ export function resolveWrappedSlot(slot, wrapper) {
|
|
|
32
32
|
const children = slot && ensureValidVNode(slot());
|
|
33
33
|
return wrapper(children || null);
|
|
34
34
|
}
|
|
35
|
+
/*
|
|
36
|
+
* Resolve slot with wrapper if content exists, no fallback
|
|
37
|
+
*/
|
|
38
|
+
export function resolveWrappedSlotWithProps(slot, props, wrapper) {
|
|
39
|
+
const children = slot && ensureValidVNode(slot(props));
|
|
40
|
+
return wrapper(children || null);
|
|
41
|
+
}
|
|
35
42
|
export function isSlotEmpty(slot) {
|
|
36
43
|
return !(slot && ensureValidVNode(slot()));
|
|
37
44
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Wrapper: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1
|
+
export declare const Wrapper: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
package/es/affix/src/Affix.d.ts
CHANGED
|
@@ -59,7 +59,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
affixed: import("vue").ComputedRef<boolean>;
|
|
60
60
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
61
61
|
mergedstyle: import("vue").ComputedRef<CSSProperties>;
|
|
62
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
62
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
63
|
readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
|
|
64
64
|
readonly top: NumberConstructor;
|
|
65
65
|
readonly bottom: NumberConstructor;
|
package/es/alert/src/Alert.d.ts
CHANGED
|
@@ -643,7 +643,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
643
643
|
}> | undefined;
|
|
644
644
|
themeClass: import("vue").Ref<string> | undefined;
|
|
645
645
|
onRender: (() => void) | undefined;
|
|
646
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
646
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
647
647
|
title: StringConstructor;
|
|
648
648
|
showIcon: {
|
|
649
649
|
type: BooleanConstructor;
|
|
@@ -175,7 +175,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
175
|
}, {
|
|
176
176
|
scrollTo(href: string): void;
|
|
177
177
|
renderAnchor: () => JSX.Element;
|
|
178
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
178
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
179
179
|
readonly type: {
|
|
180
180
|
readonly type: import("vue").PropType<"block" | "rail">;
|
|
181
181
|
readonly default: "rail";
|
|
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
activeHref: import("vue").Ref<string | null>;
|
|
58
58
|
isBlockType: import("vue").ComputedRef<boolean>;
|
|
59
59
|
mergedShowRail: import("vue").ComputedRef<boolean>;
|
|
60
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
61
|
mergedClsPrefix: {
|
|
62
62
|
type: StringConstructor;
|
|
63
63
|
required: true;
|
package/es/anchor/src/Link.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export declare type AnchorLinkProps = ExtractPublicPropTypes<typeof anchorLinkPr
|
|
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
readonly title: StringConstructor;
|
|
19
19
|
readonly href: StringConstructor;
|
|
20
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
21
|
readonly title: StringConstructor;
|
|
22
22
|
readonly href: StringConstructor;
|
|
23
23
|
}>>, {}>;
|
|
@@ -1122,7 +1122,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1122
1122
|
mergedBordered: import("vue").ComputedRef<boolean>;
|
|
1123
1123
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
1124
1124
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
1125
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
1125
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1126
1126
|
readonly to: {
|
|
1127
1127
|
type: PropType<string | boolean | HTMLElement>;
|
|
1128
1128
|
default: undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
import { IntersectionObserverOptions } from '../../image/src/utils';
|
|
3
3
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { Size, ObjectFit } from './interface';
|
|
@@ -22,6 +22,9 @@ export declare const avatarProps: {
|
|
|
22
22
|
readonly fallbackSrc: StringConstructor;
|
|
23
23
|
readonly intersectionObserverOptions: PropType<IntersectionObserverOptions>;
|
|
24
24
|
readonly lazy: BooleanConstructor;
|
|
25
|
+
readonly onLoad: PropType<(e: Event) => void>;
|
|
26
|
+
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
27
|
+
readonly renderFallback: PropType<() => VNodeChild>;
|
|
25
28
|
/** @deprecated */
|
|
26
29
|
readonly color: StringConstructor;
|
|
27
30
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
@@ -85,6 +88,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
88
|
readonly fallbackSrc: StringConstructor;
|
|
86
89
|
readonly intersectionObserverOptions: PropType<IntersectionObserverOptions>;
|
|
87
90
|
readonly lazy: BooleanConstructor;
|
|
91
|
+
readonly onLoad: PropType<(e: Event) => void>;
|
|
92
|
+
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
93
|
+
readonly renderFallback: PropType<() => VNodeChild>;
|
|
88
94
|
/** @deprecated */
|
|
89
95
|
readonly color: StringConstructor;
|
|
90
96
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
|
@@ -149,7 +155,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
149
155
|
shouldStartLoading: import("vue").Ref<boolean>;
|
|
150
156
|
loaded: import("vue").Ref<boolean>;
|
|
151
157
|
mergedOnLoad: (e: Event) => void;
|
|
152
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
158
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
153
159
|
readonly size: PropType<Size>;
|
|
154
160
|
readonly src: StringConstructor;
|
|
155
161
|
readonly circle: {
|
|
@@ -169,6 +175,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
169
175
|
readonly fallbackSrc: StringConstructor;
|
|
170
176
|
readonly intersectionObserverOptions: PropType<IntersectionObserverOptions>;
|
|
171
177
|
readonly lazy: BooleanConstructor;
|
|
178
|
+
readonly onLoad: PropType<(e: Event) => void>;
|
|
179
|
+
readonly renderPlaceholder: PropType<() => VNodeChild>;
|
|
180
|
+
readonly renderFallback: PropType<() => VNodeChild>;
|
|
172
181
|
/** @deprecated */
|
|
173
182
|
readonly color: StringConstructor;
|
|
174
183
|
readonly theme: PropType<import("../../_mixins").Theme<"Avatar", {
|
package/es/avatar/src/Avatar.js
CHANGED
|
@@ -4,7 +4,7 @@ import { isImageSupportNativeLazy } from '../../_utils/env/is-native-lazy-load';
|
|
|
4
4
|
import { observeIntersection } from '../../image/src/utils';
|
|
5
5
|
import { tagInjectionKey } from '../../tag/src/Tag';
|
|
6
6
|
import { useConfig, useTheme, useThemeClass } from '../../_mixins';
|
|
7
|
-
import { createKey, color2Class, resolveWrappedSlot } from '../../_utils';
|
|
7
|
+
import { createKey, color2Class, resolveWrappedSlot, resolveSlot } from '../../_utils';
|
|
8
8
|
import { avatarLight } from '../styles';
|
|
9
9
|
import { avatarGroupInjectionKey } from './context';
|
|
10
10
|
import style from './styles/index.cssr';
|
|
@@ -17,7 +17,7 @@ export const avatarProps = Object.assign(Object.assign({}, useTheme.props), { si
|
|
|
17
17
|
}, bordered: {
|
|
18
18
|
type: Boolean,
|
|
19
19
|
default: undefined
|
|
20
|
-
}, onError: Function, fallbackSrc: String, intersectionObserverOptions: Object, lazy: Boolean,
|
|
20
|
+
}, onError: Function, fallbackSrc: String, intersectionObserverOptions: Object, lazy: Boolean, onLoad: Function, renderPlaceholder: Function, renderFallback: Function,
|
|
21
21
|
/** @deprecated */
|
|
22
22
|
color: String });
|
|
23
23
|
export default defineComponent({
|
|
@@ -178,9 +178,17 @@ export default defineComponent({
|
|
|
178
178
|
const { $slots, src, mergedClsPrefix, lazy, onRender, mergedOnLoad, shouldStartLoading, loaded, hasLoadError } = this;
|
|
179
179
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
180
180
|
let img;
|
|
181
|
-
const placeholderNode = !loaded &&
|
|
181
|
+
const placeholderNode = !loaded &&
|
|
182
|
+
!hasLoadError &&
|
|
183
|
+
(this.renderPlaceholder
|
|
184
|
+
? this.renderPlaceholder()
|
|
185
|
+
: (_b = (_a = this.$slots).placeholder) === null || _b === void 0 ? void 0 : _b.call(_a));
|
|
182
186
|
if (this.hasLoadError) {
|
|
183
|
-
img =
|
|
187
|
+
img = this.renderFallback
|
|
188
|
+
? this.renderFallback()
|
|
189
|
+
: resolveSlot($slots.fallback, () => [
|
|
190
|
+
h("img", { src: this.fallbackSrc, style: { objectFit: this.objectFit } })
|
|
191
|
+
]);
|
|
184
192
|
}
|
|
185
193
|
else {
|
|
186
194
|
img = resolveWrappedSlot($slots.default, (children) => {
|
|
@@ -16,7 +16,9 @@ export declare const avatarGroupProps: {
|
|
|
16
16
|
};
|
|
17
17
|
readonly vertical: BooleanConstructor;
|
|
18
18
|
readonly size: PropType<Size | undefined>;
|
|
19
|
-
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup",
|
|
19
|
+
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup", {
|
|
20
|
+
gap: string;
|
|
21
|
+
}, {
|
|
20
22
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
21
23
|
borderRadius: string;
|
|
22
24
|
fontSize: string;
|
|
@@ -31,7 +33,9 @@ export declare const avatarGroupProps: {
|
|
|
31
33
|
colorPopover: string;
|
|
32
34
|
}, any>;
|
|
33
35
|
}>>;
|
|
34
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
36
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
37
|
+
gap: string;
|
|
38
|
+
}, {
|
|
35
39
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
36
40
|
borderRadius: string;
|
|
37
41
|
fontSize: string;
|
|
@@ -46,7 +50,9 @@ export declare const avatarGroupProps: {
|
|
|
46
50
|
colorPopover: string;
|
|
47
51
|
}, any>;
|
|
48
52
|
}>>>;
|
|
49
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
53
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
54
|
+
gap: string;
|
|
55
|
+
}, {
|
|
50
56
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
51
57
|
borderRadius: string;
|
|
52
58
|
fontSize: string;
|
|
@@ -72,7 +78,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
78
|
};
|
|
73
79
|
readonly vertical: BooleanConstructor;
|
|
74
80
|
readonly size: PropType<Size | undefined>;
|
|
75
|
-
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup",
|
|
81
|
+
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup", {
|
|
82
|
+
gap: string;
|
|
83
|
+
}, {
|
|
76
84
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
77
85
|
borderRadius: string;
|
|
78
86
|
fontSize: string;
|
|
@@ -87,7 +95,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
95
|
colorPopover: string;
|
|
88
96
|
}, any>;
|
|
89
97
|
}>>;
|
|
90
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
98
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
99
|
+
gap: string;
|
|
100
|
+
}, {
|
|
91
101
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
92
102
|
borderRadius: string;
|
|
93
103
|
fontSize: string;
|
|
@@ -102,7 +112,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
102
112
|
colorPopover: string;
|
|
103
113
|
}, any>;
|
|
104
114
|
}>>>;
|
|
105
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
115
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
116
|
+
gap: string;
|
|
117
|
+
}, {
|
|
106
118
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
107
119
|
borderRadius: string;
|
|
108
120
|
fontSize: string;
|
|
@@ -224,7 +236,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
224
236
|
heightHuge: string;
|
|
225
237
|
name: "common";
|
|
226
238
|
};
|
|
227
|
-
self:
|
|
239
|
+
self: {
|
|
240
|
+
gap: string;
|
|
241
|
+
};
|
|
228
242
|
peers: {
|
|
229
243
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
230
244
|
borderRadius: string;
|
|
@@ -252,7 +266,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
252
266
|
mergedClsPrefix: import("vue").ComputedRef<string>;
|
|
253
267
|
restOptions: import("vue").ComputedRef<AvatarOption[] | undefined>;
|
|
254
268
|
displayedOptions: import("vue").ComputedRef<AvatarOption[]>;
|
|
255
|
-
|
|
269
|
+
cssVars: import("vue").ComputedRef<{
|
|
270
|
+
'--n-gap': string;
|
|
271
|
+
}>;
|
|
272
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
256
273
|
readonly max: NumberConstructor;
|
|
257
274
|
readonly maxStyle: PropType<string | CSSProperties>;
|
|
258
275
|
readonly options: {
|
|
@@ -261,7 +278,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
261
278
|
};
|
|
262
279
|
readonly vertical: BooleanConstructor;
|
|
263
280
|
readonly size: PropType<Size | undefined>;
|
|
264
|
-
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup",
|
|
281
|
+
readonly theme: PropType<import("../../_mixins").Theme<"AvatarGroup", {
|
|
282
|
+
gap: string;
|
|
283
|
+
}, {
|
|
265
284
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
266
285
|
borderRadius: string;
|
|
267
286
|
fontSize: string;
|
|
@@ -276,7 +295,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
276
295
|
colorPopover: string;
|
|
277
296
|
}, any>;
|
|
278
297
|
}>>;
|
|
279
|
-
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
298
|
+
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
299
|
+
gap: string;
|
|
300
|
+
}, {
|
|
280
301
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
281
302
|
borderRadius: string;
|
|
282
303
|
fontSize: string;
|
|
@@ -291,7 +312,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
291
312
|
colorPopover: string;
|
|
292
313
|
}, any>;
|
|
293
314
|
}>>>;
|
|
294
|
-
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup",
|
|
315
|
+
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"AvatarGroup", {
|
|
316
|
+
gap: string;
|
|
317
|
+
}, {
|
|
295
318
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
296
319
|
borderRadius: string;
|
|
297
320
|
fontSize: string;
|
|
@@ -41,7 +41,12 @@ export default defineComponent({
|
|
|
41
41
|
rtlEnabled: rtlEnabledRef,
|
|
42
42
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
43
43
|
restOptions: restOptionsRef,
|
|
44
|
-
displayedOptions: displayedOptionsRef
|
|
44
|
+
displayedOptions: displayedOptionsRef,
|
|
45
|
+
cssVars: computed(() => {
|
|
46
|
+
return {
|
|
47
|
+
'--n-gap': mergedThemeRef.value.self.gap
|
|
48
|
+
};
|
|
49
|
+
})
|
|
45
50
|
};
|
|
46
51
|
},
|
|
47
52
|
render() {
|
|
@@ -50,7 +55,7 @@ export default defineComponent({
|
|
|
50
55
|
`${mergedClsPrefix}-avatar-group`,
|
|
51
56
|
this.rtlEnabled && `${mergedClsPrefix}-avatar-group--rtl`,
|
|
52
57
|
this.vertical && `${mergedClsPrefix}-avatar-group--vertical`
|
|
53
|
-
], role: "group" },
|
|
58
|
+
], style: this.cssVars, role: "group" },
|
|
54
59
|
displayedOptions.map((option) => {
|
|
55
60
|
return $slots.avatar ? ($slots.avatar({ option })) : (h(NAvatar, { src: option.src, theme: mergedTheme.peers.Avatar, themeOverrides: mergedTheme.peerOverrides.Avatar }));
|
|
56
61
|
}),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { c, cB, cM, cNotM } from '../../../_utils/cssr';
|
|
1
|
+
import { c, cB, cM, cNotM } from '../../../_utils/cssr'; // --n-gap
|
|
2
|
+
|
|
2
3
|
export default cB('avatar-group', [cM('rtl', `
|
|
3
4
|
direction: rtl;
|
|
4
5
|
`, [cNotM('vertical', `
|
|
5
6
|
flex-direction: row;
|
|
6
7
|
`, [cB('avatar', [c('&:not(:first-child)', `
|
|
7
|
-
margin-right: -
|
|
8
|
+
margin-right: var(--n-gap);
|
|
8
9
|
margin-left: 0;
|
|
9
10
|
`)])])])]);
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { c, cB, cM, cNotM } from '../../../_utils/cssr/index';
|
|
1
|
+
import { c, cB, cM, cNotM } from '../../../_utils/cssr/index'; // --n-gap
|
|
2
|
+
|
|
2
3
|
export default cB('avatar-group', `
|
|
3
4
|
flex-wrap: nowrap;
|
|
4
5
|
display: inline-flex;
|
|
@@ -6,9 +7,9 @@ export default cB('avatar-group', `
|
|
|
6
7
|
`, [cNotM('vertical', {
|
|
7
8
|
flexDirection: 'row'
|
|
8
9
|
}, [cB('avatar', [c('&:not(:first-child)', `
|
|
9
|
-
margin-left: -
|
|
10
|
+
margin-left: var(--n-gap);
|
|
10
11
|
`)])]), cM('vertical', {
|
|
11
12
|
flexDirection: 'column'
|
|
12
13
|
}, [cB('avatar', [c('&:not(:first-child)', `
|
|
13
|
-
margin-top: -
|
|
14
|
+
margin-top: var(--n-gap);
|
|
14
15
|
`)])])]);
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { commonDark } from '../../_styles/common';
|
|
2
2
|
import { avatarDark } from '../../avatar/styles';
|
|
3
|
+
import { self } from './light';
|
|
3
4
|
const avatarGroupDark = {
|
|
4
5
|
name: 'AvatarGroup',
|
|
5
6
|
common: commonDark,
|
|
6
7
|
peers: {
|
|
7
8
|
Avatar: avatarDark
|
|
8
|
-
}
|
|
9
|
+
},
|
|
10
|
+
self
|
|
9
11
|
};
|
|
10
12
|
export default avatarGroupDark;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
export declare type AvatarGroupThemeVars = {};
|
|
2
|
-
declare const
|
|
2
|
+
export declare const self: () => {
|
|
3
|
+
gap: string;
|
|
4
|
+
};
|
|
5
|
+
declare const avatarGroupLight: import("../../_mixins").Theme<"AvatarGroup", {
|
|
6
|
+
gap: string;
|
|
7
|
+
}, {
|
|
3
8
|
Avatar: import("../../_mixins").Theme<"Avatar", {
|
|
4
9
|
borderRadius: string;
|
|
5
10
|
fontSize: string;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
import { createTheme } from '../../_mixins';
|
|
3
3
|
import { avatarLight } from '../../avatar/styles';
|
|
4
|
+
export const self = () => {
|
|
5
|
+
return {
|
|
6
|
+
gap: '-12px'
|
|
7
|
+
};
|
|
8
|
+
};
|
|
4
9
|
const avatarGroupLight = createTheme({
|
|
5
10
|
name: 'AvatarGroup',
|
|
6
11
|
common: commonLight,
|
|
7
12
|
peers: {
|
|
8
13
|
Avatar: avatarLight
|
|
9
|
-
}
|
|
14
|
+
},
|
|
15
|
+
self
|
|
10
16
|
});
|
|
11
17
|
export default avatarGroupLight;
|
|
@@ -177,7 +177,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
177
177
|
}> | undefined;
|
|
178
178
|
themeClass: import("vue").Ref<string> | undefined;
|
|
179
179
|
onRender: (() => void) | undefined;
|
|
180
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
180
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
181
181
|
readonly show: {
|
|
182
182
|
readonly type: PropType<boolean | undefined>;
|
|
183
183
|
readonly default: undefined;
|