naive-ui 2.34.4 → 2.36.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 +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/index.js +47537 -44859
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/clear/src/Clear.js +2 -0
- package/es/_internal/close/src/Close.d.ts +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- 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 +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/es/_internal/select-menu/src/SelectMenu.js +2 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/es/_internal/selection/src/Selection.d.ts +5 -2
- package/es/_internal/selection/src/Selection.js +17 -7
- 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/_mixins/use-config.d.ts +2 -1
- package/es/_mixins/use-config.js +10 -5
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_mixins/use-style.d.ts +1 -1
- package/es/_mixins/use-style.js +1 -1
- package/es/_styles/common/_common.js +1 -1
- package/es/_styles/common/light.js +2 -2
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.js +2 -0
- package/es/_utils/css/color-to-class.js +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/vue/wrapper.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +4 -4
- package/es/affix/src/Affix.js +4 -2
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/alert/src/Alert.js +7 -1
- package/es/alert/src/styles/index.cssr.js +4 -0
- package/es/anchor/src/AnchorAdapter.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.js +3 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +3 -3
- package/es/auto-complete/src/interface.d.ts +2 -1
- package/es/avatar/src/Avatar.d.ts +2 -2
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/button/src/Button.d.ts +3 -3
- package/es/button/src/Button.js +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +2 -2
- package/es/calendar/src/Calendar.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -7
- package/es/card/src/Card.js +12 -5
- package/es/carousel/src/Carousel.d.ts +7 -7
- package/es/carousel/src/Carousel.js +8 -3
- package/es/carousel/src/CarouselArrow.d.ts +2 -2
- package/es/carousel/src/CarouselContext.js +3 -1
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/carousel/src/CarouselDots.js +7 -1
- package/es/carousel/src/CarouselItem.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +3 -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 +2 -2
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +8 -8
- package/es/checkbox/src/Checkbox.js +10 -3
- package/es/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +9 -11
- package/es/code/src/Code.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +2 -2
- package/es/collapse/src/CollapseItem.d.ts +2 -2
- package/es/collapse/src/CollapseItemContent.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- 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 +2 -2
- package/es/color-picker/src/ColorPicker.js +6 -2
- package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/es/color-picker/src/ColorPickerSwatches.js +9 -4
- 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/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/ConfigProvider.d.ts +21 -8
- package/es/config-provider/src/ConfigProvider.js +4 -2
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +5 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +5 -5
- package/es/data-table/src/DataTable.js +2 -7
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- 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 +1 -1
- package/es/data-table/src/HeaderButton/ResizeButton.js +1 -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/MainTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +5 -6
- package/es/data-table/src/TableParts/Body.js +22 -15
- 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 +1 -1
- package/es/data-table/src/TableParts/Cell.js +5 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/ExpandTrigger.js +3 -1
- package/es/data-table/src/TableParts/Header.d.ts +1 -3
- package/es/data-table/src/TableParts/Header.js +6 -12
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/es/data-table/src/interface.d.ts +3 -5
- package/es/data-table/src/styles/index.cssr.js +2 -0
- package/es/data-table/src/use-scroll.d.ts +1 -2
- package/es/data-table/src/use-scroll.js +21 -13
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/panel/date.d.ts +4 -4
- package/es/date-picker/src/panel/date.js +3 -1
- package/es/date-picker/src/panel/daterange.d.ts +4 -4
- package/es/date-picker/src/panel/daterange.js +10 -2
- package/es/date-picker/src/panel/datetime.d.ts +4 -4
- package/es/date-picker/src/panel/datetime.js +3 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -4
- package/es/date-picker/src/panel/datetimerange.js +16 -4
- package/es/date-picker/src/panel/month.d.ts +4 -4
- package/es/date-picker/src/panel/month.js +4 -1
- package/es/date-picker/src/panel/monthrange.d.ts +4 -4
- package/es/date-picker/src/panel/panelHeader.d.ts +722 -752
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -3
- package/es/date-picker/src/panel/use-calendar.js +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/es/date-picker/src/styles/index.cssr.js +1 -0
- package/es/date-picker/src/utils.js +1 -6
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +8 -2
- package/es/descriptions/src/Descriptions.js +28 -8
- package/es/descriptions/src/DescriptionsItem.d.ts +7 -1
- package/es/descriptions/src/DescriptionsItem.js +2 -0
- package/es/dialog/src/Dialog.d.ts +2 -2
- package/es/dialog/src/Dialog.js +6 -2
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -4
- package/es/dialog/src/DialogProvider.js +3 -1
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/divider/src/Divider.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +15 -2
- package/es/drawer/src/Drawer.js +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/es/drawer/src/DrawerBodyWrapper.js +25 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +20 -2
- package/es/dropdown/src/Dropdown.js +1 -1
- package/es/dropdown/src/DropdownDivider.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +1 -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 +4 -1
- package/es/dropdown/src/DropdownOption.d.ts +6 -5
- package/es/dropdown/src/DropdownOption.js +2 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +5 -2
- package/es/dynamic-input/src/DynamicInput.js +21 -9
- package/es/dynamic-input/src/InputPreset.d.ts +1 -1
- package/es/dynamic-input/src/PairPreset.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -2
- package/es/dynamic-tags/src/DynamicTags.js +6 -4
- package/es/element/src/Element.d.ts +2 -2
- package/es/ellipsis/index.d.ts +1 -0
- package/es/ellipsis/index.js +1 -0
- package/es/ellipsis/src/Ellipsis.d.ts +3 -1
- package/es/ellipsis/src/Ellipsis.js +5 -4
- package/es/ellipsis/src/PerformantEllipsis.d.ts +164 -0
- package/es/ellipsis/src/PerformantEllipsis.js +52 -0
- package/es/empty/src/Empty.d.ts +2 -2
- package/es/equation/index.d.ts +1 -0
- package/es/equation/src/Equation.d.ts +6 -4
- package/es/form/src/Form.d.ts +2 -2
- package/es/form/src/Form.js +3 -1
- package/es/form/src/FormItem.d.ts +3 -3
- 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/form/src/utils.d.ts +1 -1
- package/es/global-style/src/GlobalStyle.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +2 -2
- package/es/grid/src/Grid.js +6 -3
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +8 -2
- package/es/image/src/ImageGroup.d.ts +8 -2
- package/es/image/src/ImageGroup.js +8 -2
- package/es/image/src/ImagePreview.d.ts +8 -3
- package/es/image/src/ImagePreview.js +10 -1
- package/es/image/src/icons.d.ts +1 -0
- package/es/image/src/icons.js +2 -0
- package/es/image/src/interface.d.ts +7 -5
- package/es/image/src/interface.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/input/src/Input.d.ts +19 -9
- package/es/input/src/Input.js +30 -8
- package/es/input/src/InputGroup.d.ts +2 -2
- package/es/input/src/InputGroupLabel.d.ts +2 -2
- package/es/input/src/WordCount.d.ts +1 -1
- package/es/input/src/styles/input.cssr.js +2 -1
- package/es/input-number/src/InputNumber.d.ts +3 -2
- package/es/input-number/src/InputNumber.js +2 -1
- package/es/input-number/src/interface.d.ts +1 -0
- package/es/layout/src/Layout.d.ts +10 -4
- package/es/layout/src/Layout.js +8 -1
- package/es/layout/src/LayoutContent.d.ts +4 -2
- package/es/layout/src/LayoutFooter.d.ts +2 -2
- package/es/layout/src/LayoutHeader.d.ts +2 -2
- package/es/layout/src/LayoutSider.d.ts +11 -2
- package/es/layout/src/LayoutSider.js +12 -3
- 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 +2 -2
- package/es/legacy-grid/src/styles/index.cssr.js +2 -3
- package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- 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 +2 -2
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +4 -2
- package/es/loading-bar/src/LoadingBar.js +21 -12
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -1
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/arDZ.js +1 -0
- package/es/locales/common/deDE.js +1 -0
- package/es/locales/common/enGB.js +1 -0
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +1 -0
- package/es/locales/common/eo.js +1 -0
- package/es/locales/common/esAR.js +1 -0
- package/es/locales/common/faIR.js +1 -0
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +1 -0
- package/es/locales/common/itIT.js +1 -0
- package/es/locales/common/jaJP.js +1 -0
- package/es/locales/common/koKR.js +1 -0
- package/es/locales/common/nbNO.js +1 -0
- package/es/locales/common/nlNL.js +1 -0
- package/es/locales/common/plPL.js +1 -0
- package/es/locales/common/ptBR.js +15 -17
- package/es/locales/common/ruRU.js +1 -0
- package/es/locales/common/skSK.js +1 -0
- package/es/locales/common/svSE.d.ts +3 -0
- package/es/locales/common/svSE.js +121 -0
- package/es/locales/common/thTH.js +1 -0
- package/es/locales/common/trTR.js +1 -0
- package/es/locales/common/ukUA.js +1 -0
- package/es/locales/common/viVN.js +1 -0
- package/es/locales/common/zhCN.js +1 -0
- package/es/locales/common/zhTW.js +18 -17
- package/es/locales/date/svSE.d.ts +3 -0
- package/es/locales/date/svSE.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +11 -11
- package/es/log/src/Log.js +12 -12
- 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 +4 -4
- package/es/mention/src/utils.js +4 -4
- package/es/menu/src/Menu.d.ts +32 -15
- package/es/menu/src/Menu.js +101 -7
- package/es/menu/src/MenuDivider.d.ts +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOptionContent.d.ts +4 -1
- package/es/menu/src/MenuOptionContent.js +7 -2
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +24 -13
- package/es/menu/src/Submenu.js +9 -8
- package/es/menu/src/context.d.ts +2 -2
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/styles/index.cssr.js +8 -4
- package/es/menu/src/use-menu-child.js +5 -5
- package/es/message/src/Message.d.ts +2 -2
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +9 -6
- package/es/message/src/MessageProvider.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +12 -4
- package/es/modal/src/Modal.d.ts +18 -6
- package/es/modal/src/presetProps.d.ts +5 -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/NotificationEnvironment.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +5 -2
- package/es/notification/src/NotificationProvider.js +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +2 -2
- package/es/pagination/src/Pagination.js +3 -1
- package/es/popconfirm/src/Popconfirm.d.ts +22 -3
- package/es/popconfirm/src/Popconfirm.js +13 -5
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +25 -1
- package/es/popover/src/Popover.js +10 -4
- package/es/popover/src/PopoverBody.d.ts +23 -2
- package/es/popover/src/PopoverBody.js +26 -10
- package/es/popover/src/interface.d.ts +4 -1
- package/es/popselect/src/Popselect.d.ts +19 -1
- package/es/popselect/src/Popselect.js +2 -1
- package/es/popselect/src/PopselectPanel.d.ts +2 -2
- package/es/popselect/src/PopselectPanel.js +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/Line.js +1 -3
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +3 -3
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +154 -0
- package/es/qr-code/src/QrCode.js +146 -0
- package/es/qr-code/src/qrcodegen.d.ts +94 -0
- package/es/qr-code/src/qrcodegen.js +948 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/radio/src/Radio.d.ts +173 -34
- package/es/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.d.ts +3 -3
- package/es/radio/src/RadioButton.js +3 -3
- package/es/radio/src/RadioGroup.d.ts +3 -2
- package/es/radio/src/RadioGroup.js +2 -1
- package/es/radio/src/styles/radio-group.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +3 -3
- package/es/radio/src/use-radio.js +1 -1
- package/es/rate/src/Rate.d.ts +2 -2
- package/es/result/src/Result.d.ts +3 -3
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +2 -0
- package/es/select/src/Select.d.ts +7 -4
- package/es/select/src/Select.js +17 -3
- package/es/select/src/interface.d.ts +2 -0
- package/es/skeleton/src/Skeleton.d.ts +2 -2
- package/es/skeleton/src/Skeleton.js +4 -7
- package/es/slider/src/Slider.d.ts +8 -2
- package/es/slider/src/Slider.js +19 -4
- package/es/slider/src/utils.d.ts +2 -2
- package/es/slider/src/utils.js +6 -4
- package/es/space/src/Space.d.ts +5 -2
- package/es/space/src/Space.js +3 -3
- package/es/spin/src/Spin.d.ts +13 -4
- package/es/spin/src/Spin.js +26 -7
- package/es/split/index.d.ts +2 -0
- package/es/split/index.js +1 -0
- package/es/split/src/Split.d.ts +135 -0
- package/es/split/src/Split.js +145 -0
- package/es/split/src/styles/index.cssr.d.ts +2 -0
- package/es/split/src/styles/index.cssr.js +25 -0
- package/es/split/styles/dark.d.ts +3 -0
- package/es/split/styles/dark.js +6 -0
- package/es/split/styles/index.d.ts +3 -0
- package/es/split/styles/index.js +2 -0
- package/es/split/styles/light.d.ts +9 -0
- package/es/split/styles/light.js +13 -0
- package/es/statistic/src/Statistic.d.ts +2 -2
- package/es/steps/src/Step.d.ts +2 -2
- package/es/steps/src/Steps.d.ts +3 -3
- package/es/steps/src/styles/index.cssr.js +1 -0
- package/es/switch/src/Switch.d.ts +2 -2
- package/es/table/src/Table.d.ts +2 -2
- 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/Tab.js +3 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +13 -13
- package/es/tabs/src/Tabs.js +15 -2
- package/es/tabs/src/styles/index.cssr.js +12 -2
- package/es/tag/src/Tag.d.ts +2 -2
- 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 +3 -3
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/thing/src/Thing.d.ts +7 -1
- package/es/thing/src/Thing.js +13 -4
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.js +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/PanelCol.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +2 -2
- package/es/time-picker/src/TimePicker.js +1 -1
- 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 +19 -1
- package/es/transfer/src/Transfer.d.ts +8 -2
- package/es/transfer/src/Transfer.js +2 -2
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +5 -1
- package/es/transfer/src/TransferHeader.js +6 -2
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -1
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +59 -5
- package/es/tree/src/Tree.js +32 -19
- package/es/tree/src/TreeNode.d.ts +6 -2
- package/es/tree/src/TreeNode.js +72 -25
- package/es/tree/src/TreeNodeCheckbox.d.ts +13 -1
- package/es/tree/src/TreeNodeCheckbox.js +9 -8
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/es/tree/src/TreeNodeSwitcher.js +12 -6
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +47 -51
- package/es/tree/src/utils.d.ts +1 -0
- package/es/tree/src/utils.js +12 -0
- package/es/tree/styles/light.d.ts +8 -0
- package/es/tree/styles/light.js +6 -2
- package/es/tree-select/src/TreeSelect.d.ts +49 -3
- package/es/tree-select/src/TreeSelect.js +5 -3
- package/es/tree-select/src/interface.d.ts +2 -0
- package/es/tree-select/styles/light.d.ts +4 -0
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/blockquote.d.ts +2 -2
- package/es/typography/src/create-header.d.ts +2 -2
- package/es/typography/src/headers.d.ts +12 -12
- package/es/typography/src/hr.d.ts +2 -2
- package/es/typography/src/li.d.ts +1 -1
- package/es/typography/src/ol.d.ts +2 -2
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/text.d.ts +2 -2
- package/es/typography/src/ul.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +11 -5
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadDragger.d.ts +1 -1
- package/es/upload/src/UploadFile.d.ts +2 -2
- package/es/upload/src/UploadFileList.d.ts +1 -1
- package/es/upload/src/UploadFileList.js +3 -2
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +1 -1
- package/es/upload/src/UploadTrigger.js +3 -2
- package/es/upload/src/interface.d.ts +5 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +102 -0
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/src/Watermark.js +7 -0
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/clear/src/Clear.js +2 -0
- package/lib/_internal/close/src/Close.d.ts +1 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- 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 +2 -2
- package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +5 -2
- package/lib/_internal/selection/src/Selection.js +17 -7
- 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/_mixins/use-config.d.ts +2 -1
- package/lib/_mixins/use-config.js +11 -5
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_mixins/use-style.d.ts +1 -1
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_styles/common/_common.js +1 -1
- package/lib/_styles/common/light.js +2 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +2 -0
- package/lib/_utils/css/color-to-class.js +1 -1
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/vue/wrapper.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +4 -4
- package/lib/affix/src/Affix.js +4 -2
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/alert/src/Alert.js +7 -1
- package/lib/alert/src/styles/index.cssr.js +4 -0
- package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.d.ts +1 -1
- package/lib/anchor/src/BaseAnchor.js +3 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
- package/lib/auto-complete/src/interface.d.ts +2 -1
- package/lib/avatar/src/Avatar.d.ts +2 -2
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/button/src/Button.d.ts +3 -3
- package/lib/button/src/Button.js +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +2 -2
- package/lib/calendar/src/Calendar.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -7
- package/lib/card/src/Card.js +12 -5
- package/lib/carousel/src/Carousel.d.ts +7 -7
- package/lib/carousel/src/Carousel.js +8 -3
- package/lib/carousel/src/CarouselArrow.d.ts +2 -2
- package/lib/carousel/src/CarouselContext.js +3 -1
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.js +7 -1
- package/lib/carousel/src/CarouselItem.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +3 -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 +2 -2
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +8 -8
- package/lib/checkbox/src/Checkbox.js +9 -2
- package/lib/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +9 -11
- package/lib/code/src/Code.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +2 -2
- package/lib/collapse/src/CollapseItem.d.ts +2 -2
- package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- 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 +2 -2
- package/lib/color-picker/src/ColorPicker.js +6 -2
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerSwatches.js +9 -4
- 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/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +21 -8
- package/lib/config-provider/src/ConfigProvider.js +4 -2
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +5 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +5 -5
- package/lib/data-table/src/DataTable.js +1 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- 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 +1 -1
- package/lib/data-table/src/HeaderButton/ResizeButton.js +1 -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/MainTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +5 -6
- package/lib/data-table/src/TableParts/Body.js +22 -15
- 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 +1 -1
- package/lib/data-table/src/TableParts/Cell.js +9 -2
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +3 -1
- package/lib/data-table/src/TableParts/Header.d.ts +1 -3
- package/lib/data-table/src/TableParts/Header.js +6 -12
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/lib/data-table/src/interface.d.ts +3 -5
- package/lib/data-table/src/styles/index.cssr.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +1 -2
- package/lib/data-table/src/use-scroll.js +21 -13
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -4
- package/lib/date-picker/src/panel/date.js +3 -1
- package/lib/date-picker/src/panel/daterange.d.ts +4 -4
- package/lib/date-picker/src/panel/daterange.js +10 -2
- package/lib/date-picker/src/panel/datetime.d.ts +4 -4
- package/lib/date-picker/src/panel/datetime.js +3 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -4
- package/lib/date-picker/src/panel/datetimerange.js +16 -4
- package/lib/date-picker/src/panel/month.d.ts +4 -4
- package/lib/date-picker/src/panel/month.js +4 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +4 -4
- package/lib/date-picker/src/panel/panelHeader.d.ts +722 -752
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -3
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/lib/date-picker/src/styles/index.cssr.js +1 -0
- package/lib/date-picker/src/utils.js +1 -6
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +8 -2
- package/lib/descriptions/src/Descriptions.js +28 -8
- package/lib/descriptions/src/DescriptionsItem.d.ts +7 -1
- package/lib/descriptions/src/DescriptionsItem.js +2 -0
- package/lib/dialog/src/Dialog.d.ts +2 -2
- package/lib/dialog/src/Dialog.js +6 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +4 -4
- package/lib/dialog/src/DialogProvider.js +3 -1
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/divider/src/Divider.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +15 -2
- package/lib/drawer/src/Drawer.js +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/lib/drawer/src/DrawerBodyWrapper.js +25 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +20 -2
- package/lib/dropdown/src/Dropdown.js +1 -1
- package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -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 +4 -1
- package/lib/dropdown/src/DropdownOption.d.ts +6 -5
- package/lib/dropdown/src/DropdownOption.js +2 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +5 -2
- package/lib/dynamic-input/src/DynamicInput.js +21 -9
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -2
- package/lib/dynamic-tags/src/DynamicTags.js +6 -4
- package/lib/element/src/Element.d.ts +2 -2
- package/lib/ellipsis/index.d.ts +1 -0
- package/lib/ellipsis/index.js +3 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +3 -1
- package/lib/ellipsis/src/Ellipsis.js +5 -2
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +164 -0
- package/lib/ellipsis/src/PerformantEllipsis.js +81 -0
- package/lib/empty/src/Empty.d.ts +2 -2
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/src/Equation.d.ts +6 -4
- package/lib/form/src/Form.d.ts +2 -2
- package/lib/form/src/Form.js +3 -1
- package/lib/form/src/FormItem.d.ts +3 -3
- 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/form/src/utils.d.ts +1 -1
- package/lib/global-style/src/GlobalStyle.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +2 -2
- package/lib/grid/src/Grid.js +6 -3
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +8 -2
- package/lib/image/src/ImageGroup.d.ts +8 -2
- package/lib/image/src/ImageGroup.js +8 -2
- package/lib/image/src/ImagePreview.d.ts +8 -3
- package/lib/image/src/ImagePreview.js +9 -0
- package/lib/image/src/icons.d.ts +1 -0
- package/lib/image/src/icons.js +3 -1
- package/lib/image/src/interface.d.ts +7 -5
- package/lib/image/src/interface.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/input/src/Input.d.ts +19 -9
- package/lib/input/src/Input.js +30 -8
- package/lib/input/src/InputGroup.d.ts +2 -2
- package/lib/input/src/InputGroupLabel.d.ts +2 -2
- package/lib/input/src/WordCount.d.ts +1 -1
- package/lib/input/src/styles/input.cssr.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +3 -2
- package/lib/input-number/src/InputNumber.js +2 -1
- package/lib/input-number/src/interface.d.ts +1 -0
- package/lib/layout/src/Layout.d.ts +10 -4
- package/lib/layout/src/Layout.js +8 -1
- package/lib/layout/src/LayoutContent.d.ts +4 -2
- package/lib/layout/src/LayoutFooter.d.ts +2 -2
- package/lib/layout/src/LayoutHeader.d.ts +2 -2
- package/lib/layout/src/LayoutSider.d.ts +11 -2
- package/lib/layout/src/LayoutSider.js +12 -3
- 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 +2 -2
- package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
- package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- 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 +2 -2
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +4 -2
- package/lib/loading-bar/src/LoadingBar.js +21 -12
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -1
- package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
- package/lib/locales/common/arDZ.js +1 -0
- package/lib/locales/common/deDE.js +1 -0
- package/lib/locales/common/enGB.js +1 -0
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +1 -0
- package/lib/locales/common/eo.js +1 -0
- package/lib/locales/common/esAR.js +1 -0
- package/lib/locales/common/faIR.js +1 -0
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +1 -0
- package/lib/locales/common/itIT.js +1 -0
- package/lib/locales/common/jaJP.js +1 -0
- package/lib/locales/common/koKR.js +1 -0
- package/lib/locales/common/nbNO.js +1 -0
- package/lib/locales/common/nlNL.js +1 -0
- package/lib/locales/common/plPL.js +1 -0
- package/lib/locales/common/ptBR.js +15 -17
- package/lib/locales/common/ruRU.js +1 -0
- package/lib/locales/common/skSK.js +1 -0
- package/lib/locales/common/svSE.d.ts +3 -0
- package/lib/locales/common/svSE.js +123 -0
- package/lib/locales/common/thTH.js +1 -0
- package/lib/locales/common/trTR.js +1 -0
- package/lib/locales/common/ukUA.js +1 -0
- package/lib/locales/common/viVN.js +1 -0
- package/lib/locales/common/zhCN.js +1 -0
- package/lib/locales/common/zhTW.js +18 -17
- package/lib/locales/date/svSE.d.ts +3 -0
- package/lib/locales/date/svSE.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +6 -1
- package/lib/log/src/Log.d.ts +11 -11
- package/lib/log/src/Log.js +12 -12
- 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 +4 -4
- package/lib/mention/src/utils.js +4 -4
- package/lib/menu/src/Menu.d.ts +32 -15
- package/lib/menu/src/Menu.js +101 -7
- package/lib/menu/src/MenuDivider.d.ts +1 -1
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOptionContent.d.ts +4 -1
- package/lib/menu/src/MenuOptionContent.js +7 -2
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +24 -13
- package/lib/menu/src/Submenu.js +9 -8
- package/lib/menu/src/context.d.ts +2 -2
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/styles/index.cssr.js +8 -4
- package/lib/menu/src/use-menu-child.js +5 -5
- package/lib/message/src/Message.d.ts +2 -2
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +9 -6
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +12 -4
- package/lib/modal/src/Modal.d.ts +18 -6
- package/lib/modal/src/presetProps.d.ts +5 -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/NotificationEnvironment.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +5 -2
- package/lib/notification/src/NotificationProvider.js +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +2 -2
- package/lib/pagination/src/Pagination.js +3 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +22 -3
- package/lib/popconfirm/src/Popconfirm.js +13 -5
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +25 -1
- package/lib/popover/src/Popover.js +10 -4
- package/lib/popover/src/PopoverBody.d.ts +23 -2
- package/lib/popover/src/PopoverBody.js +26 -10
- package/lib/popover/src/interface.d.ts +4 -1
- package/lib/popselect/src/Popselect.d.ts +19 -1
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.d.ts +2 -2
- package/lib/popselect/src/PopselectPanel.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/Line.js +1 -3
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +3 -3
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +154 -0
- package/lib/qr-code/src/QrCode.js +152 -0
- package/lib/qr-code/src/qrcodegen.d.ts +94 -0
- package/lib/qr-code/src/qrcodegen.js +949 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/Radio.d.ts +173 -34
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/RadioButton.d.ts +3 -3
- package/lib/radio/src/RadioButton.js +2 -2
- package/lib/radio/src/RadioGroup.d.ts +3 -2
- package/lib/radio/src/RadioGroup.js +2 -1
- package/lib/radio/src/styles/radio-group.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +3 -3
- package/lib/radio/src/use-radio.js +2 -2
- package/lib/rate/src/Rate.d.ts +2 -2
- package/lib/result/src/Result.d.ts +3 -3
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +2 -0
- package/lib/select/src/Select.d.ts +7 -4
- package/lib/select/src/Select.js +17 -3
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/skeleton/src/Skeleton.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.js +3 -6
- package/lib/slider/src/Slider.d.ts +8 -2
- package/lib/slider/src/Slider.js +19 -4
- package/lib/slider/src/utils.d.ts +2 -2
- package/lib/slider/src/utils.js +5 -3
- package/lib/space/src/Space.d.ts +5 -2
- package/lib/space/src/Space.js +3 -3
- package/lib/spin/src/Spin.d.ts +13 -4
- package/lib/spin/src/Spin.js +25 -6
- package/lib/split/index.d.ts +2 -0
- package/lib/split/index.js +9 -0
- package/lib/split/src/Split.d.ts +135 -0
- package/lib/split/src/Split.js +151 -0
- package/lib/split/src/styles/index.cssr.d.ts +2 -0
- package/lib/split/src/styles/index.cssr.js +30 -0
- package/lib/split/styles/dark.d.ts +3 -0
- package/lib/split/styles/dark.js +8 -0
- package/lib/split/styles/index.d.ts +3 -0
- package/lib/split/styles/index.js +10 -0
- package/lib/split/styles/light.d.ts +9 -0
- package/lib/split/styles/light.js +17 -0
- package/lib/statistic/src/Statistic.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +2 -2
- package/lib/steps/src/Steps.d.ts +3 -3
- package/lib/steps/src/styles/index.cssr.js +1 -0
- package/lib/switch/src/Switch.d.ts +2 -2
- package/lib/table/src/Table.d.ts +2 -2
- 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/Tab.js +3 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +13 -13
- package/lib/tabs/src/Tabs.js +15 -2
- package/lib/tabs/src/styles/index.cssr.js +12 -2
- package/lib/tag/src/Tag.d.ts +2 -2
- 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 +3 -3
- package/lib/themes/dark.js +56 -52
- package/lib/themes/light.js +56 -52
- package/lib/thing/src/Thing.d.ts +7 -1
- package/lib/thing/src/Thing.js +13 -4
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +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/PanelCol.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +2 -2
- package/lib/time-picker/src/TimePicker.js +1 -1
- 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 +19 -1
- package/lib/transfer/src/Transfer.d.ts +8 -2
- package/lib/transfer/src/Transfer.js +2 -2
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +5 -1
- package/lib/transfer/src/TransferHeader.js +6 -2
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +3 -1
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +59 -5
- package/lib/tree/src/Tree.js +31 -18
- package/lib/tree/src/TreeNode.d.ts +6 -2
- package/lib/tree/src/TreeNode.js +72 -25
- package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -1
- package/lib/tree/src/TreeNodeCheckbox.js +9 -8
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/lib/tree/src/TreeNodeSwitcher.js +12 -6
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +47 -51
- package/lib/tree/src/utils.d.ts +1 -0
- package/lib/tree/src/utils.js +15 -1
- package/lib/tree/styles/light.d.ts +8 -0
- package/lib/tree/styles/light.js +6 -2
- package/lib/tree-select/src/TreeSelect.d.ts +49 -3
- package/lib/tree-select/src/TreeSelect.js +5 -3
- package/lib/tree-select/src/interface.d.ts +2 -0
- package/lib/tree-select/styles/light.d.ts +4 -0
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/blockquote.d.ts +2 -2
- package/lib/typography/src/create-header.d.ts +2 -2
- package/lib/typography/src/headers.d.ts +12 -12
- package/lib/typography/src/hr.d.ts +2 -2
- package/lib/typography/src/li.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +2 -2
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/text.d.ts +2 -2
- package/lib/typography/src/ul.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +11 -5
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadDragger.d.ts +1 -1
- package/lib/upload/src/UploadFile.d.ts +2 -2
- package/lib/upload/src/UploadFileList.d.ts +1 -1
- package/lib/upload/src/UploadFileList.js +3 -2
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.js +3 -2
- package/lib/upload/src/interface.d.ts +5 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +105 -0
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/src/Watermark.js +7 -0
- package/package.json +69 -69
- package/volar.d.ts +5 -0
- package/web-types.json +917 -32
package/lib/tree/index.d.ts
CHANGED
package/lib/tree/index.js
CHANGED
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.treeProps = exports.NTree = void 0;
|
|
6
|
+
exports.treeGetClickTarget = exports.treeProps = exports.NTree = void 0;
|
|
7
7
|
var Tree_1 = require("./src/Tree");
|
|
8
8
|
Object.defineProperty(exports, "NTree", { enumerable: true, get: function () { return __importDefault(Tree_1).default; } });
|
|
9
9
|
Object.defineProperty(exports, "treeProps", { enumerable: true, get: function () { return Tree_1.treeProps; } });
|
|
10
|
+
var utils_1 = require("./src/utils");
|
|
11
|
+
Object.defineProperty(exports, "treeGetClickTarget", { enumerable: true, get: function () { return utils_1.treeGetClickTarget; } });
|
package/lib/tree/src/Tree.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { type TreeMateOptions, type CheckStrategy } from 'treemate';
|
|
|
3
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
4
|
import type { TreeDragInfo, TreeDropInfo, TreeOptions, Key, TreeOption, AllowDrop, RenderSwitcherIcon, TreeNodeProps, CheckOnClick, GetChildren, OnLoad } from './interface';
|
|
5
5
|
import { defaultAllowDrop } from './dnd';
|
|
6
|
+
import { type ScrollbarProps } from '../../scrollbar/src/Scrollbar';
|
|
6
7
|
export declare function createTreeMateOptions<T>(keyField: string, childrenField: string, disabledField: string, getChildren: GetChildren | undefined): TreeMateOptions<T, T, T>;
|
|
7
8
|
export type OnUpdateCheckedKeys = (value: Array<string & number>, option: Array<TreeOption | null>, meta: {
|
|
8
9
|
node: TreeOption | null;
|
|
@@ -147,6 +148,7 @@ export declare const treeProps: {
|
|
|
147
148
|
readonly draggable: BooleanConstructor;
|
|
148
149
|
readonly blockNode: BooleanConstructor;
|
|
149
150
|
readonly blockLine: BooleanConstructor;
|
|
151
|
+
readonly showLine: BooleanConstructor;
|
|
150
152
|
readonly disabled: BooleanConstructor;
|
|
151
153
|
readonly checkedKeys: PropType<Key[]>;
|
|
152
154
|
readonly defaultCheckedKeys: {
|
|
@@ -169,9 +171,10 @@ export declare const treeProps: {
|
|
|
169
171
|
readonly type: BooleanConstructor;
|
|
170
172
|
readonly default: true;
|
|
171
173
|
};
|
|
174
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
172
175
|
readonly indent: {
|
|
173
176
|
readonly type: NumberConstructor;
|
|
174
|
-
readonly default:
|
|
177
|
+
readonly default: 24;
|
|
175
178
|
};
|
|
176
179
|
readonly allowDrop: {
|
|
177
180
|
readonly type: PropType<AllowDrop>;
|
|
@@ -208,6 +211,9 @@ export declare const treeProps: {
|
|
|
208
211
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
209
212
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
210
213
|
fontSize: string;
|
|
214
|
+
lineHeight: string;
|
|
215
|
+
nodeHeight: string;
|
|
216
|
+
nodeWrapperPadding: string;
|
|
211
217
|
nodeBorderRadius: string;
|
|
212
218
|
nodeColorHover: string;
|
|
213
219
|
nodeColorPressed: string;
|
|
@@ -217,6 +223,7 @@ export declare const treeProps: {
|
|
|
217
223
|
nodeTextColorDisabled: string;
|
|
218
224
|
loadingColor: string;
|
|
219
225
|
dropMarkColor: string;
|
|
226
|
+
lineColor: string;
|
|
220
227
|
}, {
|
|
221
228
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
222
229
|
labelLineHeight: string;
|
|
@@ -268,6 +275,9 @@ export declare const treeProps: {
|
|
|
268
275
|
}>>;
|
|
269
276
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
270
277
|
fontSize: string;
|
|
278
|
+
lineHeight: string;
|
|
279
|
+
nodeHeight: string;
|
|
280
|
+
nodeWrapperPadding: string;
|
|
271
281
|
nodeBorderRadius: string;
|
|
272
282
|
nodeColorHover: string;
|
|
273
283
|
nodeColorPressed: string;
|
|
@@ -277,6 +287,7 @@ export declare const treeProps: {
|
|
|
277
287
|
nodeTextColorDisabled: string;
|
|
278
288
|
loadingColor: string;
|
|
279
289
|
dropMarkColor: string;
|
|
290
|
+
lineColor: string;
|
|
280
291
|
}, {
|
|
281
292
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
282
293
|
labelLineHeight: string;
|
|
@@ -328,6 +339,9 @@ export declare const treeProps: {
|
|
|
328
339
|
}>>>;
|
|
329
340
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
330
341
|
fontSize: string;
|
|
342
|
+
lineHeight: string;
|
|
343
|
+
nodeHeight: string;
|
|
344
|
+
nodeWrapperPadding: string;
|
|
331
345
|
nodeBorderRadius: string;
|
|
332
346
|
nodeColorHover: string;
|
|
333
347
|
nodeColorPressed: string;
|
|
@@ -337,6 +351,7 @@ export declare const treeProps: {
|
|
|
337
351
|
nodeTextColorDisabled: string;
|
|
338
352
|
loadingColor: string;
|
|
339
353
|
dropMarkColor: string;
|
|
354
|
+
lineColor: string;
|
|
340
355
|
}, {
|
|
341
356
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
342
357
|
labelLineHeight: string;
|
|
@@ -467,6 +482,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
467
482
|
readonly draggable: BooleanConstructor;
|
|
468
483
|
readonly blockNode: BooleanConstructor;
|
|
469
484
|
readonly blockLine: BooleanConstructor;
|
|
485
|
+
readonly showLine: BooleanConstructor;
|
|
470
486
|
readonly disabled: BooleanConstructor;
|
|
471
487
|
readonly checkedKeys: PropType<Key[]>;
|
|
472
488
|
readonly defaultCheckedKeys: {
|
|
@@ -489,9 +505,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
489
505
|
readonly type: BooleanConstructor;
|
|
490
506
|
readonly default: true;
|
|
491
507
|
};
|
|
508
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
492
509
|
readonly indent: {
|
|
493
510
|
readonly type: NumberConstructor;
|
|
494
|
-
readonly default:
|
|
511
|
+
readonly default: 24;
|
|
495
512
|
};
|
|
496
513
|
readonly allowDrop: {
|
|
497
514
|
readonly type: PropType<AllowDrop>;
|
|
@@ -528,6 +545,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
545
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
529
546
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
530
547
|
fontSize: string;
|
|
548
|
+
lineHeight: string;
|
|
549
|
+
nodeHeight: string;
|
|
550
|
+
nodeWrapperPadding: string;
|
|
531
551
|
nodeBorderRadius: string;
|
|
532
552
|
nodeColorHover: string;
|
|
533
553
|
nodeColorPressed: string;
|
|
@@ -537,6 +557,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
537
557
|
nodeTextColorDisabled: string;
|
|
538
558
|
loadingColor: string;
|
|
539
559
|
dropMarkColor: string;
|
|
560
|
+
lineColor: string;
|
|
540
561
|
}, {
|
|
541
562
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
542
563
|
labelLineHeight: string;
|
|
@@ -588,6 +609,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
588
609
|
}>>;
|
|
589
610
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
590
611
|
fontSize: string;
|
|
612
|
+
lineHeight: string;
|
|
613
|
+
nodeHeight: string;
|
|
614
|
+
nodeWrapperPadding: string;
|
|
591
615
|
nodeBorderRadius: string;
|
|
592
616
|
nodeColorHover: string;
|
|
593
617
|
nodeColorPressed: string;
|
|
@@ -597,6 +621,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
597
621
|
nodeTextColorDisabled: string;
|
|
598
622
|
loadingColor: string;
|
|
599
623
|
dropMarkColor: string;
|
|
624
|
+
lineColor: string;
|
|
600
625
|
}, {
|
|
601
626
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
602
627
|
labelLineHeight: string;
|
|
@@ -648,6 +673,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
648
673
|
}>>>;
|
|
649
674
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
650
675
|
fontSize: string;
|
|
676
|
+
lineHeight: string;
|
|
677
|
+
nodeHeight: string;
|
|
678
|
+
nodeWrapperPadding: string;
|
|
651
679
|
nodeBorderRadius: string;
|
|
652
680
|
nodeColorHover: string;
|
|
653
681
|
nodeColorPressed: string;
|
|
@@ -657,6 +685,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
657
685
|
nodeTextColorDisabled: string;
|
|
658
686
|
loadingColor: string;
|
|
659
687
|
dropMarkColor: string;
|
|
688
|
+
lineColor: string;
|
|
660
689
|
}, {
|
|
661
690
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
662
691
|
labelLineHeight: string;
|
|
@@ -707,7 +736,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
736
|
}, any>;
|
|
708
737
|
}>>>;
|
|
709
738
|
}, {
|
|
710
|
-
mergedClsPrefix: import("vue").
|
|
739
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
711
740
|
mergedTheme: import("vue").ComputedRef<{
|
|
712
741
|
common: {
|
|
713
742
|
baseColor: string;
|
|
@@ -816,6 +845,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
816
845
|
};
|
|
817
846
|
self: {
|
|
818
847
|
fontSize: string;
|
|
848
|
+
lineHeight: string;
|
|
849
|
+
nodeHeight: string;
|
|
850
|
+
nodeWrapperPadding: string;
|
|
819
851
|
nodeBorderRadius: string;
|
|
820
852
|
nodeColorHover: string;
|
|
821
853
|
nodeColorPressed: string;
|
|
@@ -825,6 +857,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
825
857
|
nodeTextColorDisabled: string;
|
|
826
858
|
loadingColor: string;
|
|
827
859
|
dropMarkColor: string;
|
|
860
|
+
lineColor: string;
|
|
828
861
|
};
|
|
829
862
|
peers: {
|
|
830
863
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
@@ -1178,6 +1211,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1178
1211
|
'--n-node-text-color': string;
|
|
1179
1212
|
'--n-node-text-color-disabled': string;
|
|
1180
1213
|
'--n-drop-mark-color': string;
|
|
1214
|
+
'--n-node-wrapper-padding': string;
|
|
1215
|
+
'--n-line-offset-top': string;
|
|
1216
|
+
'--n-line-offset-bottom': string;
|
|
1217
|
+
'--n-node-content-height': string;
|
|
1218
|
+
'--n-line-height': string;
|
|
1219
|
+
'--n-line-color': string;
|
|
1181
1220
|
}> | undefined;
|
|
1182
1221
|
themeClass: import("vue").Ref<string> | undefined;
|
|
1183
1222
|
onRender: (() => void) | undefined;
|
|
@@ -1272,6 +1311,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1272
1311
|
readonly draggable: BooleanConstructor;
|
|
1273
1312
|
readonly blockNode: BooleanConstructor;
|
|
1274
1313
|
readonly blockLine: BooleanConstructor;
|
|
1314
|
+
readonly showLine: BooleanConstructor;
|
|
1275
1315
|
readonly disabled: BooleanConstructor;
|
|
1276
1316
|
readonly checkedKeys: PropType<Key[]>;
|
|
1277
1317
|
readonly defaultCheckedKeys: {
|
|
@@ -1294,9 +1334,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1294
1334
|
readonly type: BooleanConstructor;
|
|
1295
1335
|
readonly default: true;
|
|
1296
1336
|
};
|
|
1337
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
1297
1338
|
readonly indent: {
|
|
1298
1339
|
readonly type: NumberConstructor;
|
|
1299
|
-
readonly default:
|
|
1340
|
+
readonly default: 24;
|
|
1300
1341
|
};
|
|
1301
1342
|
readonly allowDrop: {
|
|
1302
1343
|
readonly type: PropType<AllowDrop>;
|
|
@@ -1333,6 +1374,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1333
1374
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
1334
1375
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
1335
1376
|
fontSize: string;
|
|
1377
|
+
lineHeight: string;
|
|
1378
|
+
nodeHeight: string;
|
|
1379
|
+
nodeWrapperPadding: string;
|
|
1336
1380
|
nodeBorderRadius: string;
|
|
1337
1381
|
nodeColorHover: string;
|
|
1338
1382
|
nodeColorPressed: string;
|
|
@@ -1342,6 +1386,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1342
1386
|
nodeTextColorDisabled: string;
|
|
1343
1387
|
loadingColor: string;
|
|
1344
1388
|
dropMarkColor: string;
|
|
1389
|
+
lineColor: string;
|
|
1345
1390
|
}, {
|
|
1346
1391
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1347
1392
|
labelLineHeight: string;
|
|
@@ -1393,6 +1438,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1393
1438
|
}>>;
|
|
1394
1439
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
1395
1440
|
fontSize: string;
|
|
1441
|
+
lineHeight: string;
|
|
1442
|
+
nodeHeight: string;
|
|
1443
|
+
nodeWrapperPadding: string;
|
|
1396
1444
|
nodeBorderRadius: string;
|
|
1397
1445
|
nodeColorHover: string;
|
|
1398
1446
|
nodeColorPressed: string;
|
|
@@ -1402,6 +1450,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1402
1450
|
nodeTextColorDisabled: string;
|
|
1403
1451
|
loadingColor: string;
|
|
1404
1452
|
dropMarkColor: string;
|
|
1453
|
+
lineColor: string;
|
|
1405
1454
|
}, {
|
|
1406
1455
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1407
1456
|
labelLineHeight: string;
|
|
@@ -1453,6 +1502,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1453
1502
|
}>>>;
|
|
1454
1503
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
1455
1504
|
fontSize: string;
|
|
1505
|
+
lineHeight: string;
|
|
1506
|
+
nodeHeight: string;
|
|
1507
|
+
nodeWrapperPadding: string;
|
|
1456
1508
|
nodeBorderRadius: string;
|
|
1457
1509
|
nodeColorHover: string;
|
|
1458
1510
|
nodeColorPressed: string;
|
|
@@ -1462,6 +1514,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1462
1514
|
nodeTextColorDisabled: string;
|
|
1463
1515
|
loadingColor: string;
|
|
1464
1516
|
dropMarkColor: string;
|
|
1517
|
+
lineColor: string;
|
|
1465
1518
|
}, {
|
|
1466
1519
|
Checkbox: import("../../_mixins").Theme<"Checkbox", {
|
|
1467
1520
|
labelLineHeight: string;
|
|
@@ -1539,6 +1592,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1539
1592
|
readonly expandOnClick: boolean;
|
|
1540
1593
|
readonly blockLine: boolean;
|
|
1541
1594
|
readonly checkboxPlacement: "left" | "right";
|
|
1595
|
+
readonly showLine: boolean;
|
|
1542
1596
|
readonly defaultCheckedKeys: Key[];
|
|
1543
1597
|
readonly defaultSelectedKeys: Key[];
|
|
1544
1598
|
readonly internalTreeSelect: boolean;
|
|
@@ -1550,5 +1604,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1550
1604
|
readonly checkOnClick: boolean | CheckOnClick;
|
|
1551
1605
|
readonly blockNode: boolean;
|
|
1552
1606
|
readonly allowDrop: AllowDrop;
|
|
1553
|
-
}>;
|
|
1607
|
+
}, {}>;
|
|
1554
1608
|
export default _default;
|
package/lib/tree/src/Tree.js
CHANGED
|
@@ -32,10 +32,6 @@ const interface_2 = require("./interface");
|
|
|
32
32
|
const MotionWrapper_1 = __importDefault(require("./MotionWrapper"));
|
|
33
33
|
const dnd_1 = require("./dnd");
|
|
34
34
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
35
|
-
// TODO:
|
|
36
|
-
// During expanding, some node are mis-applied with :active style
|
|
37
|
-
// Async dnd has bug
|
|
38
|
-
const ITEM_SIZE = 30; // 24 + 3 + 3
|
|
39
35
|
function createTreeMateOptions(keyField, childrenField, disabledField, getChildren) {
|
|
40
36
|
const settledGetChildren = getChildren ||
|
|
41
37
|
((node) => {
|
|
@@ -99,7 +95,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
99
95
|
}, cancelable: {
|
|
100
96
|
type: Boolean,
|
|
101
97
|
default: true
|
|
102
|
-
}, checkable: Boolean, draggable: Boolean, blockNode: Boolean, blockLine: Boolean, disabled: Boolean, checkedKeys: Array, defaultCheckedKeys: {
|
|
98
|
+
}, checkable: Boolean, draggable: Boolean, blockNode: Boolean, blockLine: Boolean, showLine: Boolean, disabled: Boolean, checkedKeys: Array, defaultCheckedKeys: {
|
|
103
99
|
type: Array,
|
|
104
100
|
default: () => []
|
|
105
101
|
}, selectedKeys: Array, defaultSelectedKeys: {
|
|
@@ -111,9 +107,9 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
111
107
|
}, onLoad: Function, cascade: Boolean, selectable: {
|
|
112
108
|
type: Boolean,
|
|
113
109
|
default: true
|
|
114
|
-
}, indent: {
|
|
110
|
+
}, scrollbarProps: Object, indent: {
|
|
115
111
|
type: Number,
|
|
116
|
-
default:
|
|
112
|
+
default: 24
|
|
117
113
|
}, allowDrop: {
|
|
118
114
|
type: Function,
|
|
119
115
|
default: dnd_1.defaultAllowDrop
|
|
@@ -261,11 +257,15 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
261
257
|
};
|
|
262
258
|
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultExpandedKeys')) {
|
|
263
259
|
// if watching defaultExpandedKeys, we use access props.defaultExpandedKeys inside initiator
|
|
264
|
-
(0, vue_1.watchEffect)(() => {
|
|
260
|
+
(0, vue_1.watchEffect)(() => {
|
|
261
|
+
initUncontrolledExpandedKeys(undefined);
|
|
262
|
+
});
|
|
265
263
|
}
|
|
266
264
|
else {
|
|
267
265
|
// We by default watchEffect since if defaultExpandAll is true, we should remain tree expand if data changes
|
|
268
|
-
(0, vue_1.watchEffect)(() => {
|
|
266
|
+
(0, vue_1.watchEffect)(() => {
|
|
267
|
+
initUncontrolledExpandedKeys(props.defaultExpandedKeys);
|
|
268
|
+
});
|
|
269
269
|
}
|
|
270
270
|
const controlledExpandedKeysRef = (0, vue_1.toRef)(props, 'expandedKeys');
|
|
271
271
|
const mergedExpandedKeysRef = (0, vooks_1.useMergedState)(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
@@ -411,6 +411,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
411
411
|
void (0, vue_1.nextTick)(syncScrollbar);
|
|
412
412
|
return;
|
|
413
413
|
}
|
|
414
|
+
const nodeHeight = (0, seemly_1.depx)(themeRef.value.self.nodeHeight);
|
|
414
415
|
const prevVSet = new Set(prevValue);
|
|
415
416
|
let addedKey = null;
|
|
416
417
|
let removedKey = null;
|
|
@@ -436,7 +437,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
436
437
|
}
|
|
437
438
|
const { virtualScroll } = props;
|
|
438
439
|
const viewportHeight = (virtualScroll ? virtualListInstRef.value.listElRef : selfElRef.value).offsetHeight;
|
|
439
|
-
const viewportItemCount = Math.ceil(viewportHeight /
|
|
440
|
+
const viewportItemCount = Math.ceil(viewportHeight / nodeHeight) + 1;
|
|
440
441
|
// play add animation
|
|
441
442
|
let baseExpandedKeys;
|
|
442
443
|
if (addedKey !== null) {
|
|
@@ -465,7 +466,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
465
466
|
__motion: true,
|
|
466
467
|
mode: 'expand',
|
|
467
468
|
height: virtualScroll
|
|
468
|
-
? expandedChildren.length *
|
|
469
|
+
? expandedChildren.length * nodeHeight
|
|
469
470
|
: undefined,
|
|
470
471
|
nodes: virtualScroll
|
|
471
472
|
? expandedChildren.slice(0, viewportItemCount)
|
|
@@ -489,7 +490,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
489
490
|
__motion: true,
|
|
490
491
|
mode: 'collapse',
|
|
491
492
|
height: virtualScroll
|
|
492
|
-
? collapsedChildren.length *
|
|
493
|
+
? collapsedChildren.length * nodeHeight
|
|
493
494
|
: undefined,
|
|
494
495
|
nodes: virtualScroll
|
|
495
496
|
? collapsedChildren.slice(0, viewportItemCount)
|
|
@@ -1129,6 +1130,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1129
1130
|
droppingOffsetLevelRef,
|
|
1130
1131
|
fNodesRef,
|
|
1131
1132
|
pendingNodeKeyRef,
|
|
1133
|
+
showLineRef: (0, vue_1.toRef)(props, 'showLine'),
|
|
1132
1134
|
disabledFieldRef: (0, vue_1.toRef)(props, 'disabledField'),
|
|
1133
1135
|
internalScrollableRef: (0, vue_1.toRef)(props, 'internalScrollable'),
|
|
1134
1136
|
internalCheckboxFocusableRef: (0, vue_1.toRef)(props, 'internalCheckboxFocusable'),
|
|
@@ -1176,7 +1178,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1176
1178
|
}
|
|
1177
1179
|
};
|
|
1178
1180
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
1179
|
-
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor } } = themeRef.value;
|
|
1181
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight, lineColor } } = themeRef.value;
|
|
1182
|
+
const lineOffsetTop = (0, seemly_1.getPadding)(nodeWrapperPadding, 'top');
|
|
1183
|
+
const lineOffsetBottom = (0, seemly_1.getPadding)(nodeWrapperPadding, 'bottom');
|
|
1184
|
+
const nodeContentHeight = (0, seemly_1.pxfy)((0, seemly_1.depx)(nodeHeight) - (0, seemly_1.depx)(lineOffsetTop) - (0, seemly_1.depx)(lineOffsetBottom));
|
|
1180
1185
|
return {
|
|
1181
1186
|
'--n-arrow-color': arrowColor,
|
|
1182
1187
|
'--n-loading-color': loadingColor,
|
|
@@ -1188,7 +1193,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1188
1193
|
'--n-node-color-pressed': nodeColorPressed,
|
|
1189
1194
|
'--n-node-text-color': nodeTextColor,
|
|
1190
1195
|
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1191
|
-
'--n-drop-mark-color': dropMarkColor
|
|
1196
|
+
'--n-drop-mark-color': dropMarkColor,
|
|
1197
|
+
'--n-node-wrapper-padding': nodeWrapperPadding,
|
|
1198
|
+
'--n-line-offset-top': `-${lineOffsetTop}`,
|
|
1199
|
+
'--n-line-offset-bottom': `-${lineOffsetBottom}`,
|
|
1200
|
+
'--n-node-content-height': nodeContentHeight,
|
|
1201
|
+
'--n-line-height': lineHeight,
|
|
1202
|
+
'--n-line-color': lineColor
|
|
1192
1203
|
};
|
|
1193
1204
|
});
|
|
1194
1205
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1211,7 +1222,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1211
1222
|
if (!fNodes.length && internalRenderEmpty) {
|
|
1212
1223
|
return internalRenderEmpty();
|
|
1213
1224
|
}
|
|
1214
|
-
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeydown, rtlEnabled, handleFocusout } = this;
|
|
1225
|
+
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeydown, rtlEnabled, handleFocusout, scrollbarProps } = this;
|
|
1215
1226
|
const mergedFocusable = internalFocusable && !disabled;
|
|
1216
1227
|
const tabindex = mergedFocusable ? '0' : undefined;
|
|
1217
1228
|
const treeClass = [
|
|
@@ -1227,11 +1238,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1227
1238
|
if (this.virtualScroll) {
|
|
1228
1239
|
const { mergedTheme, internalScrollablePadding } = this;
|
|
1229
1240
|
const padding = (0, seemly_1.getPadding)(internalScrollablePadding || '0');
|
|
1230
|
-
return ((0, vue_1.h)(_internal_1.NxScrollbar, { ref: "scrollbarInstRef", onDragleave: draggable ? this.handleDragLeaveTree : undefined, container: this.getScrollContainer, content: this.getScrollContent, class: treeClass, theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined }, {
|
|
1241
|
+
return ((0, vue_1.h)(_internal_1.NxScrollbar, Object.assign({}, scrollbarProps, { ref: "scrollbarInstRef", onDragleave: draggable ? this.handleDragLeaveTree : undefined, container: this.getScrollContainer, content: this.getScrollContent, class: treeClass, theme: mergedTheme.peers.Scrollbar, themeOverrides: mergedTheme.peerOverrides.Scrollbar, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined }), {
|
|
1231
1242
|
default: () => {
|
|
1232
1243
|
var _a;
|
|
1233
1244
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1234
|
-
return ((0,
|
|
1245
|
+
return !fNodes.length ? ((0, _utils_1.resolveSlot)(this.$slots.empty, () => [
|
|
1246
|
+
(0, vue_1.h)(empty_1.NEmpty, { class: `${mergedClsPrefix}-tree__empty`, theme: this.mergedTheme.peers.Empty, themeOverrides: this.mergedTheme.peerOverrides.Empty })
|
|
1247
|
+
])) : ((0, vue_1.h)(vueuc_1.VVirtualList, { ref: "virtualListInstRef", items: this.fNodes, itemSize: (0, seemly_1.depx)(mergedTheme.self.nodeHeight), ignoreItemResize: this.aip, paddingTop: padding.top, paddingBottom: padding.bottom, class: this.themeClass, style: [
|
|
1235
1248
|
this.cssVars,
|
|
1236
1249
|
{
|
|
1237
1250
|
paddingLeft: padding.left,
|
|
@@ -1247,7 +1260,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
1247
1260
|
treeClass.push(this.themeClass);
|
|
1248
1261
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1249
1262
|
if (internalScrollable) {
|
|
1250
|
-
return ((0, vue_1.h)(_internal_1.NxScrollbar, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }, {
|
|
1263
|
+
return ((0, vue_1.h)(_internal_1.NxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1251
1264
|
default: () => ((0, vue_1.h)("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
1252
1265
|
}));
|
|
1253
1266
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType, type ComponentPublicInstance } from 'vue';
|
|
1
|
+
import { type PropType, type ComponentPublicInstance, type VNode } from 'vue';
|
|
2
2
|
import { type TmNode } from './interface';
|
|
3
3
|
declare const TreeNode: import("vue").DefineComponent<{
|
|
4
4
|
clsPrefix: {
|
|
@@ -34,10 +34,14 @@ declare const TreeNode: import("vue").DefineComponent<{
|
|
|
34
34
|
droppingOffsetLevel: import("vue").Ref<number>;
|
|
35
35
|
indent: import("vue").Ref<number>;
|
|
36
36
|
checkboxPlacement: "left" | "right";
|
|
37
|
+
showLine: import("vue").Ref<boolean>;
|
|
37
38
|
contentInstRef: import("vue").Ref<ComponentPublicInstance | null>;
|
|
38
39
|
contentElRef: {
|
|
39
40
|
value: HTMLElement | null;
|
|
40
41
|
};
|
|
42
|
+
indentNodes: import("vue").ComputedRef<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}>[]>;
|
|
41
45
|
handleCheck: (checked: boolean) => void;
|
|
42
46
|
handleDrop: (e: DragEvent) => void;
|
|
43
47
|
handleDragStart: (e: DragEvent) => void;
|
|
@@ -57,5 +61,5 @@ declare const TreeNode: import("vue").DefineComponent<{
|
|
|
57
61
|
type: PropType<TmNode>;
|
|
58
62
|
required: true;
|
|
59
63
|
};
|
|
60
|
-
}>>, {}>;
|
|
64
|
+
}>>, {}, {}>;
|
|
61
65
|
export default TreeNode;
|
package/lib/tree/src/TreeNode.js
CHANGED
|
@@ -28,7 +28,7 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
28
28
|
setup(props) {
|
|
29
29
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
30
30
|
const NTree = (0, vue_1.inject)(interface_1.treeInjectionKey);
|
|
31
|
-
const { droppingNodeParentRef, droppingMouseNodeRef, draggingNodeRef, droppingPositionRef, droppingOffsetLevelRef, nodePropsRef, indentRef, blockLineRef, checkboxPlacementRef, checkOnClickRef, disabledFieldRef } = NTree;
|
|
31
|
+
const { droppingNodeParentRef, droppingMouseNodeRef, draggingNodeRef, droppingPositionRef, droppingOffsetLevelRef, nodePropsRef, indentRef, blockLineRef, checkboxPlacementRef, checkOnClickRef, disabledFieldRef, showLineRef, renderSwitcherIconRef } = NTree;
|
|
32
32
|
const checkboxDisabledRef = (0, vooks_1.useMemo)(() => !!props.tmNode.rawNode.checkboxDisabled);
|
|
33
33
|
const nodeIsDisabledRef = (0, vooks_1.useMemo)(() => {
|
|
34
34
|
return (0, utils_1.isNodeDisabled)(props.tmNode, disabledFieldRef.value);
|
|
@@ -49,29 +49,40 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
49
49
|
contentElRef.value = contentInstRef.value.$el;
|
|
50
50
|
});
|
|
51
51
|
function handleSwitcherClick() {
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
if (!
|
|
55
|
-
NTree.loadingKeysRef.value.
|
|
52
|
+
const callback = () => {
|
|
53
|
+
const { tmNode } = props;
|
|
54
|
+
if (!tmNode.isLeaf && !tmNode.shallowLoaded) {
|
|
55
|
+
if (!NTree.loadingKeysRef.value.has(tmNode.key)) {
|
|
56
|
+
NTree.loadingKeysRef.value.add(tmNode.key);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
const { onLoadRef: { value: onLoad } } = NTree;
|
|
62
|
+
if (onLoad) {
|
|
63
|
+
void onLoad(tmNode.rawNode)
|
|
64
|
+
.then((value) => {
|
|
65
|
+
if (value !== false) {
|
|
66
|
+
NTree.handleSwitcherClick(tmNode);
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
.finally(() => {
|
|
70
|
+
NTree.loadingKeysRef.value.delete(tmNode.key);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
56
73
|
}
|
|
57
74
|
else {
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
const { onLoadRef: { value: onLoad } } = NTree;
|
|
61
|
-
if (onLoad) {
|
|
62
|
-
void onLoad(tmNode.rawNode)
|
|
63
|
-
.then((value) => {
|
|
64
|
-
if (value !== false) {
|
|
65
|
-
NTree.handleSwitcherClick(tmNode);
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
.finally(() => {
|
|
69
|
-
NTree.loadingKeysRef.value.delete(tmNode.key);
|
|
70
|
-
});
|
|
75
|
+
NTree.handleSwitcherClick(tmNode);
|
|
71
76
|
}
|
|
77
|
+
};
|
|
78
|
+
if (renderSwitcherIconRef.value) {
|
|
79
|
+
// if renderSwitcherIcon is set, icon dom may be altered before event
|
|
80
|
+
// bubbles to parent dom, so that target check fails. Call it in next
|
|
81
|
+
// event loop so that event bubble phase is finishes.
|
|
82
|
+
setTimeout(callback, 0);
|
|
72
83
|
}
|
|
73
84
|
else {
|
|
74
|
-
|
|
85
|
+
callback();
|
|
75
86
|
}
|
|
76
87
|
}
|
|
77
88
|
const selectableRef = (0, vooks_1.useMemo)(() => !nodeIsDisabledRef.value &&
|
|
@@ -91,8 +102,9 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
91
102
|
if (!checkable)
|
|
92
103
|
return false;
|
|
93
104
|
const { value: checkOnClick } = checkOnClickRef;
|
|
105
|
+
const { tmNode } = props;
|
|
94
106
|
if (typeof checkOnClick === 'boolean') {
|
|
95
|
-
return checkOnClick;
|
|
107
|
+
return !tmNode.disabled && checkOnClick;
|
|
96
108
|
}
|
|
97
109
|
return checkOnClick(props.tmNode.rawNode);
|
|
98
110
|
});
|
|
@@ -183,6 +195,33 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
183
195
|
});
|
|
184
196
|
}
|
|
185
197
|
}
|
|
198
|
+
const indentNodes = (0, vue_1.computed)(() => {
|
|
199
|
+
const { clsPrefix } = props;
|
|
200
|
+
const { value: indent } = indentRef;
|
|
201
|
+
if (showLineRef.value) {
|
|
202
|
+
const indentNodes = [];
|
|
203
|
+
let cursor = props.tmNode.parent;
|
|
204
|
+
while (cursor) {
|
|
205
|
+
if (cursor.isLastChild) {
|
|
206
|
+
indentNodes.push((0, vue_1.h)("div", { class: `${clsPrefix}-tree-node-indent` },
|
|
207
|
+
(0, vue_1.h)("div", { style: { width: `${indent}px` } })));
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
indentNodes.push((0, vue_1.h)("div", { class: [
|
|
211
|
+
`${clsPrefix}-tree-node-indent`,
|
|
212
|
+
`${clsPrefix}-tree-node-indent--show-line`
|
|
213
|
+
] },
|
|
214
|
+
(0, vue_1.h)("div", { style: { width: `${indent}px` } })));
|
|
215
|
+
}
|
|
216
|
+
cursor = cursor.parent;
|
|
217
|
+
}
|
|
218
|
+
return indentNodes.reverse();
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
return (0, seemly_1.repeat)(props.tmNode.level, (0, vue_1.h)("div", { class: `${props.clsPrefix}-tree-node-indent` },
|
|
222
|
+
(0, vue_1.h)("div", { style: { width: `${indent}px` } })));
|
|
223
|
+
}
|
|
224
|
+
});
|
|
186
225
|
return {
|
|
187
226
|
showDropMark: (0, vooks_1.useMemo)(() => {
|
|
188
227
|
const { value: draggingNode } = draggingNodeRef;
|
|
@@ -236,8 +275,10 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
236
275
|
droppingOffsetLevel: droppingOffsetLevelRef,
|
|
237
276
|
indent: indentRef,
|
|
238
277
|
checkboxPlacement: checkboxPlacementRef,
|
|
278
|
+
showLine: showLineRef,
|
|
239
279
|
contentInstRef,
|
|
240
280
|
contentElRef,
|
|
281
|
+
indentNodes,
|
|
241
282
|
handleCheck,
|
|
242
283
|
handleDrop,
|
|
243
284
|
handleDragStart,
|
|
@@ -251,7 +292,7 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
251
292
|
};
|
|
252
293
|
},
|
|
253
294
|
render() {
|
|
254
|
-
const { tmNode, clsPrefix, checkable, expandOnClick, selectable, selected, checked, highlight, draggable, blockLine, indent, disabled, pending, internalScrollable, nodeProps, checkboxPlacement } = this;
|
|
295
|
+
const { tmNode, clsPrefix, checkable, expandOnClick, selectable, selected, checked, highlight, draggable, blockLine, indent, indentNodes, disabled, pending, internalScrollable, nodeProps, checkboxPlacement } = this;
|
|
255
296
|
// drag start not inside
|
|
256
297
|
// it need to be append to node itself, not wrapper
|
|
257
298
|
const dragEventHandlers = draggable && !disabled
|
|
@@ -267,7 +308,7 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
267
308
|
// scrolled to, so we need data-key to query the target element.
|
|
268
309
|
const dataKey = internalScrollable ? (0, _utils_1.createDataKey)(tmNode.key) : undefined;
|
|
269
310
|
const checkboxOnRight = checkboxPlacement === 'right';
|
|
270
|
-
const checkboxNode = checkable ? ((0, vue_1.h)(TreeNodeCheckbox_1.default, { right: checkboxOnRight, focusable: this.checkboxFocusable, disabled: disabled || this.checkboxDisabled, clsPrefix: clsPrefix, checked: this.checked, indeterminate: this.indeterminate, onCheck: this.handleCheck })) : null;
|
|
311
|
+
const checkboxNode = checkable ? ((0, vue_1.h)(TreeNodeCheckbox_1.default, { indent: indent, right: checkboxOnRight, focusable: this.checkboxFocusable, disabled: disabled || this.checkboxDisabled, clsPrefix: clsPrefix, checked: this.checked, indeterminate: this.indeterminate, onCheck: this.handleCheck })) : null;
|
|
271
312
|
return ((0, vue_1.h)("div", Object.assign({ class: `${clsPrefix}-tree-node-wrapper` }, dragEventHandlers),
|
|
272
313
|
(0, vue_1.h)("div", Object.assign({}, (blockLine ? nodeProps : undefined), { class: [
|
|
273
314
|
`${clsPrefix}-tree-node`,
|
|
@@ -284,9 +325,15 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
284
325
|
], "data-key": dataKey, draggable: draggable && blockLine, onClick: this.handleLineClick, onDragstart: draggable && blockLine && !disabled
|
|
285
326
|
? this.handleDragStart
|
|
286
327
|
: undefined }),
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
328
|
+
indentNodes,
|
|
329
|
+
tmNode.isLeaf && this.showLine ? ((0, vue_1.h)("div", { class: [
|
|
330
|
+
`${clsPrefix}-tree-node-indent`,
|
|
331
|
+
`${clsPrefix}-tree-node-indent--show-line`,
|
|
332
|
+
tmNode.isLeaf && `${clsPrefix}-tree-node-indent--is-leaf`,
|
|
333
|
+
tmNode.isLastChild &&
|
|
334
|
+
`${clsPrefix}-tree-node-indent--last-child`
|
|
335
|
+
] },
|
|
336
|
+
(0, vue_1.h)("div", { style: { width: `${indent}px` } }))) : ((0, vue_1.h)(TreeNodeSwitcher_1.default, { clsPrefix: clsPrefix, expanded: this.expanded, selected: selected, loading: this.loading, hide: tmNode.isLeaf, tmNode: this.tmNode, indent: indent, onClick: this.handleSwitcherClick })),
|
|
290
337
|
!checkboxOnRight ? checkboxNode : null,
|
|
291
338
|
(0, vue_1.h)(TreeNodeContent_1.default, { ref: "contentInstRef", clsPrefix: clsPrefix, checked: checked, selected: selected, onClick: this.handleContentClick, nodeProps: blockLine ? undefined : nodeProps, onDragstart: draggable && !blockLine && !disabled
|
|
292
339
|
? this.handleDragStart
|