naive-ui 2.34.3 → 2.35.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 +3 -2
- package/README.zh-CN.md +4 -2
- package/dist/index.js +6208 -8623
- package/dist/index.prod.js +2 -3
- package/es/_internal/clear/src/Clear.d.ts +2 -2
- package/es/_internal/clear/src/Clear.js +2 -0
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +11 -6
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +2 -2
- package/es/_internal/icon/src/Icon.d.ts +2 -2
- 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 +2 -2
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.js +4 -4
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/scrollbar/styles/rtl.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +4 -4
- package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/es/_internal/select-menu/src/SelectMenu.js +1 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +4 -4
- package/es/_internal/select-menu/src/interface.d.ts +2 -2
- package/es/_internal/selection/src/Selection.d.ts +3 -2
- package/es/_internal/selection/src/Selection.js +13 -5
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +2 -2
- package/es/_internal/suffix/src/Suffix.d.ts +2 -2
- package/es/_internal/wave/src/Wave.d.ts +1 -1
- package/es/_mixins/use-config.d.ts +3 -2
- package/es/_mixins/use-config.js +10 -5
- package/es/_mixins/use-css-vars-class.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-hljs.d.ts +1 -1
- package/es/_mixins/use-locale.d.ts +1 -1
- package/es/_mixins/use-rtl.d.ts +2 -2
- package/es/_mixins/use-style.d.ts +3 -3
- package/es/_mixins/use-style.js +1 -1
- package/es/_mixins/use-theme.d.ts +5 -5
- package/es/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/es/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/es/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/es/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/composable/use-browser-location.d.ts +1 -1
- package/es/_utils/composable/use-browser-location.js +1 -2
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-deferred-true.d.ts +1 -1
- package/es/_utils/composable/use-is-composing.d.ts +1 -1
- package/es/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/es/_utils/composable/use-resize.d.ts +1 -1
- package/es/_utils/cssr/index.d.ts +2 -2
- package/es/_utils/naive/attribute.d.ts +1 -1
- package/es/_utils/naive/extract-public-props.d.ts +2 -2
- package/es/_utils/vue/create-injection-key.d.ts +1 -1
- package/es/_utils/vue/create-ref-setter.d.ts +1 -1
- package/es/_utils/vue/flatten.d.ts +1 -1
- package/es/_utils/vue/get-first-slot-vnode.d.ts +1 -1
- package/es/_utils/vue/get-slot.d.ts +1 -1
- package/es/_utils/vue/get-v-node-children.d.ts +1 -1
- package/es/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/es/_utils/vue/keysOf.d.ts +1 -1
- package/es/_utils/vue/omit.d.ts +1 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/_utils/vue/wrapper.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +3 -3
- package/es/alert/src/Alert.js +4 -0
- package/es/alert/src/styles/index.cssr.js +4 -0
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.js +3 -1
- package/es/anchor/src/Link.d.ts +3 -3
- package/es/auto-complete/src/AutoComplete.d.ts +8 -9
- package/es/auto-complete/src/interface.d.ts +3 -2
- package/es/auto-complete/src/utils.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +4 -4
- package/es/avatar-group/src/AvatarGroup.d.ts +4 -4
- package/es/avatar-group/styles/light.d.ts +1 -1
- package/es/avatar-group/styles/rtl.d.ts +1 -1
- package/es/back-top/src/BackTop.d.ts +3 -3
- package/es/badge/src/Badge.d.ts +3 -3
- package/es/badge/src/Badge.js +1 -1
- package/es/badge/styles/light.d.ts +1 -1
- package/es/badge/styles/rtl.d.ts +1 -1
- package/es/breadcrumb/src/Breadcrumb.d.ts +4 -4
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/Button.js +1 -1
- package/es/button/styles/rtl.d.ts +1 -1
- package/es/button-group/src/ButtonGroup.d.ts +3 -3
- package/es/button-group/src/styles/index.cssr.d.ts +1 -1
- package/es/button-group/src/styles/rtl.cssr.d.ts +1 -1
- package/es/button-group/styles/rtl.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +4 -4
- package/es/card/src/Card.d.ts +7 -7
- package/es/card/styles/light.d.ts +1 -1
- package/es/card/styles/rtl.d.ts +1 -1
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/Carousel.js +6 -2
- 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/carousel/src/CarouselItem.js +4 -3
- package/es/carousel/src/interface.d.ts +1 -1
- package/es/carousel/src/utils/index.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +1 -1
- package/es/cascader/src/Cascader.d.ts +13 -12
- package/es/cascader/src/CascaderMenu.d.ts +4 -4
- package/es/cascader/src/CascaderOption.d.ts +3 -3
- package/es/cascader/src/CascaderSelectMenu.d.ts +5 -5
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/cascader/src/interface.d.ts +2 -2
- package/es/checkbox/src/Checkbox.d.ts +4 -4
- package/es/checkbox/src/Checkbox.js +10 -3
- package/es/checkbox/src/CheckboxGroup.d.ts +4 -5
- package/es/checkbox/src/styles/index.cssr.js +9 -11
- package/es/code/src/Code.d.ts +4 -4
- package/es/code/styles/light.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +16 -6
- package/es/collapse/src/Collapse.js +2 -1
- package/es/collapse/src/CollapseItem.d.ts +3 -3
- package/es/collapse/src/CollapseItemContent.d.ts +2 -2
- package/es/collapse/src/styles/index.cssr.js +2 -1
- package/es/collapse/styles/light.d.ts +2 -1
- package/es/collapse/styles/light.js +2 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +3 -3
- package/es/collapse-transition/styles/light.d.ts +1 -1
- package/es/color-picker/src/AlphaSlider.d.ts +3 -3
- package/es/color-picker/src/ColorInput.d.ts +3 -3
- package/es/color-picker/src/ColorInputUnit.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +6 -6
- package/es/color-picker/src/ColorPicker.js +6 -2
- package/es/color-picker/src/ColorPickerSwatches.d.ts +3 -3
- package/es/color-picker/src/ColorPickerSwatches.js +5 -1
- package/es/color-picker/src/ColorPickerTrigger.d.ts +3 -3
- package/es/color-picker/src/ColorPreview.d.ts +3 -3
- package/es/color-picker/src/HueSlider.d.ts +2 -2
- package/es/color-picker/src/Pallete.d.ts +3 -3
- package/es/color-picker/src/context.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +1 -1
- package/es/composables/use-theme-vars.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +27 -14
- package/es/config-provider/src/ConfigProvider.js +4 -2
- package/es/config-provider/src/internal-interface.d.ts +3 -3
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +2 -2
- package/es/create.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +4 -4
- package/es/data-table/src/DataTable.js +1 -7
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +5 -5
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +8 -7
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +3 -3
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +3 -3
- 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 +5 -5
- package/es/data-table/src/MainTable.d.ts +1 -1
- package/es/data-table/src/TableParts/Body.d.ts +5 -6
- package/es/data-table/src/TableParts/Body.js +19 -12
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +3 -3
- package/es/data-table/src/TableParts/BodyRadio.d.ts +3 -3
- package/es/data-table/src/TableParts/Cell.d.ts +5 -5
- package/es/data-table/src/TableParts/Cell.js +5 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +5 -4
- package/es/data-table/src/TableParts/ExpandTrigger.js +6 -2
- package/es/data-table/src/TableParts/Header.d.ts +2 -4
- package/es/data-table/src/TableParts/Header.js +9 -13
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/es/data-table/src/interface.d.ts +11 -9
- package/es/data-table/src/styles/index.cssr.d.ts +1 -1
- package/es/data-table/src/styles/index.cssr.js +2 -0
- package/es/data-table/src/use-check.d.ts +2 -2
- package/es/data-table/src/use-expand.d.ts +2 -2
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +2 -3
- package/es/data-table/src/use-scroll.js +21 -13
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +2 -2
- package/es/data-table/src/utils.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +5 -5
- package/es/date-picker/src/interface.d.ts +4 -4
- package/es/date-picker/src/panel/date.d.ts +6 -6
- package/es/date-picker/src/panel/date.js +3 -1
- package/es/date-picker/src/panel/daterange.d.ts +3 -3
- package/es/date-picker/src/panel/daterange.js +10 -2
- package/es/date-picker/src/panel/datetime.d.ts +3 -3
- package/es/date-picker/src/panel/datetime.js +3 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +3 -3
- 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 +74 -51
- package/es/date-picker/src/panel/use-calendar.d.ts +4 -4
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +7 -7
- package/es/date-picker/src/panel/use-panel-common.d.ts +3 -3
- package/es/date-picker/src/styles/index.cssr.js +1 -0
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/validation-utils.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +3 -3
- package/es/descriptions/src/Descriptions.js +6 -1
- package/es/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/es/descriptions/src/utils.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/Dialog.d.ts +2 -2
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +6 -6
- package/es/dialog/src/DialogProvider.js +3 -1
- package/es/dialog/src/composables.d.ts +1 -1
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/discrete/src/InjectionExtractor.d.ts +2 -2
- package/es/discrete/src/discrete.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +7 -7
- package/es/discrete/src/interface.d.ts +10 -10
- package/es/divider/src/Divider.d.ts +3 -3
- package/es/drawer/src/Drawer.d.ts +17 -4
- package/es/drawer/src/Drawer.js +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +10 -2
- package/es/drawer/src/DrawerBodyWrapper.js +25 -1
- package/es/drawer/src/DrawerContent.d.ts +2 -2
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +9 -9
- package/es/dropdown/src/DropdownDivider.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +3 -3
- package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +3 -3
- package/es/dropdown/src/DropdownOption.d.ts +4 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +3 -3
- package/es/dropdown/src/interface.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +7 -3
- package/es/dynamic-input/src/DynamicInput.js +50 -29
- package/es/dynamic-input/src/InputPreset.d.ts +5 -2
- package/es/dynamic-input/src/InputPreset.js +3 -2
- package/es/dynamic-input/src/PairPreset.d.ts +5 -2
- package/es/dynamic-input/src/PairPreset.js +4 -3
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/dark.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +3 -3
- package/es/dynamic-tags/src/DynamicTags.js +3 -1
- package/es/element/src/Element.d.ts +11 -11
- package/es/element/styles/dark.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/index.d.ts +1 -0
- package/es/ellipsis/index.js +1 -0
- package/es/ellipsis/src/Ellipsis.d.ts +4 -2
- 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/ellipsis/styles/dark.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +3 -3
- package/es/equation/src/Equation.d.ts +6 -6
- package/es/form/src/Form.d.ts +4 -4
- package/es/form/src/Form.js +4 -2
- package/es/form/src/FormItem.d.ts +4 -4
- package/es/form/src/FormItem.js +1 -1
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemCol.js +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemGridItem.js +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/FormItemRow.js +1 -1
- package/es/form/src/interface.d.ts +3 -3
- 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 +3 -3
- package/es/gradient-text/styles/dark.d.ts +1 -1
- package/es/grid/src/Grid.d.ts +6 -6
- package/es/grid/src/Grid.js +6 -3
- package/es/grid/src/GridItem.d.ts +2 -2
- package/es/icon/src/Icon.d.ts +6 -6
- package/es/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.js +1 -1
- package/es/image/src/Image.d.ts +9 -3
- package/es/image/src/Image.js +19 -21
- package/es/image/src/ImageGroup.d.ts +10 -4
- package/es/image/src/ImageGroup.js +8 -2
- package/es/image/src/ImagePreview.d.ts +9 -4
- 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/image/src/utils.d.ts +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/input/src/Input.d.ts +17 -8
- package/es/input/src/Input.js +30 -8
- package/es/input/src/InputGroup.d.ts +2 -2
- package/es/input/src/InputGroupLabel.d.ts +3 -3
- package/es/input/src/WordCount.d.ts +1 -1
- package/es/input/src/interface.d.ts +1 -1
- package/es/input/src/styles/input.cssr.js +4 -3
- package/es/input-number/src/InputNumber.d.ts +5 -4
- 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 +5 -5
- package/es/layout/src/LayoutContent.d.ts +2 -2
- package/es/layout/src/LayoutFooter.d.ts +2 -2
- package/es/layout/src/LayoutHeader.d.ts +3 -3
- package/es/layout/src/LayoutSider.d.ts +3 -3
- package/es/layout/src/ToggleBar.d.ts +2 -2
- package/es/layout/src/ToggleButton.d.ts +2 -2
- package/es/layout/src/interface.d.ts +1 -1
- package/es/legacy-grid/src/Col.d.ts +4 -4
- package/es/legacy-grid/src/Row.d.ts +4 -4
- package/es/legacy-transfer/src/Transfer.d.ts +6 -7
- package/es/legacy-transfer/src/TransferFilter.d.ts +2 -2
- package/es/legacy-transfer/src/TransferHeader.d.ts +2 -2
- package/es/legacy-transfer/src/TransferList.d.ts +3 -3
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/legacy-transfer/src/interface.d.ts +1 -1
- package/es/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/es/list/src/List.d.ts +4 -4
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/list/styles/light.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +3 -3
- package/es/loading-bar/src/LoadingBar.js +18 -11
- package/es/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/es/loading-bar/src/context.d.ts +1 -1
- 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 +2 -1
- 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.d.ts +3 -0
- package/es/locales/common/faIR.js +121 -0
- package/es/locales/common/frFR.js +1 -0
- package/es/locales/common/idID.js +18 -17
- 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 +2 -1
- 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 +32 -34
- package/es/locales/date/arDZ.d.ts +1 -1
- package/es/locales/date/deDE.d.ts +1 -1
- package/es/locales/date/enGB.d.ts +1 -1
- package/es/locales/date/enUS.d.ts +1 -1
- package/es/locales/date/eo.d.ts +1 -1
- package/es/locales/date/esAR.d.ts +1 -1
- package/es/locales/date/faIR.d.ts +3 -0
- package/es/locales/date/faIR.js +6 -0
- package/es/locales/date/frFR.d.ts +1 -1
- package/es/locales/date/idID.d.ts +1 -1
- package/es/locales/date/itIT.d.ts +1 -1
- package/es/locales/date/jaJP.d.ts +1 -1
- package/es/locales/date/koKR.d.ts +1 -1
- package/es/locales/date/nbNO.d.ts +1 -1
- package/es/locales/date/nlNL.d.ts +1 -1
- package/es/locales/date/plPL.d.ts +1 -1
- package/es/locales/date/ptBR.d.ts +1 -1
- package/es/locales/date/ruRU.d.ts +1 -1
- package/es/locales/date/skSK.d.ts +1 -1
- package/es/locales/date/svSE.d.ts +3 -0
- package/es/locales/date/svSE.js +6 -0
- package/es/locales/date/thTH.d.ts +1 -1
- package/es/locales/date/trTR.d.ts +1 -1
- package/es/locales/date/ukUA.d.ts +1 -1
- package/es/locales/date/viVN.d.ts +1 -1
- package/es/locales/date/zhCN.d.ts +1 -1
- package/es/locales/date/zhTW.d.ts +1 -1
- package/es/locales/index.d.ts +4 -0
- package/es/locales/index.js +4 -0
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +10 -10
- 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 +7 -7
- package/es/menu/src/Menu.d.ts +11 -11
- package/es/menu/src/Menu.js +1 -1
- package/es/menu/src/MenuDivider.d.ts +1 -1
- package/es/menu/src/MenuOption.d.ts +3 -3
- package/es/menu/src/MenuOptionContent.d.ts +3 -3
- package/es/menu/src/MenuOptionGroup.d.ts +3 -3
- package/es/menu/src/Submenu.d.ts +3 -3
- package/es/menu/src/context.d.ts +2 -2
- package/es/menu/src/interface.d.ts +2 -2
- package/es/menu/src/styles/index.cssr.d.ts +1 -1
- package/es/menu/src/use-menu-child-props.d.ts +2 -2
- package/es/menu/src/use-menu-child.d.ts +3 -3
- package/es/menu/src/utils.d.ts +2 -2
- package/es/message/src/Message.d.ts +2 -2
- package/es/message/src/MessageEnvironment.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +3 -3
- package/es/message/src/context.d.ts +1 -1
- package/es/message/src/message-props.d.ts +3 -3
- package/es/message/src/types.d.ts +1 -1
- package/es/message/styles/light.d.ts +1 -1
- package/es/message/styles/rtl.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +3 -3
- package/es/modal/src/Modal.d.ts +3 -3
- package/es/modal/src/interface.d.ts +1 -1
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationContainer.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +5 -2
- package/es/notification/src/NotificationProvider.d.ts +5 -5
- package/es/notification/src/styles/index.cssr.d.ts +1 -1
- package/es/notification/src/styles/index.cssr.js +2 -0
- package/es/notification/styles/rtl.d.ts +1 -1
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/page-header/src/PageHeader.d.ts +3 -3
- package/es/pagination/src/Pagination.d.ts +4 -4
- package/es/pagination/src/Pagination.js +3 -1
- package/es/pagination/src/interface.d.ts +2 -2
- package/es/pagination/styles/light.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +5 -4
- package/es/popconfirm/src/Popconfirm.js +13 -5
- package/es/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +3 -3
- package/es/popover/src/Popover.js +4 -6
- package/es/popover/src/PopoverBody.d.ts +3 -3
- package/es/popover/src/interface.d.ts +4 -1
- package/es/popover/src/styles/index.cssr.d.ts +1 -1
- package/es/popselect/src/Popselect.d.ts +3 -3
- package/es/popselect/src/Popselect.js +3 -2
- package/es/popselect/src/PopselectPanel.d.ts +8 -8
- package/es/popselect/src/interface.d.ts +1 -1
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Circle.d.ts +3 -3
- package/es/progress/src/Line.d.ts +3 -3
- package/es/progress/src/Line.js +1 -3
- package/es/progress/src/MultipleCircle.d.ts +2 -2
- package/es/progress/src/Progress.d.ts +5 -5
- package/es/radio/src/Radio.d.ts +173 -34
- package/es/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.d.ts +4 -4
- package/es/radio/src/RadioButton.js +3 -3
- package/es/radio/src/RadioGroup.d.ts +4 -4
- package/es/radio/src/use-radio.d.ts +5 -5
- package/es/radio/src/use-radio.js +1 -1
- package/es/radio/styles/light.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +3 -3
- package/es/rate/src/Rate.js +1 -1
- package/es/rate/styles/dark.d.ts +1 -1
- package/es/rate/styles/light.d.ts +1 -1
- package/es/result/src/Result.d.ts +3 -3
- package/es/scrollbar/src/Scrollbar.d.ts +5 -2
- package/es/scrollbar/src/Scrollbar.js +1 -1
- package/es/select/src/Select.d.ts +24 -8
- package/es/select/src/Select.js +24 -3
- package/es/select/src/interface.d.ts +4 -2
- package/es/select/src/utils.d.ts +1 -1
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/skeleton/styles/dark.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +5 -5
- package/es/slider/src/Slider.js +12 -4
- package/es/slider/src/utils.d.ts +1 -1
- package/es/slider/src/utils.js +3 -1
- package/es/slider/styles/light.d.ts +1 -1
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/rtl.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +8 -5
- package/es/spin/src/Spin.js +23 -5
- package/es/spin/styles/light.d.ts +1 -1
- package/es/statistic/src/Statistic.d.ts +2 -2
- package/es/statistic/styles/light.d.ts +1 -1
- package/es/statistic/styles/rtl.d.ts +1 -1
- package/es/steps/src/Step.d.ts +3 -3
- package/es/steps/src/Steps.d.ts +3 -3
- package/es/steps/src/styles/index.cssr.js +1 -0
- package/es/steps/styles/rtl.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +3 -3
- package/es/table/src/Table.d.ts +3 -3
- 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/table/styles/light.d.ts +1 -1
- package/es/table/styles/rtl.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +2 -2
- package/es/tabs/src/Tabs.d.ts +129 -11
- package/es/tabs/src/Tabs.js +51 -23
- package/es/tabs/src/interface.d.ts +1 -1
- package/es/tabs/src/styles/index.cssr.js +101 -36
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +24 -12
- package/es/tabs/styles/light.d.ts +13 -1
- package/es/tag/src/Tag.d.ts +3 -3
- package/es/tag/src/common-props.d.ts +1 -1
- 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 -5
- package/es/theme-editor/src/ThemeEditor.js +1 -1
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +1 -1
- package/es/thing/src/Thing.d.ts +2 -2
- package/es/thing/styles/rtl.d.ts +1 -1
- package/es/time/src/Time.d.ts +3 -3
- package/es/time/src/Time.js +1 -1
- package/es/time-picker/src/Panel.d.ts +4 -4
- package/es/time-picker/src/PanelCol.d.ts +3 -3
- package/es/time-picker/src/PanelCol.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +4 -4
- package/es/time-picker/src/TimePicker.js +1 -1
- package/es/time-picker/src/interface.d.ts +2 -2
- package/es/time-picker/src/utils.d.ts +1 -1
- package/es/timeline/src/Timeline.d.ts +4 -4
- package/es/timeline/src/TimelineItem.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +1 -1
- package/es/tooltip/src/Tooltip.js +3 -2
- package/es/transfer/src/Transfer.d.ts +13 -8
- package/es/transfer/src/Transfer.js +2 -2
- package/es/transfer/src/TransferFilter.d.ts +2 -2
- package/es/transfer/src/TransferHeader.d.ts +6 -2
- package/es/transfer/src/TransferHeader.js +6 -2
- package/es/transfer/src/TransferList.d.ts +3 -3
- package/es/transfer/src/TransferListItem.d.ts +3 -3
- package/es/transfer/src/interface.d.ts +1 -1
- package/es/transfer/src/use-transfer-data.d.ts +4 -4
- package/es/tree/src/MotionWrapper.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +51 -8
- package/es/tree/src/Tree.js +31 -20
- package/es/tree/src/TreeNode.d.ts +8 -4
- package/es/tree/src/TreeNode.js +43 -7
- package/es/tree/src/TreeNodeCheckbox.d.ts +13 -2
- package/es/tree/src/TreeNodeCheckbox.js +12 -10
- package/es/tree/src/TreeNodeContent.d.ts +3 -3
- package/es/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/es/tree/src/TreeNodeSwitcher.js +12 -6
- package/es/tree/src/dnd.d.ts +2 -2
- package/es/tree/src/interface.d.ts +4 -2
- package/es/tree/src/keyboard.d.ts +3 -3
- package/es/tree/src/styles/index.cssr.js +46 -51
- package/es/tree/src/utils.d.ts +3 -3
- package/es/tree/styles/light.d.ts +6 -0
- package/es/tree/styles/light.js +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +53 -20
- package/es/tree-select/src/TreeSelect.js +3 -1
- package/es/tree-select/src/interface.d.ts +4 -2
- package/es/tree-select/src/utils.d.ts +2 -2
- package/es/tree-select/styles/light.d.ts +3 -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 +4 -4
- 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 +3 -3
- package/es/typography/src/text.d.ts +3 -3
- package/es/typography/src/ul.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +6 -66
- package/es/upload/src/Upload.js +3 -4
- package/es/upload/src/UploadDragger.d.ts +1 -1
- package/es/upload/src/UploadFile.d.ts +3 -3
- package/es/upload/src/UploadFileList.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +2 -2
- package/es/upload/src/UploadTrigger.d.ts +1 -1
- package/es/upload/src/interface.d.ts +5 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +3 -3
- package/lib/_internal/clear/src/Clear.d.ts +2 -2
- package/lib/_internal/clear/src/Clear.js +2 -0
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +11 -6
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +2 -2
- package/lib/_internal/icon/src/Icon.d.ts +2 -2
- 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 +2 -2
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +3 -3
- package/lib/_internal/scrollbar/src/Scrollbar.js +4 -4
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/scrollbar/styles/rtl.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +4 -4
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -3
- package/lib/_internal/select-menu/src/SelectMenu.js +1 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +4 -4
- package/lib/_internal/select-menu/src/interface.d.ts +2 -2
- package/lib/_internal/selection/src/Selection.d.ts +3 -2
- package/lib/_internal/selection/src/Selection.js +13 -5
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +2 -2
- package/lib/_internal/suffix/src/Suffix.d.ts +2 -2
- package/lib/_internal/wave/src/Wave.d.ts +1 -1
- package/lib/_mixins/use-config.d.ts +3 -2
- package/lib/_mixins/use-config.js +11 -5
- package/lib/_mixins/use-css-vars-class.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-hljs.d.ts +1 -1
- package/lib/_mixins/use-locale.d.ts +1 -1
- package/lib/_mixins/use-rtl.d.ts +2 -2
- package/lib/_mixins/use-style.d.ts +3 -3
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_mixins/use-theme.d.ts +5 -5
- package/lib/_styles/transitions/fade-down.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-height-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-scale-up.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-in.cssr.d.ts +1 -1
- package/lib/_styles/transitions/fade-up-width-expand.cssr.d.ts +1 -1
- package/lib/_styles/transitions/icon-switch.cssr.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-bottom.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-left.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-right.d.ts +1 -1
- package/lib/_styles/transitions/slide-in-from-top.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-browser-location.d.ts +1 -1
- package/lib/_utils/composable/use-browser-location.js +1 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-deferred-true.d.ts +1 -1
- package/lib/_utils/composable/use-is-composing.d.ts +1 -1
- package/lib/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/lib/_utils/composable/use-resize.d.ts +1 -1
- package/lib/_utils/cssr/index.d.ts +2 -2
- package/lib/_utils/naive/attribute.d.ts +1 -1
- package/lib/_utils/naive/extract-public-props.d.ts +2 -2
- package/lib/_utils/vue/create-injection-key.d.ts +1 -1
- package/lib/_utils/vue/create-ref-setter.d.ts +1 -1
- package/lib/_utils/vue/flatten.d.ts +1 -1
- package/lib/_utils/vue/get-first-slot-vnode.d.ts +1 -1
- package/lib/_utils/vue/get-slot.d.ts +1 -1
- package/lib/_utils/vue/get-v-node-children.d.ts +1 -1
- package/lib/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/lib/_utils/vue/keysOf.d.ts +1 -1
- package/lib/_utils/vue/omit.d.ts +1 -1
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/_utils/vue/wrapper.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +3 -3
- package/lib/alert/src/Alert.js +4 -0
- package/lib/alert/src/styles/index.cssr.js +4 -0
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/BaseAnchor.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.js +3 -1
- package/lib/anchor/src/Link.d.ts +3 -3
- package/lib/auto-complete/src/AutoComplete.d.ts +8 -9
- package/lib/auto-complete/src/interface.d.ts +3 -2
- package/lib/auto-complete/src/utils.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +4 -4
- package/lib/avatar-group/src/AvatarGroup.d.ts +4 -4
- package/lib/avatar-group/styles/light.d.ts +1 -1
- package/lib/avatar-group/styles/rtl.d.ts +1 -1
- package/lib/back-top/src/BackTop.d.ts +3 -3
- package/lib/badge/src/Badge.d.ts +3 -3
- package/lib/badge/src/Badge.js +1 -1
- package/lib/badge/styles/light.d.ts +1 -1
- package/lib/badge/styles/rtl.d.ts +1 -1
- package/lib/breadcrumb/src/Breadcrumb.d.ts +4 -4
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/Button.js +1 -1
- package/lib/button/styles/rtl.d.ts +1 -1
- package/lib/button-group/src/ButtonGroup.d.ts +3 -3
- package/lib/button-group/src/styles/index.cssr.d.ts +1 -1
- package/lib/button-group/src/styles/rtl.cssr.d.ts +1 -1
- package/lib/button-group/styles/rtl.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +4 -4
- package/lib/card/src/Card.d.ts +7 -7
- package/lib/card/styles/light.d.ts +1 -1
- package/lib/card/styles/rtl.d.ts +1 -1
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/Carousel.js +6 -2
- 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/carousel/src/CarouselItem.js +4 -3
- package/lib/carousel/src/interface.d.ts +1 -1
- package/lib/carousel/src/utils/index.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +13 -12
- package/lib/cascader/src/CascaderMenu.d.ts +4 -4
- package/lib/cascader/src/CascaderOption.d.ts +3 -3
- package/lib/cascader/src/CascaderSelectMenu.d.ts +5 -5
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/cascader/src/interface.d.ts +2 -2
- package/lib/checkbox/src/Checkbox.d.ts +4 -4
- package/lib/checkbox/src/Checkbox.js +9 -2
- package/lib/checkbox/src/CheckboxGroup.d.ts +4 -5
- package/lib/checkbox/src/styles/index.cssr.js +9 -11
- package/lib/code/src/Code.d.ts +4 -4
- package/lib/code/styles/light.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +16 -6
- package/lib/collapse/src/Collapse.js +2 -1
- package/lib/collapse/src/CollapseItem.d.ts +3 -3
- package/lib/collapse/src/CollapseItemContent.d.ts +2 -2
- package/lib/collapse/src/styles/index.cssr.js +2 -1
- package/lib/collapse/styles/light.d.ts +2 -1
- package/lib/collapse/styles/light.js +2 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +3 -3
- package/lib/collapse-transition/styles/light.d.ts +1 -1
- package/lib/color-picker/src/AlphaSlider.d.ts +3 -3
- package/lib/color-picker/src/ColorInput.d.ts +3 -3
- package/lib/color-picker/src/ColorInputUnit.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +6 -6
- package/lib/color-picker/src/ColorPicker.js +6 -2
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +3 -3
- package/lib/color-picker/src/ColorPickerSwatches.js +5 -1
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +3 -3
- package/lib/color-picker/src/ColorPreview.d.ts +3 -3
- package/lib/color-picker/src/HueSlider.d.ts +2 -2
- package/lib/color-picker/src/Pallete.d.ts +3 -3
- package/lib/color-picker/src/context.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +1 -1
- package/lib/composables/use-theme-vars.d.ts +1 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +27 -14
- package/lib/config-provider/src/ConfigProvider.js +4 -2
- package/lib/config-provider/src/internal-interface.d.ts +3 -3
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +2 -2
- package/lib/create.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +4 -4
- package/lib/data-table/src/DataTable.js +0 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +5 -5
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +8 -7
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +3 -3
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +3 -3
- 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 +5 -5
- package/lib/data-table/src/MainTable.d.ts +1 -1
- package/lib/data-table/src/TableParts/Body.d.ts +5 -6
- package/lib/data-table/src/TableParts/Body.js +19 -12
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +3 -3
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +3 -3
- package/lib/data-table/src/TableParts/Cell.d.ts +5 -5
- package/lib/data-table/src/TableParts/Cell.js +9 -2
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +5 -4
- package/lib/data-table/src/TableParts/ExpandTrigger.js +6 -2
- package/lib/data-table/src/TableParts/Header.d.ts +2 -4
- package/lib/data-table/src/TableParts/Header.js +9 -13
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/lib/data-table/src/interface.d.ts +11 -9
- package/lib/data-table/src/styles/index.cssr.d.ts +1 -1
- package/lib/data-table/src/styles/index.cssr.js +2 -0
- package/lib/data-table/src/use-check.d.ts +2 -2
- package/lib/data-table/src/use-expand.d.ts +2 -2
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +2 -3
- package/lib/data-table/src/use-scroll.js +21 -13
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +2 -2
- package/lib/data-table/src/utils.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +5 -5
- package/lib/date-picker/src/interface.d.ts +4 -4
- package/lib/date-picker/src/panel/date.d.ts +6 -6
- package/lib/date-picker/src/panel/date.js +3 -1
- package/lib/date-picker/src/panel/daterange.d.ts +3 -3
- package/lib/date-picker/src/panel/daterange.js +10 -2
- package/lib/date-picker/src/panel/datetime.d.ts +3 -3
- package/lib/date-picker/src/panel/datetime.js +3 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +3 -3
- 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 +74 -51
- package/lib/date-picker/src/panel/use-calendar.d.ts +4 -4
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +7 -7
- package/lib/date-picker/src/panel/use-panel-common.d.ts +3 -3
- package/lib/date-picker/src/styles/index.cssr.js +1 -0
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/validation-utils.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +3 -3
- package/lib/descriptions/src/Descriptions.js +6 -1
- package/lib/descriptions/src/DescriptionsItem.d.ts +2 -2
- package/lib/descriptions/src/utils.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/Dialog.d.ts +2 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +6 -6
- package/lib/dialog/src/DialogProvider.js +3 -1
- package/lib/dialog/src/composables.d.ts +1 -1
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/discrete/src/InjectionExtractor.d.ts +2 -2
- package/lib/discrete/src/discrete.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +7 -7
- package/lib/discrete/src/interface.d.ts +10 -10
- package/lib/divider/src/Divider.d.ts +3 -3
- package/lib/drawer/src/Drawer.d.ts +17 -4
- package/lib/drawer/src/Drawer.js +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +10 -2
- package/lib/drawer/src/DrawerBodyWrapper.js +25 -1
- package/lib/drawer/src/DrawerContent.d.ts +2 -2
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +9 -9
- package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.d.ts +3 -3
- package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +3 -3
- package/lib/dropdown/src/DropdownOption.d.ts +4 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +3 -3
- package/lib/dropdown/src/interface.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +7 -3
- package/lib/dynamic-input/src/DynamicInput.js +50 -29
- package/lib/dynamic-input/src/InputPreset.d.ts +5 -2
- package/lib/dynamic-input/src/InputPreset.js +3 -2
- package/lib/dynamic-input/src/PairPreset.d.ts +5 -2
- package/lib/dynamic-input/src/PairPreset.js +4 -3
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/dark.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +3 -3
- package/lib/dynamic-tags/src/DynamicTags.js +3 -1
- package/lib/element/src/Element.d.ts +11 -11
- package/lib/element/styles/dark.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/index.d.ts +1 -0
- package/lib/ellipsis/index.js +3 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +4 -2
- 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/ellipsis/styles/dark.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +3 -3
- package/lib/equation/src/Equation.d.ts +6 -6
- package/lib/form/src/Form.d.ts +4 -4
- package/lib/form/src/Form.js +4 -2
- package/lib/form/src/FormItem.d.ts +4 -4
- package/lib/form/src/FormItem.js +1 -1
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemCol.js +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.js +1 -1
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/FormItemRow.js +1 -1
- package/lib/form/src/interface.d.ts +3 -3
- 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 +3 -3
- package/lib/gradient-text/styles/dark.d.ts +1 -1
- package/lib/grid/src/Grid.d.ts +6 -6
- package/lib/grid/src/Grid.js +6 -3
- package/lib/grid/src/GridItem.d.ts +2 -2
- package/lib/icon/src/Icon.d.ts +6 -6
- package/lib/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.js +1 -1
- package/lib/image/src/Image.d.ts +9 -3
- package/lib/image/src/Image.js +19 -21
- package/lib/image/src/ImageGroup.d.ts +10 -4
- package/lib/image/src/ImageGroup.js +8 -2
- package/lib/image/src/ImagePreview.d.ts +9 -4
- 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/image/src/utils.d.ts +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/input/src/Input.d.ts +17 -8
- package/lib/input/src/Input.js +30 -8
- package/lib/input/src/InputGroup.d.ts +2 -2
- package/lib/input/src/InputGroupLabel.d.ts +3 -3
- package/lib/input/src/WordCount.d.ts +1 -1
- package/lib/input/src/interface.d.ts +1 -1
- package/lib/input/src/styles/input.cssr.js +4 -3
- package/lib/input-number/src/InputNumber.d.ts +5 -4
- 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 +5 -5
- package/lib/layout/src/LayoutContent.d.ts +2 -2
- package/lib/layout/src/LayoutFooter.d.ts +2 -2
- package/lib/layout/src/LayoutHeader.d.ts +3 -3
- package/lib/layout/src/LayoutSider.d.ts +3 -3
- package/lib/layout/src/ToggleBar.d.ts +2 -2
- package/lib/layout/src/ToggleButton.d.ts +2 -2
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/legacy-grid/src/Col.d.ts +4 -4
- package/lib/legacy-grid/src/Row.d.ts +4 -4
- package/lib/legacy-transfer/src/Transfer.d.ts +6 -7
- package/lib/legacy-transfer/src/TransferFilter.d.ts +2 -2
- package/lib/legacy-transfer/src/TransferHeader.d.ts +2 -2
- package/lib/legacy-transfer/src/TransferList.d.ts +3 -3
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/legacy-transfer/src/interface.d.ts +1 -1
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/lib/list/src/List.d.ts +4 -4
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/list/styles/light.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +3 -3
- package/lib/loading-bar/src/LoadingBar.js +18 -11
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +3 -3
- package/lib/loading-bar/src/context.d.ts +1 -1
- 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 +2 -1
- 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.d.ts +3 -0
- package/lib/locales/common/faIR.js +123 -0
- package/lib/locales/common/frFR.js +1 -0
- package/lib/locales/common/idID.js +18 -17
- 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 +2 -1
- 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 +32 -34
- package/lib/locales/date/arDZ.d.ts +1 -1
- package/lib/locales/date/deDE.d.ts +1 -1
- package/lib/locales/date/enGB.d.ts +1 -1
- package/lib/locales/date/enUS.d.ts +1 -1
- package/lib/locales/date/eo.d.ts +1 -1
- package/lib/locales/date/esAR.d.ts +1 -1
- package/lib/locales/date/faIR.d.ts +3 -0
- package/lib/locales/date/faIR.js +11 -0
- package/lib/locales/date/frFR.d.ts +1 -1
- package/lib/locales/date/idID.d.ts +1 -1
- package/lib/locales/date/itIT.d.ts +1 -1
- package/lib/locales/date/jaJP.d.ts +1 -1
- package/lib/locales/date/koKR.d.ts +1 -1
- package/lib/locales/date/nbNO.d.ts +1 -1
- package/lib/locales/date/nlNL.d.ts +1 -1
- package/lib/locales/date/plPL.d.ts +1 -1
- package/lib/locales/date/ptBR.d.ts +1 -1
- package/lib/locales/date/ruRU.d.ts +1 -1
- package/lib/locales/date/skSK.d.ts +1 -1
- package/lib/locales/date/svSE.d.ts +3 -0
- package/lib/locales/date/svSE.js +11 -0
- package/lib/locales/date/thTH.d.ts +1 -1
- package/lib/locales/date/trTR.d.ts +1 -1
- package/lib/locales/date/ukUA.d.ts +1 -1
- package/lib/locales/date/viVN.d.ts +1 -1
- package/lib/locales/date/zhCN.d.ts +1 -1
- package/lib/locales/date/zhTW.d.ts +1 -1
- package/lib/locales/index.d.ts +4 -0
- package/lib/locales/index.js +10 -1
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +10 -10
- 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 +7 -7
- package/lib/menu/src/Menu.d.ts +11 -11
- package/lib/menu/src/Menu.js +1 -1
- package/lib/menu/src/MenuDivider.d.ts +1 -1
- package/lib/menu/src/MenuOption.d.ts +3 -3
- package/lib/menu/src/MenuOptionContent.d.ts +3 -3
- package/lib/menu/src/MenuOptionGroup.d.ts +3 -3
- package/lib/menu/src/Submenu.d.ts +3 -3
- package/lib/menu/src/context.d.ts +2 -2
- package/lib/menu/src/interface.d.ts +2 -2
- package/lib/menu/src/styles/index.cssr.d.ts +1 -1
- package/lib/menu/src/use-menu-child-props.d.ts +2 -2
- package/lib/menu/src/use-menu-child.d.ts +3 -3
- package/lib/menu/src/utils.d.ts +2 -2
- package/lib/message/src/Message.d.ts +2 -2
- package/lib/message/src/MessageEnvironment.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +3 -3
- package/lib/message/src/context.d.ts +1 -1
- package/lib/message/src/message-props.d.ts +3 -3
- package/lib/message/src/types.d.ts +1 -1
- package/lib/message/styles/light.d.ts +1 -1
- package/lib/message/styles/rtl.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +3 -3
- package/lib/modal/src/Modal.d.ts +3 -3
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationContainer.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +5 -2
- package/lib/notification/src/NotificationProvider.d.ts +5 -5
- package/lib/notification/src/styles/index.cssr.d.ts +1 -1
- package/lib/notification/src/styles/index.cssr.js +2 -0
- package/lib/notification/styles/rtl.d.ts +1 -1
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/page-header/src/PageHeader.d.ts +3 -3
- package/lib/pagination/src/Pagination.d.ts +4 -4
- package/lib/pagination/src/Pagination.js +3 -1
- package/lib/pagination/src/interface.d.ts +2 -2
- package/lib/pagination/styles/light.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +5 -4
- package/lib/popconfirm/src/Popconfirm.js +13 -5
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +3 -3
- package/lib/popover/src/Popover.js +3 -5
- package/lib/popover/src/PopoverBody.d.ts +3 -3
- package/lib/popover/src/interface.d.ts +4 -1
- package/lib/popover/src/styles/index.cssr.d.ts +1 -1
- package/lib/popselect/src/Popselect.d.ts +3 -3
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.d.ts +8 -8
- package/lib/popselect/src/interface.d.ts +1 -1
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Circle.d.ts +3 -3
- package/lib/progress/src/Line.d.ts +3 -3
- package/lib/progress/src/Line.js +1 -3
- package/lib/progress/src/MultipleCircle.d.ts +2 -2
- package/lib/progress/src/Progress.d.ts +5 -5
- package/lib/radio/src/Radio.d.ts +173 -34
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/RadioButton.d.ts +4 -4
- package/lib/radio/src/RadioButton.js +2 -2
- package/lib/radio/src/RadioGroup.d.ts +4 -4
- package/lib/radio/src/use-radio.d.ts +5 -5
- package/lib/radio/src/use-radio.js +2 -2
- package/lib/radio/styles/light.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +3 -3
- package/lib/rate/src/Rate.js +1 -1
- package/lib/rate/styles/dark.d.ts +1 -1
- package/lib/rate/styles/light.d.ts +1 -1
- package/lib/result/src/Result.d.ts +3 -3
- package/lib/scrollbar/src/Scrollbar.d.ts +5 -2
- package/lib/scrollbar/src/Scrollbar.js +1 -1
- package/lib/select/src/Select.d.ts +24 -8
- package/lib/select/src/Select.js +24 -3
- package/lib/select/src/interface.d.ts +4 -2
- package/lib/select/src/utils.d.ts +1 -1
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/skeleton/styles/dark.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +5 -5
- package/lib/slider/src/Slider.js +12 -4
- package/lib/slider/src/utils.d.ts +1 -1
- package/lib/slider/src/utils.js +3 -1
- package/lib/slider/styles/light.d.ts +1 -1
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/rtl.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +8 -5
- package/lib/spin/src/Spin.js +22 -4
- package/lib/spin/styles/light.d.ts +1 -1
- package/lib/statistic/src/Statistic.d.ts +2 -2
- package/lib/statistic/styles/light.d.ts +1 -1
- package/lib/statistic/styles/rtl.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +3 -3
- package/lib/steps/src/Steps.d.ts +3 -3
- package/lib/steps/src/styles/index.cssr.js +1 -0
- package/lib/steps/styles/rtl.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +3 -3
- package/lib/table/src/Table.d.ts +3 -3
- 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/table/styles/light.d.ts +1 -1
- package/lib/table/styles/rtl.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +2 -2
- package/lib/tabs/src/Tabs.d.ts +129 -11
- package/lib/tabs/src/Tabs.js +51 -23
- package/lib/tabs/src/interface.d.ts +1 -1
- package/lib/tabs/src/styles/index.cssr.js +101 -36
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +24 -12
- package/lib/tabs/styles/light.d.ts +13 -1
- package/lib/tag/src/Tag.d.ts +3 -3
- package/lib/tag/src/common-props.d.ts +1 -1
- 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 -5
- package/lib/theme-editor/src/ThemeEditor.js +1 -1
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +2 -2
- package/lib/thing/styles/rtl.d.ts +1 -1
- package/lib/time/src/Time.d.ts +3 -3
- package/lib/time/src/Time.js +1 -1
- package/lib/time-picker/src/Panel.d.ts +4 -4
- package/lib/time-picker/src/PanelCol.d.ts +3 -3
- package/lib/time-picker/src/PanelCol.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +4 -4
- package/lib/time-picker/src/TimePicker.js +1 -1
- package/lib/time-picker/src/interface.d.ts +2 -2
- package/lib/time-picker/src/utils.d.ts +1 -1
- package/lib/timeline/src/Timeline.d.ts +4 -4
- package/lib/timeline/src/TimelineItem.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.js +2 -1
- package/lib/transfer/src/Transfer.d.ts +13 -8
- package/lib/transfer/src/Transfer.js +2 -2
- package/lib/transfer/src/TransferFilter.d.ts +2 -2
- package/lib/transfer/src/TransferHeader.d.ts +6 -2
- package/lib/transfer/src/TransferHeader.js +6 -2
- package/lib/transfer/src/TransferList.d.ts +3 -3
- package/lib/transfer/src/TransferListItem.d.ts +3 -3
- package/lib/transfer/src/interface.d.ts +1 -1
- package/lib/transfer/src/use-transfer-data.d.ts +4 -4
- package/lib/tree/src/MotionWrapper.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +51 -8
- package/lib/tree/src/Tree.js +30 -19
- package/lib/tree/src/TreeNode.d.ts +8 -4
- package/lib/tree/src/TreeNode.js +43 -7
- package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -2
- package/lib/tree/src/TreeNodeCheckbox.js +12 -10
- package/lib/tree/src/TreeNodeContent.d.ts +3 -3
- package/lib/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/lib/tree/src/TreeNodeSwitcher.js +12 -6
- package/lib/tree/src/dnd.d.ts +2 -2
- package/lib/tree/src/interface.d.ts +4 -2
- package/lib/tree/src/keyboard.d.ts +3 -3
- package/lib/tree/src/styles/index.cssr.js +46 -51
- package/lib/tree/src/utils.d.ts +3 -3
- package/lib/tree/src/utils.js +1 -0
- package/lib/tree/styles/light.d.ts +6 -0
- package/lib/tree/styles/light.js +3 -0
- package/lib/tree-select/src/TreeSelect.d.ts +53 -20
- package/lib/tree-select/src/TreeSelect.js +3 -1
- package/lib/tree-select/src/interface.d.ts +4 -2
- package/lib/tree-select/src/utils.d.ts +2 -2
- package/lib/tree-select/styles/light.d.ts +3 -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 +4 -4
- 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 +3 -3
- package/lib/typography/src/text.d.ts +3 -3
- package/lib/typography/src/ul.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +6 -66
- package/lib/upload/src/Upload.js +3 -4
- package/lib/upload/src/UploadDragger.d.ts +1 -1
- package/lib/upload/src/UploadFile.d.ts +3 -3
- package/lib/upload/src/UploadFileList.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +2 -2
- package/lib/upload/src/UploadTrigger.d.ts +1 -1
- package/lib/upload/src/interface.d.ts +5 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +3 -3
- package/package.json +69 -69
- package/volar.d.ts +1 -0
- package/web-types.json +231 -27
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { PropType, VNodeChild } from 'vue';
|
|
2
|
-
import { TreeMateOptions, CheckStrategy } from 'treemate';
|
|
1
|
+
import { type PropType, type VNodeChild } from 'vue';
|
|
2
|
+
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;
|
|
@@ -268,6 +274,9 @@ export declare const treeProps: {
|
|
|
268
274
|
}>>;
|
|
269
275
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
270
276
|
fontSize: string;
|
|
277
|
+
lineHeight: string;
|
|
278
|
+
nodeHeight: string;
|
|
279
|
+
nodeWrapperPadding: string;
|
|
271
280
|
nodeBorderRadius: string;
|
|
272
281
|
nodeColorHover: string;
|
|
273
282
|
nodeColorPressed: string;
|
|
@@ -328,6 +337,9 @@ export declare const treeProps: {
|
|
|
328
337
|
}>>>;
|
|
329
338
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
330
339
|
fontSize: string;
|
|
340
|
+
lineHeight: string;
|
|
341
|
+
nodeHeight: string;
|
|
342
|
+
nodeWrapperPadding: string;
|
|
331
343
|
nodeBorderRadius: string;
|
|
332
344
|
nodeColorHover: string;
|
|
333
345
|
nodeColorPressed: string;
|
|
@@ -467,6 +479,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
467
479
|
readonly draggable: BooleanConstructor;
|
|
468
480
|
readonly blockNode: BooleanConstructor;
|
|
469
481
|
readonly blockLine: BooleanConstructor;
|
|
482
|
+
readonly showLine: BooleanConstructor;
|
|
470
483
|
readonly disabled: BooleanConstructor;
|
|
471
484
|
readonly checkedKeys: PropType<Key[]>;
|
|
472
485
|
readonly defaultCheckedKeys: {
|
|
@@ -489,9 +502,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
489
502
|
readonly type: BooleanConstructor;
|
|
490
503
|
readonly default: true;
|
|
491
504
|
};
|
|
505
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
492
506
|
readonly indent: {
|
|
493
507
|
readonly type: NumberConstructor;
|
|
494
|
-
readonly default:
|
|
508
|
+
readonly default: 24;
|
|
495
509
|
};
|
|
496
510
|
readonly allowDrop: {
|
|
497
511
|
readonly type: PropType<AllowDrop>;
|
|
@@ -528,6 +542,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
528
542
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
529
543
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
530
544
|
fontSize: string;
|
|
545
|
+
lineHeight: string;
|
|
546
|
+
nodeHeight: string;
|
|
547
|
+
nodeWrapperPadding: string;
|
|
531
548
|
nodeBorderRadius: string;
|
|
532
549
|
nodeColorHover: string;
|
|
533
550
|
nodeColorPressed: string;
|
|
@@ -588,6 +605,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
588
605
|
}>>;
|
|
589
606
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
590
607
|
fontSize: string;
|
|
608
|
+
lineHeight: string;
|
|
609
|
+
nodeHeight: string;
|
|
610
|
+
nodeWrapperPadding: string;
|
|
591
611
|
nodeBorderRadius: string;
|
|
592
612
|
nodeColorHover: string;
|
|
593
613
|
nodeColorPressed: string;
|
|
@@ -648,6 +668,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
648
668
|
}>>>;
|
|
649
669
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
650
670
|
fontSize: string;
|
|
671
|
+
lineHeight: string;
|
|
672
|
+
nodeHeight: string;
|
|
673
|
+
nodeWrapperPadding: string;
|
|
651
674
|
nodeBorderRadius: string;
|
|
652
675
|
nodeColorHover: string;
|
|
653
676
|
nodeColorPressed: string;
|
|
@@ -707,7 +730,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
707
730
|
}, any>;
|
|
708
731
|
}>>>;
|
|
709
732
|
}, {
|
|
710
|
-
mergedClsPrefix: import("vue").
|
|
733
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
711
734
|
mergedTheme: import("vue").ComputedRef<{
|
|
712
735
|
common: {
|
|
713
736
|
baseColor: string;
|
|
@@ -816,6 +839,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
816
839
|
};
|
|
817
840
|
self: {
|
|
818
841
|
fontSize: string;
|
|
842
|
+
lineHeight: string;
|
|
843
|
+
nodeHeight: string;
|
|
844
|
+
nodeWrapperPadding: string;
|
|
819
845
|
nodeBorderRadius: string;
|
|
820
846
|
nodeColorHover: string;
|
|
821
847
|
nodeColorPressed: string;
|
|
@@ -1178,6 +1204,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1178
1204
|
'--n-node-text-color': string;
|
|
1179
1205
|
'--n-node-text-color-disabled': string;
|
|
1180
1206
|
'--n-drop-mark-color': string;
|
|
1207
|
+
'--n-node-wrapper-padding': string;
|
|
1208
|
+
'--n-line-offset-top': string;
|
|
1209
|
+
'--n-line-offset-bottom': string;
|
|
1210
|
+
'--n-node-content-height': string;
|
|
1211
|
+
'--n-line-height': string;
|
|
1181
1212
|
}> | undefined;
|
|
1182
1213
|
themeClass: import("vue").Ref<string> | undefined;
|
|
1183
1214
|
onRender: (() => void) | undefined;
|
|
@@ -1272,6 +1303,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1272
1303
|
readonly draggable: BooleanConstructor;
|
|
1273
1304
|
readonly blockNode: BooleanConstructor;
|
|
1274
1305
|
readonly blockLine: BooleanConstructor;
|
|
1306
|
+
readonly showLine: BooleanConstructor;
|
|
1275
1307
|
readonly disabled: BooleanConstructor;
|
|
1276
1308
|
readonly checkedKeys: PropType<Key[]>;
|
|
1277
1309
|
readonly defaultCheckedKeys: {
|
|
@@ -1294,9 +1326,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1294
1326
|
readonly type: BooleanConstructor;
|
|
1295
1327
|
readonly default: true;
|
|
1296
1328
|
};
|
|
1329
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
1297
1330
|
readonly indent: {
|
|
1298
1331
|
readonly type: NumberConstructor;
|
|
1299
|
-
readonly default:
|
|
1332
|
+
readonly default: 24;
|
|
1300
1333
|
};
|
|
1301
1334
|
readonly allowDrop: {
|
|
1302
1335
|
readonly type: PropType<AllowDrop>;
|
|
@@ -1333,6 +1366,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1333
1366
|
readonly 'onUpdate:selectedKeys': PropType<MaybeArray<OnUpdateSelectedKeys>>;
|
|
1334
1367
|
readonly theme: PropType<import("../../_mixins").Theme<"Tree", {
|
|
1335
1368
|
fontSize: string;
|
|
1369
|
+
lineHeight: string;
|
|
1370
|
+
nodeHeight: string;
|
|
1371
|
+
nodeWrapperPadding: string;
|
|
1336
1372
|
nodeBorderRadius: string;
|
|
1337
1373
|
nodeColorHover: string;
|
|
1338
1374
|
nodeColorPressed: string;
|
|
@@ -1393,6 +1429,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1393
1429
|
}>>;
|
|
1394
1430
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
1395
1431
|
fontSize: string;
|
|
1432
|
+
lineHeight: string;
|
|
1433
|
+
nodeHeight: string;
|
|
1434
|
+
nodeWrapperPadding: string;
|
|
1396
1435
|
nodeBorderRadius: string;
|
|
1397
1436
|
nodeColorHover: string;
|
|
1398
1437
|
nodeColorPressed: string;
|
|
@@ -1453,6 +1492,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1453
1492
|
}>>>;
|
|
1454
1493
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Tree", {
|
|
1455
1494
|
fontSize: string;
|
|
1495
|
+
lineHeight: string;
|
|
1496
|
+
nodeHeight: string;
|
|
1497
|
+
nodeWrapperPadding: string;
|
|
1456
1498
|
nodeBorderRadius: string;
|
|
1457
1499
|
nodeColorHover: string;
|
|
1458
1500
|
nodeColorPressed: string;
|
|
@@ -1523,12 +1565,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1523
1565
|
readonly checkable: boolean;
|
|
1524
1566
|
readonly animated: boolean;
|
|
1525
1567
|
readonly cancelable: boolean;
|
|
1568
|
+
readonly keyboard: boolean;
|
|
1526
1569
|
readonly childrenField: string;
|
|
1527
1570
|
readonly defaultExpandAll: boolean;
|
|
1528
1571
|
readonly allowCheckingNotLoaded: boolean;
|
|
1529
1572
|
readonly cascade: boolean;
|
|
1530
1573
|
readonly indent: number;
|
|
1531
|
-
readonly keyboard: boolean;
|
|
1532
1574
|
readonly internalScrollable: boolean;
|
|
1533
1575
|
readonly checkStrategy: CheckStrategy;
|
|
1534
1576
|
readonly disabledField: string;
|
|
@@ -1539,6 +1581,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1539
1581
|
readonly expandOnClick: boolean;
|
|
1540
1582
|
readonly blockLine: boolean;
|
|
1541
1583
|
readonly checkboxPlacement: "left" | "right";
|
|
1584
|
+
readonly showLine: boolean;
|
|
1542
1585
|
readonly defaultCheckedKeys: Key[];
|
|
1543
1586
|
readonly defaultSelectedKeys: Key[];
|
|
1544
1587
|
readonly internalTreeSelect: boolean;
|
|
@@ -1550,5 +1593,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1550
1593
|
readonly checkOnClick: boolean | CheckOnClick;
|
|
1551
1594
|
readonly blockNode: boolean;
|
|
1552
1595
|
readonly allowDrop: AllowDrop;
|
|
1553
|
-
}>;
|
|
1596
|
+
}, {}>;
|
|
1554
1597
|
export default _default;
|
package/es/tree/src/Tree.js
CHANGED
|
@@ -12,7 +12,7 @@ import { h, ref, toRef, computed, defineComponent, provide, watch, nextTick, wat
|
|
|
12
12
|
import { createTreeMate, flatten, createIndexGetter } from 'treemate';
|
|
13
13
|
import { useMergedState } from 'vooks';
|
|
14
14
|
import { VVirtualList } from 'vueuc';
|
|
15
|
-
import { getPadding } from 'seemly';
|
|
15
|
+
import { depx, getPadding, pxfy } from 'seemly';
|
|
16
16
|
import { treeSelectInjectionKey } from '../../tree-select/src/interface';
|
|
17
17
|
import { useConfig, useTheme, useThemeClass, useRtl } from '../../_mixins';
|
|
18
18
|
import { call, createDataKey, resolveSlot, warn, warnOnce } from '../../_utils';
|
|
@@ -26,10 +26,6 @@ import { treeInjectionKey } from './interface';
|
|
|
26
26
|
import MotionWrapper from './MotionWrapper';
|
|
27
27
|
import { defaultAllowDrop } from './dnd';
|
|
28
28
|
import style from './styles/index.cssr';
|
|
29
|
-
// TODO:
|
|
30
|
-
// During expanding, some node are mis-applied with :active style
|
|
31
|
-
// Async dnd has bug
|
|
32
|
-
const ITEM_SIZE = 30; // 24 + 3 + 3
|
|
33
29
|
export function createTreeMateOptions(keyField, childrenField, disabledField, getChildren) {
|
|
34
30
|
const settledGetChildren = getChildren ||
|
|
35
31
|
((node) => {
|
|
@@ -92,7 +88,7 @@ export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign
|
|
|
92
88
|
}, cancelable: {
|
|
93
89
|
type: Boolean,
|
|
94
90
|
default: true
|
|
95
|
-
}, checkable: Boolean, draggable: Boolean, blockNode: Boolean, blockLine: Boolean, disabled: Boolean, checkedKeys: Array, defaultCheckedKeys: {
|
|
91
|
+
}, checkable: Boolean, draggable: Boolean, blockNode: Boolean, blockLine: Boolean, showLine: Boolean, disabled: Boolean, checkedKeys: Array, defaultCheckedKeys: {
|
|
96
92
|
type: Array,
|
|
97
93
|
default: () => []
|
|
98
94
|
}, selectedKeys: Array, defaultSelectedKeys: {
|
|
@@ -104,9 +100,9 @@ export const treeProps = Object.assign(Object.assign(Object.assign(Object.assign
|
|
|
104
100
|
}, onLoad: Function, cascade: Boolean, selectable: {
|
|
105
101
|
type: Boolean,
|
|
106
102
|
default: true
|
|
107
|
-
}, indent: {
|
|
103
|
+
}, scrollbarProps: Object, indent: {
|
|
108
104
|
type: Number,
|
|
109
|
-
default:
|
|
105
|
+
default: 24
|
|
110
106
|
}, allowDrop: {
|
|
111
107
|
type: Function,
|
|
112
108
|
default: defaultAllowDrop
|
|
@@ -254,11 +250,15 @@ export default defineComponent({
|
|
|
254
250
|
};
|
|
255
251
|
if (watchProps === null || watchProps === void 0 ? void 0 : watchProps.includes('defaultExpandedKeys')) {
|
|
256
252
|
// if watching defaultExpandedKeys, we use access props.defaultExpandedKeys inside initiator
|
|
257
|
-
watchEffect(() =>
|
|
253
|
+
watchEffect(() => {
|
|
254
|
+
initUncontrolledExpandedKeys(undefined);
|
|
255
|
+
});
|
|
258
256
|
}
|
|
259
257
|
else {
|
|
260
258
|
// We by default watchEffect since if defaultExpandAll is true, we should remain tree expand if data changes
|
|
261
|
-
watchEffect(() =>
|
|
259
|
+
watchEffect(() => {
|
|
260
|
+
initUncontrolledExpandedKeys(props.defaultExpandedKeys);
|
|
261
|
+
});
|
|
262
262
|
}
|
|
263
263
|
const controlledExpandedKeysRef = toRef(props, 'expandedKeys');
|
|
264
264
|
const mergedExpandedKeysRef = useMergedState(controlledExpandedKeysRef, uncontrolledExpandedKeysRef);
|
|
@@ -357,7 +357,8 @@ export default defineComponent({
|
|
|
357
357
|
if (process.env.NODE_ENV !== 'production') {
|
|
358
358
|
warn('tree', 'There is unloaded node in data but props.onLoad is not specified.');
|
|
359
359
|
}
|
|
360
|
-
|
|
360
|
+
yield Promise.resolve();
|
|
361
|
+
return;
|
|
361
362
|
}
|
|
362
363
|
const { value: loadingKeys } = loadingKeysRef;
|
|
363
364
|
if (!loadingKeys.has(node.key)) {
|
|
@@ -403,6 +404,7 @@ export default defineComponent({
|
|
|
403
404
|
void nextTick(syncScrollbar);
|
|
404
405
|
return;
|
|
405
406
|
}
|
|
407
|
+
const nodeHeight = depx(themeRef.value.self.nodeHeight);
|
|
406
408
|
const prevVSet = new Set(prevValue);
|
|
407
409
|
let addedKey = null;
|
|
408
410
|
let removedKey = null;
|
|
@@ -428,7 +430,7 @@ export default defineComponent({
|
|
|
428
430
|
}
|
|
429
431
|
const { virtualScroll } = props;
|
|
430
432
|
const viewportHeight = (virtualScroll ? virtualListInstRef.value.listElRef : selfElRef.value).offsetHeight;
|
|
431
|
-
const viewportItemCount = Math.ceil(viewportHeight /
|
|
433
|
+
const viewportItemCount = Math.ceil(viewportHeight / nodeHeight) + 1;
|
|
432
434
|
// play add animation
|
|
433
435
|
let baseExpandedKeys;
|
|
434
436
|
if (addedKey !== null) {
|
|
@@ -457,7 +459,7 @@ export default defineComponent({
|
|
|
457
459
|
__motion: true,
|
|
458
460
|
mode: 'expand',
|
|
459
461
|
height: virtualScroll
|
|
460
|
-
? expandedChildren.length *
|
|
462
|
+
? expandedChildren.length * nodeHeight
|
|
461
463
|
: undefined,
|
|
462
464
|
nodes: virtualScroll
|
|
463
465
|
? expandedChildren.slice(0, viewportItemCount)
|
|
@@ -481,7 +483,7 @@ export default defineComponent({
|
|
|
481
483
|
__motion: true,
|
|
482
484
|
mode: 'collapse',
|
|
483
485
|
height: virtualScroll
|
|
484
|
-
? collapsedChildren.length *
|
|
486
|
+
? collapsedChildren.length * nodeHeight
|
|
485
487
|
: undefined,
|
|
486
488
|
nodes: virtualScroll
|
|
487
489
|
? collapsedChildren.slice(0, viewportItemCount)
|
|
@@ -1121,6 +1123,7 @@ export default defineComponent({
|
|
|
1121
1123
|
droppingOffsetLevelRef,
|
|
1122
1124
|
fNodesRef,
|
|
1123
1125
|
pendingNodeKeyRef,
|
|
1126
|
+
showLineRef: toRef(props, 'showLine'),
|
|
1124
1127
|
disabledFieldRef: toRef(props, 'disabledField'),
|
|
1125
1128
|
internalScrollableRef: toRef(props, 'internalScrollable'),
|
|
1126
1129
|
internalCheckboxFocusableRef: toRef(props, 'internalCheckboxFocusable'),
|
|
@@ -1168,7 +1171,10 @@ export default defineComponent({
|
|
|
1168
1171
|
}
|
|
1169
1172
|
};
|
|
1170
1173
|
const cssVarsRef = computed(() => {
|
|
1171
|
-
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor } } = themeRef.value;
|
|
1174
|
+
const { common: { cubicBezierEaseInOut }, self: { fontSize, nodeBorderRadius, nodeColorHover, nodeColorPressed, nodeColorActive, arrowColor, loadingColor, nodeTextColor, nodeTextColorDisabled, dropMarkColor, nodeWrapperPadding, nodeHeight, lineHeight } } = themeRef.value;
|
|
1175
|
+
const lineOffsetTop = getPadding(nodeWrapperPadding, 'top');
|
|
1176
|
+
const lineOffsetBottom = getPadding(nodeWrapperPadding, 'bottom');
|
|
1177
|
+
const nodeContentHeight = pxfy(depx(nodeHeight) - depx(lineOffsetTop) - depx(lineOffsetBottom));
|
|
1172
1178
|
return {
|
|
1173
1179
|
'--n-arrow-color': arrowColor,
|
|
1174
1180
|
'--n-loading-color': loadingColor,
|
|
@@ -1180,7 +1186,12 @@ export default defineComponent({
|
|
|
1180
1186
|
'--n-node-color-pressed': nodeColorPressed,
|
|
1181
1187
|
'--n-node-text-color': nodeTextColor,
|
|
1182
1188
|
'--n-node-text-color-disabled': nodeTextColorDisabled,
|
|
1183
|
-
'--n-drop-mark-color': dropMarkColor
|
|
1189
|
+
'--n-drop-mark-color': dropMarkColor,
|
|
1190
|
+
'--n-node-wrapper-padding': nodeWrapperPadding,
|
|
1191
|
+
'--n-line-offset-top': `-${lineOffsetTop}`,
|
|
1192
|
+
'--n-line-offset-bottom': `-${lineOffsetBottom}`,
|
|
1193
|
+
'--n-node-content-height': nodeContentHeight,
|
|
1194
|
+
'--n-line-height': lineHeight
|
|
1184
1195
|
};
|
|
1185
1196
|
});
|
|
1186
1197
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -1203,7 +1214,7 @@ export default defineComponent({
|
|
|
1203
1214
|
if (!fNodes.length && internalRenderEmpty) {
|
|
1204
1215
|
return internalRenderEmpty();
|
|
1205
1216
|
}
|
|
1206
|
-
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeydown, rtlEnabled, handleFocusout } = this;
|
|
1217
|
+
const { mergedClsPrefix, blockNode, blockLine, draggable, disabled, internalFocusable, checkable, handleKeydown, rtlEnabled, handleFocusout, scrollbarProps } = this;
|
|
1207
1218
|
const mergedFocusable = internalFocusable && !disabled;
|
|
1208
1219
|
const tabindex = mergedFocusable ? '0' : undefined;
|
|
1209
1220
|
const treeClass = [
|
|
@@ -1219,11 +1230,11 @@ export default defineComponent({
|
|
|
1219
1230
|
if (this.virtualScroll) {
|
|
1220
1231
|
const { mergedTheme, internalScrollablePadding } = this;
|
|
1221
1232
|
const padding = getPadding(internalScrollablePadding || '0');
|
|
1222
|
-
return (h(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 }, {
|
|
1233
|
+
return (h(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 }), {
|
|
1223
1234
|
default: () => {
|
|
1224
1235
|
var _a;
|
|
1225
1236
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1226
|
-
return (h(VVirtualList, { ref: "virtualListInstRef", items: this.fNodes, itemSize:
|
|
1237
|
+
return (h(VVirtualList, { ref: "virtualListInstRef", items: this.fNodes, itemSize: depx(mergedTheme.self.nodeHeight), ignoreItemResize: this.aip, paddingTop: padding.top, paddingBottom: padding.bottom, class: this.themeClass, style: [
|
|
1227
1238
|
this.cssVars,
|
|
1228
1239
|
{
|
|
1229
1240
|
paddingLeft: padding.left,
|
|
@@ -1239,7 +1250,7 @@ export default defineComponent({
|
|
|
1239
1250
|
treeClass.push(this.themeClass);
|
|
1240
1251
|
(_a = this.onRender) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
1241
1252
|
if (internalScrollable) {
|
|
1242
|
-
return (h(NxScrollbar, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }, {
|
|
1253
|
+
return (h(NxScrollbar, Object.assign({}, scrollbarProps, { class: treeClass, tabindex: tabindex, onKeydown: mergedFocusable ? handleKeydown : undefined, onFocusout: mergedFocusable ? handleFocusout : undefined, style: this.cssVars, contentStyle: { padding: this.internalScrollablePadding } }), {
|
|
1243
1254
|
default: () => (h("div", { onDragleave: draggable ? this.handleDragLeaveTree : undefined, ref: "selfElRef" }, this.fNodes.map(createNode)))
|
|
1244
1255
|
}));
|
|
1245
1256
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropType, ComponentPublicInstance } from 'vue';
|
|
2
|
-
import { TmNode } from './interface';
|
|
1
|
+
import { type PropType, type ComponentPublicInstance, type VNode } from 'vue';
|
|
2
|
+
import { type TmNode } from './interface';
|
|
3
3
|
declare const TreeNode: import("vue").DefineComponent<{
|
|
4
4
|
clsPrefix: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -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
|
-
|
|
37
|
+
showLine: import("vue").Ref<boolean>;
|
|
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/es/tree/src/TreeNode.js
CHANGED
|
@@ -23,7 +23,7 @@ const TreeNode = defineComponent({
|
|
|
23
23
|
setup(props) {
|
|
24
24
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
25
25
|
const NTree = inject(treeInjectionKey);
|
|
26
|
-
const { droppingNodeParentRef, droppingMouseNodeRef, draggingNodeRef, droppingPositionRef, droppingOffsetLevelRef, nodePropsRef, indentRef, blockLineRef, checkboxPlacementRef, checkOnClickRef, disabledFieldRef } = NTree;
|
|
26
|
+
const { droppingNodeParentRef, droppingMouseNodeRef, draggingNodeRef, droppingPositionRef, droppingOffsetLevelRef, nodePropsRef, indentRef, blockLineRef, checkboxPlacementRef, checkOnClickRef, disabledFieldRef, showLineRef } = NTree;
|
|
27
27
|
const checkboxDisabledRef = useMemo(() => !!props.tmNode.rawNode.checkboxDisabled);
|
|
28
28
|
const nodeIsDisabledRef = useMemo(() => {
|
|
29
29
|
return isNodeDisabled(props.tmNode, disabledFieldRef.value);
|
|
@@ -86,8 +86,9 @@ const TreeNode = defineComponent({
|
|
|
86
86
|
if (!checkable)
|
|
87
87
|
return false;
|
|
88
88
|
const { value: checkOnClick } = checkOnClickRef;
|
|
89
|
+
const { tmNode } = props;
|
|
89
90
|
if (typeof checkOnClick === 'boolean') {
|
|
90
|
-
return checkOnClick;
|
|
91
|
+
return !tmNode.disabled && checkOnClick;
|
|
91
92
|
}
|
|
92
93
|
return checkOnClick(props.tmNode.rawNode);
|
|
93
94
|
});
|
|
@@ -178,6 +179,33 @@ const TreeNode = defineComponent({
|
|
|
178
179
|
});
|
|
179
180
|
}
|
|
180
181
|
}
|
|
182
|
+
const indentNodes = computed(() => {
|
|
183
|
+
const { clsPrefix } = props;
|
|
184
|
+
const { value: indent } = indentRef;
|
|
185
|
+
if (showLineRef.value) {
|
|
186
|
+
const indentNodes = [];
|
|
187
|
+
let cursor = props.tmNode.parent;
|
|
188
|
+
while (cursor) {
|
|
189
|
+
if (cursor.isLastChild) {
|
|
190
|
+
indentNodes.push(h("div", { class: `${clsPrefix}-tree-node-indent` },
|
|
191
|
+
h("div", { style: { width: `${indent}px` } })));
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
indentNodes.push(h("div", { class: [
|
|
195
|
+
`${clsPrefix}-tree-node-indent`,
|
|
196
|
+
`${clsPrefix}-tree-node-indent--show-line`
|
|
197
|
+
] },
|
|
198
|
+
h("div", { style: { width: `${indent}px` } })));
|
|
199
|
+
}
|
|
200
|
+
cursor = cursor.parent;
|
|
201
|
+
}
|
|
202
|
+
return indentNodes.reverse();
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
return repeat(props.tmNode.level, h("div", { class: `${props.clsPrefix}-tree-node-indent` },
|
|
206
|
+
h("div", { style: { width: `${indent}px` } })));
|
|
207
|
+
}
|
|
208
|
+
});
|
|
181
209
|
return {
|
|
182
210
|
showDropMark: useMemo(() => {
|
|
183
211
|
const { value: draggingNode } = draggingNodeRef;
|
|
@@ -231,8 +259,10 @@ const TreeNode = defineComponent({
|
|
|
231
259
|
droppingOffsetLevel: droppingOffsetLevelRef,
|
|
232
260
|
indent: indentRef,
|
|
233
261
|
checkboxPlacement: checkboxPlacementRef,
|
|
262
|
+
showLine: showLineRef,
|
|
234
263
|
contentInstRef,
|
|
235
264
|
contentElRef,
|
|
265
|
+
indentNodes,
|
|
236
266
|
handleCheck,
|
|
237
267
|
handleDrop,
|
|
238
268
|
handleDragStart,
|
|
@@ -246,7 +276,7 @@ const TreeNode = defineComponent({
|
|
|
246
276
|
};
|
|
247
277
|
},
|
|
248
278
|
render() {
|
|
249
|
-
const { tmNode, clsPrefix, checkable, expandOnClick, selectable, selected, checked, highlight, draggable, blockLine, indent, disabled, pending, internalScrollable, nodeProps, checkboxPlacement } = this;
|
|
279
|
+
const { tmNode, clsPrefix, checkable, expandOnClick, selectable, selected, checked, highlight, draggable, blockLine, indent, indentNodes, disabled, pending, internalScrollable, nodeProps, checkboxPlacement } = this;
|
|
250
280
|
// drag start not inside
|
|
251
281
|
// it need to be append to node itself, not wrapper
|
|
252
282
|
const dragEventHandlers = draggable && !disabled
|
|
@@ -262,7 +292,7 @@ const TreeNode = defineComponent({
|
|
|
262
292
|
// scrolled to, so we need data-key to query the target element.
|
|
263
293
|
const dataKey = internalScrollable ? createDataKey(tmNode.key) : undefined;
|
|
264
294
|
const checkboxOnRight = checkboxPlacement === 'right';
|
|
265
|
-
const checkboxNode = checkable ? (h(NTreeNodeCheckbox, { right: checkboxOnRight, focusable: this.checkboxFocusable, disabled: disabled || this.checkboxDisabled, clsPrefix: clsPrefix, checked: this.checked, indeterminate: this.indeterminate, onCheck: this.handleCheck })) : null;
|
|
295
|
+
const checkboxNode = checkable ? (h(NTreeNodeCheckbox, { indent: indent, right: checkboxOnRight, focusable: this.checkboxFocusable, disabled: disabled || this.checkboxDisabled, clsPrefix: clsPrefix, checked: this.checked, indeterminate: this.indeterminate, onCheck: this.handleCheck })) : null;
|
|
266
296
|
return (h("div", Object.assign({ class: `${clsPrefix}-tree-node-wrapper` }, dragEventHandlers),
|
|
267
297
|
h("div", Object.assign({}, (blockLine ? nodeProps : undefined), { class: [
|
|
268
298
|
`${clsPrefix}-tree-node`,
|
|
@@ -279,9 +309,15 @@ const TreeNode = defineComponent({
|
|
|
279
309
|
], "data-key": dataKey, draggable: draggable && blockLine, onClick: this.handleLineClick, onDragstart: draggable && blockLine && !disabled
|
|
280
310
|
? this.handleDragStart
|
|
281
311
|
: undefined }),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
312
|
+
indentNodes,
|
|
313
|
+
tmNode.isLeaf && this.showLine ? (h("div", { class: [
|
|
314
|
+
`${clsPrefix}-tree-node-indent`,
|
|
315
|
+
`${clsPrefix}-tree-node-indent--show-line`,
|
|
316
|
+
tmNode.isLeaf && `${clsPrefix}-tree-node-indent--is-leaf`,
|
|
317
|
+
tmNode.isLastChild &&
|
|
318
|
+
`${clsPrefix}-tree-node-indent--last-child`
|
|
319
|
+
] },
|
|
320
|
+
h("div", { style: { width: `${indent}px` } }))) : (h(NTreeNodeSwitcher, { clsPrefix: clsPrefix, expanded: this.expanded, selected: selected, loading: this.loading, hide: tmNode.isLeaf, tmNode: this.tmNode, indent: indent, onClick: this.handleSwitcherClick })),
|
|
285
321
|
!checkboxOnRight ? checkboxNode : null,
|
|
286
322
|
h(NTreeNodeContent, { ref: "contentInstRef", clsPrefix: clsPrefix, checked: checked, selected: selected, onClick: this.handleContentClick, nodeProps: blockLine ? undefined : nodeProps, onDragstart: draggable && !blockLine && !disabled
|
|
287
323
|
? this.handleDragStart
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
2
|
declare const _default: import("vue").DefineComponent<{
|
|
3
3
|
clsPrefix: {
|
|
4
4
|
type: StringConstructor;
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
|
+
indent: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
7
11
|
right: BooleanConstructor;
|
|
8
12
|
focusable: BooleanConstructor;
|
|
9
13
|
disabled: BooleanConstructor;
|
|
@@ -120,6 +124,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
124
|
};
|
|
121
125
|
self: {
|
|
122
126
|
fontSize: string;
|
|
127
|
+
lineHeight: string;
|
|
128
|
+
nodeHeight: string;
|
|
129
|
+
nodeWrapperPadding: string;
|
|
123
130
|
nodeBorderRadius: string;
|
|
124
131
|
nodeColorHover: string;
|
|
125
132
|
nodeColorPressed: string;
|
|
@@ -202,6 +209,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
202
209
|
type: StringConstructor;
|
|
203
210
|
required: true;
|
|
204
211
|
};
|
|
212
|
+
indent: {
|
|
213
|
+
type: NumberConstructor;
|
|
214
|
+
required: true;
|
|
215
|
+
};
|
|
205
216
|
right: BooleanConstructor;
|
|
206
217
|
focusable: BooleanConstructor;
|
|
207
218
|
disabled: BooleanConstructor;
|
|
@@ -214,5 +225,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
214
225
|
checked: boolean;
|
|
215
226
|
indeterminate: boolean;
|
|
216
227
|
focusable: boolean;
|
|
217
|
-
}>;
|
|
228
|
+
}, {}>;
|
|
218
229
|
export default _default;
|
|
@@ -8,6 +8,10 @@ export default defineComponent({
|
|
|
8
8
|
type: String,
|
|
9
9
|
required: true
|
|
10
10
|
},
|
|
11
|
+
indent: {
|
|
12
|
+
type: Number,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
11
15
|
right: Boolean,
|
|
12
16
|
focusable: Boolean,
|
|
13
17
|
disabled: Boolean,
|
|
@@ -20,16 +24,12 @@ export default defineComponent({
|
|
|
20
24
|
const NTree = inject(treeInjectionKey);
|
|
21
25
|
function doCheck(value) {
|
|
22
26
|
const { onCheck } = props;
|
|
23
|
-
if (onCheck)
|
|
24
|
-
|
|
27
|
+
if (onCheck) {
|
|
28
|
+
onCheck(value);
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
function handleUpdateValue(value) {
|
|
27
|
-
|
|
28
|
-
doCheck(false);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
doCheck(value);
|
|
32
|
-
}
|
|
32
|
+
doCheck(value);
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
handleUpdateValue,
|
|
@@ -37,11 +37,13 @@ export default defineComponent({
|
|
|
37
37
|
};
|
|
38
38
|
},
|
|
39
39
|
render() {
|
|
40
|
-
const { clsPrefix, mergedTheme, checked, indeterminate, disabled, focusable, handleUpdateValue } = this;
|
|
40
|
+
const { clsPrefix, mergedTheme, checked, indeterminate, disabled, focusable, indent, handleUpdateValue } = this;
|
|
41
41
|
return (h("span", { class: [
|
|
42
42
|
`${clsPrefix}-tree-node-checkbox`,
|
|
43
43
|
this.right && `${clsPrefix}-tree-node-checkbox--right`
|
|
44
|
-
],
|
|
44
|
+
], style: {
|
|
45
|
+
width: `${indent}px`
|
|
46
|
+
}, "data-checkbox": true },
|
|
45
47
|
h(NCheckbox, { focusable: focusable, disabled: disabled, theme: mergedTheme.peers.Checkbox, themeOverrides: mergedTheme.peerOverrides.Checkbox, checked: checked, indeterminate: indeterminate, onUpdateChecked: handleUpdateValue })));
|
|
46
48
|
}
|
|
47
49
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropType, HTMLAttributes } from 'vue';
|
|
2
|
-
import { TmNode } from './interface';
|
|
1
|
+
import { type PropType, type HTMLAttributes } from 'vue';
|
|
2
|
+
import { type TmNode } from './interface';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
clsPrefix: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -41,5 +41,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
disabled: boolean;
|
|
42
42
|
checked: boolean;
|
|
43
43
|
selected: boolean;
|
|
44
|
-
}>;
|
|
44
|
+
}, {}>;
|
|
45
45
|
export default _default;
|