naive-ui 2.34.4 → 2.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/README.zh-CN.md +2 -0
- package/dist/index.js +47537 -44859
- package/dist/index.prod.js +2 -2
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/clear/src/Clear.js +2 -0
- package/es/_internal/close/src/Close.d.ts +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/es/_internal/icon/src/Icon.d.ts +1 -1
- package/es/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/es/_internal/icons/Add.d.ts +1 -1
- package/es/_internal/icons/ArrowBack.d.ts +1 -1
- package/es/_internal/icons/ArrowDown.d.ts +1 -1
- package/es/_internal/icons/ArrowUp.d.ts +1 -1
- package/es/_internal/icons/Attach.d.ts +1 -1
- package/es/_internal/icons/Backward.d.ts +1 -1
- package/es/_internal/icons/Cancel.d.ts +1 -1
- package/es/_internal/icons/Checkmark.d.ts +1 -1
- package/es/_internal/icons/ChevronDown.d.ts +1 -1
- package/es/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/es/_internal/icons/ChevronLeft.d.ts +1 -1
- package/es/_internal/icons/ChevronRight.d.ts +1 -1
- package/es/_internal/icons/Clear.d.ts +1 -1
- package/es/_internal/icons/Close.d.ts +1 -1
- package/es/_internal/icons/Date.d.ts +1 -1
- package/es/_internal/icons/Download.d.ts +1 -1
- package/es/_internal/icons/Empty.d.ts +1 -1
- package/es/_internal/icons/Error.d.ts +1 -1
- package/es/_internal/icons/Eye.d.ts +1 -1
- package/es/_internal/icons/EyeOff.d.ts +1 -1
- package/es/_internal/icons/FastBackward.d.ts +1 -1
- package/es/_internal/icons/FastForward.d.ts +1 -1
- package/es/_internal/icons/File.d.ts +1 -1
- package/es/_internal/icons/Filter.d.ts +1 -1
- package/es/_internal/icons/Forward.d.ts +1 -1
- package/es/_internal/icons/Info.d.ts +1 -1
- package/es/_internal/icons/More.d.ts +1 -1
- package/es/_internal/icons/Photo.d.ts +1 -1
- package/es/_internal/icons/Remove.d.ts +1 -1
- package/es/_internal/icons/ResizeSmall.d.ts +1 -1
- package/es/_internal/icons/Retry.d.ts +1 -1
- package/es/_internal/icons/RotateClockwise.d.ts +1 -1
- package/es/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/es/_internal/icons/Search.d.ts +1 -1
- package/es/_internal/icons/Success.d.ts +1 -1
- package/es/_internal/icons/Switcher.d.ts +1 -1
- package/es/_internal/icons/Time.d.ts +1 -1
- package/es/_internal/icons/To.d.ts +1 -1
- package/es/_internal/icons/Trash.d.ts +1 -1
- package/es/_internal/icons/Warning.d.ts +1 -1
- package/es/_internal/icons/ZoomIn.d.ts +1 -1
- package/es/_internal/icons/ZoomOut.d.ts +1 -1
- package/es/_internal/icons/replaceable.d.ts +1 -1
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/es/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/es/_internal/select-menu/src/SelectMenu.js +2 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/es/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/es/_internal/selection/src/Selection.d.ts +5 -2
- package/es/_internal/selection/src/Selection.js +17 -7
- package/es/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +1 -1
- package/es/_internal/wave/src/Wave.d.ts +1 -1
- package/es/_mixins/use-config.d.ts +2 -1
- package/es/_mixins/use-config.js +10 -5
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_mixins/use-style.d.ts +1 -1
- package/es/_mixins/use-style.js +1 -1
- package/es/_styles/common/_common.js +1 -1
- package/es/_styles/common/light.js +2 -2
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-collection.js +2 -0
- package/es/_utils/css/color-to-class.js +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/vue/wrapper.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +4 -4
- package/es/affix/src/Affix.js +4 -2
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/alert/src/Alert.js +7 -1
- package/es/alert/src/styles/index.cssr.js +4 -0
- package/es/anchor/src/AnchorAdapter.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.d.ts +1 -1
- package/es/anchor/src/BaseAnchor.js +3 -1
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +3 -3
- package/es/auto-complete/src/interface.d.ts +2 -1
- package/es/avatar/src/Avatar.d.ts +2 -2
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -2
- package/es/back-top/src/BackTop.d.ts +2 -2
- package/es/badge/src/Badge.d.ts +2 -2
- package/es/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/es/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/es/button/src/Button.d.ts +3 -3
- package/es/button/src/Button.js +2 -2
- package/es/button-group/src/ButtonGroup.d.ts +2 -2
- package/es/calendar/src/Calendar.d.ts +2 -2
- package/es/card/src/Card.d.ts +23 -7
- package/es/card/src/Card.js +12 -5
- package/es/carousel/src/Carousel.d.ts +7 -7
- package/es/carousel/src/Carousel.js +8 -3
- package/es/carousel/src/CarouselArrow.d.ts +2 -2
- package/es/carousel/src/CarouselContext.js +3 -1
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/carousel/src/CarouselDots.js +7 -1
- package/es/carousel/src/CarouselItem.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +3 -2
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderOption.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -2
- package/es/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +8 -8
- package/es/checkbox/src/Checkbox.js +10 -3
- package/es/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/es/checkbox/src/styles/index.cssr.js +9 -11
- package/es/code/src/Code.d.ts +2 -2
- package/es/collapse/src/Collapse.d.ts +2 -2
- package/es/collapse/src/CollapseItem.d.ts +2 -2
- package/es/collapse/src/CollapseItemContent.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/es/color-picker/src/AlphaSlider.d.ts +1 -1
- package/es/color-picker/src/ColorInput.d.ts +1 -1
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +2 -2
- package/es/color-picker/src/ColorPicker.js +6 -2
- package/es/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/es/color-picker/src/ColorPickerSwatches.js +9 -4
- package/es/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/es/color-picker/src/ColorPreview.d.ts +1 -1
- package/es/color-picker/src/HueSlider.d.ts +1 -1
- package/es/color-picker/src/Pallete.d.ts +1 -1
- package/es/components.d.ts +3 -0
- package/es/components.js +3 -0
- package/es/config-provider/src/ConfigProvider.d.ts +21 -8
- package/es/config-provider/src/ConfigProvider.js +4 -2
- package/es/config-provider/src/config.js +5 -5
- package/es/config-provider/src/internal-interface.d.ts +5 -1
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/data-table/index.d.ts +1 -1
- package/es/data-table/src/DataTable.d.ts +5 -5
- package/es/data-table/src/DataTable.js +2 -7
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/ResizeButton.d.ts +1 -1
- package/es/data-table/src/HeaderButton/ResizeButton.js +1 -0
- package/es/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/es/data-table/src/MainTable.d.ts +1 -1
- package/es/data-table/src/MainTable.js +1 -0
- package/es/data-table/src/TableParts/Body.d.ts +5 -6
- package/es/data-table/src/TableParts/Body.js +22 -15
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/es/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.js +5 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/es/data-table/src/TableParts/ExpandTrigger.js +3 -1
- package/es/data-table/src/TableParts/Header.d.ts +1 -3
- package/es/data-table/src/TableParts/Header.js +6 -12
- package/es/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/es/data-table/src/interface.d.ts +3 -5
- package/es/data-table/src/styles/index.cssr.js +2 -0
- package/es/data-table/src/use-scroll.d.ts +1 -2
- package/es/data-table/src/use-scroll.js +21 -13
- package/es/date-picker/src/DatePicker.d.ts +2 -2
- package/es/date-picker/src/panel/date.d.ts +4 -4
- package/es/date-picker/src/panel/date.js +3 -1
- package/es/date-picker/src/panel/daterange.d.ts +4 -4
- package/es/date-picker/src/panel/daterange.js +10 -2
- package/es/date-picker/src/panel/datetime.d.ts +4 -4
- package/es/date-picker/src/panel/datetime.js +3 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +4 -4
- package/es/date-picker/src/panel/datetimerange.js +16 -4
- package/es/date-picker/src/panel/month.d.ts +4 -4
- package/es/date-picker/src/panel/month.js +4 -1
- package/es/date-picker/src/panel/monthrange.d.ts +4 -4
- package/es/date-picker/src/panel/panelHeader.d.ts +722 -752
- package/es/date-picker/src/panel/use-calendar.d.ts +3 -3
- package/es/date-picker/src/panel/use-calendar.js +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
- package/es/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/es/date-picker/src/styles/index.cssr.js +1 -0
- package/es/date-picker/src/utils.js +1 -6
- package/es/date-picker/styles/_common.js +1 -1
- package/es/descriptions/src/Descriptions.d.ts +8 -2
- package/es/descriptions/src/Descriptions.js +28 -8
- package/es/descriptions/src/DescriptionsItem.d.ts +7 -1
- package/es/descriptions/src/DescriptionsItem.js +2 -0
- package/es/dialog/src/Dialog.d.ts +2 -2
- package/es/dialog/src/Dialog.js +6 -2
- package/es/dialog/src/DialogEnvironment.d.ts +2 -2
- package/es/dialog/src/DialogProvider.d.ts +4 -4
- package/es/dialog/src/DialogProvider.js +3 -1
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/divider/src/Divider.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +15 -2
- package/es/drawer/src/Drawer.js +2 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/es/drawer/src/DrawerBodyWrapper.js +25 -1
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +20 -2
- package/es/dropdown/src/Dropdown.js +1 -1
- package/es/dropdown/src/DropdownDivider.d.ts +1 -1
- package/es/dropdown/src/DropdownGroup.d.ts +1 -1
- package/es/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.js +4 -1
- package/es/dropdown/src/DropdownOption.d.ts +6 -5
- package/es/dropdown/src/DropdownOption.js +2 -4
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +5 -2
- package/es/dynamic-input/src/DynamicInput.js +21 -9
- package/es/dynamic-input/src/InputPreset.d.ts +1 -1
- package/es/dynamic-input/src/PairPreset.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +8 -2
- package/es/dynamic-tags/src/DynamicTags.js +6 -4
- package/es/element/src/Element.d.ts +2 -2
- package/es/ellipsis/index.d.ts +1 -0
- package/es/ellipsis/index.js +1 -0
- package/es/ellipsis/src/Ellipsis.d.ts +3 -1
- package/es/ellipsis/src/Ellipsis.js +5 -4
- package/es/ellipsis/src/PerformantEllipsis.d.ts +164 -0
- package/es/ellipsis/src/PerformantEllipsis.js +52 -0
- package/es/empty/src/Empty.d.ts +2 -2
- package/es/equation/index.d.ts +1 -0
- package/es/equation/src/Equation.d.ts +6 -4
- package/es/form/src/Form.d.ts +2 -2
- package/es/form/src/Form.js +3 -1
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItemCol.d.ts +1 -1
- package/es/form/src/FormItemGridItem.d.ts +1 -1
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/utils.d.ts +1 -1
- package/es/global-style/src/GlobalStyle.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +2 -2
- package/es/grid/src/Grid.js +6 -3
- package/es/grid/src/GridItem.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +2 -2
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/image/src/Image.d.ts +8 -2
- package/es/image/src/ImageGroup.d.ts +8 -2
- package/es/image/src/ImageGroup.js +8 -2
- package/es/image/src/ImagePreview.d.ts +8 -3
- package/es/image/src/ImagePreview.js +10 -1
- package/es/image/src/icons.d.ts +1 -0
- package/es/image/src/icons.js +2 -0
- package/es/image/src/interface.d.ts +7 -5
- package/es/image/src/interface.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/input/src/Input.d.ts +19 -9
- package/es/input/src/Input.js +30 -8
- package/es/input/src/InputGroup.d.ts +2 -2
- package/es/input/src/InputGroupLabel.d.ts +2 -2
- package/es/input/src/WordCount.d.ts +1 -1
- package/es/input/src/styles/input.cssr.js +2 -1
- package/es/input-number/src/InputNumber.d.ts +3 -2
- package/es/input-number/src/InputNumber.js +2 -1
- package/es/input-number/src/interface.d.ts +1 -0
- package/es/layout/src/Layout.d.ts +10 -4
- package/es/layout/src/Layout.js +8 -1
- package/es/layout/src/LayoutContent.d.ts +4 -2
- package/es/layout/src/LayoutFooter.d.ts +2 -2
- package/es/layout/src/LayoutHeader.d.ts +2 -2
- package/es/layout/src/LayoutSider.d.ts +11 -2
- package/es/layout/src/LayoutSider.js +12 -3
- package/es/layout/src/ToggleBar.d.ts +1 -1
- package/es/layout/src/ToggleButton.d.ts +1 -1
- package/es/legacy-grid/src/Col.d.ts +1 -1
- package/es/legacy-grid/src/Row.d.ts +2 -2
- package/es/legacy-grid/src/styles/index.cssr.js +2 -3
- package/es/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- package/es/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/es/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/es/legacy-transfer/src/TransferList.d.ts +1 -1
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/list/src/List.d.ts +2 -2
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +4 -2
- package/es/loading-bar/src/LoadingBar.js +21 -12
- package/es/loading-bar/src/LoadingBarProvider.d.ts +4 -1
- package/es/loading-bar/src/LoadingBarProvider.js +2 -2
- package/es/locales/common/arDZ.js +1 -0
- package/es/locales/common/deDE.js +1 -0
- package/es/locales/common/enGB.js +1 -0
- package/es/locales/common/enUS.d.ts +1 -0
- package/es/locales/common/enUS.js +1 -0
- package/es/locales/common/eo.js +1 -0
- package/es/locales/common/esAR.js +1 -0
- package/es/locales/common/faIR.js +1 -0
- package/es/locales/common/frFR.js +2 -1
- package/es/locales/common/idID.js +1 -0
- package/es/locales/common/itIT.js +1 -0
- package/es/locales/common/jaJP.js +1 -0
- package/es/locales/common/koKR.js +1 -0
- package/es/locales/common/nbNO.js +1 -0
- package/es/locales/common/nlNL.js +1 -0
- package/es/locales/common/plPL.js +1 -0
- package/es/locales/common/ptBR.js +15 -17
- package/es/locales/common/ruRU.js +1 -0
- package/es/locales/common/skSK.js +1 -0
- package/es/locales/common/svSE.d.ts +3 -0
- package/es/locales/common/svSE.js +121 -0
- package/es/locales/common/thTH.js +1 -0
- package/es/locales/common/trTR.js +1 -0
- package/es/locales/common/ukUA.js +1 -0
- package/es/locales/common/viVN.js +1 -0
- package/es/locales/common/zhCN.js +1 -0
- package/es/locales/common/zhTW.js +18 -17
- package/es/locales/date/svSE.d.ts +3 -0
- package/es/locales/date/svSE.js +6 -0
- package/es/locales/index.d.ts +2 -0
- package/es/locales/index.js +2 -0
- package/es/log/src/Log.d.ts +11 -11
- package/es/log/src/Log.js +12 -12
- package/es/log/src/LogLine.d.ts +1 -1
- package/es/log/src/LogLoader.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +4 -4
- package/es/mention/src/utils.js +4 -4
- package/es/menu/src/Menu.d.ts +32 -15
- package/es/menu/src/Menu.js +101 -7
- package/es/menu/src/MenuDivider.d.ts +1 -1
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOptionContent.d.ts +4 -1
- package/es/menu/src/MenuOptionContent.js +7 -2
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +24 -13
- package/es/menu/src/Submenu.js +9 -8
- package/es/menu/src/context.d.ts +2 -2
- package/es/menu/src/interface.d.ts +1 -0
- package/es/menu/src/styles/index.cssr.js +8 -4
- package/es/menu/src/use-menu-child.js +5 -5
- package/es/message/src/Message.d.ts +2 -2
- package/es/message/src/MessageEnvironment.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +9 -6
- package/es/message/src/MessageProvider.js +3 -2
- package/es/modal/src/BodyWrapper.d.ts +12 -4
- package/es/modal/src/Modal.d.ts +18 -6
- package/es/modal/src/presetProps.d.ts +5 -1
- package/es/notification/src/Notification.d.ts +1 -1
- package/es/notification/src/NotificationContainer.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.js +1 -1
- package/es/notification/src/NotificationProvider.d.ts +5 -2
- package/es/notification/src/NotificationProvider.js +2 -2
- package/es/number-animation/src/NumberAnimation.d.ts +1 -1
- package/es/page-header/src/PageHeader.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +2 -2
- package/es/pagination/src/Pagination.js +3 -1
- package/es/popconfirm/src/Popconfirm.d.ts +22 -3
- package/es/popconfirm/src/Popconfirm.js +13 -5
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +25 -1
- package/es/popover/src/Popover.js +10 -4
- package/es/popover/src/PopoverBody.d.ts +23 -2
- package/es/popover/src/PopoverBody.js +26 -10
- package/es/popover/src/interface.d.ts +4 -1
- package/es/popselect/src/Popselect.d.ts +19 -1
- package/es/popselect/src/Popselect.js +2 -1
- package/es/popselect/src/PopselectPanel.d.ts +2 -2
- package/es/popselect/src/PopselectPanel.js +1 -0
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/Line.js +1 -3
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +3 -3
- package/es/qr-code/index.d.ts +2 -0
- package/es/qr-code/index.js +1 -0
- package/es/qr-code/src/QrCode.d.ts +154 -0
- package/es/qr-code/src/QrCode.js +146 -0
- package/es/qr-code/src/qrcodegen.d.ts +94 -0
- package/es/qr-code/src/qrcodegen.js +948 -0
- package/es/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/es/qr-code/src/styles/index.cssr.js +8 -0
- package/es/qr-code/styles/dark.d.ts +3 -0
- package/es/qr-code/styles/dark.js +11 -0
- package/es/qr-code/styles/index.d.ts +3 -0
- package/es/qr-code/styles/index.js +2 -0
- package/es/qr-code/styles/light.d.ts +9 -0
- package/es/qr-code/styles/light.js +12 -0
- package/es/radio/src/Radio.d.ts +173 -34
- package/es/radio/src/Radio.js +3 -3
- package/es/radio/src/RadioButton.d.ts +3 -3
- package/es/radio/src/RadioButton.js +3 -3
- package/es/radio/src/RadioGroup.d.ts +3 -2
- package/es/radio/src/RadioGroup.js +2 -1
- package/es/radio/src/styles/radio-group.cssr.js +1 -0
- package/es/radio/src/use-radio.d.ts +3 -3
- package/es/radio/src/use-radio.js +1 -1
- package/es/rate/src/Rate.d.ts +2 -2
- package/es/result/src/Result.d.ts +3 -3
- package/es/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/scrollbar/src/Scrollbar.js +2 -0
- package/es/select/src/Select.d.ts +7 -4
- package/es/select/src/Select.js +17 -3
- package/es/select/src/interface.d.ts +2 -0
- package/es/skeleton/src/Skeleton.d.ts +2 -2
- package/es/skeleton/src/Skeleton.js +4 -7
- package/es/slider/src/Slider.d.ts +8 -2
- package/es/slider/src/Slider.js +19 -4
- package/es/slider/src/utils.d.ts +2 -2
- package/es/slider/src/utils.js +6 -4
- package/es/space/src/Space.d.ts +5 -2
- package/es/space/src/Space.js +3 -3
- package/es/spin/src/Spin.d.ts +13 -4
- package/es/spin/src/Spin.js +26 -7
- package/es/split/index.d.ts +2 -0
- package/es/split/index.js +1 -0
- package/es/split/src/Split.d.ts +135 -0
- package/es/split/src/Split.js +145 -0
- package/es/split/src/styles/index.cssr.d.ts +2 -0
- package/es/split/src/styles/index.cssr.js +25 -0
- package/es/split/styles/dark.d.ts +3 -0
- package/es/split/styles/dark.js +6 -0
- package/es/split/styles/index.d.ts +3 -0
- package/es/split/styles/index.js +2 -0
- package/es/split/styles/light.d.ts +9 -0
- package/es/split/styles/light.js +13 -0
- package/es/statistic/src/Statistic.d.ts +2 -2
- package/es/steps/src/Step.d.ts +2 -2
- package/es/steps/src/Steps.d.ts +3 -3
- package/es/steps/src/styles/index.cssr.js +1 -0
- package/es/switch/src/Switch.d.ts +2 -2
- package/es/table/src/Table.d.ts +2 -2
- package/es/table/src/Tbody.d.ts +1 -1
- package/es/table/src/Td.d.ts +1 -1
- package/es/table/src/Th.d.ts +1 -1
- package/es/table/src/Thead.d.ts +1 -1
- package/es/table/src/Tr.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tab.js +3 -1
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +13 -13
- package/es/tabs/src/Tabs.js +15 -2
- package/es/tabs/src/styles/index.cssr.js +12 -2
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/es/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.d.ts +3 -3
- package/es/themes/dark.js +5 -1
- package/es/themes/light.js +5 -1
- package/es/thing/src/Thing.d.ts +7 -1
- package/es/thing/src/Thing.js +13 -4
- package/es/time/src/Time.d.ts +1 -1
- package/es/time/src/Time.js +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/PanelCol.d.ts +1 -1
- package/es/time-picker/src/PanelCol.js +5 -1
- package/es/time-picker/src/TimePicker.d.ts +2 -2
- package/es/time-picker/src/TimePicker.js +1 -1
- package/es/timeline/src/Timeline.d.ts +1 -1
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +19 -1
- package/es/transfer/src/Transfer.d.ts +8 -2
- package/es/transfer/src/Transfer.js +2 -2
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +5 -1
- package/es/transfer/src/TransferHeader.js +6 -2
- package/es/transfer/src/TransferList.d.ts +1 -1
- package/es/transfer/src/TransferListItem.d.ts +1 -1
- package/es/tree/index.d.ts +1 -0
- package/es/tree/index.js +1 -0
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +59 -5
- package/es/tree/src/Tree.js +32 -19
- package/es/tree/src/TreeNode.d.ts +6 -2
- package/es/tree/src/TreeNode.js +72 -25
- package/es/tree/src/TreeNodeCheckbox.d.ts +13 -1
- package/es/tree/src/TreeNodeCheckbox.js +9 -8
- package/es/tree/src/TreeNodeContent.d.ts +1 -1
- package/es/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/es/tree/src/TreeNodeSwitcher.js +12 -6
- package/es/tree/src/interface.d.ts +2 -0
- package/es/tree/src/styles/index.cssr.js +47 -51
- package/es/tree/src/utils.d.ts +1 -0
- package/es/tree/src/utils.js +12 -0
- package/es/tree/styles/light.d.ts +8 -0
- package/es/tree/styles/light.js +6 -2
- package/es/tree-select/src/TreeSelect.d.ts +49 -3
- package/es/tree-select/src/TreeSelect.js +5 -3
- package/es/tree-select/src/interface.d.ts +2 -0
- package/es/tree-select/styles/light.d.ts +4 -0
- package/es/typography/src/a.d.ts +2 -2
- package/es/typography/src/blockquote.d.ts +2 -2
- package/es/typography/src/create-header.d.ts +2 -2
- package/es/typography/src/headers.d.ts +12 -12
- package/es/typography/src/hr.d.ts +2 -2
- package/es/typography/src/li.d.ts +1 -1
- package/es/typography/src/ol.d.ts +2 -2
- package/es/typography/src/p.d.ts +2 -2
- package/es/typography/src/text.d.ts +2 -2
- package/es/typography/src/ul.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +11 -5
- package/es/upload/src/Upload.js +8 -3
- package/es/upload/src/UploadDragger.d.ts +1 -1
- package/es/upload/src/UploadFile.d.ts +2 -2
- package/es/upload/src/UploadFileList.d.ts +1 -1
- package/es/upload/src/UploadFileList.js +3 -2
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +1 -1
- package/es/upload/src/UploadTrigger.js +3 -2
- package/es/upload/src/interface.d.ts +5 -3
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +102 -0
- package/es/watermark/src/Watermark.d.ts +1 -1
- package/es/watermark/src/Watermark.js +7 -0
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/clear/src/Clear.js +2 -0
- package/lib/_internal/close/src/Close.d.ts +1 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +1 -1
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.js +1 -0
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/lib/_internal/icon/src/Icon.d.ts +1 -1
- package/lib/_internal/icon-switch-transition/src/IconSwitchTransition.d.ts +1 -1
- package/lib/_internal/icons/Add.d.ts +1 -1
- package/lib/_internal/icons/ArrowBack.d.ts +1 -1
- package/lib/_internal/icons/ArrowDown.d.ts +1 -1
- package/lib/_internal/icons/ArrowUp.d.ts +1 -1
- package/lib/_internal/icons/Attach.d.ts +1 -1
- package/lib/_internal/icons/Backward.d.ts +1 -1
- package/lib/_internal/icons/Cancel.d.ts +1 -1
- package/lib/_internal/icons/Checkmark.d.ts +1 -1
- package/lib/_internal/icons/ChevronDown.d.ts +1 -1
- package/lib/_internal/icons/ChevronDownFilled.d.ts +1 -1
- package/lib/_internal/icons/ChevronLeft.d.ts +1 -1
- package/lib/_internal/icons/ChevronRight.d.ts +1 -1
- package/lib/_internal/icons/Clear.d.ts +1 -1
- package/lib/_internal/icons/Close.d.ts +1 -1
- package/lib/_internal/icons/Date.d.ts +1 -1
- package/lib/_internal/icons/Download.d.ts +1 -1
- package/lib/_internal/icons/Empty.d.ts +1 -1
- package/lib/_internal/icons/Error.d.ts +1 -1
- package/lib/_internal/icons/Eye.d.ts +1 -1
- package/lib/_internal/icons/EyeOff.d.ts +1 -1
- package/lib/_internal/icons/FastBackward.d.ts +1 -1
- package/lib/_internal/icons/FastForward.d.ts +1 -1
- package/lib/_internal/icons/File.d.ts +1 -1
- package/lib/_internal/icons/Filter.d.ts +1 -1
- package/lib/_internal/icons/Forward.d.ts +1 -1
- package/lib/_internal/icons/Info.d.ts +1 -1
- package/lib/_internal/icons/More.d.ts +1 -1
- package/lib/_internal/icons/Photo.d.ts +1 -1
- package/lib/_internal/icons/Remove.d.ts +1 -1
- package/lib/_internal/icons/ResizeSmall.d.ts +1 -1
- package/lib/_internal/icons/Retry.d.ts +1 -1
- package/lib/_internal/icons/RotateClockwise.d.ts +1 -1
- package/lib/_internal/icons/RotateCounterclockwise.d.ts +1 -1
- package/lib/_internal/icons/Search.d.ts +1 -1
- package/lib/_internal/icons/Success.d.ts +1 -1
- package/lib/_internal/icons/Switcher.d.ts +1 -1
- package/lib/_internal/icons/Time.d.ts +1 -1
- package/lib/_internal/icons/To.d.ts +1 -1
- package/lib/_internal/icons/Trash.d.ts +1 -1
- package/lib/_internal/icons/Warning.d.ts +1 -1
- package/lib/_internal/icons/ZoomIn.d.ts +1 -1
- package/lib/_internal/icons/ZoomOut.d.ts +1 -1
- package/lib/_internal/icons/replaceable.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/menu-mask/src/MenuMask.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/_internal/scrollbar/src/Scrollbar.js +11 -6
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +1 -0
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +4 -4
- package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -1
- package/lib/_internal/select-menu/src/styles/index.cssr.js +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +5 -2
- package/lib/_internal/selection/src/Selection.js +17 -7
- package/lib/_internal/slot-machine/src/SlotMachine.d.ts +1 -1
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
- package/lib/_internal/wave/src/Wave.d.ts +1 -1
- package/lib/_mixins/use-config.d.ts +2 -1
- package/lib/_mixins/use-config.js +11 -5
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_mixins/use-style.d.ts +1 -1
- package/lib/_mixins/use-style.js +1 -1
- package/lib/_styles/common/_common.js +1 -1
- package/lib/_styles/common/light.js +2 -2
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-collection.js +2 -0
- package/lib/_utils/css/color-to-class.js +1 -1
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/vue/wrapper.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +4 -4
- package/lib/affix/src/Affix.js +4 -2
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/alert/src/Alert.js +7 -1
- package/lib/alert/src/styles/index.cssr.js +4 -0
- package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.d.ts +1 -1
- package/lib/anchor/src/BaseAnchor.js +3 -1
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
- package/lib/auto-complete/src/interface.d.ts +2 -1
- package/lib/avatar/src/Avatar.d.ts +2 -2
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -2
- package/lib/back-top/src/BackTop.d.ts +2 -2
- package/lib/badge/src/Badge.d.ts +2 -2
- package/lib/breadcrumb/src/Breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/src/BreadcrumbItem.d.ts +1 -1
- package/lib/button/src/Button.d.ts +3 -3
- package/lib/button/src/Button.js +2 -2
- package/lib/button-group/src/ButtonGroup.d.ts +2 -2
- package/lib/calendar/src/Calendar.d.ts +2 -2
- package/lib/card/src/Card.d.ts +23 -7
- package/lib/card/src/Card.js +12 -5
- package/lib/carousel/src/Carousel.d.ts +7 -7
- package/lib/carousel/src/Carousel.js +8 -3
- package/lib/carousel/src/CarouselArrow.d.ts +2 -2
- package/lib/carousel/src/CarouselContext.js +3 -1
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/carousel/src/CarouselDots.js +7 -1
- package/lib/carousel/src/CarouselItem.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +3 -2
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderOption.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -2
- package/lib/cascader/src/CascaderSubmenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +8 -8
- package/lib/checkbox/src/Checkbox.js +9 -2
- package/lib/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/lib/checkbox/src/styles/index.cssr.js +9 -11
- package/lib/code/src/Code.d.ts +2 -2
- package/lib/collapse/src/Collapse.d.ts +2 -2
- package/lib/collapse/src/CollapseItem.d.ts +2 -2
- package/lib/collapse/src/CollapseItemContent.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +2 -2
- package/lib/color-picker/src/AlphaSlider.d.ts +1 -1
- package/lib/color-picker/src/ColorInput.d.ts +1 -1
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +2 -2
- package/lib/color-picker/src/ColorPicker.js +6 -2
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +1 -1
- package/lib/color-picker/src/ColorPickerSwatches.js +9 -4
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +1 -1
- package/lib/color-picker/src/ColorPreview.d.ts +1 -1
- package/lib/color-picker/src/HueSlider.d.ts +1 -1
- package/lib/color-picker/src/Pallete.d.ts +1 -1
- package/lib/components.d.ts +3 -0
- package/lib/components.js +3 -0
- package/lib/config-provider/src/ConfigProvider.d.ts +21 -8
- package/lib/config-provider/src/ConfigProvider.js +4 -2
- package/lib/config-provider/src/config.js +5 -5
- package/lib/config-provider/src/internal-interface.d.ts +5 -1
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/data-table/index.d.ts +1 -1
- package/lib/data-table/src/DataTable.d.ts +5 -5
- package/lib/data-table/src/DataTable.js +1 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/ResizeButton.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/ResizeButton.js +1 -0
- package/lib/data-table/src/HeaderButton/SortButton.d.ts +1 -1
- package/lib/data-table/src/MainTable.d.ts +1 -1
- package/lib/data-table/src/MainTable.js +1 -0
- package/lib/data-table/src/TableParts/Body.d.ts +5 -6
- package/lib/data-table/src/TableParts/Body.js +22 -15
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +1 -1
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +1 -1
- package/lib/data-table/src/TableParts/Cell.d.ts +1 -1
- package/lib/data-table/src/TableParts/Cell.js +9 -2
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +1 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.js +3 -1
- package/lib/data-table/src/TableParts/Header.d.ts +1 -3
- package/lib/data-table/src/TableParts/Header.js +6 -12
- package/lib/data-table/src/TableParts/SelectionMenu.d.ts +1 -1
- package/lib/data-table/src/interface.d.ts +3 -5
- package/lib/data-table/src/styles/index.cssr.js +2 -0
- package/lib/data-table/src/use-scroll.d.ts +1 -2
- package/lib/data-table/src/use-scroll.js +21 -13
- package/lib/date-picker/src/DatePicker.d.ts +2 -2
- package/lib/date-picker/src/panel/date.d.ts +4 -4
- package/lib/date-picker/src/panel/date.js +3 -1
- package/lib/date-picker/src/panel/daterange.d.ts +4 -4
- package/lib/date-picker/src/panel/daterange.js +10 -2
- package/lib/date-picker/src/panel/datetime.d.ts +4 -4
- package/lib/date-picker/src/panel/datetime.js +3 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +4 -4
- package/lib/date-picker/src/panel/datetimerange.js +16 -4
- package/lib/date-picker/src/panel/month.d.ts +4 -4
- package/lib/date-picker/src/panel/month.js +4 -1
- package/lib/date-picker/src/panel/monthrange.d.ts +4 -4
- package/lib/date-picker/src/panel/panelHeader.d.ts +722 -752
- package/lib/date-picker/src/panel/use-calendar.d.ts +3 -3
- package/lib/date-picker/src/panel/use-calendar.js +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +3 -3
- package/lib/date-picker/src/panel/use-dual-calendar.js +4 -4
- package/lib/date-picker/src/styles/index.cssr.js +1 -0
- package/lib/date-picker/src/utils.js +1 -6
- package/lib/date-picker/styles/_common.js +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +8 -2
- package/lib/descriptions/src/Descriptions.js +28 -8
- package/lib/descriptions/src/DescriptionsItem.d.ts +7 -1
- package/lib/descriptions/src/DescriptionsItem.js +2 -0
- package/lib/dialog/src/Dialog.d.ts +2 -2
- package/lib/dialog/src/Dialog.js +6 -2
- package/lib/dialog/src/DialogEnvironment.d.ts +2 -2
- package/lib/dialog/src/DialogProvider.d.ts +4 -4
- package/lib/dialog/src/DialogProvider.js +3 -1
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/divider/src/Divider.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +15 -2
- package/lib/drawer/src/Drawer.js +2 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/lib/drawer/src/DrawerBodyWrapper.js +25 -1
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +20 -2
- package/lib/dropdown/src/Dropdown.js +1 -1
- package/lib/dropdown/src/DropdownDivider.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
- package/lib/dropdown/src/DropdownGroupHeader.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.js +4 -1
- package/lib/dropdown/src/DropdownOption.d.ts +6 -5
- package/lib/dropdown/src/DropdownOption.js +2 -4
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +5 -2
- package/lib/dynamic-input/src/DynamicInput.js +21 -9
- package/lib/dynamic-input/src/InputPreset.d.ts +1 -1
- package/lib/dynamic-input/src/PairPreset.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +8 -2
- package/lib/dynamic-tags/src/DynamicTags.js +6 -4
- package/lib/element/src/Element.d.ts +2 -2
- package/lib/ellipsis/index.d.ts +1 -0
- package/lib/ellipsis/index.js +3 -1
- package/lib/ellipsis/src/Ellipsis.d.ts +3 -1
- package/lib/ellipsis/src/Ellipsis.js +5 -2
- package/lib/ellipsis/src/PerformantEllipsis.d.ts +164 -0
- package/lib/ellipsis/src/PerformantEllipsis.js +81 -0
- package/lib/empty/src/Empty.d.ts +2 -2
- package/lib/equation/index.d.ts +1 -0
- package/lib/equation/src/Equation.d.ts +6 -4
- package/lib/form/src/Form.d.ts +2 -2
- package/lib/form/src/Form.js +3 -1
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +1 -1
- package/lib/form/src/FormItemGridItem.d.ts +1 -1
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/global-style/src/GlobalStyle.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +2 -2
- package/lib/grid/src/Grid.js +6 -3
- package/lib/grid/src/GridItem.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +2 -2
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/image/src/Image.d.ts +8 -2
- package/lib/image/src/ImageGroup.d.ts +8 -2
- package/lib/image/src/ImageGroup.js +8 -2
- package/lib/image/src/ImagePreview.d.ts +8 -3
- package/lib/image/src/ImagePreview.js +9 -0
- package/lib/image/src/icons.d.ts +1 -0
- package/lib/image/src/icons.js +3 -1
- package/lib/image/src/interface.d.ts +7 -5
- package/lib/image/src/interface.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -1
- package/lib/input/src/Input.d.ts +19 -9
- package/lib/input/src/Input.js +30 -8
- package/lib/input/src/InputGroup.d.ts +2 -2
- package/lib/input/src/InputGroupLabel.d.ts +2 -2
- package/lib/input/src/WordCount.d.ts +1 -1
- package/lib/input/src/styles/input.cssr.js +2 -1
- package/lib/input-number/src/InputNumber.d.ts +3 -2
- package/lib/input-number/src/InputNumber.js +2 -1
- package/lib/input-number/src/interface.d.ts +1 -0
- package/lib/layout/src/Layout.d.ts +10 -4
- package/lib/layout/src/Layout.js +8 -1
- package/lib/layout/src/LayoutContent.d.ts +4 -2
- package/lib/layout/src/LayoutFooter.d.ts +2 -2
- package/lib/layout/src/LayoutHeader.d.ts +2 -2
- package/lib/layout/src/LayoutSider.d.ts +11 -2
- package/lib/layout/src/LayoutSider.js +12 -3
- package/lib/layout/src/ToggleBar.d.ts +1 -1
- package/lib/layout/src/ToggleButton.d.ts +1 -1
- package/lib/legacy-grid/src/Col.d.ts +1 -1
- package/lib/legacy-grid/src/Row.d.ts +2 -2
- package/lib/legacy-grid/src/styles/index.cssr.js +2 -3
- package/lib/legacy-grid/src/styles/rtl.cssr.js +2 -3
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- package/lib/legacy-transfer/src/TransferFilter.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferHeader.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferList.d.ts +1 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/list/src/List.d.ts +2 -2
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +4 -2
- package/lib/loading-bar/src/LoadingBar.js +21 -12
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +4 -1
- package/lib/loading-bar/src/LoadingBarProvider.js +2 -2
- package/lib/locales/common/arDZ.js +1 -0
- package/lib/locales/common/deDE.js +1 -0
- package/lib/locales/common/enGB.js +1 -0
- package/lib/locales/common/enUS.d.ts +1 -0
- package/lib/locales/common/enUS.js +1 -0
- package/lib/locales/common/eo.js +1 -0
- package/lib/locales/common/esAR.js +1 -0
- package/lib/locales/common/faIR.js +1 -0
- package/lib/locales/common/frFR.js +2 -1
- package/lib/locales/common/idID.js +1 -0
- package/lib/locales/common/itIT.js +1 -0
- package/lib/locales/common/jaJP.js +1 -0
- package/lib/locales/common/koKR.js +1 -0
- package/lib/locales/common/nbNO.js +1 -0
- package/lib/locales/common/nlNL.js +1 -0
- package/lib/locales/common/plPL.js +1 -0
- package/lib/locales/common/ptBR.js +15 -17
- package/lib/locales/common/ruRU.js +1 -0
- package/lib/locales/common/skSK.js +1 -0
- package/lib/locales/common/svSE.d.ts +3 -0
- package/lib/locales/common/svSE.js +123 -0
- package/lib/locales/common/thTH.js +1 -0
- package/lib/locales/common/trTR.js +1 -0
- package/lib/locales/common/ukUA.js +1 -0
- package/lib/locales/common/viVN.js +1 -0
- package/lib/locales/common/zhCN.js +1 -0
- package/lib/locales/common/zhTW.js +18 -17
- package/lib/locales/date/svSE.d.ts +3 -0
- package/lib/locales/date/svSE.js +11 -0
- package/lib/locales/index.d.ts +2 -0
- package/lib/locales/index.js +6 -1
- package/lib/log/src/Log.d.ts +11 -11
- package/lib/log/src/Log.js +12 -12
- package/lib/log/src/LogLine.d.ts +1 -1
- package/lib/log/src/LogLoader.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +4 -4
- package/lib/mention/src/utils.js +4 -4
- package/lib/menu/src/Menu.d.ts +32 -15
- package/lib/menu/src/Menu.js +101 -7
- package/lib/menu/src/MenuDivider.d.ts +1 -1
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOptionContent.d.ts +4 -1
- package/lib/menu/src/MenuOptionContent.js +7 -2
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +24 -13
- package/lib/menu/src/Submenu.js +9 -8
- package/lib/menu/src/context.d.ts +2 -2
- package/lib/menu/src/interface.d.ts +1 -0
- package/lib/menu/src/styles/index.cssr.js +8 -4
- package/lib/menu/src/use-menu-child.js +5 -5
- package/lib/message/src/Message.d.ts +2 -2
- package/lib/message/src/MessageEnvironment.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +9 -6
- package/lib/message/src/MessageProvider.js +3 -2
- package/lib/modal/src/BodyWrapper.d.ts +12 -4
- package/lib/modal/src/Modal.d.ts +18 -6
- package/lib/modal/src/presetProps.d.ts +5 -1
- package/lib/notification/src/Notification.d.ts +1 -1
- package/lib/notification/src/NotificationContainer.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.js +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +5 -2
- package/lib/notification/src/NotificationProvider.js +2 -2
- package/lib/number-animation/src/NumberAnimation.d.ts +1 -1
- package/lib/page-header/src/PageHeader.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +2 -2
- package/lib/pagination/src/Pagination.js +3 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +22 -3
- package/lib/popconfirm/src/Popconfirm.js +13 -5
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +25 -1
- package/lib/popover/src/Popover.js +10 -4
- package/lib/popover/src/PopoverBody.d.ts +23 -2
- package/lib/popover/src/PopoverBody.js +26 -10
- package/lib/popover/src/interface.d.ts +4 -1
- package/lib/popselect/src/Popselect.d.ts +19 -1
- package/lib/popselect/src/Popselect.js +2 -1
- package/lib/popselect/src/PopselectPanel.d.ts +2 -2
- package/lib/popselect/src/PopselectPanel.js +1 -0
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/Line.js +1 -3
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +3 -3
- package/lib/qr-code/index.d.ts +2 -0
- package/lib/qr-code/index.js +9 -0
- package/lib/qr-code/src/QrCode.d.ts +154 -0
- package/lib/qr-code/src/QrCode.js +152 -0
- package/lib/qr-code/src/qrcodegen.d.ts +94 -0
- package/lib/qr-code/src/qrcodegen.js +949 -0
- package/lib/qr-code/src/styles/index.cssr.d.ts +2 -0
- package/lib/qr-code/src/styles/index.cssr.js +13 -0
- package/lib/qr-code/styles/dark.d.ts +3 -0
- package/lib/qr-code/styles/dark.js +13 -0
- package/lib/qr-code/styles/index.d.ts +3 -0
- package/lib/qr-code/styles/index.js +10 -0
- package/lib/qr-code/styles/light.d.ts +9 -0
- package/lib/qr-code/styles/light.js +14 -0
- package/lib/radio/src/Radio.d.ts +173 -34
- package/lib/radio/src/Radio.js +2 -2
- package/lib/radio/src/RadioButton.d.ts +3 -3
- package/lib/radio/src/RadioButton.js +2 -2
- package/lib/radio/src/RadioGroup.d.ts +3 -2
- package/lib/radio/src/RadioGroup.js +2 -1
- package/lib/radio/src/styles/radio-group.cssr.js +1 -0
- package/lib/radio/src/use-radio.d.ts +3 -3
- package/lib/radio/src/use-radio.js +2 -2
- package/lib/rate/src/Rate.d.ts +2 -2
- package/lib/result/src/Result.d.ts +3 -3
- package/lib/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/scrollbar/src/Scrollbar.js +2 -0
- package/lib/select/src/Select.d.ts +7 -4
- package/lib/select/src/Select.js +17 -3
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/skeleton/src/Skeleton.d.ts +2 -2
- package/lib/skeleton/src/Skeleton.js +3 -6
- package/lib/slider/src/Slider.d.ts +8 -2
- package/lib/slider/src/Slider.js +19 -4
- package/lib/slider/src/utils.d.ts +2 -2
- package/lib/slider/src/utils.js +5 -3
- package/lib/space/src/Space.d.ts +5 -2
- package/lib/space/src/Space.js +3 -3
- package/lib/spin/src/Spin.d.ts +13 -4
- package/lib/spin/src/Spin.js +25 -6
- package/lib/split/index.d.ts +2 -0
- package/lib/split/index.js +9 -0
- package/lib/split/src/Split.d.ts +135 -0
- package/lib/split/src/Split.js +151 -0
- package/lib/split/src/styles/index.cssr.d.ts +2 -0
- package/lib/split/src/styles/index.cssr.js +30 -0
- package/lib/split/styles/dark.d.ts +3 -0
- package/lib/split/styles/dark.js +8 -0
- package/lib/split/styles/index.d.ts +3 -0
- package/lib/split/styles/index.js +10 -0
- package/lib/split/styles/light.d.ts +9 -0
- package/lib/split/styles/light.js +17 -0
- package/lib/statistic/src/Statistic.d.ts +2 -2
- package/lib/steps/src/Step.d.ts +2 -2
- package/lib/steps/src/Steps.d.ts +3 -3
- package/lib/steps/src/styles/index.cssr.js +1 -0
- package/lib/switch/src/Switch.d.ts +2 -2
- package/lib/table/src/Table.d.ts +2 -2
- package/lib/table/src/Tbody.d.ts +1 -1
- package/lib/table/src/Td.d.ts +1 -1
- package/lib/table/src/Th.d.ts +1 -1
- package/lib/table/src/Thead.d.ts +1 -1
- package/lib/table/src/Tr.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tab.js +3 -1
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +13 -13
- package/lib/tabs/src/Tabs.js +15 -2
- package/lib/tabs/src/styles/index.cssr.js +12 -2
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/theme-editor/src/MaximizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/MinimizeIcon.d.ts +1 -1
- package/lib/theme-editor/src/ThemeEditor.d.ts +3 -3
- package/lib/themes/dark.js +56 -52
- package/lib/themes/light.js +56 -52
- package/lib/thing/src/Thing.d.ts +7 -1
- package/lib/thing/src/Thing.js +13 -4
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time/src/Time.js +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/PanelCol.d.ts +1 -1
- package/lib/time-picker/src/PanelCol.js +5 -1
- package/lib/time-picker/src/TimePicker.d.ts +2 -2
- package/lib/time-picker/src/TimePicker.js +1 -1
- package/lib/timeline/src/Timeline.d.ts +1 -1
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +19 -1
- package/lib/transfer/src/Transfer.d.ts +8 -2
- package/lib/transfer/src/Transfer.js +2 -2
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +5 -1
- package/lib/transfer/src/TransferHeader.js +6 -2
- package/lib/transfer/src/TransferList.d.ts +1 -1
- package/lib/transfer/src/TransferListItem.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -0
- package/lib/tree/index.js +3 -1
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +59 -5
- package/lib/tree/src/Tree.js +31 -18
- package/lib/tree/src/TreeNode.d.ts +6 -2
- package/lib/tree/src/TreeNode.js +72 -25
- package/lib/tree/src/TreeNodeCheckbox.d.ts +13 -1
- package/lib/tree/src/TreeNodeCheckbox.js +9 -8
- package/lib/tree/src/TreeNodeContent.d.ts +1 -1
- package/lib/tree/src/TreeNodeSwitcher.d.ts +19 -2
- package/lib/tree/src/TreeNodeSwitcher.js +12 -6
- package/lib/tree/src/interface.d.ts +2 -0
- package/lib/tree/src/styles/index.cssr.js +47 -51
- package/lib/tree/src/utils.d.ts +1 -0
- package/lib/tree/src/utils.js +15 -1
- package/lib/tree/styles/light.d.ts +8 -0
- package/lib/tree/styles/light.js +6 -2
- package/lib/tree-select/src/TreeSelect.d.ts +49 -3
- package/lib/tree-select/src/TreeSelect.js +5 -3
- package/lib/tree-select/src/interface.d.ts +2 -0
- package/lib/tree-select/styles/light.d.ts +4 -0
- package/lib/typography/src/a.d.ts +2 -2
- package/lib/typography/src/blockquote.d.ts +2 -2
- package/lib/typography/src/create-header.d.ts +2 -2
- package/lib/typography/src/headers.d.ts +12 -12
- package/lib/typography/src/hr.d.ts +2 -2
- package/lib/typography/src/li.d.ts +1 -1
- package/lib/typography/src/ol.d.ts +2 -2
- package/lib/typography/src/p.d.ts +2 -2
- package/lib/typography/src/text.d.ts +2 -2
- package/lib/typography/src/ul.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +11 -5
- package/lib/upload/src/Upload.js +8 -3
- package/lib/upload/src/UploadDragger.d.ts +1 -1
- package/lib/upload/src/UploadFile.d.ts +2 -2
- package/lib/upload/src/UploadFileList.d.ts +1 -1
- package/lib/upload/src/UploadFileList.js +3 -2
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.js +3 -2
- package/lib/upload/src/interface.d.ts +5 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +105 -0
- package/lib/watermark/src/Watermark.d.ts +1 -1
- package/lib/watermark/src/Watermark.js +7 -0
- package/package.json +69 -69
- package/volar.d.ts +5 -0
- package/web-types.json +917 -32
package/lib/upload/src/Upload.js
CHANGED
|
@@ -167,7 +167,9 @@ function submitImpl(inst, fieldName, file, { method, action, withCredentials, re
|
|
|
167
167
|
request.withCredentials = withCredentials;
|
|
168
168
|
const formData = new FormData();
|
|
169
169
|
appendData(formData, data, file);
|
|
170
|
-
|
|
170
|
+
if (file.file !== null) {
|
|
171
|
+
formData.append(fieldName, file.file);
|
|
172
|
+
}
|
|
171
173
|
registerHandler(inst, file, request);
|
|
172
174
|
if (action !== undefined) {
|
|
173
175
|
request.open(method.toUpperCase(), action);
|
|
@@ -199,7 +201,7 @@ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
199
201
|
onDownload: Function, defaultUpload: {
|
|
200
202
|
type: Boolean,
|
|
201
203
|
default: true
|
|
202
|
-
}, fileList: Array, 'onUpdate:fileList': [Function, Array], onUpdateFileList: [Function, Array], fileListStyle: [String, Object], defaultFileList: {
|
|
204
|
+
}, fileList: Array, 'onUpdate:fileList': [Function, Array], onUpdateFileList: [Function, Array], fileListClass: String, fileListStyle: [String, Object], defaultFileList: {
|
|
203
205
|
type: Array,
|
|
204
206
|
default: () => []
|
|
205
207
|
}, showCancelButton: {
|
|
@@ -227,7 +229,7 @@ exports.uploadProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
227
229
|
}, createThumbnailUrl: Function, abstract: Boolean, max: Number, showTrigger: {
|
|
228
230
|
type: Boolean,
|
|
229
231
|
default: true
|
|
230
|
-
}, imageGroupProps: Object, inputProps: Object, triggerStyle: [String, Object], renderIcon:
|
|
232
|
+
}, imageGroupProps: Object, inputProps: Object, triggerClass: String, triggerStyle: [String, Object], renderIcon: Function });
|
|
231
233
|
exports.default = (0, vue_1.defineComponent)({
|
|
232
234
|
name: 'Upload',
|
|
233
235
|
props: exports.uploadProps,
|
|
@@ -326,6 +328,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
326
328
|
.then((fileInfos) => __awaiter(this, void 0, void 0, function* () {
|
|
327
329
|
let nextTickChain = Promise.resolve();
|
|
328
330
|
fileInfos.forEach((fileInfo) => {
|
|
331
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
329
332
|
nextTickChain = nextTickChain.then(vue_1.nextTick).then(() => {
|
|
330
333
|
fileInfo &&
|
|
331
334
|
doChange(fileInfo, e, {
|
|
@@ -466,6 +469,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
466
469
|
onRemoveRef: (0, vue_1.toRef)(props, 'onRemove'),
|
|
467
470
|
onDownloadRef: (0, vue_1.toRef)(props, 'onDownload'),
|
|
468
471
|
mergedFileListRef,
|
|
472
|
+
triggerClassRef: (0, vue_1.toRef)(props, 'triggerClass'),
|
|
469
473
|
triggerStyleRef: (0, vue_1.toRef)(props, 'triggerStyle'),
|
|
470
474
|
shouldUseThumbnailUrlRef: (0, vue_1.toRef)(props, 'shouldUseThumbnailUrl'),
|
|
471
475
|
renderIconRef: (0, vue_1.toRef)(props, 'renderIcon'),
|
|
@@ -482,6 +486,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
482
486
|
handleFileAddition,
|
|
483
487
|
mergedDisabledRef: formItem.mergedDisabledRef,
|
|
484
488
|
maxReachedRef,
|
|
489
|
+
fileListClassRef: (0, vue_1.toRef)(props, 'fileListClass'),
|
|
485
490
|
fileListStyleRef: (0, vue_1.toRef)(props, 'fileListStyle'),
|
|
486
491
|
abstractRef: (0, vue_1.toRef)(props, 'abstract'),
|
|
487
492
|
acceptRef: (0, vue_1.toRef)(props, 'accept'),
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const uploadDraggerKey = "__UPLOAD_DRAGGER__";
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
3
3
|
export default _default;
|
|
@@ -379,7 +379,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
379
379
|
} | undefined;
|
|
380
380
|
};
|
|
381
381
|
}>;
|
|
382
|
-
progressStatus: import("vue").ComputedRef<"
|
|
382
|
+
progressStatus: import("vue").ComputedRef<"info" | "success" | "error">;
|
|
383
383
|
buttonType: import("vue").ComputedRef<"error" | undefined>;
|
|
384
384
|
showProgress: import("vue").ComputedRef<boolean>;
|
|
385
385
|
disabled: import("vue").Ref<boolean>;
|
|
@@ -411,5 +411,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
411
411
|
type: PropType<ListType>;
|
|
412
412
|
required: true;
|
|
413
413
|
};
|
|
414
|
-
}>>, {}>;
|
|
414
|
+
}>>, {}, {}>;
|
|
415
415
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -17,7 +17,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
17
17
|
if (!NUpload) {
|
|
18
18
|
(0, _utils_1.throwError)('upload-file-list', '`n-upload-file-list` must be placed inside `n-upload`.');
|
|
19
19
|
}
|
|
20
|
-
const { abstractRef, mergedClsPrefixRef, listTypeRef, mergedFileListRef, fileListStyleRef, cssVarsRef, themeClassRef, maxReachedRef, showTriggerRef, imageGroupPropsRef } = NUpload;
|
|
20
|
+
const { abstractRef, mergedClsPrefixRef, listTypeRef, mergedFileListRef, fileListClassRef, fileListStyleRef, cssVarsRef, themeClassRef, maxReachedRef, showTriggerRef, imageGroupPropsRef } = NUpload;
|
|
21
21
|
const isImageCardTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'image-card');
|
|
22
22
|
const renderFileList = () => mergedFileListRef.value.map((file) => ((0, vue_1.h)(UploadFile_1.default, { clsPrefix: mergedClsPrefixRef.value, key: file.id, file: file, listType: listTypeRef.value })));
|
|
23
23
|
const renderUploadFileList = () => isImageCardTypeRef.value ? ((0, vue_1.h)(image_1.NImageGroup, Object.assign({}, imageGroupPropsRef.value), { default: renderFileList })) : ((0, vue_1.h)(_internal_1.NFadeInExpandTransition, { group: true }, {
|
|
@@ -30,7 +30,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
30
30
|
`${mergedClsPrefix}-upload-file-list`,
|
|
31
31
|
isImageCardTypeRef.value &&
|
|
32
32
|
`${mergedClsPrefix}-upload-file-list--grid`,
|
|
33
|
-
abstract ? themeClassRef === null || themeClassRef === void 0 ? void 0 : themeClassRef.value : undefined
|
|
33
|
+
abstract ? themeClassRef === null || themeClassRef === void 0 ? void 0 : themeClassRef.value : undefined,
|
|
34
|
+
fileListClassRef.value
|
|
34
35
|
], style: [
|
|
35
36
|
abstract && cssVarsRef ? cssVarsRef.value : '',
|
|
36
37
|
fileListStyleRef.value
|
|
@@ -20,7 +20,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
20
20
|
if (!NUpload) {
|
|
21
21
|
(0, _utils_1.throwError)('upload-trigger', '`n-upload-trigger` must be placed inside `n-upload`.');
|
|
22
22
|
}
|
|
23
|
-
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef, openOpenFileDialog, draggerInsideRef, handleFileAddition, mergedDirectoryDndRef, triggerStyleRef } = NUpload;
|
|
23
|
+
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef, openOpenFileDialog, draggerInsideRef, handleFileAddition, mergedDirectoryDndRef, triggerClassRef, triggerStyleRef } = NUpload;
|
|
24
24
|
const isImageCardTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'image-card');
|
|
25
25
|
function handleTriggerClick() {
|
|
26
26
|
if (mergedDisabledRef.value || maxReachedRef.value)
|
|
@@ -76,7 +76,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
76
76
|
(mergedDisabledRef.value || maxReachedRef.value) &&
|
|
77
77
|
`${mergedClsPrefix}-upload-trigger--disabled`,
|
|
78
78
|
isImageCardTypeRef.value &&
|
|
79
|
-
`${mergedClsPrefix}-upload-trigger--image-card
|
|
79
|
+
`${mergedClsPrefix}-upload-trigger--image-card`,
|
|
80
|
+
triggerClassRef.value
|
|
80
81
|
], style: triggerStyleRef.value, onClick: handleTriggerClick, onDrop: handleTriggerDrop, onDragover: handleTriggerDragOver, onDragenter: handleTriggerDragEnter, onDragleave: handleTriggerDragLeave }, isImageCardTypeRef.value ? ((0, vue_1.h)(UploadDragger_1.default, null, {
|
|
81
82
|
default: () => (0, _utils_1.resolveSlot)(slots.default, () => [
|
|
82
83
|
(0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => (0, vue_1.h)(icons_1.AddIcon, null) })
|
|
@@ -16,9 +16,9 @@ export interface FileInfo {
|
|
|
16
16
|
}
|
|
17
17
|
export type SettledFileInfo = Required<FileInfo>;
|
|
18
18
|
export type ShouldUseThumbnailUrl = (file: SettledFileInfo) => boolean;
|
|
19
|
-
export type FuncOrRecordOrUndef = Record<string,
|
|
19
|
+
export type FuncOrRecordOrUndef<T = string> = Record<string, T> | (({ file }: {
|
|
20
20
|
file: SettledFileInfo;
|
|
21
|
-
}) => Record<string,
|
|
21
|
+
}) => Record<string, T>) | undefined;
|
|
22
22
|
export type OnChange = (data: {
|
|
23
23
|
file: SettledFileInfo;
|
|
24
24
|
fileList: SettledFileInfo[];
|
|
@@ -65,6 +65,7 @@ export interface UploadInjection {
|
|
|
65
65
|
draggerInsideRef: {
|
|
66
66
|
value: boolean;
|
|
67
67
|
};
|
|
68
|
+
fileListClassRef: Ref<string | undefined>;
|
|
68
69
|
fileListStyleRef: Ref<string | CSSProperties | undefined>;
|
|
69
70
|
mergedDisabledRef: Ref<boolean>;
|
|
70
71
|
maxReachedRef: Ref<boolean>;
|
|
@@ -74,6 +75,7 @@ export interface UploadInjection {
|
|
|
74
75
|
themeClassRef: undefined | Ref<string>;
|
|
75
76
|
mergedDirectoryDndRef: Ref<boolean>;
|
|
76
77
|
acceptRef: Ref<string | undefined>;
|
|
78
|
+
triggerClassRef: Ref<string | undefined>;
|
|
77
79
|
triggerStyleRef: Ref<CSSProperties | string | undefined>;
|
|
78
80
|
doChange: DoChange;
|
|
79
81
|
onRender: undefined | (() => void);
|
|
@@ -107,7 +109,7 @@ export interface CustomRequestOptions {
|
|
|
107
109
|
file: SettledFileInfo;
|
|
108
110
|
action?: string;
|
|
109
111
|
withCredentials?: boolean;
|
|
110
|
-
data?: FuncOrRecordOrUndef
|
|
112
|
+
data?: FuncOrRecordOrUndef<string | Blob>;
|
|
111
113
|
headers?: FuncOrRecordOrUndef;
|
|
112
114
|
onProgress: (e: {
|
|
113
115
|
percent: number;
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.
|
|
1
|
+
declare const _default: "2.36.0";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.virtualListProps = exports.NVirtualList = void 0;
|
|
7
|
+
var VirtualList_1 = require("./src/VirtualList");
|
|
8
|
+
Object.defineProperty(exports, "NVirtualList", { enumerable: true, get: function () { return __importDefault(VirtualList_1).default; } });
|
|
9
|
+
Object.defineProperty(exports, "virtualListProps", { enumerable: true, get: function () { return VirtualList_1.virtualListProps; } });
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { type PropType, type CSSProperties } from 'vue';
|
|
2
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
3
|
+
import { type ScrollbarProps } from '../../scrollbar/src/Scrollbar';
|
|
4
|
+
import { type VScrollToOptions, type ItemData } from 'vueuc/lib/virtual-list/src/type';
|
|
5
|
+
export { type VirtualListInst } from 'vueuc';
|
|
6
|
+
export declare const virtualListProps: {
|
|
7
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
8
|
+
readonly items: {
|
|
9
|
+
readonly type: PropType<ItemData[]>;
|
|
10
|
+
readonly default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
readonly itemSize: {
|
|
13
|
+
readonly type: NumberConstructor;
|
|
14
|
+
readonly required: true;
|
|
15
|
+
};
|
|
16
|
+
readonly itemResizable: BooleanConstructor;
|
|
17
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
18
|
+
readonly visibleItemsTag: {
|
|
19
|
+
readonly type: PropType<string | object>;
|
|
20
|
+
readonly default: "div";
|
|
21
|
+
};
|
|
22
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
23
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
24
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
25
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
26
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
27
|
+
readonly defaultScrollKey: PropType<string | number>;
|
|
28
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
29
|
+
readonly keyField: {
|
|
30
|
+
readonly type: StringConstructor;
|
|
31
|
+
readonly default: "key";
|
|
32
|
+
};
|
|
33
|
+
readonly paddingTop: {
|
|
34
|
+
readonly type: PropType<string | number>;
|
|
35
|
+
readonly default: 0;
|
|
36
|
+
};
|
|
37
|
+
readonly paddingBottom: {
|
|
38
|
+
readonly type: PropType<string | number>;
|
|
39
|
+
readonly default: 0;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type VirtualListProps = ExtractPublicPropTypes<typeof virtualListProps>;
|
|
43
|
+
declare const _default: import("vue").DefineComponent<{
|
|
44
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
45
|
+
readonly items: {
|
|
46
|
+
readonly type: PropType<ItemData[]>;
|
|
47
|
+
readonly default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
readonly itemSize: {
|
|
50
|
+
readonly type: NumberConstructor;
|
|
51
|
+
readonly required: true;
|
|
52
|
+
};
|
|
53
|
+
readonly itemResizable: BooleanConstructor;
|
|
54
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
55
|
+
readonly visibleItemsTag: {
|
|
56
|
+
readonly type: PropType<string | object>;
|
|
57
|
+
readonly default: "div";
|
|
58
|
+
};
|
|
59
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
60
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
61
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
62
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
63
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
64
|
+
readonly defaultScrollKey: PropType<string | number>;
|
|
65
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
66
|
+
readonly keyField: {
|
|
67
|
+
readonly type: StringConstructor;
|
|
68
|
+
readonly default: "key";
|
|
69
|
+
};
|
|
70
|
+
readonly paddingTop: {
|
|
71
|
+
readonly type: PropType<string | number>;
|
|
72
|
+
readonly default: 0;
|
|
73
|
+
};
|
|
74
|
+
readonly paddingBottom: {
|
|
75
|
+
readonly type: PropType<string | number>;
|
|
76
|
+
readonly default: 0;
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
scrollTo: (options: VScrollToOptions | number, y?: number) => void;
|
|
80
|
+
scrollbarInstRef: import("vue").Ref<{
|
|
81
|
+
$el: HTMLElement;
|
|
82
|
+
containerRef: HTMLElement | null;
|
|
83
|
+
contentRef: HTMLElement | null;
|
|
84
|
+
containerScrollTop: number;
|
|
85
|
+
syncUnifiedContainer: () => void;
|
|
86
|
+
scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo;
|
|
87
|
+
scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy;
|
|
88
|
+
sync: () => void;
|
|
89
|
+
handleMouseEnterWrapper: () => void;
|
|
90
|
+
handleMouseLeaveWrapper: () => void;
|
|
91
|
+
} | null>;
|
|
92
|
+
virtualListInstRef: import("vue").Ref<{
|
|
93
|
+
listElRef: HTMLElement;
|
|
94
|
+
itemsElRef: HTMLElement | null;
|
|
95
|
+
scrollTo: import("vueuc/lib/virtual-list/src/VirtualList").ScrollTo;
|
|
96
|
+
} | null>;
|
|
97
|
+
getScrollContainer: () => HTMLElement | null | undefined;
|
|
98
|
+
getScrollContent: () => HTMLElement | null | undefined;
|
|
99
|
+
handleScroll: (e: Event) => void;
|
|
100
|
+
handleResize: (e: ResizeObserverEntry) => void;
|
|
101
|
+
handleWheel: (e: WheelEvent) => void;
|
|
102
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
104
|
+
readonly items: {
|
|
105
|
+
readonly type: PropType<ItemData[]>;
|
|
106
|
+
readonly default: () => never[];
|
|
107
|
+
};
|
|
108
|
+
readonly itemSize: {
|
|
109
|
+
readonly type: NumberConstructor;
|
|
110
|
+
readonly required: true;
|
|
111
|
+
};
|
|
112
|
+
readonly itemResizable: BooleanConstructor;
|
|
113
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
114
|
+
readonly visibleItemsTag: {
|
|
115
|
+
readonly type: PropType<string | object>;
|
|
116
|
+
readonly default: "div";
|
|
117
|
+
};
|
|
118
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
119
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
120
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
121
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
122
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
123
|
+
readonly defaultScrollKey: PropType<string | number>;
|
|
124
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
125
|
+
readonly keyField: {
|
|
126
|
+
readonly type: StringConstructor;
|
|
127
|
+
readonly default: "key";
|
|
128
|
+
};
|
|
129
|
+
readonly paddingTop: {
|
|
130
|
+
readonly type: PropType<string | number>;
|
|
131
|
+
readonly default: 0;
|
|
132
|
+
};
|
|
133
|
+
readonly paddingBottom: {
|
|
134
|
+
readonly type: PropType<string | number>;
|
|
135
|
+
readonly default: 0;
|
|
136
|
+
};
|
|
137
|
+
}>>, {
|
|
138
|
+
readonly paddingBottom: string | number;
|
|
139
|
+
readonly paddingTop: string | number;
|
|
140
|
+
readonly items: ItemData[];
|
|
141
|
+
readonly itemResizable: boolean;
|
|
142
|
+
readonly visibleItemsTag: string | object;
|
|
143
|
+
readonly ignoreItemResize: boolean;
|
|
144
|
+
readonly keyField: string;
|
|
145
|
+
}, {}>;
|
|
146
|
+
export default _default;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.virtualListProps = void 0;
|
|
4
|
+
const vue_1 = require("vue");
|
|
5
|
+
const _internal_1 = require("../../_internal");
|
|
6
|
+
const vueuc_1 = require("vueuc");
|
|
7
|
+
exports.virtualListProps = {
|
|
8
|
+
scrollbarProps: Object,
|
|
9
|
+
items: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
},
|
|
13
|
+
itemSize: {
|
|
14
|
+
type: Number,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
itemResizable: Boolean,
|
|
18
|
+
itemsStyle: [String, Object],
|
|
19
|
+
visibleItemsTag: {
|
|
20
|
+
type: [String, Object],
|
|
21
|
+
default: 'div'
|
|
22
|
+
},
|
|
23
|
+
visibleItemsProps: Object,
|
|
24
|
+
ignoreItemResize: Boolean,
|
|
25
|
+
onScroll: Function,
|
|
26
|
+
onWheel: Function,
|
|
27
|
+
onResize: Function,
|
|
28
|
+
defaultScrollKey: [Number, String],
|
|
29
|
+
defaultScrollIndex: Number,
|
|
30
|
+
keyField: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'key'
|
|
33
|
+
},
|
|
34
|
+
paddingTop: {
|
|
35
|
+
type: [Number, String],
|
|
36
|
+
default: 0
|
|
37
|
+
},
|
|
38
|
+
paddingBottom: {
|
|
39
|
+
type: [Number, String],
|
|
40
|
+
default: 0
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
44
|
+
name: 'VirtualList',
|
|
45
|
+
props: exports.virtualListProps,
|
|
46
|
+
setup(props) {
|
|
47
|
+
const scrollbarInstRef = (0, vue_1.ref)(null);
|
|
48
|
+
const virtualListInstRef = (0, vue_1.ref)(null);
|
|
49
|
+
function syncScrollbar() {
|
|
50
|
+
const { value: scrollbarInst } = scrollbarInstRef;
|
|
51
|
+
if (scrollbarInst)
|
|
52
|
+
scrollbarInst.sync();
|
|
53
|
+
}
|
|
54
|
+
function handleScroll(e) {
|
|
55
|
+
var _a;
|
|
56
|
+
syncScrollbar();
|
|
57
|
+
(_a = props.onScroll) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
58
|
+
}
|
|
59
|
+
function handleResize(e) {
|
|
60
|
+
var _a;
|
|
61
|
+
syncScrollbar();
|
|
62
|
+
(_a = props.onResize) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
63
|
+
}
|
|
64
|
+
function handleWheel(e) {
|
|
65
|
+
var _a;
|
|
66
|
+
(_a = props.onWheel) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
67
|
+
}
|
|
68
|
+
function scrollTo(options, y) {
|
|
69
|
+
var _a, _b;
|
|
70
|
+
if (typeof options === 'number') {
|
|
71
|
+
(_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(options, y !== null && y !== void 0 ? y : 0);
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
(_b = virtualListInstRef.value) === null || _b === void 0 ? void 0 : _b.scrollTo(options);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
function getScrollContainer() {
|
|
78
|
+
var _a;
|
|
79
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
80
|
+
}
|
|
81
|
+
function getScrollContent() {
|
|
82
|
+
var _a;
|
|
83
|
+
return (_a = virtualListInstRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
scrollTo,
|
|
87
|
+
scrollbarInstRef,
|
|
88
|
+
virtualListInstRef,
|
|
89
|
+
getScrollContainer,
|
|
90
|
+
getScrollContent,
|
|
91
|
+
handleScroll,
|
|
92
|
+
handleResize,
|
|
93
|
+
handleWheel
|
|
94
|
+
};
|
|
95
|
+
},
|
|
96
|
+
render() {
|
|
97
|
+
return ((0, vue_1.h)(_internal_1.NxScrollbar, Object.assign({}, this.scrollbarProps, { ref: "scrollbarInstRef", container: this.getScrollContainer, content: this.getScrollContent }), {
|
|
98
|
+
default: () => {
|
|
99
|
+
return ((0, vue_1.h)(vueuc_1.VVirtualList, { ref: "virtualListInstRef", showScrollbar: false, items: this.items, itemSize: this.itemSize, itemResizable: this.itemResizable, itemsStyle: this.itemsStyle, visibleItemsTag: this.visibleItemsTag, visibleItemsProps: this.visibleItemsProps, ignoreItemResize: this.ignoreItemResize, keyField: this.keyField, defaultScrollKey: this.defaultScrollKey, defaultScrollIndex: this.defaultScrollIndex, paddingTop: this.paddingTop, paddingBottom: this.paddingBottom, onScroll: this.handleScroll, onResize: this.handleResize, onWheel: this.handleWheel }, {
|
|
100
|
+
default: ({ item, index }) => { var _a, _b; return (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a, { item, index }); }
|
|
101
|
+
}));
|
|
102
|
+
}
|
|
103
|
+
}));
|
|
104
|
+
}
|
|
105
|
+
});
|
|
@@ -135,6 +135,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
135
135
|
ctx.fillText(content, canvasOffsetLeft, canvasOffsetTop + lineHeight * ratio);
|
|
136
136
|
base64UrlRef.value = canvas.toDataURL();
|
|
137
137
|
}
|
|
138
|
+
else if (!content) {
|
|
139
|
+
// For example, you are using the input box to customize the watermark
|
|
140
|
+
// content, but after clearing the input box, the content is empty,
|
|
141
|
+
// and the canvas content is empty. Clear canvas when content is empty
|
|
142
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
143
|
+
base64UrlRef.value = canvas.toDataURL();
|
|
144
|
+
}
|
|
138
145
|
}
|
|
139
146
|
else {
|
|
140
147
|
(0, _utils_1.warnOnce)('watermark', 'Canvas is not supported in the browser.');
|