naive-ui 2.34.2 → 2.34.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11964 -9783
- package/dist/index.prod.js +3 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/es/_internal/scrollbar/styles/light.d.ts +2 -2
- package/es/_internal/select-menu/src/interface.d.ts +7 -7
- package/es/_internal/select-menu/styles/light.d.ts +2 -2
- package/es/_internal/selection/src/interface.d.ts +1 -1
- package/es/_internal/selection/styles/light.d.ts +2 -2
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +2 -2
- package/es/_mixins/use-theme.d.ts +6 -6
- package/es/_styles/common/light.d.ts +1 -1
- package/es/_utils/cssr/create-key.d.ts +3 -3
- package/es/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/es/_utils/env/is-native-lazy-load.js +2 -3
- package/es/_utils/naive/extract-public-props.d.ts +4 -4
- package/es/_utils/naive/mutable.d.ts +1 -1
- package/es/_utils/naive/prop.d.ts +1 -1
- package/es/_utils/vue/call.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +1 -1
- package/es/affix/src/utils.d.ts +1 -1
- package/es/alert/src/Alert.d.ts +1 -1
- package/es/alert/styles/light.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +1 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/anchor/src/utils.d.ts +1 -1
- package/es/anchor/styles/light.d.ts +2 -2
- package/es/auto-complete/src/AutoComplete.d.ts +1 -1
- package/es/auto-complete/src/interface.d.ts +5 -5
- package/es/auto-complete/styles/light.d.ts +2 -2
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar/src/Avatar.js +7 -1
- package/es/avatar/src/interface.d.ts +2 -2
- package/es/avatar/styles/light.d.ts +3 -3
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/avatar-group/styles/light.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/back-top/styles/light.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +7 -1
- package/es/badge/src/Badge.js +15 -3
- package/es/badge/styles/light.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/breadcrumb/styles/light.d.ts +2 -2
- package/es/button/src/Button.d.ts +4 -4
- package/es/button/src/interface.d.ts +2 -2
- package/es/button/styles/light.d.ts +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/button-group/styles/light.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/calendar/src/interface.d.ts +2 -2
- package/es/calendar/styles/light.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -18
- package/es/card/src/Card.js +8 -7
- package/es/card/styles/light.d.ts +2 -2
- package/es/carousel/src/Carousel.d.ts +2 -2
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/styles/light.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +11 -1
- package/es/cascader/src/CascaderMenu.d.ts +1 -0
- package/es/cascader/src/CascaderOption.d.ts +1 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/es/cascader/src/interface.d.ts +11 -11
- package/es/cascader/styles/light.d.ts +3 -2
- package/es/checkbox/src/Checkbox.d.ts +12 -1
- package/es/checkbox/src/Checkbox.js +2 -1
- package/es/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/es/checkbox/src/interface.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +1 -0
- package/es/checkbox/styles/_common.d.ts +1 -0
- package/es/checkbox/styles/_common.js +2 -1
- package/es/checkbox/styles/light.d.ts +3 -2
- package/es/code/src/Code.d.ts +1 -1
- package/es/code/styles/light.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse/src/CollapseItem.d.ts +1 -1
- package/es/collapse/src/interface.d.ts +4 -4
- package/es/collapse/styles/light.d.ts +2 -2
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/collapse-transition/styles/light.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.d.ts +1 -1
- package/es/color-picker/src/interface.d.ts +5 -5
- package/es/color-picker/src/utils.d.ts +2 -2
- package/es/color-picker/styles/light.d.ts +2 -2
- package/es/config-provider/src/ConfigProvider.d.ts +1 -1
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +3 -5
- package/es/config-provider/src/katex.d.ts +1 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +14 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/src/interface.d.ts +52 -52
- package/es/data-table/styles/light.d.ts +4 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/config.d.ts +1 -1
- package/es/date-picker/src/interface.d.ts +21 -21
- package/es/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/es/date-picker/styles/light.d.ts +2 -2
- package/es/descriptions/src/Descriptions.d.ts +2 -2
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +5 -5
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/interface.d.ts +1 -1
- package/es/dialog/styles/light.d.ts +2 -2
- package/es/discrete/src/discreteApp.d.ts +2 -2
- package/es/discrete/src/interface.d.ts +3 -3
- package/es/divider/src/Divider.d.ts +1 -1
- package/es/divider/styles/light.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +1 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/drawer/src/interface.d.ts +1 -1
- package/es/drawer/styles/light.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dropdown/src/interface.d.ts +21 -21
- package/es/dropdown/styles/light.d.ts +2 -2
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-input/src/interface.d.ts +1 -1
- package/es/dynamic-input/styles/light.d.ts +2 -2
- package/es/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/es/dynamic-tags/src/interface.d.ts +3 -3
- package/es/dynamic-tags/styles/light.d.ts +1 -1
- package/es/element/src/Element.d.ts +1 -1
- package/es/element/styles/light.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/ellipsis/src/Ellipsis.js +7 -1
- package/es/ellipsis/styles/light.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/empty/styles/light.d.ts +2 -2
- package/es/equation/styles/light.d.ts +2 -2
- package/es/form/src/Form.d.ts +11 -2
- package/es/form/src/FormItem.d.ts +14 -4
- package/es/form/src/FormItem.js +2 -1
- package/es/form/src/FormItemCol.d.ts +12 -3
- package/es/form/src/FormItemGridItem.d.ts +12 -3
- package/es/form/src/FormItemRow.d.ts +11 -2
- package/es/form/src/interface.d.ts +19 -19
- package/es/form/src/styles/form-item.cssr.js +1 -0
- package/es/form/styles/_common.d.ts +1 -0
- package/es/form/styles/_common.js +2 -1
- package/es/form/styles/light.d.ts +3 -2
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/gradient-text/styles/light.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +1 -1
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon/styles/light.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/icon-wrapper/styles/light.d.ts +2 -2
- package/es/image/src/Image.d.ts +1 -1
- package/es/image/src/Image.js +5 -1
- package/es/image/src/ImageGroup.d.ts +1 -1
- package/es/image/src/ImagePreview.js +5 -4
- package/es/image/src/utils.d.ts +1 -1
- package/es/image/styles/light.d.ts +2 -2
- package/es/input/src/Input.d.ts +1 -1
- package/es/input/src/InputGroup.d.ts +1 -1
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input/src/interface.d.ts +4 -4
- package/es/input/src/styles/input.cssr.js +1 -0
- package/es/input/styles/light.d.ts +2 -2
- package/es/input-number/src/InputNumber.d.ts +1 -1
- package/es/input-number/src/interface.d.ts +2 -2
- package/es/input-number/styles/light.d.ts +2 -2
- package/es/layout/src/Layout.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +1 -1
- package/es/layout/src/interface.d.ts +1 -1
- package/es/layout/styles/light.d.ts +2 -2
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-grid/src/interface.d.ts +1 -1
- package/es/legacy-grid/styles/dark.d.ts +1 -1
- package/es/legacy-grid/styles/light.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +11 -1
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/es/legacy-transfer/src/TransferList.d.ts +1 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/es/legacy-transfer/src/interface.d.ts +3 -3
- package/es/legacy-transfer/styles/light.d.ts +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/styles/light.d.ts +2 -2
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/es/loading-bar/styles/light.d.ts +2 -2
- package/es/locales/common/enUS.d.ts +1 -1
- package/es/locales/common/koKR.js +9 -9
- package/es/locales/utils/index.d.ts +1 -1
- package/es/log/src/Log.d.ts +1 -1
- package/es/log/styles/light.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +1 -1
- package/es/mention/src/interface.d.ts +1 -1
- package/es/mention/styles/light.d.ts +2 -2
- package/es/menu/src/Menu.d.ts +2 -2
- package/es/menu/src/Submenu.js +2 -2
- package/es/menu/src/interface.d.ts +11 -11
- package/es/menu/src/use-menu-child-props.d.ts +1 -1
- package/es/menu/styles/light.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +5 -7
- package/es/message/src/message-props.d.ts +2 -2
- package/es/message/src/types.d.ts +3 -3
- package/es/message/styles/light.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +9 -0
- package/es/modal/src/Modal.d.ts +14 -1
- package/es/modal/src/interface.d.ts +1 -1
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/modal/styles/light.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +7 -7
- package/es/notification/styles/light.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/page-header/styles/light.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +9 -2
- package/es/pagination/src/Pagination.js +6 -4
- package/es/pagination/src/interface.d.ts +9 -8
- package/es/pagination/src/utils.d.ts +1 -1
- package/es/pagination/styles/light.d.ts +2 -2
- package/es/popconfirm/src/Popconfirm.d.ts +2 -2
- package/es/popconfirm/src/interface.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +2 -2
- package/es/popover/src/Popover.d.ts +2 -2
- package/es/popover/src/interface.d.ts +3 -3
- package/es/popover/styles/light.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +2 -2
- package/es/popselect/src/interface.d.ts +2 -2
- package/es/popselect/styles/light.d.ts +1 -1
- package/es/progress/src/Line.js +3 -1
- package/es/progress/src/Progress.d.ts +1 -1
- package/es/progress/src/interface.d.ts +1 -1
- package/es/progress/styles/light.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +8 -1
- package/es/radio/src/Radio.js +2 -1
- package/es/radio/src/RadioButton.d.ts +1 -1
- package/es/radio/src/RadioGroup.d.ts +10 -1
- package/es/radio/src/interface.d.ts +2 -2
- package/es/radio/src/styles/radio.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/radio/styles/_common.d.ts +1 -0
- package/es/radio/styles/_common.js +2 -1
- package/es/radio/styles/light.d.ts +3 -2
- package/es/rate/src/Rate.d.ts +1 -1
- package/es/rate/src/interface.d.ts +2 -2
- package/es/rate/styles/light.d.ts +2 -2
- package/es/result/src/Result.d.ts +1 -1
- package/es/result/styles/light.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +5 -1
- package/es/select/src/Select.js +5 -2
- package/es/select/src/interface.d.ts +12 -12
- package/es/select/styles/light.d.ts +2 -2
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/skeleton/styles/light.d.ts +2 -2
- package/es/slider/src/Slider.d.ts +1 -1
- package/es/slider/src/interface.d.ts +1 -1
- package/es/slider/src/utils.d.ts +3 -3
- package/es/slider/styles/light.d.ts +2 -2
- package/es/space/src/Space.d.ts +3 -3
- package/es/space/styles/light.d.ts +2 -2
- package/es/spin/src/Spin.d.ts +1 -1
- package/es/spin/styles/light.d.ts +2 -2
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/statistic/styles/light.d.ts +2 -2
- package/es/steps/src/Step.d.ts +1 -1
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/steps/styles/light.d.ts +2 -2
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/switch/src/interface.d.ts +2 -2
- package/es/switch/styles/light.d.ts +2 -2
- package/es/table/src/Table.d.ts +1 -1
- package/es/table/styles/light.d.ts +2 -2
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +123 -1
- package/es/tabs/src/Tabs.js +83 -61
- package/es/tabs/src/interface.d.ts +8 -8
- package/es/tabs/src/styles/index.cssr.js +49 -2
- package/es/tabs/styles/_common.d.ts +12 -0
- package/es/tabs/styles/_common.js +12 -0
- package/es/tabs/styles/light.d.ts +14 -2
- package/es/tag/src/Tag.d.ts +1 -1
- package/es/tag/styles/light.d.ts +2 -2
- package/es/themes/interface.d.ts +1 -1
- package/es/themes/utils.d.ts +2 -2
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/thing/styles/light.d.ts +2 -2
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +1 -1
- package/es/time-picker/src/interface.d.ts +9 -9
- package/es/time-picker/styles/light.d.ts +2 -2
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/timeline/styles/light.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +2 -2
- package/es/tooltip/styles/light.d.ts +2 -2
- package/es/transfer/src/Transfer.d.ts +11 -1
- package/es/transfer/src/TransferFilter.d.ts +1 -0
- package/es/transfer/src/TransferList.d.ts +1 -0
- package/es/transfer/src/TransferListItem.d.ts +1 -0
- package/es/transfer/src/interface.d.ts +6 -6
- package/es/transfer/styles/light.d.ts +3 -2
- package/es/tree/src/Tree.d.ts +24 -12
- package/es/tree/src/Tree.js +36 -34
- package/es/tree/src/TreeNode.js +4 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/es/tree/src/interface.d.ts +16 -16
- package/es/tree/styles/light.d.ts +3 -2
- package/es/tree-select/src/TreeSelect.d.ts +22 -5
- package/es/tree-select/src/TreeSelect.js +1 -1
- package/es/tree-select/src/interface.d.ts +12 -12
- package/es/tree-select/styles/light.d.ts +3 -2
- package/es/typography/src/a.d.ts +1 -1
- package/es/typography/src/blockquote.d.ts +1 -1
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/ol.d.ts +1 -1
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +1 -1
- package/es/typography/src/ul.d.ts +1 -1
- package/es/typography/styles/light.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +1 -1
- package/es/upload/src/Upload.js +2 -4
- package/es/upload/src/interface.d.ts +16 -16
- package/es/upload/src/utils.js +7 -9
- package/es/upload/styles/light.d.ts +2 -2
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/styles/light.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +4 -4
- package/lib/_internal/scrollbar/styles/light.d.ts +2 -2
- package/lib/_internal/select-menu/src/interface.d.ts +7 -7
- package/lib/_internal/select-menu/styles/light.d.ts +2 -2
- package/lib/_internal/selection/src/interface.d.ts +1 -1
- package/lib/_internal/selection/styles/light.d.ts +2 -2
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +2 -2
- package/lib/_mixins/use-theme.d.ts +6 -6
- package/lib/_styles/common/light.d.ts +1 -1
- package/lib/_utils/cssr/create-key.d.ts +3 -3
- package/lib/_utils/env/is-native-lazy-load.d.ts +1 -1
- package/lib/_utils/env/is-native-lazy-load.js +2 -3
- package/lib/_utils/naive/extract-public-props.d.ts +4 -4
- package/lib/_utils/naive/mutable.d.ts +1 -1
- package/lib/_utils/naive/prop.d.ts +1 -1
- package/lib/_utils/vue/call.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +1 -1
- package/lib/affix/src/utils.d.ts +1 -1
- package/lib/alert/src/Alert.d.ts +1 -1
- package/lib/alert/styles/light.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +1 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/anchor/src/utils.d.ts +1 -1
- package/lib/anchor/styles/light.d.ts +2 -2
- package/lib/auto-complete/src/AutoComplete.d.ts +1 -1
- package/lib/auto-complete/src/interface.d.ts +5 -5
- package/lib/auto-complete/styles/light.d.ts +2 -2
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar/src/Avatar.js +7 -1
- package/lib/avatar/src/interface.d.ts +2 -2
- package/lib/avatar/styles/light.d.ts +3 -3
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/avatar-group/styles/light.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/back-top/styles/light.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +7 -1
- package/lib/badge/src/Badge.js +15 -3
- package/lib/badge/styles/light.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +1 -1
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/breadcrumb/styles/light.d.ts +2 -2
- package/lib/button/src/Button.d.ts +4 -4
- package/lib/button/src/interface.d.ts +2 -2
- package/lib/button/styles/light.d.ts +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/button-group/styles/light.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/calendar/src/interface.d.ts +2 -2
- package/lib/calendar/styles/light.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -18
- package/lib/card/src/Card.js +8 -7
- package/lib/card/styles/light.d.ts +2 -2
- package/lib/carousel/src/Carousel.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/carousel/styles/light.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +11 -1
- package/lib/cascader/src/CascaderMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderOption.d.ts +1 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -0
- package/lib/cascader/src/interface.d.ts +11 -11
- package/lib/cascader/styles/light.d.ts +3 -2
- package/lib/checkbox/src/Checkbox.d.ts +12 -1
- package/lib/checkbox/src/Checkbox.js +2 -1
- package/lib/checkbox/src/CheckboxGroup.d.ts +1 -1
- package/lib/checkbox/src/interface.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +1 -0
- package/lib/checkbox/styles/_common.d.ts +1 -0
- package/lib/checkbox/styles/_common.js +2 -1
- package/lib/checkbox/styles/light.d.ts +3 -2
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/code/styles/light.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse/src/CollapseItem.d.ts +1 -1
- package/lib/collapse/src/interface.d.ts +4 -4
- package/lib/collapse/styles/light.d.ts +2 -2
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/collapse-transition/styles/light.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.d.ts +1 -1
- package/lib/color-picker/src/interface.d.ts +5 -5
- package/lib/color-picker/src/utils.d.ts +2 -2
- package/lib/color-picker/styles/light.d.ts +2 -2
- package/lib/config-provider/src/ConfigProvider.d.ts +1 -1
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +3 -5
- package/lib/config-provider/src/katex.d.ts +1 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +14 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/src/interface.d.ts +52 -52
- package/lib/data-table/styles/light.d.ts +4 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/config.d.ts +1 -1
- package/lib/date-picker/src/interface.d.ts +21 -21
- package/lib/date-picker/src/panel/use-panel-common.d.ts +1 -1
- package/lib/date-picker/styles/light.d.ts +2 -2
- package/lib/descriptions/src/Descriptions.d.ts +2 -2
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +5 -5
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/interface.d.ts +1 -1
- package/lib/dialog/styles/light.d.ts +2 -2
- package/lib/discrete/src/discreteApp.d.ts +2 -2
- package/lib/discrete/src/interface.d.ts +3 -3
- package/lib/divider/src/Divider.d.ts +1 -1
- package/lib/divider/styles/light.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +1 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +1 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/drawer/src/interface.d.ts +1 -1
- package/lib/drawer/styles/light.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dropdown/src/interface.d.ts +21 -21
- package/lib/dropdown/styles/light.d.ts +2 -2
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-input/src/interface.d.ts +1 -1
- package/lib/dynamic-input/styles/light.d.ts +2 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +1 -1
- package/lib/dynamic-tags/src/interface.d.ts +3 -3
- package/lib/dynamic-tags/styles/light.d.ts +1 -1
- package/lib/element/src/Element.d.ts +1 -1
- package/lib/element/styles/light.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/ellipsis/src/Ellipsis.js +6 -0
- package/lib/ellipsis/styles/light.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/empty/styles/light.d.ts +2 -2
- package/lib/equation/styles/light.d.ts +2 -2
- package/lib/form/src/Form.d.ts +11 -2
- package/lib/form/src/FormItem.d.ts +14 -4
- package/lib/form/src/FormItem.js +2 -1
- package/lib/form/src/FormItemCol.d.ts +12 -3
- package/lib/form/src/FormItemGridItem.d.ts +12 -3
- package/lib/form/src/FormItemRow.d.ts +11 -2
- package/lib/form/src/interface.d.ts +19 -19
- package/lib/form/src/styles/form-item.cssr.js +1 -0
- package/lib/form/styles/_common.d.ts +1 -0
- package/lib/form/styles/_common.js +2 -1
- package/lib/form/styles/light.d.ts +3 -2
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/gradient-text/styles/light.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +1 -1
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon/styles/light.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/icon-wrapper/styles/light.d.ts +2 -2
- package/lib/image/src/Image.d.ts +1 -1
- package/lib/image/src/Image.js +5 -1
- package/lib/image/src/ImageGroup.d.ts +1 -1
- package/lib/image/src/ImagePreview.js +5 -4
- package/lib/image/src/utils.d.ts +1 -1
- package/lib/image/styles/light.d.ts +2 -2
- package/lib/input/src/Input.d.ts +1 -1
- package/lib/input/src/InputGroup.d.ts +1 -1
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input/src/interface.d.ts +4 -4
- package/lib/input/src/styles/input.cssr.js +1 -0
- package/lib/input/styles/light.d.ts +2 -2
- package/lib/input-number/src/InputNumber.d.ts +1 -1
- package/lib/input-number/src/interface.d.ts +2 -2
- package/lib/input-number/styles/light.d.ts +2 -2
- package/lib/layout/src/Layout.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +1 -1
- package/lib/layout/src/interface.d.ts +1 -1
- package/lib/layout/styles/light.d.ts +2 -2
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-grid/src/interface.d.ts +1 -1
- package/lib/legacy-grid/styles/dark.d.ts +1 -1
- package/lib/legacy-grid/styles/light.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +11 -1
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -0
- package/lib/legacy-transfer/src/interface.d.ts +3 -3
- package/lib/legacy-transfer/styles/light.d.ts +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/styles/light.d.ts +2 -2
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -4
- package/lib/loading-bar/styles/light.d.ts +2 -2
- package/lib/locales/common/enUS.d.ts +1 -1
- package/lib/locales/common/koKR.js +9 -9
- package/lib/locales/utils/index.d.ts +1 -1
- package/lib/log/src/Log.d.ts +1 -1
- package/lib/log/styles/light.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +1 -1
- package/lib/mention/src/interface.d.ts +1 -1
- package/lib/mention/styles/light.d.ts +2 -2
- package/lib/menu/src/Menu.d.ts +2 -2
- package/lib/menu/src/Submenu.js +2 -2
- package/lib/menu/src/interface.d.ts +11 -11
- package/lib/menu/src/use-menu-child-props.d.ts +1 -1
- package/lib/menu/styles/light.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +5 -7
- package/lib/message/src/message-props.d.ts +2 -2
- package/lib/message/src/types.d.ts +3 -3
- package/lib/message/styles/light.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +9 -0
- package/lib/modal/src/Modal.d.ts +14 -1
- package/lib/modal/src/interface.d.ts +1 -1
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/modal/styles/light.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +7 -7
- package/lib/notification/styles/light.d.ts +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/page-header/styles/light.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +9 -2
- package/lib/pagination/src/Pagination.js +6 -4
- package/lib/pagination/src/interface.d.ts +9 -8
- package/lib/pagination/src/utils.d.ts +1 -1
- package/lib/pagination/styles/light.d.ts +2 -2
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -2
- package/lib/popconfirm/src/interface.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +2 -2
- package/lib/popover/src/Popover.d.ts +2 -2
- package/lib/popover/src/interface.d.ts +3 -3
- package/lib/popover/styles/light.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +2 -2
- package/lib/popselect/src/interface.d.ts +2 -2
- package/lib/popselect/styles/light.d.ts +1 -1
- package/lib/progress/src/Line.js +3 -1
- package/lib/progress/src/Progress.d.ts +1 -1
- package/lib/progress/src/interface.d.ts +1 -1
- package/lib/progress/styles/light.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +8 -1
- package/lib/radio/src/Radio.js +2 -1
- package/lib/radio/src/RadioButton.d.ts +1 -1
- package/lib/radio/src/RadioGroup.d.ts +10 -1
- package/lib/radio/src/interface.d.ts +2 -2
- package/lib/radio/src/styles/radio.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/radio/styles/_common.d.ts +1 -0
- package/lib/radio/styles/_common.js +2 -1
- package/lib/radio/styles/light.d.ts +3 -2
- package/lib/rate/src/Rate.d.ts +1 -1
- package/lib/rate/src/interface.d.ts +2 -2
- package/lib/rate/styles/light.d.ts +2 -2
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/result/styles/light.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +5 -1
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +12 -12
- package/lib/select/styles/light.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/skeleton/styles/light.d.ts +2 -2
- package/lib/slider/src/Slider.d.ts +1 -1
- package/lib/slider/src/interface.d.ts +1 -1
- package/lib/slider/src/utils.d.ts +3 -3
- package/lib/slider/styles/light.d.ts +2 -2
- package/lib/space/src/Space.d.ts +3 -3
- package/lib/space/styles/light.d.ts +2 -2
- package/lib/spin/src/Spin.d.ts +1 -1
- package/lib/spin/styles/light.d.ts +2 -2
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/statistic/styles/light.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +1 -1
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/steps/styles/light.d.ts +2 -2
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/switch/src/interface.d.ts +2 -2
- package/lib/switch/styles/light.d.ts +2 -2
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/table/styles/light.d.ts +2 -2
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +123 -1
- package/lib/tabs/src/Tabs.js +83 -61
- package/lib/tabs/src/interface.d.ts +8 -8
- package/lib/tabs/src/styles/index.cssr.js +49 -2
- package/lib/tabs/styles/_common.d.ts +12 -0
- package/lib/tabs/styles/_common.js +12 -0
- package/lib/tabs/styles/light.d.ts +14 -2
- package/lib/tag/src/Tag.d.ts +1 -1
- package/lib/tag/styles/light.d.ts +2 -2
- package/lib/themes/interface.d.ts +1 -1
- package/lib/themes/utils.d.ts +2 -2
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/thing/styles/light.d.ts +2 -2
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +1 -1
- package/lib/time-picker/src/interface.d.ts +9 -9
- package/lib/time-picker/styles/light.d.ts +2 -2
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/timeline/styles/light.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +2 -2
- package/lib/tooltip/styles/light.d.ts +2 -2
- package/lib/transfer/src/Transfer.d.ts +11 -1
- package/lib/transfer/src/TransferFilter.d.ts +1 -0
- package/lib/transfer/src/TransferList.d.ts +1 -0
- package/lib/transfer/src/TransferListItem.d.ts +1 -0
- package/lib/transfer/src/interface.d.ts +6 -6
- package/lib/transfer/styles/light.d.ts +3 -2
- package/lib/tree/src/Tree.d.ts +24 -12
- package/lib/tree/src/Tree.js +36 -34
- package/lib/tree/src/TreeNode.js +4 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -0
- package/lib/tree/src/interface.d.ts +16 -16
- package/lib/tree/styles/light.d.ts +3 -2
- package/lib/tree-select/src/TreeSelect.d.ts +22 -5
- package/lib/tree-select/src/TreeSelect.js +1 -1
- package/lib/tree-select/src/interface.d.ts +12 -12
- package/lib/tree-select/styles/light.d.ts +3 -2
- package/lib/typography/src/a.d.ts +1 -1
- package/lib/typography/src/blockquote.d.ts +1 -1
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +1 -1
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +1 -1
- package/lib/typography/src/ul.d.ts +1 -1
- package/lib/typography/styles/light.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +1 -1
- package/lib/upload/src/Upload.js +2 -4
- package/lib/upload/src/interface.d.ts +16 -16
- package/lib/upload/src/utils.js +7 -9
- package/lib/upload/styles/light.d.ts +2 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/styles/light.d.ts +1 -1
- package/package.json +13 -13
- package/web-types.json +80 -14
package/lib/tree/src/Tree.d.ts
CHANGED
|
@@ -1,42 +1,41 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
import { TreeMateOptions, CheckStrategy } from 'treemate';
|
|
3
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
4
|
-
import type { TreeDragInfo, TreeDropInfo, TreeOptions, Key, TreeOption, AllowDrop, RenderSwitcherIcon, TreeNodeProps, CheckOnClick } from './interface';
|
|
4
|
+
import type { TreeDragInfo, TreeDropInfo, TreeOptions, Key, TreeOption, AllowDrop, RenderSwitcherIcon, TreeNodeProps, CheckOnClick, GetChildren, OnLoad } from './interface';
|
|
5
5
|
import { defaultAllowDrop } from './dnd';
|
|
6
|
-
export declare function createTreeMateOptions<T>(keyField: string, childrenField: string, disabledField: string): TreeMateOptions<T, T, T>;
|
|
7
|
-
export
|
|
6
|
+
export declare function createTreeMateOptions<T>(keyField: string, childrenField: string, disabledField: string, getChildren: GetChildren | undefined): TreeMateOptions<T, T, T>;
|
|
7
|
+
export type OnUpdateCheckedKeys = (value: Array<string & number>, option: Array<TreeOption | null>, meta: {
|
|
8
8
|
node: TreeOption | null;
|
|
9
9
|
action: 'check' | 'uncheck';
|
|
10
10
|
}) => void;
|
|
11
|
-
export
|
|
11
|
+
export type OnUpdateCheckedKeysImpl = (value: Key[], option: Array<TreeOption | null>, meta: {
|
|
12
12
|
node: TreeOption | null;
|
|
13
13
|
action: 'check' | 'uncheck';
|
|
14
14
|
}) => void;
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
15
|
+
export type OnUpdateIndeterminateKeys = (value: Array<string & number>, option: Array<TreeOption | null>) => void;
|
|
16
|
+
export type OnUpdateIndeterminateKeysImpl = (value: Key[], option: Array<TreeOption | null>) => void;
|
|
17
|
+
export type OnUpdateSelectedKeys = (value: Array<string & number>, option: Array<TreeOption | null>, meta: {
|
|
18
18
|
node: TreeOption | null;
|
|
19
19
|
action: 'select' | 'unselect';
|
|
20
20
|
}) => void;
|
|
21
|
-
export
|
|
21
|
+
export type OnUpdateSelectedKeysImpl = (value: Key[], option: Array<TreeOption | null>, meta: {
|
|
22
22
|
node: TreeOption | null;
|
|
23
23
|
action: 'select' | 'unselect';
|
|
24
24
|
}) => void;
|
|
25
|
-
export
|
|
25
|
+
export type onUpdateExpandedKeys = (value: Array<string & number>, option: Array<TreeOption | null>, meta: {
|
|
26
26
|
node: TreeOption;
|
|
27
27
|
action: 'expand' | 'collapse';
|
|
28
28
|
} | {
|
|
29
29
|
node: null;
|
|
30
30
|
action: 'filter';
|
|
31
31
|
}) => void;
|
|
32
|
-
export
|
|
32
|
+
export type OnUpdateExpandedKeysImpl = (value: Key[], option: Array<TreeOption | null>, meta: {
|
|
33
33
|
node: TreeOption;
|
|
34
34
|
action: 'expand' | 'collapse';
|
|
35
35
|
} | {
|
|
36
36
|
node: null;
|
|
37
37
|
action: 'filter';
|
|
38
38
|
}) => void;
|
|
39
|
-
declare type OnLoad = (node: TreeOption) => Promise<void>;
|
|
40
39
|
export declare const treeSharedProps: {
|
|
41
40
|
readonly allowCheckingNotLoaded: BooleanConstructor;
|
|
42
41
|
readonly filter: PropType<(pattern: string, node: TreeOption) => boolean>;
|
|
@@ -196,6 +195,7 @@ export declare const treeProps: {
|
|
|
196
195
|
readonly type: BooleanConstructor;
|
|
197
196
|
readonly default: true;
|
|
198
197
|
};
|
|
198
|
+
readonly getChildren: PropType<GetChildren>;
|
|
199
199
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
200
200
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
201
201
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
@@ -246,6 +246,7 @@ export declare const treeProps: {
|
|
|
246
246
|
sizeMedium: string;
|
|
247
247
|
sizeLarge: string;
|
|
248
248
|
labelPadding: string;
|
|
249
|
+
labelFontWeight: string;
|
|
249
250
|
}, any>;
|
|
250
251
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
251
252
|
color: string;
|
|
@@ -305,6 +306,7 @@ export declare const treeProps: {
|
|
|
305
306
|
sizeMedium: string;
|
|
306
307
|
sizeLarge: string;
|
|
307
308
|
labelPadding: string;
|
|
309
|
+
labelFontWeight: string;
|
|
308
310
|
}, any>;
|
|
309
311
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
310
312
|
color: string;
|
|
@@ -364,6 +366,7 @@ export declare const treeProps: {
|
|
|
364
366
|
sizeMedium: string;
|
|
365
367
|
sizeLarge: string;
|
|
366
368
|
labelPadding: string;
|
|
369
|
+
labelFontWeight: string;
|
|
367
370
|
}, any>;
|
|
368
371
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
369
372
|
color: string;
|
|
@@ -384,7 +387,7 @@ export declare const treeProps: {
|
|
|
384
387
|
}, any>;
|
|
385
388
|
}>>>;
|
|
386
389
|
};
|
|
387
|
-
export
|
|
390
|
+
export type TreeProps = ExtractPublicPropTypes<typeof treeProps>;
|
|
388
391
|
declare const _default: import("vue").DefineComponent<{
|
|
389
392
|
readonly internalTreeSelect: BooleanConstructor;
|
|
390
393
|
readonly internalScrollable: BooleanConstructor;
|
|
@@ -512,6 +515,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
512
515
|
readonly type: BooleanConstructor;
|
|
513
516
|
readonly default: true;
|
|
514
517
|
};
|
|
518
|
+
readonly getChildren: PropType<GetChildren>;
|
|
515
519
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
516
520
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
517
521
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
@@ -562,6 +566,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
562
566
|
sizeMedium: string;
|
|
563
567
|
sizeLarge: string;
|
|
564
568
|
labelPadding: string;
|
|
569
|
+
labelFontWeight: string;
|
|
565
570
|
}, any>;
|
|
566
571
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
567
572
|
color: string;
|
|
@@ -621,6 +626,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
621
626
|
sizeMedium: string;
|
|
622
627
|
sizeLarge: string;
|
|
623
628
|
labelPadding: string;
|
|
629
|
+
labelFontWeight: string;
|
|
624
630
|
}, any>;
|
|
625
631
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
626
632
|
color: string;
|
|
@@ -680,6 +686,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
680
686
|
sizeMedium: string;
|
|
681
687
|
sizeLarge: string;
|
|
682
688
|
labelPadding: string;
|
|
689
|
+
labelFontWeight: string;
|
|
683
690
|
}, any>;
|
|
684
691
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
685
692
|
color: string;
|
|
@@ -848,6 +855,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
848
855
|
sizeMedium: string;
|
|
849
856
|
sizeLarge: string;
|
|
850
857
|
labelPadding: string;
|
|
858
|
+
labelFontWeight: string;
|
|
851
859
|
}, any>;
|
|
852
860
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
853
861
|
color: string;
|
|
@@ -1312,6 +1320,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1312
1320
|
readonly type: BooleanConstructor;
|
|
1313
1321
|
readonly default: true;
|
|
1314
1322
|
};
|
|
1323
|
+
readonly getChildren: PropType<GetChildren>;
|
|
1315
1324
|
readonly onDragenter: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
1316
1325
|
readonly onDragleave: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
1317
1326
|
readonly onDragend: PropType<MaybeArray<(e: TreeDragInfo) => void>>;
|
|
@@ -1362,6 +1371,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1362
1371
|
sizeMedium: string;
|
|
1363
1372
|
sizeLarge: string;
|
|
1364
1373
|
labelPadding: string;
|
|
1374
|
+
labelFontWeight: string;
|
|
1365
1375
|
}, any>;
|
|
1366
1376
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1367
1377
|
color: string;
|
|
@@ -1421,6 +1431,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1421
1431
|
sizeMedium: string;
|
|
1422
1432
|
sizeLarge: string;
|
|
1423
1433
|
labelPadding: string;
|
|
1434
|
+
labelFontWeight: string;
|
|
1424
1435
|
}, any>;
|
|
1425
1436
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1426
1437
|
color: string;
|
|
@@ -1480,6 +1491,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1480
1491
|
sizeMedium: string;
|
|
1481
1492
|
sizeLarge: string;
|
|
1482
1493
|
labelPadding: string;
|
|
1494
|
+
labelFontWeight: string;
|
|
1483
1495
|
}, any>;
|
|
1484
1496
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1485
1497
|
color: string;
|
package/lib/tree/src/Tree.js
CHANGED
|
@@ -24,6 +24,7 @@ const _mixins_1 = require("../../_mixins");
|
|
|
24
24
|
const _utils_1 = require("../../_utils");
|
|
25
25
|
const _internal_1 = require("../../_internal");
|
|
26
26
|
const styles_1 = require("../styles");
|
|
27
|
+
const empty_1 = require("../../empty");
|
|
27
28
|
const TreeNode_1 = __importDefault(require("./TreeNode"));
|
|
28
29
|
const utils_1 = require("./utils");
|
|
29
30
|
const keyboard_1 = require("./keyboard");
|
|
@@ -31,12 +32,15 @@ const interface_2 = require("./interface");
|
|
|
31
32
|
const MotionWrapper_1 = __importDefault(require("./MotionWrapper"));
|
|
32
33
|
const dnd_1 = require("./dnd");
|
|
33
34
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
34
|
-
const empty_1 = require("../../empty");
|
|
35
35
|
// TODO:
|
|
36
36
|
// During expanding, some node are mis-applied with :active style
|
|
37
37
|
// Async dnd has bug
|
|
38
38
|
const ITEM_SIZE = 30; // 24 + 3 + 3
|
|
39
|
-
function createTreeMateOptions(keyField, childrenField, disabledField) {
|
|
39
|
+
function createTreeMateOptions(keyField, childrenField, disabledField, getChildren) {
|
|
40
|
+
const settledGetChildren = getChildren ||
|
|
41
|
+
((node) => {
|
|
42
|
+
return node[childrenField];
|
|
43
|
+
});
|
|
40
44
|
return {
|
|
41
45
|
getIsGroup() {
|
|
42
46
|
return false;
|
|
@@ -44,9 +48,7 @@ function createTreeMateOptions(keyField, childrenField, disabledField) {
|
|
|
44
48
|
getKey(node) {
|
|
45
49
|
return node[keyField];
|
|
46
50
|
},
|
|
47
|
-
getChildren
|
|
48
|
-
return node[childrenField];
|
|
49
|
-
},
|
|
51
|
+
getChildren: settledGetChildren,
|
|
50
52
|
getDisabled(node) {
|
|
51
53
|
return !!(node[disabledField] || node.checkboxDisabled);
|
|
52
54
|
}
|
|
@@ -124,7 +126,7 @@ exports.treeProps = Object.assign(Object.assign(Object.assign(Object.assign({},
|
|
|
124
126
|
}, virtualScroll: Boolean, watchProps: Array, renderLabel: Function, renderPrefix: Function, renderSuffix: Function, nodeProps: Function, keyboard: {
|
|
125
127
|
type: Boolean,
|
|
126
128
|
default: true
|
|
127
|
-
}, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
129
|
+
}, getChildren: Function, onDragenter: [Function, Array], onDragleave: [Function, Array], onDragend: [Function, Array], onDragstart: [Function, Array], onDragover: [Function, Array], onDrop: [Function, Array], onUpdateCheckedKeys: [Function, Array], 'onUpdate:checkedKeys': [Function, Array], onUpdateSelectedKeys: [Function, Array], 'onUpdate:selectedKeys': [Function, Array] }), exports.treeSharedProps), {
|
|
128
130
|
// internal props for tree-select
|
|
129
131
|
internalTreeSelect: Boolean, internalScrollable: Boolean, internalScrollablePadding: String,
|
|
130
132
|
// use it to display
|
|
@@ -168,6 +170,21 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
168
170
|
var _a;
|
|
169
171
|
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
170
172
|
}
|
|
173
|
+
const mergedFilterRef = (0, vue_1.computed)(() => {
|
|
174
|
+
const { filter } = props;
|
|
175
|
+
if (filter)
|
|
176
|
+
return filter;
|
|
177
|
+
const { labelField } = props;
|
|
178
|
+
return (pattern, node) => {
|
|
179
|
+
if (!pattern.length)
|
|
180
|
+
return true;
|
|
181
|
+
const label = node[labelField];
|
|
182
|
+
if (typeof label === 'string') {
|
|
183
|
+
return label.toLowerCase().includes(pattern.toLowerCase());
|
|
184
|
+
}
|
|
185
|
+
return false;
|
|
186
|
+
};
|
|
187
|
+
});
|
|
171
188
|
const filteredTreeInfoRef = (0, vue_1.computed)(() => {
|
|
172
189
|
const { pattern } = props;
|
|
173
190
|
if (!pattern) {
|
|
@@ -189,7 +206,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
189
206
|
// We don't expect data source to change so we just determine it once
|
|
190
207
|
const displayTreeMateRef = (0, vue_1.computed)(() => (0, treemate_1.createTreeMate)(props.showIrrelevantNodes
|
|
191
208
|
? props.data
|
|
192
|
-
: filteredTreeInfoRef.value.filteredTree, createTreeMateOptions(props.keyField, props.childrenField, props.disabledField)));
|
|
209
|
+
: filteredTreeInfoRef.value.filteredTree, createTreeMateOptions(props.keyField, props.childrenField, props.disabledField, props.getChildren)));
|
|
193
210
|
const treeSelectInjection = (0, vue_1.inject)(interface_1.treeSelectInjectionKey, null);
|
|
194
211
|
const dataTreeMateRef = props.internalTreeSelect
|
|
195
212
|
? treeSelectInjection.dataTreeMate
|
|
@@ -289,21 +306,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
289
306
|
// }
|
|
290
307
|
return droppingNode.parent;
|
|
291
308
|
});
|
|
292
|
-
const mergedFilterRef = (0, vue_1.computed)(() => {
|
|
293
|
-
const { filter } = props;
|
|
294
|
-
if (filter)
|
|
295
|
-
return filter;
|
|
296
|
-
const { labelField } = props;
|
|
297
|
-
return (pattern, node) => {
|
|
298
|
-
if (!pattern.length)
|
|
299
|
-
return true;
|
|
300
|
-
const label = node[labelField];
|
|
301
|
-
if (typeof label === 'string') {
|
|
302
|
-
return label.toLowerCase().includes(pattern.toLowerCase());
|
|
303
|
-
}
|
|
304
|
-
return false;
|
|
305
|
-
};
|
|
306
|
-
});
|
|
307
309
|
// shallow watch data
|
|
308
310
|
(0, vue_1.watch)((0, vue_1.toRef)(props, 'data'), () => {
|
|
309
311
|
loadingKeysRef.value.clear();
|
|
@@ -365,20 +367,20 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
365
367
|
return yield Promise.resolve();
|
|
366
368
|
}
|
|
367
369
|
const { value: loadingKeys } = loadingKeysRef;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
onLoad(node.rawNode)
|
|
372
|
-
|
|
373
|
-
loadingKeys.delete(node.key);
|
|
374
|
-
resolve();
|
|
375
|
-
})
|
|
376
|
-
.catch((loadError) => {
|
|
377
|
-
console.error(loadError);
|
|
370
|
+
if (!loadingKeys.has(node.key)) {
|
|
371
|
+
loadingKeys.add(node.key);
|
|
372
|
+
try {
|
|
373
|
+
const loadResult = yield onLoad(node.rawNode);
|
|
374
|
+
if (loadResult === false) {
|
|
378
375
|
resetDragExpandState();
|
|
379
|
-
}
|
|
376
|
+
}
|
|
380
377
|
}
|
|
381
|
-
|
|
378
|
+
catch (loadError) {
|
|
379
|
+
console.error(loadError);
|
|
380
|
+
resetDragExpandState();
|
|
381
|
+
}
|
|
382
|
+
loadingKeys.delete(node.key);
|
|
383
|
+
}
|
|
382
384
|
});
|
|
383
385
|
}
|
|
384
386
|
(0, vue_1.watchEffect)(() => {
|
package/lib/tree/src/TreeNode.js
CHANGED
|
@@ -60,8 +60,10 @@ const TreeNode = (0, vue_1.defineComponent)({
|
|
|
60
60
|
const { onLoadRef: { value: onLoad } } = NTree;
|
|
61
61
|
if (onLoad) {
|
|
62
62
|
void onLoad(tmNode.rawNode)
|
|
63
|
-
.then(() => {
|
|
64
|
-
|
|
63
|
+
.then((value) => {
|
|
64
|
+
if (value !== false) {
|
|
65
|
+
NTree.handleSwitcherClick(tmNode);
|
|
66
|
+
}
|
|
65
67
|
})
|
|
66
68
|
.finally(() => {
|
|
67
69
|
NTree.loadingKeysRef.value.delete(tmNode.key);
|
|
@@ -2,7 +2,8 @@ import { CheckStrategy, TreeNode } from 'treemate';
|
|
|
2
2
|
import { HTMLAttributes, Ref, VNodeChild } from 'vue';
|
|
3
3
|
import type { MergedTheme } from '../../_mixins';
|
|
4
4
|
import type { TreeTheme } from '../styles';
|
|
5
|
-
export
|
|
5
|
+
export type Key = string | number;
|
|
6
|
+
export type OnLoad = (node: TreeOption) => Promise<unknown>;
|
|
6
7
|
export interface TreeOptionBase {
|
|
7
8
|
key?: Key;
|
|
8
9
|
label?: string;
|
|
@@ -13,20 +14,18 @@ export interface TreeOptionBase {
|
|
|
13
14
|
prefix?: () => VNodeChild;
|
|
14
15
|
suffix?: () => VNodeChild;
|
|
15
16
|
}
|
|
16
|
-
export
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
export declare type TreeOptions = TreeOption[];
|
|
17
|
+
export type TreeOption = TreeOptionBase & Record<string, unknown>;
|
|
18
|
+
export type TreeOptions = TreeOption[];
|
|
20
19
|
export interface TreeRenderProps {
|
|
21
20
|
option: TreeOption;
|
|
22
21
|
checked: boolean;
|
|
23
22
|
selected: boolean;
|
|
24
23
|
}
|
|
25
|
-
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
24
|
+
type RenderTreePart = ({ option, checked, selected }: TreeRenderProps) => VNodeChild;
|
|
25
|
+
export type RenderLabel = RenderTreePart;
|
|
26
|
+
export type RenderPrefix = RenderTreePart;
|
|
27
|
+
export type RenderSuffix = RenderTreePart;
|
|
28
|
+
export type TreeNodeProps = (info: {
|
|
30
29
|
option: TreeOption;
|
|
31
30
|
}) => HTMLAttributes & Record<string, unknown>;
|
|
32
31
|
export interface TreeDragInfo {
|
|
@@ -43,8 +42,8 @@ export interface InternalDragInfo {
|
|
|
43
42
|
event: DragEvent;
|
|
44
43
|
node: TmNode;
|
|
45
44
|
}
|
|
46
|
-
export
|
|
47
|
-
export
|
|
45
|
+
export type DropPosition = 'before' | 'inside' | 'after';
|
|
46
|
+
export type AllowDrop = (info: {
|
|
48
47
|
dropPosition: DropPosition;
|
|
49
48
|
node: TreeOption;
|
|
50
49
|
phase: 'drag' | 'drop';
|
|
@@ -54,11 +53,11 @@ export interface InternalDropInfo {
|
|
|
54
53
|
node: TmNode;
|
|
55
54
|
dropPosition: DropPosition;
|
|
56
55
|
}
|
|
57
|
-
export
|
|
56
|
+
export type RenderSwitcherIcon = (props: {
|
|
58
57
|
expanded: boolean;
|
|
59
58
|
selected: boolean;
|
|
60
59
|
}) => VNodeChild;
|
|
61
|
-
export
|
|
60
|
+
export type CheckOnClick = (option: TreeOption) => boolean;
|
|
62
61
|
export interface TreeInjection {
|
|
63
62
|
loadingKeysRef: Ref<Set<Key>>;
|
|
64
63
|
highlightKeySetRef: Ref<Set<Key> | null>;
|
|
@@ -69,7 +68,7 @@ export interface TreeInjection {
|
|
|
69
68
|
fNodesRef: Ref<Array<TreeNode<TreeOption>>>;
|
|
70
69
|
draggableRef: Ref<boolean>;
|
|
71
70
|
mergedThemeRef: Ref<MergedTheme<TreeTheme>>;
|
|
72
|
-
onLoadRef: Ref<
|
|
71
|
+
onLoadRef: Ref<OnLoad | undefined>;
|
|
73
72
|
blockLineRef: Ref<boolean>;
|
|
74
73
|
indentRef: Ref<number>;
|
|
75
74
|
draggingNodeRef: Ref<TmNode | null>;
|
|
@@ -108,7 +107,7 @@ export interface TreeInjection {
|
|
|
108
107
|
handleDrop: (info: InternalDropInfo) => void;
|
|
109
108
|
}
|
|
110
109
|
export declare const treeInjectionKey: import("vue").InjectionKey<TreeInjection>;
|
|
111
|
-
export
|
|
110
|
+
export type TmNode = TreeNode<TreeOption>;
|
|
112
111
|
export interface MotionData {
|
|
113
112
|
__motion: true;
|
|
114
113
|
height: number | undefined;
|
|
@@ -131,4 +130,5 @@ export interface TreeInst {
|
|
|
131
130
|
options: Array<TreeOption | null>;
|
|
132
131
|
};
|
|
133
132
|
}
|
|
133
|
+
export type GetChildren = (option: any) => unknown;
|
|
134
134
|
export {};
|
|
@@ -11,7 +11,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
11
11
|
loadingColor: string;
|
|
12
12
|
dropMarkColor: string;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type TreeThemeVars = ReturnType<typeof self>;
|
|
15
15
|
declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
16
16
|
fontSize: string;
|
|
17
17
|
nodeBorderRadius: string;
|
|
@@ -52,6 +52,7 @@ declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
|
52
52
|
sizeMedium: string;
|
|
53
53
|
sizeLarge: string;
|
|
54
54
|
labelPadding: string;
|
|
55
|
+
labelFontWeight: string;
|
|
55
56
|
}, any>;
|
|
56
57
|
Scrollbar: import("../../_mixins/use-theme").Theme<"Scrollbar", {
|
|
57
58
|
color: string;
|
|
@@ -72,4 +73,4 @@ declare const treeLight: import("../../_mixins/use-theme").Theme<"Tree", {
|
|
|
72
73
|
}, any>;
|
|
73
74
|
}>;
|
|
74
75
|
export default treeLight;
|
|
75
|
-
export
|
|
76
|
+
export type TreeTheme = typeof treeLight;
|
|
@@ -6,7 +6,7 @@ import { Key, TreeOption } from '../../tree/src/interface';
|
|
|
6
6
|
import type { SelectBaseOption, SelectOption } from '../../select/src/interface';
|
|
7
7
|
import { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
8
8
|
import type { OnUpdateValue, TreeSelectNodeProps, TreeSelectOption, TreeSelectRenderTag } from './interface';
|
|
9
|
-
|
|
9
|
+
type OnLoad = (node: TreeSelectOption) => Promise<void>;
|
|
10
10
|
export declare const treeSelectProps: {
|
|
11
11
|
readonly renderLabel: PropType<import("./interface").TreeSelectRenderTreePart>;
|
|
12
12
|
readonly renderPrefix: PropType<import("./interface").TreeSelectRenderTreePart>;
|
|
@@ -41,7 +41,9 @@ export declare const treeSelectProps: {
|
|
|
41
41
|
};
|
|
42
42
|
readonly disabledField: {
|
|
43
43
|
readonly type: StringConstructor;
|
|
44
|
-
readonly default: "disabled";
|
|
44
|
+
readonly default: "disabled"; /**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
45
47
|
};
|
|
46
48
|
readonly defaultExpandedKeys: {
|
|
47
49
|
readonly type: PropType<Key[]>;
|
|
@@ -166,6 +168,7 @@ export declare const treeSelectProps: {
|
|
|
166
168
|
sizeMedium: string;
|
|
167
169
|
sizeLarge: string;
|
|
168
170
|
labelPadding: string;
|
|
171
|
+
labelFontWeight: string;
|
|
169
172
|
}, any>;
|
|
170
173
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
171
174
|
color: string;
|
|
@@ -318,6 +321,7 @@ export declare const treeSelectProps: {
|
|
|
318
321
|
sizeMedium: string;
|
|
319
322
|
sizeLarge: string;
|
|
320
323
|
labelPadding: string;
|
|
324
|
+
labelFontWeight: string;
|
|
321
325
|
}, any>;
|
|
322
326
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
323
327
|
color: string;
|
|
@@ -470,6 +474,7 @@ export declare const treeSelectProps: {
|
|
|
470
474
|
sizeMedium: string;
|
|
471
475
|
sizeLarge: string;
|
|
472
476
|
labelPadding: string;
|
|
477
|
+
labelFontWeight: string;
|
|
473
478
|
}, any>;
|
|
474
479
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
475
480
|
color: string;
|
|
@@ -573,7 +578,7 @@ export declare const treeSelectProps: {
|
|
|
573
578
|
}>;
|
|
574
579
|
}>>>;
|
|
575
580
|
};
|
|
576
|
-
export
|
|
581
|
+
export type TreeSelectProps = ExtractPublicPropTypes<typeof treeSelectProps>;
|
|
577
582
|
declare const _default: import("vue").DefineComponent<{
|
|
578
583
|
readonly renderLabel: PropType<import("./interface").TreeSelectRenderTreePart>;
|
|
579
584
|
readonly renderPrefix: PropType<import("./interface").TreeSelectRenderTreePart>;
|
|
@@ -608,7 +613,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
608
613
|
};
|
|
609
614
|
readonly disabledField: {
|
|
610
615
|
readonly type: StringConstructor;
|
|
611
|
-
readonly default: "disabled";
|
|
616
|
+
readonly default: "disabled"; /**
|
|
617
|
+
* @deprecated
|
|
618
|
+
*/
|
|
612
619
|
};
|
|
613
620
|
readonly defaultExpandedKeys: {
|
|
614
621
|
readonly type: PropType<Key[]>;
|
|
@@ -733,6 +740,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
733
740
|
sizeMedium: string;
|
|
734
741
|
sizeLarge: string;
|
|
735
742
|
labelPadding: string;
|
|
743
|
+
labelFontWeight: string;
|
|
736
744
|
}, any>;
|
|
737
745
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
738
746
|
color: string;
|
|
@@ -885,6 +893,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
885
893
|
sizeMedium: string;
|
|
886
894
|
sizeLarge: string;
|
|
887
895
|
labelPadding: string;
|
|
896
|
+
labelFontWeight: string;
|
|
888
897
|
}, any>;
|
|
889
898
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
890
899
|
color: string;
|
|
@@ -1037,6 +1046,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1037
1046
|
sizeMedium: string;
|
|
1038
1047
|
sizeLarge: string;
|
|
1039
1048
|
labelPadding: string;
|
|
1049
|
+
labelFontWeight: string;
|
|
1040
1050
|
}, any>;
|
|
1041
1051
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1042
1052
|
color: string;
|
|
@@ -1362,6 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1362
1372
|
sizeMedium: string;
|
|
1363
1373
|
sizeLarge: string;
|
|
1364
1374
|
labelPadding: string;
|
|
1375
|
+
labelFontWeight: string;
|
|
1365
1376
|
}, any>;
|
|
1366
1377
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1367
1378
|
color: string;
|
|
@@ -1495,6 +1506,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1495
1506
|
sizeMedium: string;
|
|
1496
1507
|
sizeLarge: string;
|
|
1497
1508
|
labelPadding: string;
|
|
1509
|
+
labelFontWeight: string;
|
|
1498
1510
|
}, any>> | undefined;
|
|
1499
1511
|
Scrollbar?: import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Scrollbar", {
|
|
1500
1512
|
color: string;
|
|
@@ -1596,7 +1608,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1596
1608
|
};
|
|
1597
1609
|
readonly disabledField: {
|
|
1598
1610
|
readonly type: StringConstructor;
|
|
1599
|
-
readonly default: "disabled";
|
|
1611
|
+
readonly default: "disabled"; /**
|
|
1612
|
+
* @deprecated
|
|
1613
|
+
*/
|
|
1600
1614
|
};
|
|
1601
1615
|
readonly defaultExpandedKeys: {
|
|
1602
1616
|
readonly type: PropType<Key[]>;
|
|
@@ -1721,6 +1735,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1721
1735
|
sizeMedium: string;
|
|
1722
1736
|
sizeLarge: string;
|
|
1723
1737
|
labelPadding: string;
|
|
1738
|
+
labelFontWeight: string;
|
|
1724
1739
|
}, any>;
|
|
1725
1740
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1726
1741
|
color: string;
|
|
@@ -1873,6 +1888,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1873
1888
|
sizeMedium: string;
|
|
1874
1889
|
sizeLarge: string;
|
|
1875
1890
|
labelPadding: string;
|
|
1891
|
+
labelFontWeight: string;
|
|
1876
1892
|
}, any>;
|
|
1877
1893
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
1878
1894
|
color: string;
|
|
@@ -2025,6 +2041,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2025
2041
|
sizeMedium: string;
|
|
2026
2042
|
sizeLarge: string;
|
|
2027
2043
|
labelPadding: string;
|
|
2044
|
+
labelFontWeight: string;
|
|
2028
2045
|
}, any>;
|
|
2029
2046
|
Scrollbar: import("../../_mixins").Theme<"Scrollbar", {
|
|
2030
2047
|
color: string;
|
|
@@ -98,7 +98,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
98
98
|
};
|
|
99
99
|
});
|
|
100
100
|
// used to resolve selected options
|
|
101
|
-
const dataTreeMateRef = (0, vue_1.computed)(() => (0, treemate_1.createTreeMate)(props.options, (0, Tree_1.createTreeMateOptions)(props.keyField, props.childrenField, props.disabledField)));
|
|
101
|
+
const dataTreeMateRef = (0, vue_1.computed)(() => (0, treemate_1.createTreeMate)(props.options, (0, Tree_1.createTreeMateOptions)(props.keyField, props.childrenField, props.disabledField, undefined)));
|
|
102
102
|
const { value: initMergedValue } = mergedValueRef;
|
|
103
103
|
const pendingNodeKeyRef = (0, vue_1.ref)(props.checkable
|
|
104
104
|
? null
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TreeMate, TreeNode } from 'treemate';
|
|
2
2
|
import { HTMLAttributes, Ref, VNodeChild } from 'vue';
|
|
3
3
|
import type { TreeOptionBase, TreeOption } from '../../tree/src/interface';
|
|
4
|
-
export
|
|
4
|
+
export type TreeSelectOption = Omit<TreeOptionBase, 'checkboxDisabled' | 'isLeaf' | 'children'> & {
|
|
5
5
|
children?: TreeSelectOption[];
|
|
6
6
|
[k: string]: unknown;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
8
|
+
export type TreeSelectTmNode = TreeNode<TreeSelectOption>;
|
|
9
|
+
export type OnUpdateValue = (value: string & number & (string | number) & string[] & number[] & Array<string | number> & null, option: TreeSelectOption & null & TreeSelectOption[] & Array<TreeSelectOption | null>, meta: {
|
|
10
10
|
node: TreeSelectOption;
|
|
11
11
|
action: 'select' | 'unselect';
|
|
12
12
|
} | {
|
|
@@ -16,7 +16,7 @@ export declare type OnUpdateValue = (value: string & number & (string | number)
|
|
|
16
16
|
node: null;
|
|
17
17
|
action: 'clear';
|
|
18
18
|
}) => void;
|
|
19
|
-
export
|
|
19
|
+
export type OnUpdateValueImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>, meta: {
|
|
20
20
|
node: TreeSelectOption;
|
|
21
21
|
action: 'select' | 'unselect';
|
|
22
22
|
} | {
|
|
@@ -26,14 +26,14 @@ export declare type OnUpdateValueImpl = (value: string | number | (string | numb
|
|
|
26
26
|
node: null;
|
|
27
27
|
action: 'clear';
|
|
28
28
|
}) => void;
|
|
29
|
-
export
|
|
30
|
-
export
|
|
29
|
+
export type OnUpdateIndeterminateKeysImpl = (value: string | number | (string | number) | string[] | number[] | Array<string | number> | null, option: TreeSelectOption | null | Array<TreeSelectOption | null>) => void;
|
|
30
|
+
export type Value = string | number | Array<string | number> | null;
|
|
31
31
|
export interface TreeSelectInjection {
|
|
32
32
|
pendingNodeKeyRef: Ref<string | number | null>;
|
|
33
33
|
dataTreeMate: Ref<TreeMate<TreeOption>>;
|
|
34
34
|
}
|
|
35
35
|
export declare const treeSelectInjectionKey: import("vue").InjectionKey<TreeSelectInjection>;
|
|
36
|
-
export
|
|
36
|
+
export type TreeSelectRenderTag = (props: {
|
|
37
37
|
option: TreeSelectOption;
|
|
38
38
|
handleClose: () => void;
|
|
39
39
|
}) => VNodeChild;
|
|
@@ -42,11 +42,11 @@ export interface TreeSelectRenderProps {
|
|
|
42
42
|
checked: boolean;
|
|
43
43
|
selected: boolean;
|
|
44
44
|
}
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
45
|
+
export type TreeSelectRenderTreePart = ({ option, checked, selected }: TreeSelectRenderProps) => VNodeChild;
|
|
46
|
+
export type TreeSelectRenderLabel = TreeSelectRenderTreePart;
|
|
47
|
+
export type TreeSelectRenderPrefix = TreeSelectRenderTreePart;
|
|
48
|
+
export type TreeSelectRenderSuffix = TreeSelectRenderTreePart;
|
|
49
|
+
export type TreeSelectNodeProps = (info: {
|
|
50
50
|
option: TreeSelectOption;
|
|
51
51
|
}) => HTMLAttributes & Record<string, unknown>;
|
|
52
52
|
export interface TreeSelectInst {
|
|
@@ -9,7 +9,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
9
9
|
actionTextColor: string;
|
|
10
10
|
actionPadding: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type TreeSelectThemeVars = ReturnType<typeof self>;
|
|
13
13
|
declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSelect", {
|
|
14
14
|
menuPadding: string;
|
|
15
15
|
menuColor: string;
|
|
@@ -60,6 +60,7 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
60
60
|
sizeMedium: string;
|
|
61
61
|
sizeLarge: string;
|
|
62
62
|
labelPadding: string;
|
|
63
|
+
labelFontWeight: string;
|
|
63
64
|
}, any>;
|
|
64
65
|
Scrollbar: import("../../_mixins/use-theme").Theme<"Scrollbar", {
|
|
65
66
|
color: string;
|
|
@@ -163,4 +164,4 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
163
164
|
}>;
|
|
164
165
|
}>;
|
|
165
166
|
export default treeSelectLight;
|
|
166
|
-
export
|
|
167
|
+
export type TreeSelectTheme = typeof treeSelectLight;
|
|
@@ -199,7 +199,7 @@ export declare const aProps: {
|
|
|
199
199
|
ulPadding: string;
|
|
200
200
|
}, any>>>;
|
|
201
201
|
};
|
|
202
|
-
export
|
|
202
|
+
export type AProps = ExtractPublicPropTypes<typeof aProps>;
|
|
203
203
|
declare const _default: import("vue").DefineComponent<{
|
|
204
204
|
readonly theme: import("vue").PropType<import("../../_mixins").Theme<"Typography", {
|
|
205
205
|
aTextColor: string;
|