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
|
@@ -38,13 +38,13 @@ declare function useCalendar(props: ExtractPropTypes<typeof useCalendarProps>, t
|
|
|
38
38
|
handleDateInput: (value: string) => void;
|
|
39
39
|
handleTimePickerChange: (value: number | null) => void;
|
|
40
40
|
clearSelectedDateTime: () => void;
|
|
41
|
-
virtualListContainer: () => HTMLElement;
|
|
42
|
-
virtualListContent: () => HTMLElement;
|
|
41
|
+
virtualListContainer: () => HTMLElement | null;
|
|
42
|
+
virtualListContent: () => HTMLElement | null;
|
|
43
43
|
handleVirtualListScroll: (e: Event) => void;
|
|
44
44
|
timePickerSize: import("vue").Ref<"small" | "medium" | "large">;
|
|
45
45
|
dateInputValue: import("vue").Ref<string>;
|
|
46
46
|
datePickerSlots: Readonly<{
|
|
47
|
-
[name: string]: import("vue").Slot | undefined;
|
|
47
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
48
48
|
}>;
|
|
49
49
|
handleQuickMonthClick: (dateItem: MonthItem | YearItem | QuarterItem, updatePanelValue: (value: number) => void) => void;
|
|
50
50
|
justifyColumnsScrollState: (value?: number) => void;
|
|
@@ -254,12 +254,12 @@ function useCalendar(props, type) {
|
|
|
254
254
|
// For month type
|
|
255
255
|
function virtualListContainer() {
|
|
256
256
|
const { value } = yearVlRef;
|
|
257
|
-
return value === null || value === void 0 ? void 0 : value.listElRef;
|
|
257
|
+
return (value === null || value === void 0 ? void 0 : value.listElRef) || null;
|
|
258
258
|
}
|
|
259
259
|
// For month type
|
|
260
260
|
function virtualListContent() {
|
|
261
261
|
const { value } = yearVlRef;
|
|
262
|
-
return value === null || value === void 0 ? void 0 : value.itemsElRef;
|
|
262
|
+
return (value === null || value === void 0 ? void 0 : value.itemsElRef) || null;
|
|
263
263
|
}
|
|
264
264
|
// For month type
|
|
265
265
|
function handleVirtualListScroll(e) {
|
|
@@ -42,7 +42,7 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
42
42
|
startTimeValue: import("vue").ComputedRef<number | null>;
|
|
43
43
|
endTimeValue: import("vue").ComputedRef<number | null>;
|
|
44
44
|
datePickerSlots: Readonly<{
|
|
45
|
-
[name: string]: import("vue").Slot | undefined;
|
|
45
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
shortcuts: import("vue").ComputedRef<Shortcuts | undefined>;
|
|
48
48
|
startCalendarDateTime: import("vue").Ref<number>;
|
|
@@ -60,8 +60,8 @@ declare function useDualCalendar(props: ExtractPropTypes<typeof useDualCalendarP
|
|
|
60
60
|
handleEndDateInputBlur: () => void;
|
|
61
61
|
handleStartYearVlScroll: () => void;
|
|
62
62
|
handleEndYearVlScroll: () => void;
|
|
63
|
-
virtualListContainer: (type: 'start' | 'end') => HTMLElement;
|
|
64
|
-
virtualListContent: (type: 'start' | 'end') => HTMLElement;
|
|
63
|
+
virtualListContainer: (type: 'start' | 'end') => HTMLElement | null;
|
|
64
|
+
virtualListContent: (type: 'start' | 'end') => HTMLElement | null;
|
|
65
65
|
onUpdateStartCalendarValue: (value: number) => void;
|
|
66
66
|
onUpdateEndCalendarValue: (value: number) => void;
|
|
67
67
|
startYearScrollbarRef: import("vue").Ref<ScrollbarInst | null>;
|
|
@@ -611,19 +611,19 @@ function useDualCalendar(props, type) {
|
|
|
611
611
|
function virtualListContainer(type) {
|
|
612
612
|
var _a, _b;
|
|
613
613
|
if (type === 'start') {
|
|
614
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef;
|
|
614
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.listElRef) || null;
|
|
615
615
|
}
|
|
616
616
|
else {
|
|
617
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef;
|
|
617
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.listElRef) || null;
|
|
618
618
|
}
|
|
619
619
|
}
|
|
620
620
|
function virtualListContent(type) {
|
|
621
621
|
var _a, _b;
|
|
622
622
|
if (type === 'start') {
|
|
623
|
-
return (_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef;
|
|
623
|
+
return ((_a = startYearVlRef.value) === null || _a === void 0 ? void 0 : _a.itemsElRef) || null;
|
|
624
624
|
}
|
|
625
625
|
else {
|
|
626
|
-
return (_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef;
|
|
626
|
+
return ((_b = endYearVlRef.value) === null || _b === void 0 ? void 0 : _b.itemsElRef) || null;
|
|
627
627
|
}
|
|
628
628
|
}
|
|
629
629
|
const childComponentRefs = {
|
|
@@ -76,6 +76,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('date-picker', `
|
|
|
76
76
|
border-radius: var(--n-panel-border-radius);
|
|
77
77
|
background-color: var(--n-panel-color);
|
|
78
78
|
color: var(--n-panel-text-color);
|
|
79
|
+
user-select: none;
|
|
79
80
|
`, [(0, fade_in_scale_up_cssr_1.fadeInScaleUpTransition)(), (0, cssr_1.cM)('shadow', `
|
|
80
81
|
box-shadow: var(--n-panel-box-shadow);
|
|
81
82
|
`), (0, cssr_1.cB)('date-panel-calendar', {
|
|
@@ -28,12 +28,7 @@ const matcherMap = {
|
|
|
28
28
|
};
|
|
29
29
|
function matchDate(sourceTime, patternTime, type) {
|
|
30
30
|
const matcher = matcherMap[type];
|
|
31
|
-
|
|
32
|
-
return sourceTime.some((time) => matcher(time, patternTime));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
return matcher(sourceTime, patternTime);
|
|
36
|
-
}
|
|
31
|
+
return matcher(sourceTime, patternTime);
|
|
37
32
|
}
|
|
38
33
|
// date item's valueTs can be a tuple since two date may show in one panel, so
|
|
39
34
|
// any matched value would make it shown as selected
|
|
@@ -19,7 +19,7 @@ exports.default = {
|
|
|
19
19
|
calendarLeftPaddingDatetime: '4px 12px',
|
|
20
20
|
calendarLeftPaddingDaterange: '6px 12px 4px 12px',
|
|
21
21
|
calendarLeftPaddingDatetimerange: '4px 12px',
|
|
22
|
-
calendarLeftPaddingMonth: '0',
|
|
22
|
+
calendarLeftPaddingMonth: '0', // TODO: make it actually effective
|
|
23
23
|
calendarLeftPaddingYear: '0',
|
|
24
24
|
calendarLeftPaddingQuarter: '0',
|
|
25
25
|
calendarLeftPaddingMonthrange: '0',
|
|
@@ -24,7 +24,9 @@ export declare const descriptionsProps: {
|
|
|
24
24
|
readonly default: "medium";
|
|
25
25
|
};
|
|
26
26
|
readonly bordered: BooleanConstructor;
|
|
27
|
+
readonly labelClass: StringConstructor;
|
|
27
28
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
29
|
+
readonly contentClass: StringConstructor;
|
|
28
30
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
31
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
30
32
|
lineHeight: string;
|
|
@@ -150,7 +152,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
150
152
|
readonly default: "medium";
|
|
151
153
|
};
|
|
152
154
|
readonly bordered: BooleanConstructor;
|
|
155
|
+
readonly labelClass: StringConstructor;
|
|
153
156
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
157
|
+
readonly contentClass: StringConstructor;
|
|
154
158
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
155
159
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
156
160
|
lineHeight: string;
|
|
@@ -249,7 +253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
249
253
|
tdPaddingLarge: string;
|
|
250
254
|
}, any>>>;
|
|
251
255
|
}, {
|
|
252
|
-
mergedClsPrefix: import("vue").
|
|
256
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
253
257
|
cssVars: import("vue").ComputedRef<{
|
|
254
258
|
'--n-title-text-color': string;
|
|
255
259
|
'--n-th-padding': string;
|
|
@@ -299,7 +303,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
299
303
|
readonly default: "medium";
|
|
300
304
|
};
|
|
301
305
|
readonly bordered: BooleanConstructor;
|
|
306
|
+
readonly labelClass: StringConstructor;
|
|
302
307
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
308
|
+
readonly contentClass: StringConstructor;
|
|
303
309
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
304
310
|
readonly theme: PropType<import("../../_mixins").Theme<"Descriptions", {
|
|
305
311
|
lineHeight: string;
|
|
@@ -404,5 +410,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
404
410
|
readonly bordered: boolean;
|
|
405
411
|
readonly labelAlign: "left" | "right" | "center";
|
|
406
412
|
readonly labelPlacement: "left" | "top";
|
|
407
|
-
}>;
|
|
413
|
+
}, {}>;
|
|
408
414
|
export default _default;
|
|
@@ -11,6 +11,7 @@ const _utils_1 = require("../../_utils");
|
|
|
11
11
|
const styles_1 = require("../styles");
|
|
12
12
|
const utils_1 = require("./utils");
|
|
13
13
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
14
|
+
const seemly_1 = require("seemly");
|
|
14
15
|
exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { title: String, column: {
|
|
15
16
|
type: Number,
|
|
16
17
|
default: 3
|
|
@@ -26,7 +27,7 @@ exports.descriptionsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.p
|
|
|
26
27
|
}, size: {
|
|
27
28
|
type: String,
|
|
28
29
|
default: 'medium'
|
|
29
|
-
}, bordered: Boolean, labelStyle: [Object, String], contentStyle: [Object, String] });
|
|
30
|
+
}, bordered: Boolean, labelClass: String, labelStyle: [Object, String], contentClass: String, contentStyle: [Object, String] });
|
|
30
31
|
exports.default = (0, vue_1.defineComponent)({
|
|
31
32
|
name: 'Descriptions',
|
|
32
33
|
props: exports.descriptionsProps,
|
|
@@ -81,7 +82,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
81
82
|
const defaultSlots = this.$slots.default;
|
|
82
83
|
const children = defaultSlots ? (0, _utils_1.flatten)(defaultSlots()) : [];
|
|
83
84
|
const memorizedLength = children.length;
|
|
84
|
-
const { compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
85
|
+
const { contentClass, labelClass, compitableColumn, labelPlacement, labelAlign, size, bordered, title, cssVars, mergedClsPrefix, separator, onRender } = this;
|
|
85
86
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
86
87
|
const filteredChildren = children.filter((child) => (0, utils_1.isDescriptionsItem)(child));
|
|
87
88
|
if (process.env.NODE_ENV !== 'production' && memorizedLength !== filteredChildren.length) {
|
|
@@ -107,7 +108,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
107
108
|
const contentStyle = props.contentStyle || props['content-style'] || this.contentStyle;
|
|
108
109
|
if (labelPlacement === 'left') {
|
|
109
110
|
if (bordered) {
|
|
110
|
-
state.row.push((0, vue_1.h)("th", { class:
|
|
111
|
+
state.row.push((0, vue_1.h)("th", { class: [
|
|
112
|
+
`${mergedClsPrefix}-descriptions-table-header`,
|
|
113
|
+
labelClass
|
|
114
|
+
], colspan: 1, style: labelStyle }, itemLabel), (0, vue_1.h)("td", { class: [
|
|
115
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
116
|
+
contentClass
|
|
117
|
+
], colspan: isLastIteration
|
|
111
118
|
? (compitableColumn - memorizedSpan) * 2 + 1
|
|
112
119
|
: itemSpan * 2 - 1, style: contentStyle }, itemChildren));
|
|
113
120
|
}
|
|
@@ -115,19 +122,28 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
115
122
|
state.row.push((0, vue_1.h)("td", { class: `${mergedClsPrefix}-descriptions-table-content`, colspan: isLastIteration
|
|
116
123
|
? (compitableColumn - memorizedSpan) * 2
|
|
117
124
|
: itemSpan * 2 },
|
|
118
|
-
(0, vue_1.h)("span", { class:
|
|
125
|
+
(0, vue_1.h)("span", { class: [
|
|
126
|
+
`${mergedClsPrefix}-descriptions-table-content__label`,
|
|
127
|
+
labelClass
|
|
128
|
+
], style: labelStyle }, [
|
|
119
129
|
...itemLabel,
|
|
120
130
|
separator && ((0, vue_1.h)("span", { class: `${mergedClsPrefix}-descriptions-separator` }, separator))
|
|
121
131
|
]),
|
|
122
|
-
(0, vue_1.h)("span", { class:
|
|
132
|
+
(0, vue_1.h)("span", { class: [
|
|
133
|
+
`${mergedClsPrefix}-descriptions-table-content__content`,
|
|
134
|
+
contentClass
|
|
135
|
+
], style: contentStyle }, itemChildren)));
|
|
123
136
|
}
|
|
124
137
|
}
|
|
125
138
|
else {
|
|
126
139
|
const colspan = isLastIteration
|
|
127
140
|
? (compitableColumn - memorizedSpan) * 2
|
|
128
141
|
: itemSpan * 2;
|
|
129
|
-
state.row.push((0, vue_1.h)("th", { class: `${mergedClsPrefix}-descriptions-table-header`, colspan: colspan, style: labelStyle }, itemLabel));
|
|
130
|
-
state.secondRow.push((0, vue_1.h)("td", { class:
|
|
142
|
+
state.row.push((0, vue_1.h)("th", { class: [`${mergedClsPrefix}-descriptions-table-header`, labelClass], colspan: colspan, style: labelStyle }, itemLabel));
|
|
143
|
+
state.secondRow.push((0, vue_1.h)("td", { class: [
|
|
144
|
+
`${mergedClsPrefix}-descriptions-table-content`,
|
|
145
|
+
contentClass
|
|
146
|
+
], colspan: colspan, style: contentStyle }, itemChildren));
|
|
131
147
|
}
|
|
132
148
|
if (state.span >= compitableColumn || isLastIteration) {
|
|
133
149
|
state.span = 0;
|
|
@@ -156,6 +172,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
156
172
|
title || this.$slots.header ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-descriptions-header` }, title || (0, _utils_1.getSlot)(this, 'header'))) : null,
|
|
157
173
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-descriptions-table-wrapper` },
|
|
158
174
|
(0, vue_1.h)("table", { class: `${mergedClsPrefix}-descriptions-table` },
|
|
159
|
-
(0, vue_1.h)("tbody", null,
|
|
175
|
+
(0, vue_1.h)("tbody", null,
|
|
176
|
+
labelPlacement === 'top' && ((0, vue_1.h)("tr", { class: `${mergedClsPrefix}-descriptions-table-row`, style: {
|
|
177
|
+
visibility: 'collapse'
|
|
178
|
+
} }, (0, seemly_1.repeat)(compitableColumn * 2, (0, vue_1.h)("td", null)))),
|
|
179
|
+
rows)))));
|
|
160
180
|
}
|
|
161
181
|
});
|
|
@@ -6,7 +6,9 @@ export declare const descriptionsItemProps: {
|
|
|
6
6
|
readonly type: NumberConstructor;
|
|
7
7
|
readonly default: 1;
|
|
8
8
|
};
|
|
9
|
+
readonly labelClass: StringConstructor;
|
|
9
10
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
11
|
+
readonly contentClass: StringConstructor;
|
|
10
12
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
11
13
|
};
|
|
12
14
|
export type DescriptionItemProps = ExtractPublicPropTypes<typeof descriptionsItemProps>;
|
|
@@ -16,7 +18,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
18
|
readonly type: NumberConstructor;
|
|
17
19
|
readonly default: 1;
|
|
18
20
|
};
|
|
21
|
+
readonly labelClass: StringConstructor;
|
|
19
22
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
23
|
+
readonly contentClass: StringConstructor;
|
|
20
24
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
21
25
|
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
26
|
readonly label: StringConstructor;
|
|
@@ -24,9 +28,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
readonly type: NumberConstructor;
|
|
25
29
|
readonly default: 1;
|
|
26
30
|
};
|
|
31
|
+
readonly labelClass: StringConstructor;
|
|
27
32
|
readonly labelStyle: PropType<string | CSSProperties>;
|
|
33
|
+
readonly contentClass: StringConstructor;
|
|
28
34
|
readonly contentStyle: PropType<string | CSSProperties>;
|
|
29
35
|
}>>, {
|
|
30
36
|
readonly span: number;
|
|
31
|
-
}>;
|
|
37
|
+
}, {}>;
|
|
32
38
|
export default _default;
|
|
@@ -737,7 +737,7 @@ export declare const NDialog: import("vue").DefineComponent<{
|
|
|
737
737
|
}, any>;
|
|
738
738
|
}>>>;
|
|
739
739
|
}, {
|
|
740
|
-
mergedClsPrefix: import("vue").
|
|
740
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
741
741
|
mergedIconPlacement: import("vue").ComputedRef<import("./interface").IconPlacement>;
|
|
742
742
|
mergedTheme: import("vue").ComputedRef<{
|
|
743
743
|
common: {
|
|
@@ -1867,4 +1867,4 @@ export declare const NDialog: import("vue").DefineComponent<{
|
|
|
1867
1867
|
bordered: boolean;
|
|
1868
1868
|
showIcon: boolean;
|
|
1869
1869
|
closable: boolean;
|
|
1870
|
-
}>;
|
|
1870
|
+
}, {}>;
|
package/lib/dialog/src/Dialog.js
CHANGED
|
@@ -23,7 +23,7 @@ const iconRenderMap = {
|
|
|
23
23
|
exports.NDialog = (0, vue_1.defineComponent)({
|
|
24
24
|
name: 'Dialog',
|
|
25
25
|
alias: [
|
|
26
|
-
'NimbusConfirmCard',
|
|
26
|
+
'NimbusConfirmCard', // deprecated
|
|
27
27
|
'Confirm' // deprecated
|
|
28
28
|
],
|
|
29
29
|
props: Object.assign(Object.assign({}, _mixins_1.useTheme.props), dialogProps_1.dialogProps),
|
|
@@ -125,7 +125,11 @@ exports.NDialog = (0, vue_1.defineComponent)({
|
|
|
125
125
|
`${mergedClsPrefix}-dialog--icon-${mergedIconPlacement}`,
|
|
126
126
|
bordered && `${mergedClsPrefix}-dialog--bordered`
|
|
127
127
|
], style: cssVars, role: "dialog" },
|
|
128
|
-
closable
|
|
128
|
+
closable
|
|
129
|
+
? (0, _utils_1.resolveWrappedSlot)(this.$slots.close, (node) => {
|
|
130
|
+
return node ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__close` }, node)) : ((0, vue_1.h)(_internal_1.NBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-dialog__close`, onClick: this.handleCloseClick }));
|
|
131
|
+
})
|
|
132
|
+
: null,
|
|
129
133
|
showIcon && mergedIconPlacement === 'top' ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog-icon-container` }, icon)) : null,
|
|
130
134
|
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-dialog__title` },
|
|
131
135
|
showIcon && mergedIconPlacement === 'left' ? icon : null,
|
|
@@ -177,12 +177,12 @@ export declare const NDialogEnvironment: import("vue").DefineComponent<{
|
|
|
177
177
|
iconPlacement: PropType<import("./interface").IconPlacement>;
|
|
178
178
|
}>>, {
|
|
179
179
|
type: "default" | "error" | "info" | "success" | "warning";
|
|
180
|
-
autoFocus: boolean;
|
|
181
180
|
loading: boolean;
|
|
181
|
+
autoFocus: boolean;
|
|
182
182
|
bordered: boolean;
|
|
183
183
|
showIcon: boolean;
|
|
184
184
|
closable: boolean;
|
|
185
185
|
blockScroll: boolean;
|
|
186
186
|
maskClosable: boolean;
|
|
187
187
|
closeOnEsc: boolean;
|
|
188
|
-
}>;
|
|
188
|
+
}, {}>;
|
|
@@ -49,10 +49,10 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
49
49
|
onAfterLeave?: (() => void) | undefined;
|
|
50
50
|
title?: string | (() => import("vue").VNodeChild) | undefined;
|
|
51
51
|
action?: (() => import("vue").VNodeChild) | undefined;
|
|
52
|
+
loading?: boolean | undefined;
|
|
52
53
|
autoFocus?: boolean | undefined;
|
|
53
54
|
positiveText?: string | undefined;
|
|
54
55
|
negativeText?: string | undefined;
|
|
55
|
-
loading?: boolean | undefined;
|
|
56
56
|
bordered?: boolean | undefined;
|
|
57
57
|
showIcon?: boolean | undefined;
|
|
58
58
|
closable?: boolean | undefined;
|
|
@@ -71,6 +71,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
71
71
|
circle?: boolean | undefined;
|
|
72
72
|
disabled?: boolean | undefined;
|
|
73
73
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
74
|
+
loading?: boolean | undefined;
|
|
74
75
|
focusable?: boolean | undefined;
|
|
75
76
|
strong?: boolean | undefined;
|
|
76
77
|
themeOverrides?: {
|
|
@@ -385,7 +386,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
385
386
|
name: "common";
|
|
386
387
|
} | undefined;
|
|
387
388
|
} | undefined;
|
|
388
|
-
loading?: boolean | undefined;
|
|
389
389
|
bordered?: boolean | undefined;
|
|
390
390
|
textColor?: string | undefined;
|
|
391
391
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -410,6 +410,7 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
410
410
|
circle?: boolean | undefined;
|
|
411
411
|
disabled?: boolean | undefined;
|
|
412
412
|
onClick?: import("../../_utils").MaybeArray<(e: MouseEvent) => void> | undefined;
|
|
413
|
+
loading?: boolean | undefined;
|
|
413
414
|
focusable?: boolean | undefined;
|
|
414
415
|
strong?: boolean | undefined;
|
|
415
416
|
themeOverrides?: {
|
|
@@ -724,7 +725,6 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
724
725
|
name: "common";
|
|
725
726
|
} | undefined;
|
|
726
727
|
} | undefined;
|
|
727
|
-
loading?: boolean | undefined;
|
|
728
728
|
bordered?: boolean | undefined;
|
|
729
729
|
textColor?: string | undefined;
|
|
730
730
|
renderIcon?: (() => import("vue").VNodeChild) | undefined;
|
|
@@ -757,5 +757,5 @@ export declare const NDialogProvider: import("vue").DefineComponent<{
|
|
|
757
757
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
758
758
|
injectionKey: StringConstructor;
|
|
759
759
|
to: PropType<string | HTMLElement>;
|
|
760
|
-
}>>, {}>;
|
|
760
|
+
}>>, {}, {}>;
|
|
761
761
|
export {};
|
|
@@ -33,7 +33,9 @@ exports.NDialogProvider = (0, vue_1.defineComponent)({
|
|
|
33
33
|
dialogList.splice(dialogList.findIndex((dialog) => dialog.key === key), 1);
|
|
34
34
|
}
|
|
35
35
|
function destroyAll() {
|
|
36
|
-
Object.values(dialogInstRefs).forEach((dialogInstRef) => {
|
|
36
|
+
Object.values(dialogInstRefs).forEach((dialogInstRef) => {
|
|
37
|
+
dialogInstRef.hide();
|
|
38
|
+
});
|
|
37
39
|
}
|
|
38
40
|
const api = {
|
|
39
41
|
create,
|
|
@@ -32,4 +32,4 @@ declare const dialogProps: {
|
|
|
32
32
|
};
|
|
33
33
|
export type DialogProps = ExtractPublicPropTypes<typeof dialogProps>;
|
|
34
34
|
export { dialogProps };
|
|
35
|
-
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "
|
|
35
|
+
export declare const dialogPropKeys: ("type" | "content" | "icon" | "title" | "action" | "loading" | "positiveText" | "negativeText" | "bordered" | "showIcon" | "closable" | "onClose" | "iconPlacement" | "positiveButtonProps" | "negativeButtonProps" | "onPositiveClick" | "onNegativeClick")[];
|
|
@@ -5,4 +5,4 @@ export declare const NInjectionExtractor: import("vue").DefineComponent<{
|
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
}>[] | undefined, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
7
|
onSetup: PropType<() => void>;
|
|
8
|
-
}>>, {}>;
|
|
8
|
+
}>>, {}, {}>;
|
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
fontWeight: string;
|
|
48
48
|
}, any>>>;
|
|
49
49
|
}, {
|
|
50
|
-
mergedClsPrefix: import("vue").
|
|
50
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
51
51
|
cssVars: import("vue").ComputedRef<{
|
|
52
52
|
'--n-bezier': string;
|
|
53
53
|
'--n-color': string;
|
|
@@ -82,5 +82,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
82
|
readonly dashed: boolean;
|
|
83
83
|
readonly vertical: boolean;
|
|
84
84
|
readonly titlePlacement: "left" | "right" | "center";
|
|
85
|
-
}>;
|
|
85
|
+
}, {}>;
|
|
86
86
|
export default _default;
|
|
@@ -48,6 +48,10 @@ export declare const drawerProps: {
|
|
|
48
48
|
readonly type: BooleanConstructor;
|
|
49
49
|
readonly default: true;
|
|
50
50
|
};
|
|
51
|
+
readonly maxWidth: NumberConstructor;
|
|
52
|
+
readonly maxHeight: NumberConstructor;
|
|
53
|
+
readonly minWidth: NumberConstructor;
|
|
54
|
+
readonly minHeight: NumberConstructor;
|
|
51
55
|
readonly resizable: BooleanConstructor;
|
|
52
56
|
readonly defaultWidth: {
|
|
53
57
|
readonly type: PropType<string | number>;
|
|
@@ -203,6 +207,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
203
207
|
readonly type: BooleanConstructor;
|
|
204
208
|
readonly default: true;
|
|
205
209
|
};
|
|
210
|
+
readonly maxWidth: NumberConstructor;
|
|
211
|
+
readonly maxHeight: NumberConstructor;
|
|
212
|
+
readonly minWidth: NumberConstructor;
|
|
213
|
+
readonly minHeight: NumberConstructor;
|
|
206
214
|
readonly resizable: BooleanConstructor;
|
|
207
215
|
readonly defaultWidth: {
|
|
208
216
|
readonly type: PropType<string | number>;
|
|
@@ -311,7 +319,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
311
319
|
}, any>;
|
|
312
320
|
}>>>;
|
|
313
321
|
}, {
|
|
314
|
-
mergedClsPrefix: import("vue").
|
|
322
|
+
mergedClsPrefix: import("vue").Ref<string>;
|
|
315
323
|
namespace: import("vue").ComputedRef<string | undefined>;
|
|
316
324
|
mergedBodyStyle: import("vue").ComputedRef<(string | CSSProperties)[]>;
|
|
317
325
|
handleMaskClick: (e: MouseEvent) => void;
|
|
@@ -340,6 +348,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
340
348
|
errorColorPressed: string;
|
|
341
349
|
errorColorSuppl: string;
|
|
342
350
|
textColorBase: string;
|
|
351
|
+
/** @deprecated */
|
|
343
352
|
textColor1: string;
|
|
344
353
|
textColor2: string;
|
|
345
354
|
textColor3: string;
|
|
@@ -534,6 +543,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
534
543
|
readonly type: BooleanConstructor;
|
|
535
544
|
readonly default: true;
|
|
536
545
|
};
|
|
546
|
+
readonly maxWidth: NumberConstructor;
|
|
547
|
+
readonly maxHeight: NumberConstructor;
|
|
548
|
+
readonly minWidth: NumberConstructor;
|
|
549
|
+
readonly minHeight: NumberConstructor;
|
|
537
550
|
readonly resizable: BooleanConstructor;
|
|
538
551
|
readonly defaultWidth: {
|
|
539
552
|
readonly type: PropType<string | number>;
|
|
@@ -655,5 +668,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
655
668
|
readonly showMask: boolean | "transparent";
|
|
656
669
|
readonly defaultWidth: string | number;
|
|
657
670
|
readonly defaultHeight: string | number;
|
|
658
|
-
}>;
|
|
671
|
+
}, {}>;
|
|
659
672
|
export default _default;
|
package/lib/drawer/src/Drawer.js
CHANGED
|
@@ -41,7 +41,7 @@ exports.drawerProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
41
41
|
}, blockScroll: {
|
|
42
42
|
type: Boolean,
|
|
43
43
|
default: true
|
|
44
|
-
}, resizable: Boolean, defaultWidth: {
|
|
44
|
+
}, maxWidth: Number, maxHeight: Number, minWidth: Number, minHeight: Number, resizable: Boolean, defaultWidth: {
|
|
45
45
|
type: [Number, String],
|
|
46
46
|
default: 251
|
|
47
47
|
}, defaultHeight: {
|
|
@@ -215,7 +215,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
215
215
|
`${mergedClsPrefix}-drawer-mask--invisible`
|
|
216
216
|
], onClick: this.handleMaskClick })) : null
|
|
217
217
|
})) : null,
|
|
218
|
-
(0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, resizable: this.resizable, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
|
|
218
|
+
(0, vue_1.h)(DrawerBodyWrapper_1.default, Object.assign({}, this.$attrs, { class: [this.drawerClass, this.$attrs.class], style: [this.mergedBodyStyle, this.$attrs.style], blockScroll: this.blockScroll, contentStyle: this.contentStyle, placement: this.placement, scrollbarProps: this.scrollbarProps, show: this.show, displayDirective: this.displayDirective, nativeScrollbar: this.nativeScrollbar, onAfterEnter: this.onAfterEnter, onAfterLeave: this.onAfterLeave, trapFocus: this.trapFocus, autoFocus: this.autoFocus, resizable: this.resizable, maxHeight: this.maxHeight, minHeight: this.minHeight, maxWidth: this.maxWidth, minWidth: this.minWidth, showMask: this.showMask, onEsc: this.handleEsc, onClickoutside: this.handleMaskClick }), this.$slots)), [[vdirs_1.zindexable, { zIndex: this.zIndex, enabled: this.show }]]);
|
|
219
219
|
}
|
|
220
220
|
}));
|
|
221
221
|
}
|
|
@@ -33,6 +33,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
33
33
|
type: PropType<boolean | "transparent">;
|
|
34
34
|
required: true;
|
|
35
35
|
};
|
|
36
|
+
maxWidth: NumberConstructor;
|
|
37
|
+
maxHeight: NumberConstructor;
|
|
38
|
+
minWidth: NumberConstructor;
|
|
39
|
+
minHeight: NumberConstructor;
|
|
36
40
|
resizable: BooleanConstructor;
|
|
37
41
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
38
42
|
onAfterLeave: PropType<() => void>;
|
|
@@ -227,6 +231,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
227
231
|
type: PropType<boolean | "transparent">;
|
|
228
232
|
required: true;
|
|
229
233
|
};
|
|
234
|
+
maxWidth: NumberConstructor;
|
|
235
|
+
maxHeight: NumberConstructor;
|
|
236
|
+
minWidth: NumberConstructor;
|
|
237
|
+
minHeight: NumberConstructor;
|
|
230
238
|
resizable: BooleanConstructor;
|
|
231
239
|
onClickoutside: PropType<(e: MouseEvent) => void>;
|
|
232
240
|
onAfterLeave: PropType<() => void>;
|
|
@@ -238,5 +246,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
238
246
|
resizable: boolean;
|
|
239
247
|
trapFocus: boolean;
|
|
240
248
|
blockScroll: boolean;
|
|
241
|
-
}>;
|
|
249
|
+
}, {}>;
|
|
242
250
|
export default _default;
|
|
@@ -44,6 +44,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
44
44
|
type: [Boolean, String],
|
|
45
45
|
required: true
|
|
46
46
|
},
|
|
47
|
+
maxWidth: Number,
|
|
48
|
+
maxHeight: Number,
|
|
49
|
+
minWidth: Number,
|
|
50
|
+
minHeight: Number,
|
|
47
51
|
resizable: Boolean,
|
|
48
52
|
onClickoutside: Function,
|
|
49
53
|
onAfterLeave: Function,
|
|
@@ -96,6 +100,24 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
96
100
|
isHoverOnResizeTriggerRef.value = false;
|
|
97
101
|
};
|
|
98
102
|
const { doUpdateHeight, doUpdateWidth } = NDrawer;
|
|
103
|
+
const regulateWidth = (size) => {
|
|
104
|
+
const { maxWidth } = props;
|
|
105
|
+
if (maxWidth && size > maxWidth)
|
|
106
|
+
return maxWidth;
|
|
107
|
+
const { minWidth } = props;
|
|
108
|
+
if (minWidth && size < minWidth)
|
|
109
|
+
return minWidth;
|
|
110
|
+
return size;
|
|
111
|
+
};
|
|
112
|
+
const regulateHeight = (size) => {
|
|
113
|
+
const { maxHeight } = props;
|
|
114
|
+
if (maxHeight && size > maxHeight)
|
|
115
|
+
return maxHeight;
|
|
116
|
+
const { minHeight } = props;
|
|
117
|
+
if (minHeight && size < minHeight)
|
|
118
|
+
return minHeight;
|
|
119
|
+
return size;
|
|
120
|
+
};
|
|
99
121
|
const handleBodyMousemove = (e) => {
|
|
100
122
|
var _a, _b;
|
|
101
123
|
if (isDraggingRef.value) {
|
|
@@ -103,6 +125,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
103
125
|
let height = ((_a = bodyRef.value) === null || _a === void 0 ? void 0 : _a.offsetHeight) || 0;
|
|
104
126
|
const increment = startPosition - e.clientY;
|
|
105
127
|
height += props.placement === 'bottom' ? increment : -increment;
|
|
128
|
+
height = regulateHeight(height);
|
|
106
129
|
doUpdateHeight(height);
|
|
107
130
|
startPosition = e.clientY;
|
|
108
131
|
}
|
|
@@ -110,6 +133,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
110
133
|
let width = ((_b = bodyRef.value) === null || _b === void 0 ? void 0 : _b.offsetWidth) || 0;
|
|
111
134
|
const increment = startPosition - e.clientX;
|
|
112
135
|
width += props.placement === 'right' ? increment : -increment;
|
|
136
|
+
width = regulateWidth(width);
|
|
113
137
|
doUpdateWidth(width);
|
|
114
138
|
startPosition = e.clientX;
|
|
115
139
|
}
|
|
@@ -189,7 +213,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
189
213
|
return this.displayDirective === 'show' || this.displayed || this.show
|
|
190
214
|
? (0, vue_1.withDirectives)(
|
|
191
215
|
/* Keep the wrapper dom. Make sure the drawer has a host.
|
|
192
|
-
|
|
216
|
+
Nor the detached content will disappear without transition */
|
|
193
217
|
(0, vue_1.h)("div", { role: "none" },
|
|
194
218
|
(0, vue_1.h)(vueuc_1.VFocusTrap, { disabled: !this.showMask || !this.trapFocus, active: this.show, autoFocus: this.autoFocus, onEsc: this.onEsc }, {
|
|
195
219
|
default: () => ((0, vue_1.h)(vue_1.Transition, { name: this.transitionName, appear: this.isMounted, onAfterEnter: this.onAfterEnter, onAfterLeave: this.handleAfterLeave }, {
|