yc-design-vue 1.0.2 → 1.0.4
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/es/Affix/index.vue.js +1 -1
- package/es/Affix/type.d.ts +3 -2
- package/es/Alert/index.vue2.js +1 -1
- package/es/Alert/type.d.ts +6 -5
- package/es/Anchor/Anchor.vue2.js +1 -1
- package/es/Anchor/AnchorLink.vue2.js +1 -1
- package/es/Anchor/hooks/useContext.js +1 -1
- package/es/Anchor/type.d.ts +4 -3
- package/es/AutoComplete/index.d.ts +65 -2
- package/es/AutoComplete/index.vue.d.ts +130 -4
- package/es/AutoComplete/index.vue.js +1 -1
- package/es/AutoComplete/type.d.ts +5 -4
- package/es/Avatar/Avatar.vue2.js +1 -1
- package/es/Avatar/AvatarGroup.vue.js +1 -1
- package/es/Avatar/AvatarGroup.vue2.js +3 -3
- package/es/Avatar/type.d.ts +4 -4
- package/es/BackTop/index.vue2.js +1 -1
- package/es/BackTop/type.d.ts +2 -1
- package/es/Badge/index.vue.js +1 -1
- package/es/Badge/index.vue2.js +3 -3
- package/es/Badge/type.d.ts +3 -3
- package/es/Breadcrumb/Breadcrumb.vue2.js +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue2.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/Breadcrumb/type.d.ts +9 -8
- package/es/Button/Button.vue.js +1 -1
- package/es/Button/Button.vue2.js +2 -2
- package/es/Button/type.d.ts +4 -3
- package/es/Calendar/Calendar.vue2.js +1 -1
- package/es/Calendar/CalendarMonth.vue2.js +1 -1
- package/es/Calendar/CalendarYear.vue2.js +1 -1
- package/es/Calendar/type.d.ts +5 -4
- package/es/Card/CardMeta.vue2.js +1 -1
- package/es/Card/type.d.ts +10 -10
- package/es/Carousel/Carousel.vue2.js +1 -1
- package/es/Carousel/CarouselArrow.vue2.js +1 -1
- package/es/Carousel/CarouselIndicator.vue2.js +1 -1
- package/es/Carousel/hooks/useContext.js +1 -1
- package/es/Carousel/type.d.ts +3 -2
- package/es/Cascader/Cascader.vue2.js +1 -1
- package/es/Cascader/CascaderIcon.vue2.js +1 -1
- package/es/Cascader/CascaderOption.vue2.js +1 -1
- package/es/Cascader/hooks/useContext.js +1 -1
- package/es/Cascader/type.d.ts +10 -10
- package/es/Checkbox/Checkbox.vue2.js +1 -1
- package/es/Checkbox/hooks/useContext.d.ts +2 -5
- package/es/Checkbox/hooks/useContext.js +1 -1
- package/es/Checkbox/type.d.ts +9 -8
- package/es/Collapse/CollapseItem.vue2.js +1 -1
- package/es/Collapse/hooks/useContext.js +1 -1
- package/es/Collapse/type.d.ts +9 -8
- package/es/ColorPicker/ColorControl.vue2.js +1 -1
- package/es/ColorPicker/ColorInput.vue2.js +1 -1
- package/es/ColorPicker/ColorPalette.vue2.js +1 -1
- package/es/Comment/index.vue2.js +1 -1
- package/es/Comment/type.d.ts +7 -6
- package/es/ConfigProvider/index.vue.js +2 -2
- package/es/ConfigProvider/type.d.ts +5 -4
- package/es/Descriptions/ReuseItem.vue2.js +1 -1
- package/es/Descriptions/ReuseTd.vue2.js +1 -1
- package/es/Descriptions/type.d.ts +9 -9
- package/es/Divider/index.vue2.js +1 -1
- package/es/Divider/type.d.ts +2 -1
- package/es/Drawer/Drawer.vue2.js +1 -0
- package/es/Drawer/DrawerService.vue.js +1 -1
- package/es/Drawer/type.d.ts +5 -5
- package/es/Dropdown/Dropdown.vue.js +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/es/Dropdown/Dsubmenu.vue2.js +1 -1
- package/es/Dropdown/hooks/useContext.js +1 -1
- package/es/Dropdown/index.d.ts +65 -2
- package/es/Dropdown/type.d.ts +15 -14
- package/es/Empty/index.vue2.js +1 -1
- package/es/Empty/type.d.ts +2 -1
- package/es/Grid/Grid.vue2.js +1 -1
- package/es/Grid/GridCol.vue.js +1 -1
- package/es/Grid/GridItem.vue.js +1 -1
- package/es/Grid/GridRow.vue2.js +1 -1
- package/es/Grid/hooks/useContext.js +1 -1
- package/es/Grid/type.d.ts +6 -5
- package/es/Icon/index.js +1 -1
- package/es/Icon/index.vue2.js +1 -1
- package/es/Icon/type.d.ts +2 -1
- package/es/Image/Image.vue2.js +1 -1
- package/es/Image/ImagePreview.vue2.js +1 -1
- package/es/Image/ImagePreviewArrow.vue2.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue2.js +1 -1
- package/es/Image/hooks/useContext.js +1 -1
- package/es/Image/type.d.ts +11 -10
- package/es/Input/Input.vue2.js +1 -0
- package/es/Input/InputSuffix.vue2.js +1 -1
- package/es/Input/hooks/useCursor.d.ts +2 -1
- package/es/Input/hooks/useCursor.js +2 -2
- package/es/Input/hooks/useLimitedInput.js +1 -1
- package/es/Input/type.d.ts +6 -5
- package/es/InputNumber/InputNumber.vue2.js +1 -1
- package/es/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/es/InputNumber/type.d.ts +8 -8
- package/es/InputTag/index.vue2.js +1 -0
- package/es/InputTag/type.d.ts +5 -4
- package/es/Layout/Layout.vue.js +1 -1
- package/es/Layout/Layout.vue2.js +3 -3
- package/es/Layout/LayoutSider.vue2.js +1 -1
- package/es/Layout/type.d.ts +8 -7
- package/es/Link/index.vue2.js +1 -1
- package/es/Link/type.d.ts +3 -2
- package/es/List/hooks/useScrollReach.js +1 -1
- package/es/List/type.d.ts +15 -14
- package/es/Mention/index.d.ts +65 -2
- package/es/Mention/index.vue.d.ts +130 -4
- package/es/Mention/index.vue.js +1 -1
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/Menu.vue2.js +1 -1
- package/es/Menu/MenuEllipsis.vue2.js +1 -1
- package/es/Menu/MenuItem.vue2.js +1 -1
- package/es/Menu/MenuItemGroup.vue2.js +1 -1
- package/es/Menu/SubMenu.vue2.js +1 -1
- package/es/Menu/hooks/useContext.js +1 -1
- package/es/Menu/type.d.ts +11 -10
- package/es/Message/Message.vue2.js +1 -1
- package/es/Message/index.js +1 -1
- package/es/Message/type.d.ts +1 -1
- package/es/Modal/Modal.vue2.js +1 -0
- package/es/Modal/ModalService.vue.js +1 -1
- package/es/Modal/hooks/useModalClose.js +1 -1
- package/es/Modal/hooks/useModalDraggable.js +1 -1
- package/es/Modal/hooks/useOnBeforeClose.js +1 -1
- package/es/Modal/type.d.ts +5 -5
- package/es/Notification/Notification.vue2.js +1 -1
- package/es/Notification/index.js +1 -1
- package/es/Notification/type.d.ts +1 -1
- package/es/OverflowList/index.vue.js +1 -1
- package/es/OverflowList/index.vue2.js +3 -3
- package/es/OverflowList/type.d.ts +3 -2
- package/es/PageHeader/index.vue2.js +1 -1
- package/es/PageHeader/type.d.ts +7 -6
- package/es/Pagination/Pagination.vue2.js +1 -1
- package/es/Pagination/PaginationItem.vue2.js +1 -1
- package/es/Pagination/type.d.ts +8 -8
- package/es/Popconfirm/index.d.ts +65 -2
- package/es/Popconfirm/index.vue.d.ts +130 -4
- package/es/Popconfirm/index.vue.js +1 -1
- package/es/Popconfirm/type.d.ts +4 -4
- package/es/Popover/index.vue.js +1 -1
- package/es/Popover/type.d.ts +4 -4
- package/es/Progress/ProgressCircle.vue2.js +2 -2
- package/es/Progress/ProgressLine.vue2.js +1 -1
- package/es/Progress/ProgressSteps.vue.js +1 -1
- package/es/Radio/Radio.vue2.js +1 -1
- package/es/Radio/hooks/useContext.d.ts +3 -6
- package/es/Radio/type.d.ts +9 -8
- package/es/Rate/index.vue2.js +1 -1
- package/es/Rate/type.d.ts +3 -2
- package/es/ResizeBox/index.vue2.js +1 -1
- package/es/ResizeBox/type.d.ts +6 -5
- package/es/Result/type.d.ts +6 -5
- package/es/Scrollbar/ScrollbarTrack.vue2.js +1 -1
- package/es/Scrollbar/type.d.ts +2 -2
- package/es/Select/Option.vue2.js +1 -1
- package/es/Select/Select.vue.d.ts +130 -4
- package/es/Select/Select.vue2.js +1 -1
- package/es/Select/SelectIcon.vue2.js +1 -1
- package/es/Select/SelectRealList.vue2.js +1 -1
- package/es/Select/SelectVirtualList.vue2.js +1 -1
- package/es/Select/hooks/useContext.js +1 -1
- package/es/Select/hooks/useSelectOptions.js +1 -1
- package/es/Select/index.d.ts +65 -2
- package/es/Select/type.d.ts +19 -18
- package/es/Skeleton/SkeletonLine.vue2.js +1 -1
- package/es/Skeleton/type.d.ts +3 -2
- package/es/Slider/SliderBtn.vue2.js +1 -1
- package/es/Slider/hooks/useContext.js +1 -1
- package/es/Slider/hooks/useSliderDraggable.js +1 -1
- package/es/Space/index.vue.js +1 -1
- package/es/Space/index.vue2.js +3 -3
- package/es/Space/type.d.ts +3 -2
- package/es/Spin/type.d.ts +4 -3
- package/es/Split/index.vue2.js +1 -1
- package/es/Split/type.d.ts +5 -4
- package/es/Statistic/Countdown.vue.js +1 -1
- package/es/Statistic/Statistic.vue2.js +1 -1
- package/es/Statistic/type.d.ts +7 -7
- package/es/Steps/Step.vue2.js +1 -1
- package/es/Steps/hooks/useContext.js +1 -1
- package/es/Steps/type.d.ts +8 -7
- package/es/Switch/index.vue.js +1 -1
- package/es/Switch/index.vue2.js +3 -3
- package/es/Switch/type.d.ts +5 -4
- package/es/Tabs/TabButton.vue2.js +1 -1
- package/es/Tabs/TabPane.vue.js +1 -1
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tabs/Tabs.vue2.js +3 -3
- package/es/Tabs/TabsNavInk.vue2.js +1 -1
- package/es/Tabs/TabsTab.vue2.js +1 -1
- package/es/Tabs/hooks/useTabsScroll.js +1 -1
- package/es/Tabs/type.d.ts +5 -4
- package/es/Tag/index.vue2.js +1 -0
- package/es/Tag/type.d.ts +4 -3
- package/es/Textarea/hooks/useTextareaHeight.js +1 -1
- package/es/Textarea/index.vue2.js +1 -1
- package/es/TimePicker/TimePicker.vue2.js +1 -1
- package/es/TimePicker/TimePickerPanel.vue2.js +1 -1
- package/es/TimePicker/hooks/useContext.js +1 -1
- package/es/TimePicker/type.d.ts +4 -3
- package/es/Timeline/Timeline.vue2.js +1 -1
- package/es/Timeline/hooks/useContext.js +1 -1
- package/es/Timeline/type.d.ts +6 -5
- package/es/Tooltip/index.vue.js +1 -1
- package/es/Tooltip/type.d.ts +3 -3
- package/es/Transfer/Transfer.vue2.js +1 -1
- package/es/Transfer/TransferPanel.vue2.js +3 -3
- package/es/Transfer/hooks/useContext.js +1 -1
- package/es/Transfer/type.d.ts +13 -12
- package/es/Trigger/hooks/useContext.js +1 -1
- package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/es/Trigger/hooks/useTriggerPosition.js +11 -20
- package/es/Trigger/index.d.ts +63 -2
- package/es/Trigger/index.vue.d.ts +130 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +3 -3
- package/es/Trigger/type.d.ts +3 -3
- package/es/Typography/TypographyBase.vue2.js +3 -3
- package/es/Typography/type.d.ts +8 -7
- package/es/Watermark/index.vue2.js +1 -1
- package/es/Watermark/type.d.ts +2 -1
- package/es/_shared/components/ExpandTransition.vue3.js +1 -1
- package/es/_shared/{icons/_Icon.vue2.js → components/Icon.vue2.js} +3 -3
- package/es/_shared/{icons/_Icon.vue3.js → components/Icon.vue3.js} +2 -2
- package/es/_shared/components/IconButton.vue3.js +1 -1
- package/es/_shared/components/index.d.ts +1 -0
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +16 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -16
- package/es/_shared/icons/IconDelete.vue.js +1 -16
- package/es/_shared/icons/IconDelete.vue2.js +16 -1
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +16 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -16
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue.js +27 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -27
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/es/_shared/icons/IconSearch.vue.js +1 -16
- package/es/_shared/icons/IconSearch.vue2.js +16 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -1
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/es/_shared/utils/control.js +1 -1
- package/es/_shared/utils/dom.d.ts +4 -4
- package/es/_shared/utils/dom.js +6 -6
- package/es/_shared/utils/fn.d.ts +3 -3
- package/es/_shared/utils/fn.js +6 -6
- package/es/_shared/utils/global-config.d.ts +4 -2
- package/es/_shared/utils/global-config.js +1 -1
- package/es/index.d.ts +65 -2
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Affix/type.d.ts +3 -2
- package/lib/Alert/index.vue2.js +1 -1
- package/lib/Alert/type.d.ts +6 -5
- package/lib/Anchor/Anchor.vue2.js +1 -1
- package/lib/Anchor/AnchorLink.vue2.js +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Anchor/type.d.ts +4 -3
- package/lib/AutoComplete/index.d.ts +65 -2
- package/lib/AutoComplete/index.vue.d.ts +130 -4
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/AutoComplete/type.d.ts +5 -4
- package/lib/Avatar/Avatar.vue2.js +1 -1
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue2.js +1 -1
- package/lib/Avatar/type.d.ts +4 -4
- package/lib/BackTop/index.vue2.js +1 -1
- package/lib/BackTop/type.d.ts +2 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Badge/index.vue2.js +1 -1
- package/lib/Badge/type.d.ts +3 -3
- package/lib/Breadcrumb/Breadcrumb.vue2.js +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue2.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/Breadcrumb/type.d.ts +9 -8
- package/lib/Button/Button.vue.js +1 -1
- package/lib/Button/Button.vue2.js +1 -1
- package/lib/Button/type.d.ts +4 -3
- package/lib/Calendar/Calendar.vue2.js +1 -1
- package/lib/Calendar/CalendarMonth.vue2.js +1 -1
- package/lib/Calendar/CalendarYear.vue2.js +1 -1
- package/lib/Calendar/type.d.ts +5 -4
- package/lib/Card/CardMeta.vue2.js +1 -1
- package/lib/Card/type.d.ts +10 -10
- package/lib/Carousel/Carousel.vue2.js +1 -1
- package/lib/Carousel/CarouselArrow.vue2.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue2.js +1 -1
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Carousel/type.d.ts +3 -2
- package/lib/Cascader/Cascader.vue2.js +1 -1
- package/lib/Cascader/CascaderIcon.vue2.js +1 -1
- package/lib/Cascader/CascaderOption.vue2.js +1 -1
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/type.d.ts +10 -10
- package/lib/Checkbox/Checkbox.vue2.js +1 -1
- package/lib/Checkbox/hooks/useContext.d.ts +2 -5
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Checkbox/type.d.ts +9 -8
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/Collapse/type.d.ts +9 -8
- package/lib/ColorPicker/ColorControl.vue2.js +1 -1
- package/lib/ColorPicker/ColorInput.vue2.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue2.js +1 -1
- package/lib/Comment/index.vue2.js +1 -1
- package/lib/Comment/type.d.ts +7 -6
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +5 -4
- package/lib/Descriptions/ReuseItem.vue2.js +1 -1
- package/lib/Descriptions/ReuseTd.vue2.js +1 -1
- package/lib/Descriptions/type.d.ts +9 -9
- package/lib/Divider/index.vue2.js +1 -1
- package/lib/Divider/type.d.ts +2 -1
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Drawer/type.d.ts +5 -5
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +65 -2
- package/lib/Dropdown/type.d.ts +15 -14
- package/lib/Empty/index.vue2.js +1 -1
- package/lib/Empty/type.d.ts +2 -1
- package/lib/Grid/Grid.vue2.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue2.js +1 -1
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Grid/type.d.ts +6 -5
- package/lib/Icon/index.js +1 -1
- package/lib/Icon/index.vue2.js +1 -1
- package/lib/Icon/type.d.ts +2 -1
- package/lib/Image/Image.vue2.js +1 -1
- package/lib/Image/ImagePreview.vue2.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue2.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue2.js +1 -1
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Image/type.d.ts +11 -10
- package/lib/Input/Input.vue2.js +1 -1
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/Input/hooks/useCursor.d.ts +2 -1
- package/lib/Input/hooks/useCursor.js +1 -1
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/Input/type.d.ts +6 -5
- package/lib/InputNumber/InputNumber.vue2.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/lib/InputNumber/type.d.ts +8 -8
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/InputTag/type.d.ts +5 -4
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/Layout.vue2.js +1 -1
- package/lib/Layout/LayoutSider.vue2.js +1 -1
- package/lib/Layout/type.d.ts +8 -7
- package/lib/Link/index.vue2.js +1 -1
- package/lib/Link/type.d.ts +3 -2
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/type.d.ts +15 -14
- package/lib/Mention/index.d.ts +65 -2
- package/lib/Mention/index.vue.d.ts +130 -4
- package/lib/Mention/index.vue.js +1 -1
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/Menu.vue2.js +1 -1
- package/lib/Menu/MenuEllipsis.vue2.js +1 -1
- package/lib/Menu/MenuItem.vue2.js +1 -1
- package/lib/Menu/MenuItemGroup.vue2.js +1 -1
- package/lib/Menu/SubMenu.vue2.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/type.d.ts +11 -10
- package/lib/Message/Message.vue2.js +1 -1
- package/lib/Message/index.js +1 -1
- package/lib/Message/type.d.ts +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
- package/lib/Modal/type.d.ts +5 -5
- package/lib/Notification/Notification.vue2.js +1 -1
- package/lib/Notification/index.js +1 -1
- package/lib/Notification/type.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/index.vue2.js +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/PageHeader/index.vue2.js +1 -1
- package/lib/PageHeader/type.d.ts +7 -6
- package/lib/Pagination/Pagination.vue2.js +1 -1
- package/lib/Pagination/PaginationItem.vue2.js +1 -1
- package/lib/Pagination/type.d.ts +8 -8
- package/lib/Popconfirm/index.d.ts +65 -2
- package/lib/Popconfirm/index.vue.d.ts +130 -4
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Popconfirm/type.d.ts +4 -4
- package/lib/Popover/index.vue.js +1 -1
- package/lib/Popover/type.d.ts +4 -4
- package/lib/Progress/ProgressCircle.vue2.js +1 -1
- package/lib/Progress/ProgressLine.vue2.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Radio/Radio.vue2.js +1 -1
- package/lib/Radio/hooks/useContext.d.ts +3 -6
- package/lib/Radio/type.d.ts +9 -8
- package/lib/Rate/index.vue2.js +1 -1
- package/lib/Rate/type.d.ts +3 -2
- package/lib/ResizeBox/index.vue2.js +1 -1
- package/lib/ResizeBox/type.d.ts +6 -5
- package/lib/Result/type.d.ts +6 -5
- package/lib/Scrollbar/ScrollbarTrack.vue2.js +1 -1
- package/lib/Scrollbar/type.d.ts +2 -2
- package/lib/Select/Option.vue2.js +1 -1
- package/lib/Select/Select.vue.d.ts +130 -4
- package/lib/Select/Select.vue2.js +1 -1
- package/lib/Select/SelectIcon.vue2.js +1 -1
- package/lib/Select/SelectRealList.vue2.js +1 -1
- package/lib/Select/SelectVirtualList.vue2.js +1 -1
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.js +1 -1
- package/lib/Select/index.d.ts +65 -2
- package/lib/Select/type.d.ts +19 -18
- package/lib/Skeleton/SkeletonLine.vue2.js +1 -1
- package/lib/Skeleton/type.d.ts +3 -2
- package/lib/Slider/SliderBtn.vue2.js +1 -1
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Space/index.vue2.js +1 -1
- package/lib/Space/type.d.ts +3 -2
- package/lib/Spin/type.d.ts +4 -3
- package/lib/Split/index.vue2.js +1 -1
- package/lib/Split/type.d.ts +5 -4
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue2.js +1 -1
- package/lib/Statistic/type.d.ts +7 -7
- package/lib/Steps/Step.vue2.js +1 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Steps/type.d.ts +8 -7
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Switch/index.vue2.js +1 -1
- package/lib/Switch/type.d.ts +5 -4
- package/lib/Tabs/TabButton.vue2.js +1 -1
- package/lib/Tabs/TabPane.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/Tabs.vue2.js +1 -1
- package/lib/Tabs/TabsNavInk.vue2.js +1 -1
- package/lib/Tabs/TabsTab.vue2.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Tabs/type.d.ts +5 -4
- package/lib/Tag/index.vue2.js +1 -1
- package/lib/Tag/type.d.ts +4 -3
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.vue2.js +1 -1
- package/lib/TimePicker/TimePicker.vue2.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue2.js +1 -1
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/type.d.ts +4 -3
- package/lib/Timeline/Timeline.vue2.js +1 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Timeline/type.d.ts +6 -5
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Tooltip/type.d.ts +3 -3
- package/lib/Transfer/Transfer.vue2.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Transfer/type.d.ts +13 -12
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/index.d.ts +63 -2
- package/lib/Trigger/index.vue.d.ts +130 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Trigger/type.d.ts +3 -3
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/Typography/type.d.ts +8 -7
- package/lib/Watermark/index.vue2.js +1 -1
- package/lib/Watermark/type.d.ts +2 -1
- package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
- package/lib/_shared/components/Icon.vue2.js +1 -0
- package/lib/_shared/components/Icon.vue3.js +1 -0
- package/lib/_shared/components/IconButton.vue3.js +1 -1
- package/lib/_shared/components/index.d.ts +1 -0
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/control.js +1 -1
- package/lib/_shared/utils/dom.d.ts +4 -4
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/fn.d.ts +3 -3
- package/lib/_shared/utils/fn.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -2
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/index.d.ts +65 -2
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/lib/_shared/icons/_Icon.vue2.js +0 -1
- package/lib/_shared/icons/_Icon.vue3.js +0 -1
- /package/es/_shared/{icons/_Icon.vue.d.ts → components/Icon.vue.d.ts} +0 -0
- /package/lib/_shared/{icons/_Icon.vue.d.ts → components/Icon.vue.d.ts} +0 -0
package/es/Button/Button.vue2.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useSlots, toRefs, computed, createElementBlock, openBlock, mergeProps, createCommentVNode, renderSlot, unref, createBlock } from "vue";
|
2
2
|
import useContext from "./hooks/useContext.js";
|
3
3
|
import Spin from "../Spin/index.js";
|
4
4
|
const _hoisted_1 = ["href"];
|
@@ -29,6 +29,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
29
29
|
},
|
30
30
|
emits: ["mousedown", "mouseup", "click", "dblclick", "contextmenu"],
|
31
31
|
setup(__props, { emit: __emit }) {
|
32
|
+
const slots = useSlots();
|
32
33
|
const props = __props;
|
33
34
|
const emits = __emit;
|
34
35
|
const {
|
@@ -40,7 +41,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
40
41
|
long
|
41
42
|
} = toRefs(props);
|
42
43
|
const { size, disabled, type, status, shape } = useContext().inject(props);
|
43
|
-
const slots = useSlots();
|
44
44
|
const className = computed(() => {
|
45
45
|
return [
|
46
46
|
"yc-button",
|
package/es/Button/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Size } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface ButtonProps {
|
3
4
|
type?: ButtonType;
|
4
5
|
shape?: ButtonShape;
|
@@ -18,8 +19,8 @@ export interface ButtonEmits {
|
|
18
19
|
(e: 'contextmenu', event: MouseEvent): void;
|
19
20
|
}
|
20
21
|
export interface ButtonSlots {
|
21
|
-
default()
|
22
|
-
icon()
|
22
|
+
default?: () => VNode[];
|
23
|
+
icon?: () => VNode[];
|
23
24
|
}
|
24
25
|
export interface ButtonGroupProps {
|
25
26
|
type?: ButtonType;
|
@@ -29,7 +30,7 @@ export interface ButtonGroupProps {
|
|
29
30
|
disabled?: boolean;
|
30
31
|
}
|
31
32
|
export interface ButtonGroupSlots {
|
32
|
-
default()
|
33
|
+
default?: () => VNode[];
|
33
34
|
}
|
34
35
|
export type ButtonStatus = 'normal' | 'warning' | 'success' | 'danger';
|
35
36
|
export type ButtonShape = 'square' | 'circle' | 'round';
|
@@ -4,7 +4,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
@@ -4,7 +4,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import { generateMonthCalendar } from "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useControlValue from "../_shared/utils/control.js";
|
9
9
|
const _hoisted_1 = { class: "yc-calendar-week-list" };
|
10
10
|
const _hoisted_2 = { class: "yc-calendar-month-cell-body" };
|
@@ -3,7 +3,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import { generateMonthCalendar } from "../_shared/utils/time.js";
|
5
5
|
import "../Empty/index.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import MonthCalendar from "./CalendarMonth.vue.js";
|
8
8
|
const _hoisted_1 = { class: "yc-calendar-year" };
|
9
9
|
const _hoisted_2 = { class: "yc-calendar-year-cell-title" };
|
package/es/Calendar/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface CalendarProps {
|
2
3
|
modelValue?: Date;
|
3
4
|
defaultValue?: Date;
|
@@ -12,14 +13,14 @@ export interface CalendarEmits {
|
|
12
13
|
(e: 'panel-change', value: Date): void;
|
13
14
|
}
|
14
15
|
export interface CalendarSlots {
|
15
|
-
header(scope: {
|
16
|
+
header: (scope: {
|
16
17
|
year: number;
|
17
18
|
month: number;
|
18
|
-
})
|
19
|
-
default(scope: {
|
19
|
+
}) => VNode[];
|
20
|
+
default: (scope: {
|
20
21
|
year: number;
|
21
22
|
month: number;
|
22
23
|
day: number;
|
23
|
-
})
|
24
|
+
}) => VNode[];
|
24
25
|
}
|
25
26
|
export type CalendarMode = 'month' | 'year';
|
package/es/Card/CardMeta.vue2.js
CHANGED
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
const _hoisted_1 = { class: "yc-card-meta" };
|
10
10
|
const _hoisted_2 = { class: "yc-card-meta-content" };
|
package/es/Card/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
1
|
+
import { CSSProperties, VNode } from 'vue';
|
2
2
|
export interface CardProps {
|
3
3
|
bordered?: boolean;
|
4
4
|
loading?: boolean;
|
@@ -10,25 +10,25 @@ export interface CardProps {
|
|
10
10
|
extra?: string;
|
11
11
|
}
|
12
12
|
export interface CardSlots {
|
13
|
-
actions()
|
14
|
-
cover()
|
15
|
-
extra()
|
16
|
-
title()
|
17
|
-
default()
|
13
|
+
actions?: () => VNode[];
|
14
|
+
cover?: () => VNode[];
|
15
|
+
extra?: () => VNode[];
|
16
|
+
title?: () => VNode[];
|
17
|
+
default?: () => VNode[];
|
18
18
|
}
|
19
19
|
export interface CardMetaProps {
|
20
20
|
title?: string;
|
21
21
|
description?: string;
|
22
22
|
}
|
23
23
|
export interface CardMetaSlots {
|
24
|
-
description()
|
25
|
-
title()
|
26
|
-
avatar()
|
24
|
+
description?: () => VNode[];
|
25
|
+
title?: () => VNode[];
|
26
|
+
avatar?: () => VNode[];
|
27
27
|
}
|
28
28
|
export interface CardGridProps {
|
29
29
|
hoverable?: boolean;
|
30
30
|
}
|
31
31
|
export interface CardGridSlots {
|
32
|
-
default()
|
32
|
+
default?: () => VNode[];
|
33
33
|
}
|
34
34
|
export type CardSize = 'medium' | 'small';
|
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { isObject } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
import CarouselArrow from "./CarouselArrow.vue.js";
|
10
10
|
import CarouselIndicator from "./CarouselIndicator.vue.js";
|
@@ -3,7 +3,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../Empty/index.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { valueToPx } from "../_shared/utils/fn.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
const _hoisted_1 = ["onMouseenter", "onClick"];
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -5,7 +5,7 @@ import { sleep } from "../../_shared/utils/fn.js";
|
|
5
5
|
import "../../_shared/utils/time.js";
|
6
6
|
import { findComponentsFromVnodes } from "../../_shared/utils/vue-utils.js";
|
7
7
|
import "../../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import useControlValue from "../../_shared/utils/control.js";
|
10
10
|
import CarouselItem from "../CarouselItem.vue.js";
|
11
11
|
const CAROUSEL_CONTEXT_KEY = "carousel-context";
|
package/es/Carousel/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ClassName, Direction } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface CarouselProps {
|
3
4
|
current?: number;
|
4
5
|
defaultCurrent?: number;
|
@@ -19,10 +20,10 @@ export interface CarouselEmits {
|
|
19
20
|
(e: 'change', index: number, preIndex: number, isManual: boolean): void;
|
20
21
|
}
|
21
22
|
export interface CarouselSlots {
|
22
|
-
default()
|
23
|
+
default?: () => VNode[];
|
23
24
|
}
|
24
25
|
export interface CarouselItemSlots {
|
25
|
-
default()
|
26
|
+
default?: () => VNode[];
|
26
27
|
}
|
27
28
|
export type CarouselAnimationName = 'slide' | 'fade';
|
28
29
|
export type CarouselShowArrow = 'always' | 'hover' | 'never';
|
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { sleep } from "../_shared/utils/fn.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
import Input from "../Input/index.js";
|
10
10
|
import InputTag from "../InputTag/index.js";
|
@@ -5,7 +5,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
5
5
|
import "../_shared/utils/dom.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
@@ -5,7 +5,7 @@ import { sleep } from "../_shared/utils/fn.js";
|
|
5
5
|
import { isFunction } from "../_shared/utils/is.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
10
10
|
import _sfc_main$2 from "../_shared/icons/IconLoading.vue.js";
|
11
11
|
import Checkbox from "../Checkbox/index.js";
|
@@ -4,7 +4,7 @@ import "../../_shared/utils/dom.js";
|
|
4
4
|
import { isBoolean, isFunction, isArray, isObject } from "../../_shared/utils/is.js";
|
5
5
|
import "../../_shared/utils/time.js";
|
6
6
|
import "../../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useControlValue from "../../_shared/utils/control.js";
|
9
9
|
const CASCADER_CONTEXT_KEY = "cascader-context";
|
10
10
|
const transformOptions = (options, level = 1, nodePath = []) => {
|
package/es/Cascader/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { RenderFunction } from 'vue';
|
1
|
+
import { RenderFunction, VNode } from 'vue';
|
2
2
|
import { PopupContainer, Size } from '../_shared/type';
|
3
3
|
import { TagProps } from '../Tag';
|
4
4
|
import { TriggerProps } from '../Trigger';
|
@@ -47,17 +47,17 @@ export interface CascaderEmits {
|
|
47
47
|
(e: 'blur', ev: FocusEvent): void;
|
48
48
|
}
|
49
49
|
export interface CascaderSlots {
|
50
|
-
label(scope: {
|
50
|
+
label?: (scope: {
|
51
51
|
data: CascaderOption;
|
52
|
-
})
|
53
|
-
prefix()
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
empty()
|
58
|
-
option(scope: {
|
52
|
+
}) => VNode[];
|
53
|
+
prefix?: () => VNode[];
|
54
|
+
'arrow-icon'?: () => VNode[];
|
55
|
+
'loading-icon'?: () => VNode[];
|
56
|
+
'search-icon'?: () => VNode[];
|
57
|
+
empty?: () => VNode[];
|
58
|
+
option?: (scope: {
|
59
59
|
data: CascaderOption;
|
60
|
-
})
|
60
|
+
}) => VNode[];
|
61
61
|
}
|
62
62
|
export type CascaderValue = CascaderOptionValue | CascaderOptionValue[] | CascaderOptionValue[][];
|
63
63
|
export type CascaderOptionValue = string | number | Record<string, any>;
|
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { isUndefined } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { CheckboxValue, CheckboxGroupEmits } from '../type';
|
3
|
-
import { Props } from '../../_shared/type';
|
3
|
+
import { ObjectData, Props } from '../../_shared/type';
|
4
4
|
type CheckboxContext = {
|
5
5
|
computedValue: Ref<CheckboxValue[]>;
|
6
6
|
max: Ref<number>;
|
@@ -9,10 +9,7 @@ type CheckboxContext = {
|
|
9
9
|
};
|
10
10
|
declare const _default: () => {
|
11
11
|
provide: (props: Props, emits: CheckboxGroupEmits) => {
|
12
|
-
options: import('vue').ComputedRef<
|
13
|
-
label: CheckboxValue | import('..').CheckboxOption;
|
14
|
-
value: CheckboxValue | import('..').CheckboxOption;
|
15
|
-
})[]>;
|
12
|
+
options: import('vue').ComputedRef<ObjectData[]>;
|
16
13
|
};
|
17
14
|
inject: () => CheckboxContext;
|
18
15
|
};
|
@@ -4,7 +4,7 @@ import "../../_shared/utils/dom.js";
|
|
4
4
|
import { isObject } from "../../_shared/utils/is.js";
|
5
5
|
import "../../_shared/utils/time.js";
|
6
6
|
import "../../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useControlValue from "../../_shared/utils/control.js";
|
9
9
|
const CHECKBOX_GROUP_CONTEXT_KEY = "checkbox-group-context";
|
10
10
|
const useContext = () => {
|
package/es/Checkbox/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction, ObjectData } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface CheckboxProps {
|
3
4
|
modelValue?: boolean;
|
4
5
|
defaultChecked?: boolean;
|
@@ -11,11 +12,11 @@ export interface CheckboxEmits {
|
|
11
12
|
(e: 'change', value: boolean, ev: Event): void;
|
12
13
|
}
|
13
14
|
export interface CheckboxSlots {
|
14
|
-
default()
|
15
|
-
checkbox(scope: {
|
15
|
+
default?: () => VNode[];
|
16
|
+
checkbox?: (scope: {
|
16
17
|
checked: boolean;
|
17
18
|
disabled: boolean;
|
18
|
-
})
|
19
|
+
}) => VNode[];
|
19
20
|
}
|
20
21
|
export interface CheckboxGroupProps {
|
21
22
|
modelValue?: CheckboxValue[];
|
@@ -30,14 +31,14 @@ export interface CheckboxGroupEmits {
|
|
30
31
|
(e: 'change', value: CheckboxValue[]): void;
|
31
32
|
}
|
32
33
|
export interface CheckboxGroupSlots {
|
33
|
-
default()
|
34
|
-
checkbox(scope: {
|
34
|
+
default?: () => void;
|
35
|
+
checkbox?: (scope: {
|
35
36
|
checked: boolean;
|
36
37
|
disabled: boolean;
|
37
|
-
})
|
38
|
-
label(scope: {
|
38
|
+
}) => void;
|
39
|
+
label?: (scope: {
|
39
40
|
data: ObjectData;
|
40
|
-
})
|
41
|
+
}) => void;
|
41
42
|
}
|
42
43
|
export type CheckboxOption = (CheckboxValue | {
|
43
44
|
label?: string;
|
@@ -4,7 +4,7 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
10
|
import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
|
@@ -3,7 +3,7 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import "../../_shared/utils/time.js";
|
5
5
|
import "../../Empty/index.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import useControlValue from "../../_shared/utils/control.js";
|
8
8
|
const COLLAPSE_CONTEXT_KEY = "collapse-context";
|
9
9
|
const useContext = () => {
|
package/es/Collapse/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface CollapseProps {
|
2
3
|
activeKey?: CollapseValue[];
|
3
4
|
defaultActiveKey?: CollapseValue[];
|
@@ -12,12 +13,12 @@ export interface CollapseEmits {
|
|
12
13
|
(e: 'change', value: CollapseValue): void;
|
13
14
|
}
|
14
15
|
export interface CollapseSlots {
|
15
|
-
default()
|
16
|
-
|
16
|
+
default?: () => VNode[];
|
17
|
+
'expand-icon': (scope: {
|
17
18
|
active: boolean;
|
18
19
|
disabled: boolean;
|
19
20
|
position: 'left' | 'right';
|
20
|
-
})
|
21
|
+
}) => VNode[];
|
21
22
|
}
|
22
23
|
export interface CollapseItemProps {
|
23
24
|
path?: CollapseValue;
|
@@ -27,14 +28,14 @@ export interface CollapseItemProps {
|
|
27
28
|
destroyOnHide?: boolean;
|
28
29
|
}
|
29
30
|
export interface CollapseItemSlots {
|
30
|
-
default()
|
31
|
-
header()
|
32
|
-
extra()
|
33
|
-
['expand-icon'](scope: {
|
31
|
+
default?: () => VNode[];
|
32
|
+
header?: () => VNode[];
|
33
|
+
extra?: () => VNode[];
|
34
|
+
['expand-icon']?: (scope: {
|
34
35
|
active: boolean;
|
35
36
|
disabled: boolean;
|
36
37
|
position: 'left' | 'right';
|
37
|
-
})
|
38
|
+
}) => VNode[];
|
38
39
|
}
|
39
40
|
export type CollapseValue = string | number;
|
40
41
|
export type ExpandIconPosition = 'left' | 'right';
|
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
import { sleep, valueToPx } from "../_shared/utils/fn.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "ColorControl",
|
11
11
|
props: {
|
@@ -3,7 +3,7 @@ import { parseColor } from "../_shared/utils/color.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../Empty/index.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
7
|
import { COLOR_PICKER_FORMAT_OPTIONS } from "../_shared/constants/index.js";
|
8
8
|
import Select from "../Select/index.js";
|
9
9
|
import Input from "../Input/index.js";
|
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
import { sleep, valueToPx } from "../_shared/utils/fn.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
__name: "ColorPalette",
|
11
11
|
props: {
|
package/es/Comment/index.vue2.js
CHANGED
@@ -4,7 +4,7 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { isObject } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
import Avatar from "../Avatar/index.js";
|
10
10
|
const _hoisted_1 = {
|
package/es/Comment/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface CommentProps {
|
2
3
|
author?: string;
|
3
4
|
avatar?: string;
|
@@ -6,12 +7,12 @@ export interface CommentProps {
|
|
6
7
|
align?: CommentAlign;
|
7
8
|
}
|
8
9
|
export interface CommentSlots {
|
9
|
-
avatar()
|
10
|
-
author()
|
11
|
-
datetime()
|
12
|
-
content()
|
13
|
-
actions()
|
14
|
-
default()
|
10
|
+
avatar?: () => VNode[];
|
11
|
+
author?: () => VNode[];
|
12
|
+
datetime?: () => VNode[];
|
13
|
+
content?: () => VNode[];
|
14
|
+
actions?: () => VNode[];
|
15
|
+
default?: () => VNode[][];
|
15
16
|
}
|
16
17
|
export type CommentAlign = 'left' | 'right' | {
|
17
18
|
datetime?: 'left' | 'right';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { defineComponent,
|
1
|
+
import { defineComponent, useSlots, toRefs, provide, renderSlot } from "vue";
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
@@ -17,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
exchangeTime: { type: Boolean, default: true }
|
18
18
|
},
|
19
19
|
setup(__props) {
|
20
|
+
const slots = useSlots();
|
20
21
|
const props = __props;
|
21
22
|
const {
|
22
23
|
zIndex,
|
@@ -26,7 +27,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
26
27
|
exchangeTime,
|
27
28
|
popupContainer
|
28
29
|
} = toRefs(props);
|
29
|
-
const slots = useSlots();
|
30
30
|
provide(CONFIG_PROVIDER_PROVIDE_KEY, {
|
31
31
|
slots,
|
32
32
|
zIndex,
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Size, PopupContainer } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface ConfigProviderProps {
|
3
4
|
zIndex?: number;
|
4
5
|
size?: Size;
|
@@ -8,10 +9,10 @@ export interface ConfigProviderProps {
|
|
8
9
|
exchangeTime?: boolean;
|
9
10
|
}
|
10
11
|
export interface ConfigconfigSlots {
|
11
|
-
default()
|
12
|
-
loading()
|
13
|
-
empty(scope: {
|
12
|
+
default?: () => VNode[];
|
13
|
+
loading?: () => VNode[];
|
14
|
+
empty?: (scope: {
|
14
15
|
component: EmptyComponent;
|
15
|
-
})
|
16
|
+
}) => VNode[];
|
16
17
|
}
|
17
18
|
export type EmptyComponent = 'Select' | 'List' | 'Transfer';
|
@@ -5,7 +5,7 @@ import { isObject } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import useContext from "./hooks/useContext.js";
|
10
10
|
const _hoisted_1 = { class: "yc-descriptions-item" };
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -5,7 +5,7 @@ import { isObject } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
import useContext from "./hooks/useContext.js";
|
10
10
|
const _hoisted_1 = ["colspan"];
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { RenderContent, Size } from '../_shared/type';
|
2
2
|
import { ResponsiveValue } from '../Grid';
|
3
|
-
import { CSSProperties } from 'vue';
|
3
|
+
import { CSSProperties, VNode } from 'vue';
|
4
4
|
export interface DescriptionsProps {
|
5
5
|
data?: DescData[];
|
6
6
|
column?: DescriptionsColumn;
|
@@ -14,26 +14,26 @@ export interface DescriptionsProps {
|
|
14
14
|
tableLayout?: TableLayout;
|
15
15
|
}
|
16
16
|
export interface DescriptionsSlots {
|
17
|
-
default()
|
18
|
-
value(scope: {
|
17
|
+
default?: () => VNode[];
|
18
|
+
value?: (scope: {
|
19
19
|
value: string;
|
20
20
|
index: number;
|
21
21
|
data: DescData;
|
22
|
-
})
|
23
|
-
label(scope: {
|
22
|
+
}) => VNode[];
|
23
|
+
label?: (scope: {
|
24
24
|
label: string;
|
25
25
|
index: number;
|
26
26
|
data: DescData;
|
27
|
-
})
|
28
|
-
title()
|
27
|
+
}) => VNode[];
|
28
|
+
title?: () => VNode[];
|
29
29
|
}
|
30
30
|
export interface DescriptionsItemProps {
|
31
31
|
span?: number;
|
32
32
|
label?: string;
|
33
33
|
}
|
34
34
|
export interface DescriptionsItemSlots {
|
35
|
-
default()
|
36
|
-
label()
|
35
|
+
default?: () => VNode[];
|
36
|
+
label?: () => VNode[];
|
37
37
|
}
|
38
38
|
export interface DescData {
|
39
39
|
label?: string | RenderContent;
|
package/es/Divider/index.vue2.js
CHANGED
@@ -5,7 +5,7 @@ import { valueToPx } from "../_shared/utils/fn.js";
|
|
5
5
|
import { isUndefined } from "../_shared/utils/is.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
9
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
10
|
...{
|
11
11
|
name: "Divider"
|
package/es/Divider/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface DividerProps {
|
3
4
|
direction?: Direction;
|
4
5
|
orientation?: Orientation;
|
@@ -7,7 +8,7 @@ export interface DividerProps {
|
|
7
8
|
margin?: number;
|
8
9
|
}
|
9
10
|
export interface DividerSlots {
|
10
|
-
default()
|
11
|
+
default?: () => VNode[];
|
11
12
|
}
|
12
13
|
export type Orientation = 'left' | 'center' | 'right';
|
13
14
|
export type DividerType = 'solid' | 'dashed' | 'dotted' | 'double';
|
package/es/Drawer/Drawer.vue2.js
CHANGED
@@ -8,6 +8,7 @@ import useModalClose from "../Modal/hooks/useModalClose.js";
|
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import IconButton from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
|
+
/* empty css */
|
11
12
|
const _hoisted_1 = {
|
12
13
|
key: 0,
|
13
14
|
class: "yc-drawer-header"
|