naive-ui 2.43.0 → 2.43.2
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 +10 -1
- package/README.zh-CN.md +10 -1
- package/dist/index.js +10297 -10084
- package/dist/index.mjs +10297 -10084
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/_internal/clear/src/Clear.d.ts +1 -1
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/es/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/es/_internal/icon/src/Icon.d.ts +1 -1
- package/es/_internal/icons/replaceable.mjs +1 -1
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/es/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +6 -6
- package/es/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/es/_internal/selection/src/Selection.d.ts +9 -9
- package/es/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/es/_internal/suffix/src/Suffix.d.ts +1 -1
- package/es/_mixins/use-config.d.ts +1 -1
- package/es/_mixins/use-css-vars-class.d.ts +1 -1
- package/es/_mixins/use-form-item.d.ts +1 -1
- package/es/_mixins/use-hljs.d.ts +1 -1
- package/es/_mixins/use-locale.d.ts +1 -1
- package/es/_mixins/use-rtl.d.ts +1 -1
- package/es/_mixins/use-style.d.ts +1 -1
- package/es/_mixins/use-theme.d.ts +1 -1
- package/es/_mixins/use-theme.mjs +1 -1
- package/es/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/es/_utils/composable/use-browser-location.d.ts +1 -1
- package/es/_utils/composable/use-collection.d.ts +1 -1
- package/es/_utils/composable/use-deferred-true.d.ts +1 -1
- package/es/_utils/composable/use-is-composing.d.ts +1 -1
- package/es/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/es/_utils/composable/use-resize.d.ts +1 -1
- package/es/_utils/cssr/index.d.ts +1 -1
- package/es/_utils/vue/flatten.d.ts +1 -1
- package/es/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/es/_utils/vue/render.d.ts +1 -1
- package/es/_utils/vue/resolve-slot.d.ts +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +2 -2
- package/es/anchor/src/AnchorAdapter.d.ts +2 -2
- package/es/anchor/src/BaseAnchor.d.ts +3 -3
- package/es/anchor/src/Link.d.ts +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +7 -7
- package/es/avatar/src/Avatar.d.ts +4 -4
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- 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 +11 -11
- package/es/button/src/styles/index.cssr.mjs +7 -7
- package/es/button-group/src/ButtonGroup.d.ts +1 -1
- package/es/calendar/src/Calendar.d.ts +1 -1
- package/es/card/src/Card.d.ts +3 -3
- package/es/carousel/src/Carousel.d.ts +6 -6
- package/es/carousel/src/CarouselDots.d.ts +1 -1
- package/es/carousel/src/CarouselItem.mjs +1 -1
- package/es/cascader/src/Cascader.d.ts +8 -8
- package/es/cascader/src/CascaderMenu.d.ts +2 -2
- package/es/cascader/src/CascaderOption.d.ts +2 -2
- package/es/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/es/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/es/checkbox/src/Checkbox.d.ts +10 -10
- package/es/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/es/code/src/Code.d.ts +4 -4
- 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 +3 -3
- package/es/color-picker/src/ColorInput.d.ts +2 -2
- package/es/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +5 -5
- package/es/color-picker/src/ColorPickerSwatches.d.ts +2 -2
- package/es/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/es/color-picker/src/ColorPreview.d.ts +2 -2
- package/es/color-picker/src/HueSlider.d.ts +1 -1
- package/es/color-picker/src/Pallete.d.ts +1 -1
- package/es/color-picker/src/utils.d.ts +1 -1
- package/es/composables/use-theme-vars.d.ts +1 -1
- package/es/config-provider/src/ConfigProvider.d.ts +5 -5
- package/es/config-provider/src/ConfigProvider.mjs +1 -1
- package/es/countdown/src/Countdown.d.ts +2 -2
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -2
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +2 -2
- package/es/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/es/data-table/src/HeaderButton/SortButton.d.ts +2 -2
- package/es/data-table/src/TableParts/Body.d.ts +2 -2
- package/es/data-table/src/TableParts/BodyCheckbox.d.ts +2 -2
- package/es/data-table/src/TableParts/BodyRadio.d.ts +2 -2
- package/es/data-table/src/TableParts/Cell.d.ts +1 -1
- package/es/data-table/src/TableParts/Cell.mjs +1 -1
- package/es/data-table/src/TableParts/ExpandTrigger.d.ts +2 -2
- package/es/data-table/src/TableParts/Header.d.ts +1 -1
- package/es/data-table/src/use-check.d.ts +1 -1
- package/es/data-table/src/use-expand.d.ts +1 -1
- package/es/data-table/src/use-group-header.d.ts +1 -1
- package/es/data-table/src/use-scroll.d.ts +1 -1
- package/es/data-table/src/use-sorter.d.ts +1 -1
- package/es/data-table/src/use-table-data.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +4 -4
- package/es/date-picker/src/interface.d.ts +6 -19
- package/es/date-picker/src/panel/date.d.ts +1 -1
- package/es/date-picker/src/panel/month.d.ts +2 -2
- package/es/date-picker/src/panel/monthrange.d.ts +2 -2
- package/es/date-picker/src/panel/panelHeader.d.ts +1 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/es/date-picker/src/panel/use-calendar.mjs +7 -2
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/es/date-picker/src/panel/use-dual-calendar.mjs +5 -2
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -2
- package/es/date-picker/src/panel/use-panel-common.mjs +1 -1
- package/es/date-picker/src/props.mjs +1 -1
- package/es/date-picker/src/utils.d.ts +12 -2
- package/es/date-picker/src/utils.mjs +9 -1
- package/es/date-picker/src/validation-utils.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +4 -4
- package/es/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/es/descriptions/styles/light.d.ts +1 -1
- package/es/dialog/src/Dialog.d.ts +3 -3
- package/es/dialog/src/DialogEnvironment.d.ts +4 -4
- package/es/dialog/src/DialogProvider.d.ts +1062 -720
- package/es/dialog/src/composables.d.ts +1 -1
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/dialog/src/styles/index.cssr.mjs +17 -17
- package/es/discrete/src/InjectionExtractor.d.ts +1 -1
- package/es/discrete/src/discreteApp.d.ts +7 -7
- package/es/divider/src/Divider.d.ts +2 -2
- package/es/drawer/src/Drawer.d.ts +3 -3
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/es/drawer/src/DrawerContent.d.ts +1 -1
- package/es/dropdown/src/Dropdown.d.ts +10 -10
- package/es/dropdown/src/DropdownGroup.d.ts +1 -1
- package/es/dropdown/src/DropdownMenu.d.ts +1 -1
- package/es/dropdown/src/DropdownOption.d.ts +2 -2
- package/es/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +3 -3
- 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 +5 -5
- package/es/element/src/Element.mjs +1 -1
- package/es/ellipsis/src/Ellipsis.d.ts +1 -1
- package/es/empty/src/Empty.d.ts +2 -2
- package/es/equation/src/Equation.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +4 -4
- package/es/float-button/src/FloatButton.d.ts +3 -3
- package/es/float-button-group/src/FloatButtonGroup.d.ts +2 -2
- package/es/form/src/Form.d.ts +3 -3
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItem.mjs +1 -1
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +3 -3
- package/es/form/src/FormItemRow.d.ts +1 -1
- package/es/form/src/utils.d.ts +2 -2
- package/es/form/src/utils.mjs +1 -1
- package/es/global-style/src/GlobalStyle.mjs +1 -1
- package/es/gradient-text/src/GradientText.d.ts +3 -3
- package/es/grid/src/Grid.d.ts +6 -6
- package/es/grid/src/GridItem.d.ts +3 -3
- package/es/heatmap/src/Heatmap.d.ts +2 -2
- package/es/heatmap/src/Heatmap.mjs +1 -1
- package/es/heatmap/src/Rect.d.ts +1 -1
- package/es/heatmap/src/utils/index.mjs +1 -1
- package/es/heatmap/styles/light.d.ts +1 -1
- package/es/icon/src/Icon.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/es/image/src/Image.d.ts +3 -3
- package/es/image/src/ImagePreview.d.ts +1 -1
- package/es/image/src/ImagePreview.mjs +1 -1
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +2 -2
- package/es/input/src/Input.d.ts +17 -17
- package/es/input/src/InputGroupLabel.d.ts +1 -1
- package/es/input-number/src/InputNumber.d.ts +8 -8
- package/es/input-otp/src/InputOtp.d.ts +4 -4
- package/es/layout/src/Layout.d.ts +3 -3
- package/es/layout/src/LayoutContent.d.ts +1 -1
- package/es/layout/src/LayoutFooter.d.ts +1 -1
- package/es/layout/src/LayoutHeader.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +3 -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 +4 -4
- package/es/legacy-grid/src/Row.d.ts +2 -2
- package/es/legacy-transfer/src/Transfer.d.ts +5 -5
- 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 +4 -4
- package/es/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/es/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/es/list/src/List.d.ts +1 -1
- package/es/loading-bar/src/LoadingBar.d.ts +1 -1
- package/es/loading-bar/src/LoadingBarProvider.d.ts +1 -1
- package/es/locales/utils/index.mjs +1 -1
- package/es/log/src/Log.d.ts +5 -5
- package/es/log/src/Log.mjs +3 -1
- package/es/marquee/src/Marquee.d.ts +1 -1
- package/es/mention/src/Mention.d.ts +12 -12
- package/es/menu/src/Menu.d.ts +6 -6
- package/es/menu/src/MenuOption.d.ts +3 -3
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +2 -2
- package/es/menu/src/Submenu.d.ts +3 -3
- package/es/menu/src/use-menu-child.d.ts +1 -1
- package/es/menu/src/utils.d.ts +1 -1
- package/es/message/src/Message.d.ts +1 -1
- package/es/message/src/Message.mjs +0 -1
- package/es/message/src/MessageEnvironment.d.ts +2 -2
- package/es/message/src/MessageProvider.d.ts +2 -2
- package/es/modal/src/BodyWrapper.d.ts +7 -7
- package/es/modal/src/Modal.d.ts +7 -7
- package/es/modal/src/ModalEnvironment.d.ts +7 -7
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal/src/styles/index.cssr.mjs +2 -2
- package/es/notification/src/Notification.d.ts +3 -3
- package/es/notification/src/NotificationContainer.d.ts +1 -1
- package/es/notification/src/NotificationEnvironment.d.ts +2 -2
- package/es/notification/src/NotificationProvider.d.ts +25 -25
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/number-animation/src/NumberAnimation.mjs +1 -1
- package/es/page-header/src/PageHeader.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +2 -2
- package/es/pagination/styles/light.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +6 -6
- package/es/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/es/popconfirm/styles/light.d.ts +1 -1
- package/es/popover/src/Popover.d.ts +7 -7
- package/es/popover/src/PopoverBody.d.ts +4 -4
- package/es/popover/src/styles/index.cssr.mjs +1 -1
- package/es/popselect/src/Popselect.d.ts +63 -63
- package/es/popselect/src/PopselectPanel.d.ts +5 -5
- package/es/progress/src/Circle.mjs +1 -1
- package/es/progress/src/Line.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +3 -3
- package/es/qr-code/src/QrCode.d.ts +3 -3
- package/es/radio/src/RadioButton.d.ts +5 -5
- package/es/radio/src/RadioGroup.d.ts +1 -1
- package/es/radio/src/use-radio.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +2 -2
- package/es/result/src/Result.d.ts +2 -2
- package/es/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/select/src/Select.d.ts +12 -12
- package/es/skeleton/src/Skeleton.d.ts +3 -3
- package/es/slider/src/Slider.d.ts +8 -8
- package/es/slider/src/utils.d.ts +1 -1
- package/es/space/src/Space.d.ts +4 -4
- package/es/spin/src/Spin.d.ts +2 -2
- package/es/split/src/Split.d.ts +3 -3
- package/es/statistic/src/Statistic.d.ts +1 -1
- package/es/steps/src/Step.d.ts +3 -2
- package/es/steps/src/Step.mjs +35 -19
- package/es/steps/src/Steps.d.ts +14 -1
- package/es/steps/src/Steps.mjs +5 -1
- package/es/steps/src/styles/index.cssr.mjs +8 -1
- package/es/switch/src/Switch.d.ts +4 -4
- package/es/table/src/Table.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +9 -9
- package/es/tabs/src/TabPane.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +9 -8
- package/es/tabs/src/Tabs.mjs +3 -1
- package/es/tag/src/Tag.d.ts +6 -6
- package/es/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/es/theme-editor/src/ThemeEditor.mjs +1 -1
- package/es/thing/src/Thing.d.ts +1 -1
- package/es/time/src/Time.d.ts +2 -2
- package/es/time-picker/src/Panel.d.ts +3 -3
- package/es/time-picker/src/PanelCol.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +5 -5
- package/es/time-picker/src/utils.d.ts +1 -1
- package/es/timeline/src/Timeline.d.ts +4 -4
- package/es/timeline/src/TimelineItem.d.ts +2 -2
- package/es/tooltip/src/Tooltip.d.ts +6 -6
- package/es/transfer/src/Transfer.d.ts +5 -5
- package/es/transfer/src/TransferFilter.d.ts +1 -1
- package/es/transfer/src/TransferHeader.d.ts +1 -1
- package/es/transfer/src/TransferList.d.ts +4 -4
- package/es/transfer/src/TransferListItem.d.ts +3 -3
- package/es/tree/src/MotionWrapper.d.ts +1 -1
- package/es/tree/src/Tree.d.ts +8 -8
- package/es/tree/src/TreeNode.d.ts +2 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +3 -3
- package/es/tree/src/TreeNodeContent.d.ts +3 -3
- package/es/tree/src/TreeNodeSwitcher.d.ts +4 -4
- package/es/tree/src/dnd.d.ts +1 -1
- package/es/tree/src/keyboard.d.ts +1 -1
- package/es/tree/src/utils.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +11 -11
- package/es/typography/src/create-header.d.ts +3 -3
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/p.d.ts +1 -1
- package/es/typography/src/text.d.ts +2 -2
- package/es/upload/src/Upload.d.ts +4 -4
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/upload/src/UploadProgress.d.ts +1 -1
- package/es/upload/src/UploadTrigger.d.ts +3 -3
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +4 -4
- package/es/vitest-setup.mjs +27 -0
- package/es/watermark/src/Watermark.d.ts +10 -10
- package/lib/_internal/clear/src/Clear.d.ts +1 -1
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/fade-in-expand-transition/src/FadeInExpandTransition.d.ts +3 -3
- package/lib/_internal/focus-detector/src/FocusDetector.d.ts +1 -1
- package/lib/_internal/icon/src/Icon.d.ts +1 -1
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +1 -1
- package/lib/_internal/select-menu/src/SelectGroupHeader.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +6 -6
- package/lib/_internal/select-menu/src/SelectOption.d.ts +2 -2
- package/lib/_internal/selection/src/Selection.d.ts +9 -9
- package/lib/_internal/slot-machine/src/SlotMachineNumber.d.ts +1 -1
- package/lib/_internal/suffix/src/Suffix.d.ts +1 -1
- package/lib/_mixins/use-config.d.ts +1 -1
- package/lib/_mixins/use-css-vars-class.d.ts +1 -1
- package/lib/_mixins/use-form-item.d.ts +1 -1
- package/lib/_mixins/use-hljs.d.ts +1 -1
- package/lib/_mixins/use-locale.d.ts +1 -1
- package/lib/_mixins/use-rtl.d.ts +1 -1
- package/lib/_mixins/use-style.d.ts +1 -1
- package/lib/_mixins/use-theme.d.ts +1 -1
- package/lib/_utils/composable/use-adjusted-to.d.ts +1 -1
- package/lib/_utils/composable/use-browser-location.d.ts +1 -1
- package/lib/_utils/composable/use-collection.d.ts +1 -1
- package/lib/_utils/composable/use-deferred-true.d.ts +1 -1
- package/lib/_utils/composable/use-is-composing.d.ts +1 -1
- package/lib/_utils/composable/use-lock-html-scroll.d.ts +1 -1
- package/lib/_utils/composable/use-resize.d.ts +1 -1
- package/lib/_utils/cssr/index.d.ts +1 -1
- package/lib/_utils/vue/flatten.d.ts +1 -1
- package/lib/_utils/vue/is-node-v-show-false.d.ts +1 -1
- package/lib/_utils/vue/render.d.ts +1 -1
- package/lib/_utils/vue/resolve-slot.d.ts +1 -1
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +2 -2
- package/lib/anchor/src/AnchorAdapter.d.ts +2 -2
- package/lib/anchor/src/BaseAnchor.d.ts +3 -3
- package/lib/anchor/src/Link.d.ts +1 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +7 -7
- package/lib/avatar/src/Avatar.d.ts +4 -4
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- 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 +11 -11
- package/lib/button/src/styles/index.cssr.js +7 -7
- package/lib/button-group/src/ButtonGroup.d.ts +1 -1
- package/lib/calendar/src/Calendar.d.ts +1 -1
- package/lib/card/src/Card.d.ts +3 -3
- package/lib/carousel/src/Carousel.d.ts +6 -6
- package/lib/carousel/src/CarouselDots.d.ts +1 -1
- package/lib/cascader/src/Cascader.d.ts +8 -8
- package/lib/cascader/src/CascaderMenu.d.ts +2 -2
- package/lib/cascader/src/CascaderOption.d.ts +2 -2
- package/lib/cascader/src/CascaderSelectMenu.d.ts +3 -3
- package/lib/cascader/src/CascaderSubmenu.d.ts +3 -3
- package/lib/checkbox/src/Checkbox.d.ts +10 -10
- package/lib/checkbox/src/CheckboxGroup.d.ts +2 -2
- package/lib/code/src/Code.d.ts +4 -4
- 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 +3 -3
- package/lib/color-picker/src/ColorInput.d.ts +2 -2
- package/lib/color-picker/src/ColorInputUnit.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +5 -5
- package/lib/color-picker/src/ColorPickerSwatches.d.ts +2 -2
- package/lib/color-picker/src/ColorPickerTrigger.d.ts +2 -2
- package/lib/color-picker/src/ColorPreview.d.ts +2 -2
- package/lib/color-picker/src/HueSlider.d.ts +1 -1
- package/lib/color-picker/src/Pallete.d.ts +1 -1
- package/lib/color-picker/src/utils.d.ts +1 -1
- package/lib/composables/use-theme-vars.d.ts +1 -1
- package/lib/config-provider/src/ConfigProvider.d.ts +5 -5
- package/lib/countdown/src/Countdown.d.ts +2 -2
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -2
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +2 -2
- package/lib/data-table/src/HeaderButton/RenderSorter.d.ts +1 -1
- package/lib/data-table/src/HeaderButton/SortButton.d.ts +2 -2
- package/lib/data-table/src/TableParts/Body.d.ts +2 -2
- package/lib/data-table/src/TableParts/BodyCheckbox.d.ts +2 -2
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +2 -2
- package/lib/data-table/src/TableParts/Cell.d.ts +1 -1
- package/lib/data-table/src/TableParts/ExpandTrigger.d.ts +2 -2
- package/lib/data-table/src/TableParts/Header.d.ts +1 -1
- package/lib/data-table/src/use-check.d.ts +1 -1
- package/lib/data-table/src/use-expand.d.ts +1 -1
- package/lib/data-table/src/use-group-header.d.ts +1 -1
- package/lib/data-table/src/use-scroll.d.ts +1 -1
- package/lib/data-table/src/use-sorter.d.ts +1 -1
- package/lib/data-table/src/use-table-data.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +4 -4
- package/lib/date-picker/src/interface.d.ts +6 -19
- package/lib/date-picker/src/panel/date.d.ts +1 -1
- package/lib/date-picker/src/panel/month.d.ts +2 -2
- package/lib/date-picker/src/panel/monthrange.d.ts +2 -2
- package/lib/date-picker/src/panel/panelHeader.d.ts +1 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +1 -1
- package/lib/date-picker/src/panel/use-calendar.js +7 -1
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +5 -1
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -2
- package/lib/date-picker/src/panel/use-panel-common.js +1 -1
- package/lib/date-picker/src/props.js +1 -1
- package/lib/date-picker/src/utils.d.ts +12 -2
- package/lib/date-picker/src/utils.js +10 -0
- package/lib/date-picker/src/validation-utils.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +4 -4
- package/lib/descriptions/src/DescriptionsItem.d.ts +1 -1
- package/lib/descriptions/styles/light.d.ts +1 -1
- package/lib/dialog/src/Dialog.d.ts +3 -3
- package/lib/dialog/src/DialogEnvironment.d.ts +4 -4
- package/lib/dialog/src/DialogProvider.d.ts +1062 -720
- package/lib/dialog/src/composables.d.ts +1 -1
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/dialog/src/styles/index.cssr.js +17 -17
- package/lib/discrete/src/InjectionExtractor.d.ts +1 -1
- package/lib/discrete/src/discreteApp.d.ts +7 -7
- package/lib/divider/src/Divider.d.ts +2 -2
- package/lib/drawer/src/Drawer.d.ts +3 -3
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/lib/drawer/src/DrawerContent.d.ts +1 -1
- package/lib/dropdown/src/Dropdown.d.ts +10 -10
- package/lib/dropdown/src/DropdownGroup.d.ts +1 -1
- package/lib/dropdown/src/DropdownMenu.d.ts +1 -1
- package/lib/dropdown/src/DropdownOption.d.ts +2 -2
- package/lib/dropdown/src/DropdownRenderOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +3 -3
- 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 +5 -5
- package/lib/ellipsis/src/Ellipsis.d.ts +1 -1
- package/lib/empty/src/Empty.d.ts +2 -2
- package/lib/equation/src/Equation.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +4 -4
- package/lib/float-button/src/FloatButton.d.ts +3 -3
- package/lib/float-button-group/src/FloatButtonGroup.d.ts +2 -2
- package/lib/form/src/Form.d.ts +3 -3
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +3 -3
- package/lib/form/src/FormItemRow.d.ts +1 -1
- package/lib/form/src/utils.d.ts +2 -2
- package/lib/gradient-text/src/GradientText.d.ts +3 -3
- package/lib/grid/src/Grid.d.ts +6 -6
- package/lib/grid/src/GridItem.d.ts +3 -3
- package/lib/heatmap/src/Heatmap.d.ts +2 -2
- package/lib/heatmap/src/Rect.d.ts +1 -1
- package/lib/heatmap/styles/light.d.ts +1 -1
- package/lib/icon/src/Icon.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +2 -2
- package/lib/image/src/Image.d.ts +3 -3
- package/lib/image/src/ImagePreview.d.ts +1 -1
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +2 -2
- package/lib/input/src/Input.d.ts +17 -17
- package/lib/input/src/InputGroupLabel.d.ts +1 -1
- package/lib/input-number/src/InputNumber.d.ts +8 -8
- package/lib/input-otp/src/InputOtp.d.ts +4 -4
- package/lib/layout/src/Layout.d.ts +3 -3
- package/lib/layout/src/LayoutContent.d.ts +1 -1
- package/lib/layout/src/LayoutFooter.d.ts +1 -1
- package/lib/layout/src/LayoutHeader.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +3 -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 +4 -4
- package/lib/legacy-grid/src/Row.d.ts +2 -2
- package/lib/legacy-transfer/src/Transfer.d.ts +5 -5
- 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 +4 -4
- package/lib/legacy-transfer/src/TransferListItem.d.ts +1 -1
- package/lib/legacy-transfer/src/use-transfer-data.d.ts +1 -1
- package/lib/list/src/List.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBar.d.ts +1 -1
- package/lib/loading-bar/src/LoadingBarProvider.d.ts +1 -1
- package/lib/log/src/Log.d.ts +5 -5
- package/lib/log/src/Log.js +3 -1
- package/lib/marquee/src/Marquee.d.ts +1 -1
- package/lib/mention/src/Mention.d.ts +12 -12
- package/lib/menu/src/Menu.d.ts +6 -6
- package/lib/menu/src/MenuOption.d.ts +3 -3
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +2 -2
- package/lib/menu/src/Submenu.d.ts +3 -3
- package/lib/menu/src/use-menu-child.d.ts +1 -1
- package/lib/menu/src/utils.d.ts +1 -1
- package/lib/message/src/Message.d.ts +1 -1
- package/lib/message/src/Message.js +0 -1
- package/lib/message/src/MessageEnvironment.d.ts +2 -2
- package/lib/message/src/MessageProvider.d.ts +2 -2
- package/lib/modal/src/BodyWrapper.d.ts +7 -7
- package/lib/modal/src/Modal.d.ts +7 -7
- package/lib/modal/src/ModalEnvironment.d.ts +7 -7
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal/src/styles/index.cssr.js +2 -2
- package/lib/notification/src/Notification.d.ts +3 -3
- package/lib/notification/src/NotificationContainer.d.ts +1 -1
- package/lib/notification/src/NotificationEnvironment.d.ts +2 -2
- package/lib/notification/src/NotificationProvider.d.ts +25 -25
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/page-header/src/PageHeader.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +2 -2
- package/lib/pagination/styles/light.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +6 -6
- package/lib/popconfirm/src/PopconfirmPanel.d.ts +1 -1
- package/lib/popconfirm/styles/light.d.ts +1 -1
- package/lib/popover/src/Popover.d.ts +7 -7
- package/lib/popover/src/PopoverBody.d.ts +4 -4
- package/lib/popselect/src/Popselect.d.ts +63 -63
- package/lib/popselect/src/PopselectPanel.d.ts +5 -5
- package/lib/progress/src/Circle.js +1 -1
- package/lib/progress/src/Line.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +3 -3
- package/lib/qr-code/src/QrCode.d.ts +3 -3
- package/lib/radio/src/RadioButton.d.ts +5 -5
- package/lib/radio/src/RadioGroup.d.ts +1 -1
- package/lib/radio/src/use-radio.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +2 -2
- package/lib/result/src/Result.d.ts +2 -2
- package/lib/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/select/src/Select.d.ts +12 -12
- package/lib/skeleton/src/Skeleton.d.ts +3 -3
- package/lib/slider/src/Slider.d.ts +8 -8
- package/lib/slider/src/utils.d.ts +1 -1
- package/lib/space/src/Space.d.ts +4 -4
- package/lib/spin/src/Spin.d.ts +2 -2
- package/lib/split/src/Split.d.ts +3 -3
- package/lib/statistic/src/Statistic.d.ts +1 -1
- package/lib/steps/src/Step.d.ts +3 -2
- package/lib/steps/src/Step.js +48 -30
- package/lib/steps/src/Steps.d.ts +14 -1
- package/lib/steps/src/Steps.js +7 -2
- package/lib/steps/src/styles/index.cssr.js +8 -1
- package/lib/switch/src/Switch.d.ts +4 -4
- package/lib/table/src/Table.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +9 -9
- package/lib/tabs/src/TabPane.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +9 -8
- package/lib/tabs/src/Tabs.js +5 -3
- package/lib/tag/src/Tag.d.ts +6 -6
- package/lib/theme-editor/src/ThemeEditor.d.ts +1 -1
- package/lib/thing/src/Thing.d.ts +1 -1
- package/lib/time/src/Time.d.ts +2 -2
- package/lib/time-picker/src/Panel.d.ts +3 -3
- package/lib/time-picker/src/PanelCol.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +5 -5
- package/lib/time-picker/src/utils.d.ts +1 -1
- package/lib/timeline/src/Timeline.d.ts +4 -4
- package/lib/timeline/src/TimelineItem.d.ts +2 -2
- package/lib/tooltip/src/Tooltip.d.ts +6 -6
- package/lib/transfer/src/Transfer.d.ts +5 -5
- package/lib/transfer/src/TransferFilter.d.ts +1 -1
- package/lib/transfer/src/TransferHeader.d.ts +1 -1
- package/lib/transfer/src/TransferList.d.ts +4 -4
- package/lib/transfer/src/TransferListItem.d.ts +3 -3
- package/lib/tree/src/MotionWrapper.d.ts +1 -1
- package/lib/tree/src/Tree.d.ts +8 -8
- package/lib/tree/src/TreeNode.d.ts +2 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +3 -3
- package/lib/tree/src/TreeNodeContent.d.ts +3 -3
- package/lib/tree/src/TreeNodeSwitcher.d.ts +4 -4
- package/lib/tree/src/dnd.d.ts +1 -1
- package/lib/tree/src/keyboard.d.ts +1 -1
- package/lib/tree/src/utils.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +11 -11
- package/lib/typography/src/create-header.d.ts +3 -3
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/p.d.ts +1 -1
- package/lib/typography/src/text.d.ts +2 -2
- package/lib/upload/src/Upload.d.ts +4 -4
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/upload/src/UploadProgress.d.ts +1 -1
- package/lib/upload/src/UploadTrigger.d.ts +3 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +4 -4
- package/lib/vitest-setup.js +29 -0
- package/lib/watermark/src/Watermark.d.ts +10 -10
- package/package.json +45 -48
- package/web-types.json +12 -2
- package/es/jest-setup.mjs +0 -5
- package/lib/jest-setup.js +0 -7
- /package/es/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
- /package/lib/{jest-setup.d.ts → vitest-setup.d.ts} +0 -0
package/lib/steps/src/Step.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const stepProps: {
|
|
4
4
|
readonly status: PropType<"process" | "finish" | "error" | "wait">;
|
|
5
5
|
readonly title: StringConstructor;
|
|
@@ -28,7 +28,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
28
28
|
}>, {
|
|
29
29
|
stepsSlots: import("./Steps").StepsSlots;
|
|
30
30
|
mergedClsPrefix: import("vue").Ref<string, string>;
|
|
31
|
-
vertical: import("vue").
|
|
31
|
+
vertical: import("vue").Ref<boolean, boolean>;
|
|
32
32
|
mergedStatus: import("vue").ComputedRef<"error" | "wait" | "finish" | "process">;
|
|
33
33
|
handleStepClick: import("vue").ComputedRef<(() => void) | undefined>;
|
|
34
34
|
cssVars: import("vue").ComputedRef<{
|
|
@@ -47,6 +47,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
47
47
|
}> | undefined;
|
|
48
48
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
49
49
|
onRender: (() => void) | undefined;
|
|
50
|
+
contentPlacement: import("vue").Ref<"bottom" | "right", "bottom" | "right">;
|
|
50
51
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
52
|
readonly status: PropType<"process" | "finish" | "error" | "wait">;
|
|
52
53
|
readonly title: StringConstructor;
|
package/lib/steps/src/Step.js
CHANGED
|
@@ -28,9 +28,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
28
28
|
(0, _utils_1.throwError)('step', '`n-step` must be placed inside `n-steps`.');
|
|
29
29
|
const { inlineThemeDisabled } = (0, _mixins_1.useConfig)();
|
|
30
30
|
const { props: stepsProps, mergedThemeRef, mergedClsPrefixRef, stepsSlots } = NSteps;
|
|
31
|
-
const verticalRef = (0, vue_1.
|
|
32
|
-
|
|
33
|
-
});
|
|
31
|
+
const verticalRef = (0, vue_1.toRef)(stepsProps, 'vertical');
|
|
32
|
+
const contentPlacementRef = (0, vue_1.toRef)(stepsProps, 'contentPlacement');
|
|
34
33
|
const mergedStatusRef = (0, vue_1.computed)(() => {
|
|
35
34
|
const { status } = props;
|
|
36
35
|
if (status) {
|
|
@@ -102,11 +101,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
102
101
|
handleStepClick,
|
|
103
102
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
104
103
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
105
|
-
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender
|
|
104
|
+
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
105
|
+
contentPlacement: contentPlacementRef
|
|
106
106
|
};
|
|
107
107
|
},
|
|
108
108
|
render() {
|
|
109
|
-
const { mergedClsPrefix, onRender, handleStepClick, disabled } = this;
|
|
109
|
+
const { mergedClsPrefix, onRender, handleStepClick, disabled, contentPlacement, vertical } = this;
|
|
110
110
|
const descriptionNode = (0, _utils_1.resolveWrappedSlot)(this.$slots.default, (children) => {
|
|
111
111
|
const mergedDescription = children || this.description;
|
|
112
112
|
if (mergedDescription) {
|
|
@@ -114,6 +114,48 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
114
114
|
}
|
|
115
115
|
return null;
|
|
116
116
|
});
|
|
117
|
+
const splitorNode = (0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-splitor` });
|
|
118
|
+
const indicatorNode = (
|
|
119
|
+
// We need a key here to prevent reconcile progress from affecting styling.
|
|
120
|
+
// A DOM can be reused so if it is used both for A component & B component,
|
|
121
|
+
// the styling transition bewteen two components may be incorrect.
|
|
122
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-indicator`, key: contentPlacement },
|
|
123
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-indicator-slot` },
|
|
124
|
+
(0, vue_1.h)(_internal_1.NIconSwitchTransition, null, {
|
|
125
|
+
default: () => {
|
|
126
|
+
return (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (icon) => {
|
|
127
|
+
const { mergedStatus, stepsSlots } = this;
|
|
128
|
+
return !(mergedStatus === 'finish' || mergedStatus === 'error') ? (icon || ((0, vue_1.h)("div", { key: this.internalIndex, class: `${mergedClsPrefix}-step-indicator-slot__index` }, this.internalIndex))) : mergedStatus === 'finish' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, key: "finish" }, {
|
|
129
|
+
default: () => (0, _utils_1.resolveSlot)(stepsSlots['finish-icon'], () => [
|
|
130
|
+
(0, vue_1.h)(icons_1.CheckmarkIcon, null)
|
|
131
|
+
])
|
|
132
|
+
})) : mergedStatus === 'error' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, key: "error" }, {
|
|
133
|
+
default: () => (0, _utils_1.resolveSlot)(stepsSlots['error-icon'], () => [
|
|
134
|
+
(0, vue_1.h)(icons_1.CloseIcon, null)
|
|
135
|
+
])
|
|
136
|
+
})) : null;
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
})),
|
|
140
|
+
vertical ? splitorNode : null));
|
|
141
|
+
const contentNode = ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content` },
|
|
142
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content-header` },
|
|
143
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content-header__title` }, (0, _utils_1.resolveSlot)(this.$slots.title, () => [this.title])),
|
|
144
|
+
!vertical && contentPlacement === 'right' ? splitorNode : null),
|
|
145
|
+
descriptionNode));
|
|
146
|
+
let stepNode;
|
|
147
|
+
if (!vertical && contentPlacement === 'bottom') {
|
|
148
|
+
stepNode = ((0, vue_1.h)(vue_1.Fragment, null,
|
|
149
|
+
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-line` },
|
|
150
|
+
indicatorNode,
|
|
151
|
+
splitorNode),
|
|
152
|
+
contentNode));
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
stepNode = ((0, vue_1.h)(vue_1.Fragment, null,
|
|
156
|
+
indicatorNode,
|
|
157
|
+
contentNode));
|
|
158
|
+
}
|
|
117
159
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
118
160
|
return ((0, vue_1.h)("div", { class: [
|
|
119
161
|
`${mergedClsPrefix}-step`,
|
|
@@ -122,30 +164,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
122
164
|
this.themeClass,
|
|
123
165
|
descriptionNode && `${mergedClsPrefix}-step--show-description`,
|
|
124
166
|
`${mergedClsPrefix}-step--${this.mergedStatus}-status`
|
|
125
|
-
], style: this.cssVars, onClick: handleStepClick },
|
|
126
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-indicator` },
|
|
127
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-indicator-slot` },
|
|
128
|
-
(0, vue_1.h)(_internal_1.NIconSwitchTransition, null, {
|
|
129
|
-
default: () => {
|
|
130
|
-
return (0, _utils_1.resolveWrappedSlot)(this.$slots.icon, (icon) => {
|
|
131
|
-
const { mergedStatus, stepsSlots } = this;
|
|
132
|
-
return !(mergedStatus === 'finish' || mergedStatus === 'error') ? (icon || ((0, vue_1.h)("div", { key: this.internalIndex, class: `${mergedClsPrefix}-step-indicator-slot__index` }, this.internalIndex))) : mergedStatus === 'finish' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, key: "finish" }, {
|
|
133
|
-
default: () => (0, _utils_1.resolveSlot)(stepsSlots['finish-icon'], () => [
|
|
134
|
-
(0, vue_1.h)(icons_1.CheckmarkIcon, null)
|
|
135
|
-
])
|
|
136
|
-
})) : mergedStatus === 'error' ? ((0, vue_1.h)(_internal_1.NBaseIcon, { clsPrefix: mergedClsPrefix, key: "error" }, {
|
|
137
|
-
default: () => (0, _utils_1.resolveSlot)(stepsSlots['error-icon'], () => [
|
|
138
|
-
(0, vue_1.h)(icons_1.CloseIcon, null)
|
|
139
|
-
])
|
|
140
|
-
})) : null;
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
})),
|
|
144
|
-
this.vertical ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-splitor` })) : null),
|
|
145
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content` },
|
|
146
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content-header` },
|
|
147
|
-
(0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-content-header__title` }, (0, _utils_1.resolveSlot)(this.$slots.title, () => [this.title])),
|
|
148
|
-
!this.vertical ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-step-splitor` })) : null),
|
|
149
|
-
descriptionNode)));
|
|
167
|
+
], style: this.cssVars, onClick: handleStepClick }, stepNode));
|
|
150
168
|
}
|
|
151
169
|
});
|
package/lib/steps/src/Steps.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType, Ref, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { MergedTheme } from '../../_mixins';
|
|
2
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
4
|
import type { StepsTheme } from '../styles';
|
|
4
|
-
import { type ExtractPropTypes, type PropType, type Ref, type SlotsType, type VNode } from 'vue';
|
|
5
5
|
export declare const stepsProps: {
|
|
6
6
|
current: NumberConstructor;
|
|
7
7
|
status: {
|
|
@@ -13,6 +13,10 @@ export declare const stepsProps: {
|
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
vertical: BooleanConstructor;
|
|
16
|
+
contentPlacement: {
|
|
17
|
+
type: PropType<"right" | "bottom">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
16
20
|
'onUpdate:current': PropType<MaybeArray<(current: number) => void>>;
|
|
17
21
|
onUpdateCurrent: PropType<MaybeArray<(current: number) => void>>;
|
|
18
22
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
@@ -145,6 +149,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
145
149
|
default: string;
|
|
146
150
|
};
|
|
147
151
|
vertical: BooleanConstructor;
|
|
152
|
+
contentPlacement: {
|
|
153
|
+
type: PropType<"right" | "bottom">;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
148
156
|
'onUpdate:current': PropType<MaybeArray<(current: number) => void>>;
|
|
149
157
|
onUpdateCurrent: PropType<MaybeArray<(current: number) => void>>;
|
|
150
158
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
@@ -266,6 +274,10 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
266
274
|
default: string;
|
|
267
275
|
};
|
|
268
276
|
vertical: BooleanConstructor;
|
|
277
|
+
contentPlacement: {
|
|
278
|
+
type: PropType<"right" | "bottom">;
|
|
279
|
+
default: string;
|
|
280
|
+
};
|
|
269
281
|
'onUpdate:current': PropType<MaybeArray<(current: number) => void>>;
|
|
270
282
|
onUpdateCurrent: PropType<MaybeArray<(current: number) => void>>;
|
|
271
283
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
@@ -377,5 +389,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
377
389
|
size: "small" | "medium";
|
|
378
390
|
status: "error" | "wait" | "finish" | "process";
|
|
379
391
|
vertical: boolean;
|
|
392
|
+
contentPlacement: "bottom" | "right";
|
|
380
393
|
}, SlotsType<StepsSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
381
394
|
export default _default;
|
package/lib/steps/src/Steps.js
CHANGED
|
@@ -27,7 +27,10 @@ exports.stepsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
27
27
|
}, size: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: 'medium'
|
|
30
|
-
}, vertical: Boolean,
|
|
30
|
+
}, vertical: Boolean, contentPlacement: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'right'
|
|
33
|
+
}, 'onUpdate:current': [Function, Array], onUpdateCurrent: [Function, Array] });
|
|
31
34
|
exports.stepsInjectionKey = (0, _utils_1.createInjectionKey)('n-steps');
|
|
32
35
|
exports.default = (0, vue_1.defineComponent)({
|
|
33
36
|
name: 'Steps',
|
|
@@ -53,7 +56,9 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
53
56
|
return ((0, vue_1.h)("div", { class: [
|
|
54
57
|
`${mergedClsPrefix}-steps`,
|
|
55
58
|
this.rtlEnabled && `${mergedClsPrefix}-steps--rtl`,
|
|
56
|
-
this.vertical && `${mergedClsPrefix}-steps--vertical
|
|
59
|
+
this.vertical && `${mergedClsPrefix}-steps--vertical`,
|
|
60
|
+
this.contentPlacement === 'bottom'
|
|
61
|
+
&& `${mergedClsPrefix}-steps--content-bottom`
|
|
57
62
|
] }, stepsWithIndex((0, _utils_1.flatten)((0, _utils_1.getSlot)(this)))));
|
|
58
63
|
}
|
|
59
64
|
});
|
|
@@ -104,4 +104,11 @@ exports.default = (0, cssr_1.cB)('steps', `
|
|
|
104
104
|
margin: 0 !important;
|
|
105
105
|
left: calc(var(--n-indicator-size) / 2);
|
|
106
106
|
height: calc(100% - var(--n-indicator-size));
|
|
107
|
-
`)])]), (0, cssr_1.cB)('step-content', [(0, cssr_1.cE)('description', 'margin-top: 8px;')])])])])])
|
|
107
|
+
`)])]), (0, cssr_1.cB)('step-content', [(0, cssr_1.cE)('description', 'margin-top: 8px;')])])])])]), (0, cssr_1.cM)('content-bottom', [(0, cssr_1.cNotM)('vertical', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'flex-direction: column', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step-line', 'display: flex;', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step-splitor', `
|
|
108
|
+
margin-top: 0;
|
|
109
|
+
align-self: center;
|
|
110
|
+
`)])])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step-content', 'margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);', [(0, cssr_1.cB)('step-content-header', `
|
|
111
|
+
margin-left: 0;
|
|
112
|
+
`), (0, cssr_1.cB)('step-content__description', `
|
|
113
|
+
margin-left: 0;
|
|
114
|
+
`)])])])])])])]);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { CSSProperties, PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
3
|
import type { OnUpdateValue } from './interface';
|
|
3
|
-
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
4
4
|
export declare const switchProps: {
|
|
5
5
|
readonly size: {
|
|
6
6
|
readonly type: PropType<"small" | "medium" | "large">;
|
|
@@ -463,11 +463,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
463
463
|
}, any>>>;
|
|
464
464
|
}>> & Readonly<{}>, {
|
|
465
465
|
readonly value: string | number | boolean | undefined;
|
|
466
|
-
readonly size: "small" | "medium" | "large";
|
|
467
466
|
readonly disabled: boolean | undefined;
|
|
468
|
-
readonly
|
|
469
|
-
readonly loading: boolean;
|
|
467
|
+
readonly size: "small" | "medium" | "large";
|
|
470
468
|
readonly defaultValue: string | number | boolean;
|
|
469
|
+
readonly loading: boolean;
|
|
470
|
+
readonly round: boolean;
|
|
471
471
|
readonly checkedValue: string | number | boolean;
|
|
472
472
|
readonly uncheckedValue: string | number | boolean;
|
|
473
473
|
readonly rubberBand: boolean;
|
package/lib/table/src/Table.d.ts
CHANGED
package/lib/tabs/src/Tab.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
2
|
export declare const tabProps: {
|
|
3
|
+
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
4
|
+
readonly disabled: BooleanConstructor;
|
|
3
5
|
readonly name: {
|
|
4
6
|
readonly type: import("vue").PropType<string | number>;
|
|
5
7
|
readonly required: true;
|
|
6
8
|
};
|
|
7
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
8
|
-
readonly disabled: BooleanConstructor;
|
|
9
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
10
9
|
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
11
10
|
readonly closable: {
|
|
12
11
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
13
12
|
readonly default: undefined;
|
|
14
13
|
};
|
|
14
|
+
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
15
15
|
readonly internalLeftPadded: BooleanConstructor;
|
|
16
16
|
readonly internalAddable: BooleanConstructor;
|
|
17
17
|
readonly internalCreatedByPane: BooleanConstructor;
|
|
18
18
|
};
|
|
19
19
|
export type TabProps = ExtractPublicPropTypes<typeof tabProps>;
|
|
20
20
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
21
|
+
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
22
|
+
readonly disabled: BooleanConstructor;
|
|
21
23
|
readonly name: {
|
|
22
24
|
readonly type: import("vue").PropType<string | number>;
|
|
23
25
|
readonly required: true;
|
|
24
26
|
};
|
|
25
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
26
|
-
readonly disabled: BooleanConstructor;
|
|
27
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
28
27
|
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
29
28
|
readonly closable: {
|
|
30
29
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
31
30
|
readonly default: undefined;
|
|
32
31
|
};
|
|
32
|
+
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
33
33
|
readonly internalLeftPadded: BooleanConstructor;
|
|
34
34
|
readonly internalAddable: BooleanConstructor;
|
|
35
35
|
readonly internalCreatedByPane: BooleanConstructor;
|
|
@@ -46,18 +46,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
46
46
|
handleClose(e: MouseEvent): void;
|
|
47
47
|
activateTab(): void;
|
|
48
48
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
50
|
+
readonly disabled: BooleanConstructor;
|
|
49
51
|
readonly name: {
|
|
50
52
|
readonly type: import("vue").PropType<string | number>;
|
|
51
53
|
readonly required: true;
|
|
52
54
|
};
|
|
53
|
-
readonly label: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
54
|
-
readonly disabled: BooleanConstructor;
|
|
55
|
-
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
56
55
|
readonly tabProps: import("vue").PropType<import("vue").HTMLAttributes>;
|
|
57
56
|
readonly closable: {
|
|
58
57
|
readonly type: import("vue").PropType<boolean | undefined>;
|
|
59
58
|
readonly default: undefined;
|
|
60
59
|
};
|
|
60
|
+
readonly tab: import("vue").PropType<string | number | import("vue").VNode | (() => import("vue").VNodeChild)>;
|
|
61
61
|
readonly internalLeftPadded: BooleanConstructor;
|
|
62
62
|
readonly internalAddable: BooleanConstructor;
|
|
63
63
|
readonly internalCreatedByPane: BooleanConstructor;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { HTMLAttributes, PropType, SlotsType, VNode, VNodeChild } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type HTMLAttributes, type PropType, type SlotsType, type VNode, type VNodeChild } from 'vue';
|
|
3
3
|
export declare const tabPaneProps: {
|
|
4
4
|
readonly tab: PropType<string | number | VNode | (() => VNodeChild)>;
|
|
5
5
|
readonly name: {
|
package/lib/tabs/src/Tabs.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import type { ComponentPublicInstance, CSSProperties, ExtractPropTypes, PropType, SlotsType, VNode } from 'vue';
|
|
2
|
+
import type { VXScrollInst } from 'vueuc';
|
|
1
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
4
|
import type { Addable, OnBeforeLeave, OnClose, OnUpdateValue, TabsType } from './interface';
|
|
3
|
-
import {
|
|
4
|
-
import { type VXScrollInst } from 'vueuc';
|
|
5
|
+
import { nextTick } from 'vue';
|
|
5
6
|
export declare const tabsProps: {
|
|
6
7
|
readonly value: PropType<string | number>;
|
|
7
8
|
readonly defaultValue: PropType<string | number>;
|
|
@@ -734,12 +735,12 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
734
735
|
addTabFixed: import("vue").Ref<boolean, boolean>;
|
|
735
736
|
tabWrapperStyle: import("vue").ComputedRef<{
|
|
736
737
|
display: string;
|
|
737
|
-
justifyContent: "start" | "end" | "space-around" | "space-between" | "space-evenly"
|
|
738
|
+
justifyContent: "center" | "start" | "end" | "space-around" | "space-between" | "space-evenly";
|
|
738
739
|
} | undefined>;
|
|
739
|
-
handleNavResize:
|
|
740
|
+
handleNavResize: (entry: ResizeObserverEntry) => void;
|
|
740
741
|
mergedSize: import("vue").ComputedRef<"small" | "medium" | "large">;
|
|
741
|
-
handleScroll:
|
|
742
|
-
handleTabsResize:
|
|
742
|
+
handleScroll: (e: Event) => void;
|
|
743
|
+
handleTabsResize: (entry: ResizeObserverEntry) => void;
|
|
743
744
|
cssVars: import("vue").ComputedRef<{
|
|
744
745
|
'--n-bezier': string;
|
|
745
746
|
'--n-color-segment': string;
|
|
@@ -775,7 +776,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
775
776
|
'--n-tab-color-segment': string;
|
|
776
777
|
}> | undefined;
|
|
777
778
|
themeClass: import("vue").Ref<string, string> | undefined;
|
|
778
|
-
animationDirection: import("vue").Ref<"
|
|
779
|
+
animationDirection: import("vue").Ref<"prev" | "next", "prev" | "next">;
|
|
779
780
|
renderNameListRef: {
|
|
780
781
|
value: Array<string | number>;
|
|
781
782
|
};
|
|
@@ -1106,7 +1107,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
1106
1107
|
readonly type: TabsType;
|
|
1107
1108
|
readonly size: "small" | "medium" | "large";
|
|
1108
1109
|
readonly closable: boolean;
|
|
1109
|
-
readonly placement: "
|
|
1110
|
+
readonly placement: "top" | "bottom" | "left" | "right";
|
|
1110
1111
|
readonly trigger: "click" | "hover";
|
|
1111
1112
|
readonly animated: boolean;
|
|
1112
1113
|
readonly tabsPadding: number;
|
package/lib/tabs/src/Tabs.js
CHANGED
|
@@ -15,6 +15,8 @@ const styles_1 = require("../styles");
|
|
|
15
15
|
const interface_1 = require("./interface");
|
|
16
16
|
const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
|
|
17
17
|
const Tab_1 = __importDefault(require("./Tab"));
|
|
18
|
+
// Fix vue-tsc error
|
|
19
|
+
const throttle = lodash_1.throttle;
|
|
18
20
|
exports.tabsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { value: [String, Number], defaultValue: [String, Number], trigger: {
|
|
19
21
|
type: String,
|
|
20
22
|
default: 'click'
|
|
@@ -372,7 +374,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
372
374
|
: yScrollElRef.value) || null);
|
|
373
375
|
}
|
|
374
376
|
}
|
|
375
|
-
const handleNavResize =
|
|
377
|
+
const handleNavResize = throttle(_handleNavResize, 64);
|
|
376
378
|
(0, vue_1.watch)([() => props.justifyContent, () => props.size], () => {
|
|
377
379
|
void (0, vue_1.nextTick)(() => {
|
|
378
380
|
const { type } = props;
|
|
@@ -419,7 +421,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
419
421
|
}
|
|
420
422
|
deriveScrollShadow(((_a = xScrollInstRef.value) === null || _a === void 0 ? void 0 : _a.$el) || null);
|
|
421
423
|
}
|
|
422
|
-
const handleTabsResize =
|
|
424
|
+
const handleTabsResize = throttle(_handleTabsResize, 64);
|
|
423
425
|
function handleAdd() {
|
|
424
426
|
const { onAdd } = props;
|
|
425
427
|
if (onAdd)
|
|
@@ -451,7 +453,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
451
453
|
endReachedRef.value = scrollTop + offsetHeight >= scrollHeight;
|
|
452
454
|
}
|
|
453
455
|
}
|
|
454
|
-
const handleScroll =
|
|
456
|
+
const handleScroll = throttle((e) => {
|
|
455
457
|
deriveScrollShadow(e.target);
|
|
456
458
|
}, 64);
|
|
457
459
|
(0, vue_1.provide)(interface_1.tabsInjectionKey, {
|
package/lib/tag/src/Tag.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PropType, Ref, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
|
-
import { type PropType, type Ref, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export interface TagPublicMethods {
|
|
4
4
|
setTextContent: (textContent: string) => void;
|
|
5
5
|
}
|
|
@@ -970,14 +970,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
970
970
|
closeMargin: string;
|
|
971
971
|
}, any>>>;
|
|
972
972
|
}>> & Readonly<{}>, {
|
|
973
|
-
type: "error" | "default" | "info" | "warning" | "success" | "primary";
|
|
974
|
-
size: "small" | "medium" | "large" | "tiny";
|
|
975
973
|
disabled: boolean | undefined;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
checked: boolean;
|
|
974
|
+
type: "default" | "info" | "warning" | "error" | "success" | "primary";
|
|
975
|
+
size: "tiny" | "small" | "medium" | "large";
|
|
979
976
|
bordered: boolean | undefined;
|
|
980
977
|
closable: boolean;
|
|
978
|
+
round: boolean;
|
|
979
|
+
strong: boolean;
|
|
980
|
+
checked: boolean;
|
|
981
981
|
checkable: boolean;
|
|
982
982
|
triggerClickOnClose: boolean;
|
|
983
983
|
internalCloseFocusable: boolean;
|
package/lib/thing/src/Thing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { CSSProperties, PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type CSSProperties, type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const thingProps: {
|
|
4
4
|
title: StringConstructor;
|
|
5
5
|
titleExtra: StringConstructor;
|
package/lib/time/src/Time.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type PropType } from 'vue';
|
|
3
3
|
export declare const timeProps: {
|
|
4
4
|
readonly time: {
|
|
5
5
|
readonly type: PropType<number | Date>;
|
|
@@ -58,8 +58,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
58
|
}>> & Readonly<{}>, {
|
|
59
59
|
readonly type: "relative" | "date" | "datetime";
|
|
60
60
|
readonly to: number | Date;
|
|
61
|
-
readonly time: number | Date;
|
|
62
61
|
readonly text: boolean;
|
|
62
|
+
readonly time: number | Date;
|
|
63
63
|
readonly unix: boolean;
|
|
64
64
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
65
65
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
1
2
|
import type { MaybeArray } from '../../_utils';
|
|
2
|
-
import {
|
|
3
|
-
import { type IsHourDisabled, type IsMinuteDisabled, type IsSecondDisabled, type Item, type ItemValue } from './interface';
|
|
3
|
+
import type { IsHourDisabled, IsMinuteDisabled, IsSecondDisabled, Item, ItemValue } from './interface';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
actions: {
|
|
6
6
|
type: PropType<Array<"clear" | "now" | "confirm"> | null>;
|
|
@@ -846,7 +846,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
846
846
|
use12Hours: BooleanConstructor;
|
|
847
847
|
}>> & Readonly<{}>, {
|
|
848
848
|
transitionDisabled: boolean;
|
|
849
|
-
actions: ("clear" | "
|
|
849
|
+
actions: ("clear" | "now" | "confirm")[] | null;
|
|
850
850
|
use12Hours: boolean;
|
|
851
851
|
isValueInvalid: boolean;
|
|
852
852
|
isHourInvalid: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import type { PropType, VNode } from 'vue';
|
|
2
|
+
import type { FollowerPlacement } from 'vueuc';
|
|
1
3
|
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
2
4
|
import type { FormValidationStatus } from '../../form/src/public-types';
|
|
3
5
|
import type { IsHourDisabled, IsMinuteDisabled, IsSecondDisabled, ItemValue, OnUpdateFormattedValue, OnUpdateValue, PanelRef, Size } from './interface';
|
|
4
|
-
import { type PropType, type VNode } from 'vue';
|
|
5
|
-
import { type FollowerPlacement } from 'vueuc';
|
|
6
6
|
export declare const timePickerProps: {
|
|
7
7
|
to: {
|
|
8
8
|
type: PropType<HTMLElement | string | boolean>;
|
|
@@ -3573,15 +3573,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3573
3573
|
}>;
|
|
3574
3574
|
}>>>;
|
|
3575
3575
|
}>> & Readonly<{}>, {
|
|
3576
|
-
to: string | boolean | HTMLElement;
|
|
3577
3576
|
disabled: boolean | undefined;
|
|
3578
|
-
show: boolean | undefined;
|
|
3579
|
-
format: string;
|
|
3580
3577
|
showIcon: boolean;
|
|
3581
3578
|
bordered: boolean | undefined;
|
|
3579
|
+
to: string | boolean | HTMLElement;
|
|
3582
3580
|
clearable: boolean;
|
|
3583
3581
|
defaultValue: number | null;
|
|
3584
3582
|
placement: FollowerPlacement;
|
|
3583
|
+
show: boolean | undefined;
|
|
3584
|
+
format: string;
|
|
3585
3585
|
inputReadonly: boolean;
|
|
3586
3586
|
use12Hours: boolean;
|
|
3587
3587
|
stateful: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType, Ref } from 'vue';
|
|
2
|
+
import type { MergedTheme } from '../../_mixins';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
1
4
|
import type { TimelineTheme } from '../styles';
|
|
2
|
-
import { type ExtractPropTypes, type PropType, type Ref } from 'vue';
|
|
3
|
-
import { type MergedTheme } from '../../_mixins';
|
|
4
|
-
import { type ExtractPublicPropTypes } from '../../_utils';
|
|
5
5
|
export declare const timelineProps: {
|
|
6
6
|
readonly horizontal: BooleanConstructor;
|
|
7
7
|
readonly itemPlacement: {
|
|
@@ -260,8 +260,8 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
|
260
260
|
iconSizeLarge: string;
|
|
261
261
|
}, any>>>;
|
|
262
262
|
}>> & Readonly<{}>, {
|
|
263
|
-
readonly size: "medium" | "large";
|
|
264
263
|
readonly horizontal: boolean;
|
|
264
|
+
readonly size: "medium" | "large";
|
|
265
265
|
readonly itemPlacement: "left" | "right";
|
|
266
266
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
267
267
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { PropType, SlotsType, VNode } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
|
-
import { type PropType, type SlotsType, type VNode } from 'vue';
|
|
3
3
|
export declare const timelineItemProps: {
|
|
4
4
|
time: PropType<string | number>;
|
|
5
5
|
title: StringConstructor;
|
|
@@ -66,7 +66,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
66
66
|
default: string;
|
|
67
67
|
};
|
|
68
68
|
}>> & Readonly<{}>, {
|
|
69
|
-
type: "
|
|
69
|
+
type: "default" | "info" | "warning" | "error" | "success";
|
|
70
70
|
lineType: "default" | "dashed";
|
|
71
71
|
}, SlotsType<TimelineItemSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
72
72
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import type { SlotsType } from 'vue';
|
|
1
2
|
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
2
3
|
import type { PopoverInst, PopoverSlots } from '../../popover';
|
|
3
|
-
import { type SlotsType } from 'vue';
|
|
4
4
|
export type TooltipInst = PopoverInst;
|
|
5
5
|
export declare const tooltipProps: {
|
|
6
6
|
theme: import("vue").PropType<import("../../_mixins").Theme<"Tooltip", {
|
|
@@ -669,21 +669,21 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
669
669
|
minWidth: NumberConstructor;
|
|
670
670
|
maxWidth: NumberConstructor;
|
|
671
671
|
}>> & Readonly<{}>, {
|
|
672
|
-
to: string | boolean | HTMLElement;
|
|
673
672
|
disabled: boolean;
|
|
674
|
-
show: boolean | undefined;
|
|
675
|
-
flip: boolean;
|
|
676
|
-
width: number | "trigger";
|
|
677
|
-
duration: number;
|
|
678
673
|
raw: boolean;
|
|
674
|
+
to: string | boolean | HTMLElement;
|
|
679
675
|
placement: import("vueuc/lib/binder/src/interface").Placement;
|
|
676
|
+
width: number | "trigger";
|
|
677
|
+
show: boolean | undefined;
|
|
680
678
|
showArrow: boolean;
|
|
681
679
|
trigger: import("../../popover").PopoverTrigger;
|
|
682
680
|
arrow: boolean | undefined;
|
|
683
681
|
defaultShow: boolean;
|
|
684
682
|
delay: number;
|
|
683
|
+
duration: number;
|
|
685
684
|
arrowPointToCenter: boolean;
|
|
686
685
|
displayDirective: "show" | "if";
|
|
686
|
+
flip: boolean;
|
|
687
687
|
animated: boolean;
|
|
688
688
|
overlap: boolean;
|
|
689
689
|
keepAliveOnHover: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import type { PropType, VNodeChild } from 'vue';
|
|
2
|
+
import type { ExtractPublicPropTypes, MaybeArray } from '../../_utils';
|
|
3
|
+
import type { Filter, OnUpdateValue, Option, OptionValue, TransferRenderSourceLabel, TransferRenderSourceList, TransferRenderTargetLabel } from './interface';
|
|
4
4
|
export declare const transferProps: {
|
|
5
5
|
readonly value: PropType<OptionValue[] | null>;
|
|
6
6
|
readonly defaultValue: {
|
|
@@ -3960,10 +3960,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3960
3960
|
}, any>;
|
|
3961
3961
|
}>>>;
|
|
3962
3962
|
}>> & Readonly<{}>, {
|
|
3963
|
-
readonly options: Option[];
|
|
3964
|
-
readonly filter: Filter;
|
|
3965
3963
|
readonly disabled: boolean | undefined;
|
|
3964
|
+
readonly filter: Filter;
|
|
3966
3965
|
readonly defaultValue: OptionValue[] | null;
|
|
3966
|
+
readonly options: Option[];
|
|
3967
3967
|
readonly filterable: boolean;
|
|
3968
3968
|
readonly virtualScroll: boolean;
|
|
3969
3969
|
readonly sourceFilterable: boolean;
|