yc-design-vue 1.7.6 → 1.7.8
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/Alert/index.js +4 -3
- package/es/Alert/index.vue.js +100 -5
- package/es/Alert/index.vue3.js +5 -0
- package/es/Anchor/Anchor.vue.js +71 -5
- package/es/Anchor/Anchor.vue3.js +5 -0
- package/es/Anchor/AnchorLink.vue.js +75 -5
- package/es/Anchor/AnchorLink.vue3.js +5 -0
- package/es/Anchor/hooks/useContext.js +3 -2
- package/es/Anchor/index.css +1 -1
- package/es/Anchor/index.js +9 -7
- package/es/Avatar/Avatar.vue.js +113 -5
- package/es/Avatar/Avatar.vue3.js +5 -0
- package/es/Avatar/AvatarGroup.vue.js +93 -5
- package/es/Avatar/AvatarGroup.vue3.js +5 -0
- package/es/Avatar/index.css +1 -1
- package/es/Avatar/index.js +9 -7
- package/es/BackTop/index.js +4 -3
- package/es/BackTop/index.vue.js +80 -5
- package/es/BackTop/index.vue3.js +5 -0
- package/es/Badge/index.js +4 -3
- package/es/Badge/index.vue.js +90 -5
- package/es/Badge/index.vue3.js +5 -0
- package/es/Breadcrumb/Breadcrumb.vue.js +118 -5
- package/es/Breadcrumb/Breadcrumb.vue3.js +5 -0
- package/es/Breadcrumb/BreadcrumbItem.vue.js +75 -5
- package/es/Breadcrumb/BreadcrumbItem.vue3.js +5 -0
- package/es/Breadcrumb/BreadcrumbMore.vue.js +5 -4
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +42 -5
- package/es/Breadcrumb/BreadcrumbSeparator.vue3.js +5 -0
- package/es/Breadcrumb/index.css +1 -1
- package/es/Breadcrumb/index.js +9 -7
- package/es/Button/Button.vue.js +108 -5
- package/es/Button/Button.vue3.js +5 -0
- package/es/Button/index.js +7 -6
- package/es/Calendar/Calendar.vue.js +209 -5
- package/es/Calendar/Calendar.vue3.js +5 -0
- package/es/Calendar/CalendarMonth.vue.js +114 -5
- package/es/Calendar/CalendarMonth.vue3.js +5 -0
- package/es/Calendar/CalendarYear.vue.js +95 -5
- package/es/Calendar/CalendarYear.vue3.js +5 -0
- package/es/Calendar/index.js +4 -3
- package/es/Card/Card.vue.js +121 -5
- package/es/Card/Card.vue3.js +5 -0
- package/es/Card/CardGrid.vue.js +25 -5
- package/es/Card/CardGrid.vue3.js +5 -0
- package/es/Card/CardMeta.vue.js +68 -5
- package/es/Card/CardMeta.vue3.js +5 -0
- package/es/Card/index.css +1 -1
- package/es/Card/index.js +14 -11
- package/es/Carousel/Carousel.vue.js +131 -5
- package/es/Carousel/Carousel.vue3.js +5 -0
- package/es/Carousel/CarouselArrow.vue.js +53 -5
- package/es/Carousel/CarouselArrow.vue3.js +5 -0
- package/es/Carousel/CarouselIndicator.vue.js +55 -5
- package/es/Carousel/CarouselIndicator.vue3.js +5 -0
- package/es/Carousel/CarouselItem.vue.js +53 -5
- package/es/Carousel/CarouselItem.vue3.js +5 -0
- package/es/Carousel/hooks/useContext.js +3 -2
- package/es/Carousel/index.js +9 -7
- package/es/Cascader/Cascader.vue.js +288 -5
- package/es/Cascader/Cascader.vue3.js +5 -0
- package/es/Cascader/CascaderIcon.vue.js +65 -5
- package/es/Cascader/CascaderIcon.vue3.js +5 -0
- package/es/Cascader/CascaderOption.vue.js +205 -5
- package/es/Cascader/CascaderOption.vue3.js +5 -0
- package/es/Cascader/CascaderPanel.vue.js +62 -5
- package/es/Cascader/CascaderPanel.vue3.js +5 -0
- package/es/Cascader/CascaderSearchPanel.vue.js +43 -5
- package/es/Cascader/CascaderSearchPanel.vue3.js +5 -0
- package/es/Cascader/index.css +1 -1
- package/es/Cascader/index.js +4 -3
- package/es/Checkbox/Checkbox.vue.js +114 -5
- package/es/Checkbox/Checkbox.vue3.js +5 -0
- package/es/Checkbox/CheckboxGroup.vue.js +3 -2
- package/es/Checkbox/index.js +7 -6
- package/es/Collapse/Collapse.vue.js +36 -5
- package/es/Collapse/Collapse.vue3.js +5 -0
- package/es/Collapse/CollapseItem.vue.js +130 -5
- package/es/Collapse/CollapseItem.vue3.js +5 -0
- package/es/Collapse/index.css +1 -1
- package/es/Collapse/index.js +9 -7
- package/es/ColorPicker/ColorControl.vue.js +110 -5
- package/es/ColorPicker/ColorControl.vue3.js +5 -0
- package/es/ColorPicker/ColorInput.vue.js +159 -6
- package/es/ColorPicker/ColorInput.vue3.js +5 -0
- package/es/ColorPicker/ColorList.vue.js +45 -5
- package/es/ColorPicker/ColorList.vue3.js +5 -0
- package/es/ColorPicker/ColorPalette.vue.js +98 -5
- package/es/ColorPicker/ColorPalette.vue3.js +5 -0
- package/es/ColorPicker/ColorPanel.vue.js +145 -4
- package/es/ColorPicker/ColorPanel.vue3.js +5 -0
- package/es/ColorPicker/ColorPicker.vue.js +86 -5
- package/es/ColorPicker/ColorPicker.vue3.js +5 -0
- package/es/ColorPicker/index.css +1 -1
- package/es/ColorPicker/index.js +4 -3
- package/es/Comment/index.js +4 -3
- package/es/Comment/index.vue.js +108 -5
- package/es/Comment/index.vue3.js +5 -0
- package/es/Descriptions/Descriptions.vue.js +9 -7
- package/es/Descriptions/ReuseItem.vue.js +60 -5
- package/es/Descriptions/ReuseItem.vue3.js +5 -0
- package/es/Descriptions/ReuseTd.vue.js +54 -5
- package/es/Descriptions/ReuseTd.vue3.js +5 -0
- package/es/Divider/index.js +4 -3
- package/es/Divider/index.vue.js +52 -5
- package/es/Divider/index.vue3.js +5 -0
- package/es/Drawer/Drawer.vue.js +202 -5
- package/es/Drawer/Drawer.vue3.js +5 -0
- package/es/Drawer/DrawerService.vue.js +3 -2
- package/es/Drawer/index.js +7 -6
- package/es/Dropdown/Dgroup.vue.js +31 -5
- package/es/Dropdown/Dgroup.vue3.js +5 -0
- package/es/Dropdown/Doption.vue.js +63 -5
- package/es/Dropdown/Doption.vue3.js +5 -0
- package/es/Dropdown/Dsubmenu.vue.js +154 -5
- package/es/Dropdown/Dsubmenu.vue3.js +5 -0
- package/es/Dropdown/index.js +18 -15
- package/es/Empty/index.js +4 -3
- package/es/Empty/index.vue.js +46 -5
- package/es/Empty/index.vue3.js +5 -0
- package/es/Grid/Grid.vue.js +39 -5
- package/es/Grid/Grid.vue3.js +5 -0
- package/es/Grid/GridRow.vue.js +46 -5
- package/es/Grid/GridRow.vue3.js +5 -0
- package/es/Grid/index.js +15 -13
- package/es/Image/Image.vue.js +182 -5
- package/es/Image/Image.vue3.js +5 -0
- package/es/Image/ImagePreview.vue.js +212 -5
- package/es/Image/ImagePreview.vue3.js +5 -0
- package/es/Image/ImagePreviewAction.vue.js +49 -5
- package/es/Image/ImagePreviewAction.vue3.js +5 -0
- package/es/Image/ImagePreviewArrow.vue.js +25 -5
- package/es/Image/ImagePreviewArrow.vue3.js +5 -0
- package/es/Image/ImagePreviewGroup.vue.js +7 -5
- package/es/Image/ImagePreviewToolbar.vue.js +73 -5
- package/es/Image/ImagePreviewToolbar.vue3.js +5 -0
- package/es/Image/hooks/useContext.js +3 -2
- package/es/Image/index.js +17 -14
- package/es/Input/Input.vue.js +232 -5
- package/es/Input/Input.vue3.js +5 -0
- package/es/Input/InputSuffix.vue.js +50 -5
- package/es/Input/InputSuffix.vue3.js +5 -0
- package/es/Input/index.js +4 -3
- package/es/InputNumber/InputNumber.vue.js +269 -5
- package/es/InputNumber/InputNumber.vue3.js +5 -0
- package/es/InputNumber/InputOperaBtn.vue.js +56 -5
- package/es/InputNumber/InputOperaBtn.vue3.js +5 -0
- package/es/InputNumber/index.css +1 -1
- package/es/InputNumber/index.js +4 -3
- package/es/InputTag/index.css +1 -1
- package/es/InputTag/index.js +4 -3
- package/es/InputTag/index.vue.js +322 -5
- package/es/InputTag/index.vue3.js +5 -0
- package/es/Layout/Layout.vue.js +44 -5
- package/es/Layout/Layout.vue3.js +5 -0
- package/es/Layout/LayoutContent.vue.js +16 -5
- package/es/Layout/LayoutContent.vue3.js +5 -0
- package/es/Layout/LayoutFooter.vue.js +16 -5
- package/es/Layout/LayoutFooter.vue3.js +5 -0
- package/es/Layout/LayoutHeader.vue.js +16 -5
- package/es/Layout/LayoutHeader.vue3.js +5 -0
- package/es/Layout/LayoutSider.vue.js +130 -5
- package/es/Layout/LayoutSider.vue3.js +5 -0
- package/es/Layout/index.js +24 -19
- package/es/Link/index.js +4 -3
- package/es/Link/index.vue.js +69 -5
- package/es/Link/index.vue3.js +5 -0
- package/es/List/List.vue.js +207 -5
- package/es/List/List.vue3.js +5 -0
- package/es/List/ListItem.vue.js +56 -5
- package/es/List/ListItem.vue3.js +5 -0
- package/es/List/ListItemMeta.vue.js +47 -5
- package/es/List/ListItemMeta.vue3.js +5 -0
- package/es/List/index.css +1 -1
- package/es/List/index.js +14 -11
- package/es/Menu/Menu.vue.js +97 -5
- package/es/Menu/Menu.vue3.js +5 -0
- package/es/Menu/MenuEllipsis.vue.js +92 -5
- package/es/Menu/MenuEllipsis.vue3.js +5 -0
- package/es/Menu/MenuItem.vue.js +230 -5
- package/es/Menu/MenuItem.vue3.js +5 -0
- package/es/Menu/MenuItemGroup.vue.js +40 -5
- package/es/Menu/MenuItemGroup.vue3.js +5 -0
- package/es/Menu/MenuPopOption.vue.js +6 -4
- package/es/Menu/SubMenu.vue.js +79 -5
- package/es/Menu/SubMenu.vue3.js +5 -0
- package/es/Menu/hooks/useContext.js +7 -5
- package/es/Menu/index.css +1 -1
- package/es/Menu/index.js +19 -15
- package/es/Message/Message.vue.js +99 -5
- package/es/Message/Message.vue3.js +5 -0
- package/es/Message/MessageList.vue.js +30 -5
- package/es/Message/MessageList.vue3.js +5 -0
- package/es/Message/index.js +7 -5
- package/es/Modal/Modal.vue.js +255 -5
- package/es/Modal/Modal.vue3.js +5 -0
- package/es/Modal/ModalService.vue.js +3 -2
- package/es/Modal/index.js +6 -5
- package/es/Notification/Notification.vue.js +126 -5
- package/es/Notification/Notification.vue3.js +5 -0
- package/es/Notification/NotificationList.vue.js +34 -5
- package/es/Notification/NotificationList.vue3.js +5 -0
- package/es/Notification/index.js +7 -5
- package/es/OverflowList/index.css +1 -1
- package/es/OverflowList/index.js +4 -3
- package/es/OverflowList/index.vue.js +120 -5
- package/es/OverflowList/index.vue3.js +5 -0
- package/es/PageHeader/index.css +1 -1
- package/es/PageHeader/index.js +4 -3
- package/es/PageHeader/index.vue.js +95 -5
- package/es/PageHeader/index.vue3.js +5 -0
- package/es/Pagination/Pagination.vue.js +190 -5
- package/es/Pagination/Pagination.vue3.js +5 -0
- package/es/Pagination/PaginationItem.vue.js +83 -5
- package/es/Pagination/PaginationItem.vue3.js +5 -0
- package/es/Pagination/index.css +1 -1
- package/es/Pagination/index.js +4 -3
- package/es/Progress/Progress.vue.js +131 -5
- package/es/Progress/Progress.vue3.js +5 -0
- package/es/Progress/ProgressCircle.vue.js +147 -5
- package/es/Progress/ProgressCircle.vue3.js +5 -0
- package/es/Progress/ProgressLine.vue.js +97 -5
- package/es/Progress/ProgressLine.vue3.js +5 -0
- package/es/Progress/index.js +4 -3
- package/es/Radio/Radio.vue.js +122 -5
- package/es/Radio/Radio.vue3.js +5 -0
- package/es/Radio/RadioGroup.vue.js +3 -2
- package/es/Radio/index.js +7 -6
- package/es/Rate/index.js +4 -3
- package/es/Rate/index.vue.js +146 -5
- package/es/Rate/index.vue3.js +5 -0
- package/es/ResizeBox/index.js +4 -3
- package/es/ResizeBox/index.vue.js +159 -5
- package/es/ResizeBox/index.vue3.js +5 -0
- package/es/Result/index.js +4 -3
- package/es/Result/index.vue.js +72 -5
- package/es/Result/index.vue3.js +5 -0
- package/es/Scrollbar/Scrollbar.vue.js +224 -5
- package/es/Scrollbar/Scrollbar.vue3.js +5 -0
- package/es/Scrollbar/ScrollbarTrack.vue.js +112 -5
- package/es/Scrollbar/ScrollbarTrack.vue3.js +5 -0
- package/es/Scrollbar/index.css +1 -1
- package/es/Scrollbar/index.js +4 -3
- package/es/Select/Optgroup.vue.js +24 -5
- package/es/Select/Optgroup.vue3.js +5 -0
- package/es/Select/Option.vue.js +138 -5
- package/es/Select/Option.vue3.js +5 -0
- package/es/Select/Select.vue.js +302 -5
- package/es/Select/Select.vue3.js +5 -0
- package/es/Select/SelectIcon.vue.js +65 -5
- package/es/Select/SelectIcon.vue3.js +5 -0
- package/es/Select/SelectRealList.vue.js +95 -5
- package/es/Select/SelectRealList.vue3.js +5 -0
- package/es/Select/SelectView.vue.js +99 -5
- package/es/Select/SelectView.vue3.js +5 -0
- package/es/Select/SelectVirtualList.vue.js +60 -5
- package/es/Select/SelectVirtualList.vue3.js +5 -0
- package/es/Select/index.css +1 -1
- package/es/Select/index.js +14 -11
- package/es/Skeleton/SkeletonLine.vue.js +43 -5
- package/es/Skeleton/SkeletonLine.vue3.js +5 -0
- package/es/Skeleton/SkeletonShape.vue.js +29 -5
- package/es/Skeleton/SkeletonShape.vue3.js +5 -0
- package/es/Skeleton/index.css +1 -1
- package/es/Skeleton/index.js +10 -8
- package/es/Slider/Slider.vue.js +146 -5
- package/es/Slider/Slider.vue3.js +5 -0
- package/es/Slider/SliderBtn.vue.js +96 -5
- package/es/Slider/SliderBtn.vue3.js +5 -0
- package/es/Slider/SliderInput.vue.js +54 -5
- package/es/Slider/SliderInput.vue3.js +5 -0
- package/es/Slider/SliderTicks.vue.js +64 -5
- package/es/Slider/SliderTicks.vue3.js +5 -0
- package/es/Slider/index.css +1 -1
- package/es/Slider/index.js +4 -3
- package/es/Space/index.js +4 -3
- package/es/Space/index.vue.js +94 -5
- package/es/Space/index.vue3.js +5 -0
- package/es/Spin/index.js +4 -3
- package/es/Spin/index.vue.js +87 -5
- package/es/Spin/index.vue3.js +5 -0
- package/es/Split/index.js +4 -3
- package/es/Split/index.vue.js +144 -5
- package/es/Split/index.vue3.js +5 -0
- package/es/Statistic/Countdown.vue.js +3 -2
- package/es/Statistic/Statistic.vue.js +153 -5
- package/es/Statistic/Statistic.vue3.js +5 -0
- package/es/Statistic/index.js +7 -6
- package/es/Steps/Step.vue.js +113 -5
- package/es/Steps/Step.vue3.js +5 -0
- package/es/Steps/Steps.vue.js +41 -5
- package/es/Steps/Steps.vue3.js +5 -0
- package/es/Steps/index.js +9 -7
- package/es/Switch/index.js +4 -3
- package/es/Switch/index.vue.js +152 -5
- package/es/Switch/index.vue3.js +5 -0
- package/es/Tabs/TabButton.vue.js +36 -5
- package/es/Tabs/TabButton.vue3.js +5 -0
- package/es/Tabs/Tabs.vue.js +209 -5
- package/es/Tabs/Tabs.vue3.js +5 -0
- package/es/Tabs/TabsNavInk.vue.js +60 -5
- package/es/Tabs/TabsNavInk.vue3.js +5 -0
- package/es/Tabs/TabsTab.vue.js +90 -5
- package/es/Tabs/TabsTab.vue3.js +5 -0
- package/es/Tabs/index.js +6 -5
- package/es/Tag/index.js +4 -3
- package/es/Tag/index.vue.js +112 -5
- package/es/Tag/index.vue3.js +5 -0
- package/es/Textarea/index.js +4 -3
- package/es/Textarea/index.vue.js +163 -5
- package/es/Textarea/index.vue3.js +5 -0
- package/es/TimePicker/TimePicker.vue.js +214 -5
- package/es/TimePicker/TimePicker.vue3.js +5 -0
- package/es/TimePicker/TimePickerPanel.vue.js +215 -5
- package/es/TimePicker/TimePickerPanel.vue3.js +5 -0
- package/es/TimePicker/index.js +4 -3
- package/es/Timeline/Timeline.vue.js +52 -5
- package/es/Timeline/Timeline.vue3.js +5 -0
- package/es/Timeline/TimelineItem.vue.js +87 -5
- package/es/Timeline/TimelineItem.vue3.js +5 -0
- package/es/Timeline/TimelineItemPending.vue.js +3 -2
- package/es/Timeline/hooks/useContext.js +3 -2
- package/es/Timeline/index.css +1 -1
- package/es/Timeline/index.js +9 -7
- package/es/Transfer/Transfer.vue.js +104 -5
- package/es/Transfer/Transfer.vue3.js +5 -0
- package/es/Transfer/TransferPanel.vue.js +251 -5
- package/es/Transfer/TransferPanel.vue3.js +5 -0
- package/es/Transfer/index.css +1 -1
- package/es/Transfer/index.js +4 -3
- package/es/Trigger/index.js +4 -3
- package/es/Trigger/index.vue.js +186 -5
- package/es/Trigger/index.vue3.js +5 -0
- package/es/Typography/TypographyBase.vue.js +202 -5
- package/es/Typography/TypographyBase.vue3.js +5 -0
- package/es/Typography/TypographyParagraph.vue.js +49 -5
- package/es/Typography/TypographyParagraph.vue3.js +5 -0
- package/es/Typography/TypographyText.vue.js +3 -2
- package/es/Typography/TypographyTitle.vue.js +50 -5
- package/es/Typography/TypographyTitle.vue3.js +5 -0
- package/es/Typography/index.css +1 -1
- package/es/Typography/index.js +10 -8
- package/es/VerificationCode/index.css +1 -1
- package/es/VerificationCode/index.js +4 -3
- package/es/VerificationCode/index.vue.js +125 -5
- package/es/VerificationCode/index.vue3.js +5 -0
- package/es/Watermark/index.js +4 -3
- package/es/Watermark/index.vue.js +274 -5
- package/es/Watermark/index.vue3.js +5 -0
- package/es/_shared/components/ExpandTransition.vue2.js +47 -5
- package/es/_shared/components/ExpandTransition.vue3.js +2 -46
- package/es/_shared/components/Icon.vue2.js +1 -3
- package/es/_shared/components/Icon.vue3.js +1 -1
- package/es/_shared/components/IconButton.vue.js +44 -0
- package/es/_shared/components/IconButton.vue3.js +2 -41
- package/es/_shared/icons/IconArrowDown.vue.js +3 -2
- package/es/_shared/icons/IconArrowRight.vue.js +3 -2
- package/es/_shared/icons/IconCheck.vue.js +3 -2
- package/es/_shared/icons/IconCheckboxChecked.vue.js +3 -2
- package/es/_shared/icons/IconClose.vue.js +3 -2
- package/es/_shared/icons/IconCopy.vue.js +1 -16
- package/es/_shared/icons/IconCopy.vue2.js +17 -1
- package/es/_shared/icons/IconDelete.vue2.js +3 -2
- package/es/_shared/icons/IconDragDot.vue.js +3 -2
- package/es/_shared/icons/IconEdit.vue.js +1 -16
- package/es/_shared/icons/IconEdit.vue2.js +17 -1
- package/es/_shared/icons/IconEmpty.vue.js +3 -2
- package/es/_shared/icons/IconError.vue.js +3 -2
- package/es/_shared/icons/IconExclamation.vue2.js +3 -2
- package/es/_shared/icons/IconEyeClose.vue2.js +3 -2
- package/es/_shared/icons/IconEyeOpen.vue2.js +3 -2
- package/es/_shared/icons/IconFaceSmile.vue.js +3 -2
- package/es/_shared/icons/IconFullScreen.vue2.js +3 -2
- package/es/_shared/icons/IconImageClose.vue.js +3 -2
- package/es/_shared/icons/IconInfo.vue.js +3 -2
- package/es/_shared/icons/IconInfoLine.vue.js +3 -2
- package/es/_shared/icons/IconLink.vue.js +3 -2
- package/es/_shared/icons/IconLoading.vue.js +3 -2
- package/es/_shared/icons/IconMenuFold.vue.js +3 -2
- package/es/_shared/icons/IconMenuUnfold.vue.js +3 -2
- package/es/_shared/icons/IconMinus.vue2.js +3 -2
- package/es/_shared/icons/IconMore.vue.js +3 -2
- package/es/_shared/icons/IconOriginSize.vue2.js +3 -2
- package/es/_shared/icons/IconPlus.vue.js +3 -2
- package/es/_shared/icons/IconRight.vue.js +3 -2
- package/es/_shared/icons/IconRotateLeft.vue2.js +3 -2
- package/es/_shared/icons/IconRotateRight.vue2.js +3 -2
- package/es/_shared/icons/IconSearch.vue2.js +3 -2
- package/es/_shared/icons/IconSeparator.vue2.js +3 -2
- package/es/_shared/icons/IconStar.vue.js +3 -2
- package/es/_shared/icons/IconSuccess.vue.js +3 -2
- package/es/_shared/icons/IconTime.vue.js +3 -2
- package/es/_shared/icons/IconToTop.vue.js +3 -2
- package/es/_shared/icons/IconWarning.vue.js +3 -2
- package/es/_shared/icons/IconZoomIn.vue2.js +3 -2
- package/es/_shared/icons/IconZoomOut.vue2.js +3 -2
- package/es/index.js +153 -123
- package/es/shared.css +1 -1
- package/es/style.css +1 -1
- package/lib/Alert/index.js +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Alert/index.vue3.js +1 -0
- package/lib/Anchor/Anchor.vue.js +1 -1
- package/lib/Anchor/Anchor.vue3.js +1 -0
- package/lib/Anchor/AnchorLink.vue.js +1 -1
- package/lib/Anchor/AnchorLink.vue3.js +1 -0
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/Anchor/index.css +1 -1
- package/lib/Anchor/index.js +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/Avatar.vue3.js +1 -0
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue3.js +1 -0
- package/lib/Avatar/index.css +1 -1
- package/lib/Avatar/index.js +1 -1
- package/lib/BackTop/index.js +1 -1
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/BackTop/index.vue3.js +1 -0
- package/lib/Badge/index.js +1 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Badge/index.vue3.js +1 -0
- package/lib/Breadcrumb/Breadcrumb.vue.js +1 -1
- package/lib/Breadcrumb/Breadcrumb.vue3.js +1 -0
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue3.js +1 -0
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue3.js +1 -0
- package/lib/Breadcrumb/index.css +1 -1
- package/lib/Breadcrumb/index.js +1 -1
- package/lib/Button/Button.vue.js +1 -1
- package/lib/Button/Button.vue3.js +1 -0
- package/lib/Button/index.js +1 -1
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/Calendar.vue3.js +1 -0
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue3.js +1 -0
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue3.js +1 -0
- package/lib/Calendar/index.js +1 -1
- package/lib/Card/Card.vue.js +1 -1
- package/lib/Card/Card.vue3.js +1 -0
- package/lib/Card/CardGrid.vue.js +1 -1
- package/lib/Card/CardGrid.vue3.js +1 -0
- package/lib/Card/CardMeta.vue.js +1 -1
- package/lib/Card/CardMeta.vue3.js +1 -0
- package/lib/Card/index.css +1 -1
- package/lib/Card/index.js +1 -1
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/Carousel.vue3.js +1 -0
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue3.js +1 -0
- package/lib/Carousel/CarouselIndicator.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue3.js +1 -0
- package/lib/Carousel/CarouselItem.vue.js +1 -1
- package/lib/Carousel/CarouselItem.vue3.js +1 -0
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Carousel/index.js +1 -1
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/Cascader.vue3.js +1 -0
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue3.js +1 -0
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue3.js +1 -0
- package/lib/Cascader/CascaderPanel.vue.js +1 -1
- package/lib/Cascader/CascaderPanel.vue3.js +1 -0
- package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
- package/lib/Cascader/CascaderSearchPanel.vue3.js +1 -0
- package/lib/Cascader/index.css +1 -1
- package/lib/Cascader/index.js +1 -1
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/Checkbox.vue3.js +1 -0
- package/lib/Checkbox/CheckboxGroup.vue.js +1 -1
- package/lib/Checkbox/index.js +1 -1
- package/lib/Collapse/Collapse.vue.js +1 -1
- package/lib/Collapse/Collapse.vue3.js +1 -0
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue3.js +1 -0
- package/lib/Collapse/index.css +1 -1
- package/lib/Collapse/index.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorControl.vue3.js +1 -0
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue3.js +1 -0
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue3.js +1 -0
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue3.js +1 -0
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue3.js +1 -0
- package/lib/ColorPicker/ColorPicker.vue.js +1 -1
- package/lib/ColorPicker/ColorPicker.vue3.js +1 -0
- package/lib/ColorPicker/index.css +1 -1
- package/lib/ColorPicker/index.js +1 -1
- package/lib/Comment/index.js +1 -1
- package/lib/Comment/index.vue.js +1 -1
- package/lib/Comment/index.vue3.js +1 -0
- package/lib/Descriptions/Descriptions.vue.js +1 -1
- package/lib/Descriptions/ReuseItem.vue.js +1 -1
- package/lib/Descriptions/ReuseItem.vue3.js +1 -0
- package/lib/Descriptions/ReuseTd.vue.js +1 -1
- package/lib/Descriptions/ReuseTd.vue3.js +1 -0
- package/lib/Divider/index.js +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Divider/index.vue3.js +1 -0
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/Drawer.vue3.js +1 -0
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Drawer/index.js +1 -1
- package/lib/Dropdown/Dgroup.vue.js +1 -1
- package/lib/Dropdown/Dgroup.vue3.js +1 -0
- package/lib/Dropdown/Doption.vue.js +1 -1
- package/lib/Dropdown/Doption.vue3.js +1 -0
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue3.js +1 -0
- package/lib/Dropdown/index.js +1 -1
- package/lib/Empty/index.js +1 -1
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Empty/index.vue3.js +1 -0
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/Grid.vue3.js +1 -0
- package/lib/Grid/GridRow.vue.js +1 -1
- package/lib/Grid/GridRow.vue3.js +1 -0
- package/lib/Grid/index.js +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/Image.vue3.js +1 -0
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreview.vue3.js +1 -0
- package/lib/Image/ImagePreviewAction.vue.js +1 -1
- package/lib/Image/ImagePreviewAction.vue3.js +1 -0
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue3.js +1 -0
- package/lib/Image/ImagePreviewGroup.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue3.js +1 -0
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Image/index.js +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/Input.vue3.js +1 -0
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/InputSuffix.vue3.js +1 -0
- package/lib/Input/index.js +1 -1
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputNumber/InputNumber.vue3.js +1 -0
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue3.js +1 -0
- package/lib/InputNumber/index.css +1 -1
- package/lib/InputNumber/index.js +1 -1
- package/lib/InputTag/index.css +1 -1
- package/lib/InputTag/index.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/index.vue3.js +1 -0
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/Layout.vue3.js +1 -0
- package/lib/Layout/LayoutContent.vue.js +1 -1
- package/lib/Layout/LayoutContent.vue3.js +1 -0
- package/lib/Layout/LayoutFooter.vue.js +1 -1
- package/lib/Layout/LayoutFooter.vue3.js +1 -0
- package/lib/Layout/LayoutHeader.vue.js +1 -1
- package/lib/Layout/LayoutHeader.vue3.js +1 -0
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue3.js +1 -0
- package/lib/Layout/index.js +1 -1
- package/lib/Link/index.js +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Link/index.vue3.js +1 -0
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue3.js +1 -0
- package/lib/List/ListItem.vue.js +1 -1
- package/lib/List/ListItem.vue3.js +1 -0
- package/lib/List/ListItemMeta.vue.js +1 -1
- package/lib/List/ListItemMeta.vue3.js +1 -0
- package/lib/List/index.css +1 -1
- package/lib/List/index.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/Menu.vue3.js +1 -0
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue3.js +1 -0
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/MenuItem.vue3.js +1 -0
- package/lib/Menu/MenuItemGroup.vue.js +1 -1
- package/lib/Menu/MenuItemGroup.vue3.js +1 -0
- package/lib/Menu/MenuPopOption.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/SubMenu.vue3.js +1 -0
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/index.css +1 -1
- package/lib/Menu/index.js +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/Message.vue3.js +1 -0
- package/lib/Message/MessageList.vue.js +1 -1
- package/lib/Message/MessageList.vue3.js +1 -0
- package/lib/Message/index.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/Modal.vue3.js +1 -0
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/index.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/Notification.vue3.js +1 -0
- package/lib/Notification/NotificationList.vue.js +1 -1
- package/lib/Notification/NotificationList.vue3.js +1 -0
- package/lib/Notification/index.js +1 -1
- package/lib/OverflowList/index.css +1 -1
- package/lib/OverflowList/index.js +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/index.vue3.js +1 -0
- package/lib/PageHeader/index.css +1 -1
- package/lib/PageHeader/index.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/PageHeader/index.vue3.js +1 -0
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/Pagination.vue3.js +1 -0
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue3.js +1 -0
- package/lib/Pagination/index.css +1 -1
- package/lib/Pagination/index.js +1 -1
- package/lib/Progress/Progress.vue.js +1 -1
- package/lib/Progress/Progress.vue3.js +1 -0
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue3.js +1 -0
- package/lib/Progress/ProgressLine.vue.js +1 -1
- package/lib/Progress/ProgressLine.vue3.js +1 -0
- package/lib/Progress/index.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/Radio.vue3.js +1 -0
- package/lib/Radio/RadioGroup.vue.js +1 -1
- package/lib/Radio/index.js +1 -1
- package/lib/Rate/index.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/Rate/index.vue3.js +1 -0
- package/lib/ResizeBox/index.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue3.js +1 -0
- package/lib/Result/index.js +1 -1
- package/lib/Result/index.vue.js +1 -1
- package/lib/Result/index.vue3.js +1 -0
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue3.js +1 -0
- package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue3.js +1 -0
- package/lib/Scrollbar/index.css +1 -1
- package/lib/Scrollbar/index.js +1 -1
- package/lib/Select/Optgroup.vue.js +1 -1
- package/lib/Select/Optgroup.vue3.js +1 -0
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Option.vue3.js +1 -0
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/Select.vue3.js +1 -0
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectIcon.vue3.js +1 -0
- package/lib/Select/SelectRealList.vue.js +1 -1
- package/lib/Select/SelectRealList.vue3.js +1 -0
- package/lib/Select/SelectView.vue.js +1 -1
- package/lib/Select/SelectView.vue3.js +1 -0
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/SelectVirtualList.vue3.js +1 -0
- package/lib/Select/index.css +1 -1
- package/lib/Select/index.js +1 -1
- package/lib/Skeleton/SkeletonLine.vue.js +1 -1
- package/lib/Skeleton/SkeletonLine.vue3.js +1 -0
- package/lib/Skeleton/SkeletonShape.vue.js +1 -1
- package/lib/Skeleton/SkeletonShape.vue3.js +1 -0
- package/lib/Skeleton/index.css +1 -1
- package/lib/Skeleton/index.js +1 -1
- package/lib/Slider/Slider.vue.js +1 -1
- package/lib/Slider/Slider.vue3.js +1 -0
- package/lib/Slider/SliderBtn.vue.js +1 -1
- package/lib/Slider/SliderBtn.vue3.js +1 -0
- package/lib/Slider/SliderInput.vue.js +1 -1
- package/lib/Slider/SliderInput.vue3.js +1 -0
- package/lib/Slider/SliderTicks.vue.js +1 -1
- package/lib/Slider/SliderTicks.vue3.js +1 -0
- package/lib/Slider/index.css +1 -1
- package/lib/Slider/index.js +1 -1
- package/lib/Space/index.js +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Space/index.vue3.js +1 -0
- package/lib/Spin/index.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Spin/index.vue3.js +1 -0
- package/lib/Split/index.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Split/index.vue3.js +1 -0
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/Statistic.vue3.js +1 -0
- package/lib/Statistic/index.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/Step.vue3.js +1 -0
- package/lib/Steps/Steps.vue.js +1 -1
- package/lib/Steps/Steps.vue3.js +1 -0
- package/lib/Steps/index.js +1 -1
- package/lib/Switch/index.js +1 -1
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Switch/index.vue3.js +1 -0
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/TabButton.vue3.js +1 -0
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/Tabs.vue3.js +1 -0
- package/lib/Tabs/TabsNavInk.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue3.js +1 -0
- package/lib/Tabs/TabsTab.vue.js +1 -1
- package/lib/Tabs/TabsTab.vue3.js +1 -0
- package/lib/Tabs/index.js +1 -1
- package/lib/Tag/index.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Tag/index.vue3.js +1 -0
- package/lib/Textarea/index.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/Textarea/index.vue3.js +1 -0
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue3.js +1 -0
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue3.js +1 -0
- package/lib/TimePicker/index.js +1 -1
- package/lib/Timeline/Timeline.vue.js +1 -1
- package/lib/Timeline/Timeline.vue3.js +1 -0
- package/lib/Timeline/TimelineItem.vue.js +1 -1
- package/lib/Timeline/TimelineItem.vue3.js +1 -0
- package/lib/Timeline/TimelineItemPending.vue.js +1 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Timeline/index.css +1 -1
- package/lib/Timeline/index.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/Transfer.vue3.js +1 -0
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue3.js +1 -0
- package/lib/Transfer/index.css +1 -1
- package/lib/Transfer/index.js +1 -1
- package/lib/Trigger/index.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue3.js +1 -0
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue3.js +1 -0
- package/lib/Typography/TypographyParagraph.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue3.js +1 -0
- package/lib/Typography/TypographyText.vue.js +1 -1
- package/lib/Typography/TypographyTitle.vue.js +1 -1
- package/lib/Typography/TypographyTitle.vue3.js +1 -0
- package/lib/Typography/index.css +1 -1
- package/lib/Typography/index.js +1 -1
- package/lib/VerificationCode/index.css +1 -1
- package/lib/VerificationCode/index.js +1 -1
- package/lib/VerificationCode/index.vue.js +1 -1
- package/lib/VerificationCode/index.vue3.js +1 -0
- package/lib/Watermark/index.js +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/Watermark/index.vue3.js +1 -0
- package/lib/_shared/components/ExpandTransition.vue2.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
- package/lib/_shared/components/Icon.vue2.js +1 -1
- package/lib/_shared/components/Icon.vue3.js +1 -1
- package/lib/_shared/components/IconButton.vue.js +1 -0
- package/lib/_shared/components/IconButton.vue3.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.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.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.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/index.js +1 -1
- package/lib/shared.css +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Alert/index.vue2.js +0 -101
- package/es/Anchor/Anchor.vue2.js +0 -73
- package/es/Anchor/AnchorLink.vue2.js +0 -77
- package/es/Avatar/Avatar.vue2.js +0 -115
- package/es/Avatar/AvatarGroup.vue2.js +0 -95
- package/es/BackTop/index.vue2.js +0 -82
- package/es/Badge/index.vue2.js +0 -92
- package/es/Breadcrumb/Breadcrumb.vue2.js +0 -118
- package/es/Breadcrumb/BreadcrumbItem.vue2.js +0 -76
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +0 -44
- package/es/Button/Button.vue2.js +0 -110
- package/es/Calendar/Calendar.vue2.js +0 -208
- package/es/Calendar/CalendarMonth.vue2.js +0 -116
- package/es/Calendar/CalendarYear.vue2.js +0 -96
- package/es/Card/Card.vue2.js +0 -121
- package/es/Card/CardGrid.vue2.js +0 -27
- package/es/Card/CardMeta.vue2.js +0 -70
- package/es/Carousel/Carousel.vue2.js +0 -131
- package/es/Carousel/CarouselArrow.vue2.js +0 -55
- package/es/Carousel/CarouselIndicator.vue2.js +0 -57
- package/es/Carousel/CarouselItem.vue2.js +0 -55
- package/es/Cascader/Cascader.vue2.js +0 -287
- package/es/Cascader/CascaderIcon.vue2.js +0 -66
- package/es/Cascader/CascaderOption.vue2.js +0 -207
- package/es/Cascader/CascaderPanel.vue2.js +0 -63
- package/es/Cascader/CascaderSearchPanel.vue2.js +0 -44
- package/es/Checkbox/Checkbox.vue2.js +0 -115
- package/es/Collapse/Collapse.vue2.js +0 -38
- package/es/Collapse/CollapseItem.vue2.js +0 -130
- package/es/ColorPicker/ColorControl.vue2.js +0 -112
- package/es/ColorPicker/ColorInput.vue2.js +0 -161
- package/es/ColorPicker/ColorList.vue2.js +0 -47
- package/es/ColorPicker/ColorPalette.vue2.js +0 -100
- package/es/ColorPicker/ColorPanel.vue2.js +0 -144
- package/es/ColorPicker/ColorPicker.vue2.js +0 -87
- package/es/Comment/index.vue2.js +0 -110
- package/es/Descriptions/ReuseItem.vue2.js +0 -62
- package/es/Descriptions/ReuseTd.vue2.js +0 -56
- package/es/Divider/index.vue2.js +0 -54
- package/es/Drawer/Drawer.vue2.js +0 -203
- package/es/Dropdown/Dgroup.vue2.js +0 -33
- package/es/Dropdown/Doption.vue2.js +0 -65
- package/es/Dropdown/Dsubmenu.vue2.js +0 -155
- package/es/Empty/index.vue2.js +0 -48
- package/es/Grid/Grid.vue2.js +0 -41
- package/es/Grid/GridRow.vue2.js +0 -48
- package/es/Image/Image.vue2.js +0 -183
- package/es/Image/ImagePreview.vue2.js +0 -213
- package/es/Image/ImagePreviewAction.vue2.js +0 -51
- package/es/Image/ImagePreviewArrow.vue2.js +0 -27
- package/es/Image/ImagePreviewToolbar.vue2.js +0 -74
- package/es/Input/Input.vue2.js +0 -232
- package/es/Input/InputSuffix.vue2.js +0 -51
- package/es/InputNumber/InputNumber.vue2.js +0 -270
- package/es/InputNumber/InputOperaBtn.vue2.js +0 -58
- package/es/InputTag/index.vue2.js +0 -323
- package/es/Layout/Layout.vue2.js +0 -45
- package/es/Layout/LayoutContent.vue2.js +0 -18
- package/es/Layout/LayoutFooter.vue2.js +0 -18
- package/es/Layout/LayoutHeader.vue2.js +0 -18
- package/es/Layout/LayoutSider.vue2.js +0 -132
- package/es/Link/index.vue2.js +0 -71
- package/es/List/List.vue2.js +0 -208
- package/es/List/ListItem.vue2.js +0 -58
- package/es/List/ListItemMeta.vue2.js +0 -49
- package/es/Menu/Menu.vue2.js +0 -98
- package/es/Menu/MenuEllipsis.vue2.js +0 -94
- package/es/Menu/MenuItem.vue2.js +0 -232
- package/es/Menu/MenuItemGroup.vue2.js +0 -42
- package/es/Menu/SubMenu.vue2.js +0 -79
- package/es/Message/Message.vue2.js +0 -100
- package/es/Message/MessageList.vue2.js +0 -31
- package/es/Modal/Modal.vue2.js +0 -256
- package/es/Notification/Notification.vue2.js +0 -127
- package/es/Notification/NotificationList.vue2.js +0 -35
- package/es/OverflowList/index.vue2.js +0 -122
- package/es/PageHeader/index.vue2.js +0 -96
- package/es/Pagination/Pagination.vue2.js +0 -191
- package/es/Pagination/PaginationItem.vue2.js +0 -85
- package/es/Progress/Progress.vue2.js +0 -131
- package/es/Progress/ProgressCircle.vue2.js +0 -149
- package/es/Progress/ProgressLine.vue2.js +0 -99
- package/es/Radio/Radio.vue2.js +0 -123
- package/es/Rate/index.vue2.js +0 -148
- package/es/ResizeBox/index.vue2.js +0 -161
- package/es/Result/index.vue2.js +0 -74
- package/es/Scrollbar/Scrollbar.vue2.js +0 -225
- package/es/Scrollbar/ScrollbarTrack.vue2.js +0 -114
- package/es/Select/Optgroup.vue2.js +0 -26
- package/es/Select/Option.vue2.js +0 -140
- package/es/Select/Select.vue2.js +0 -302
- package/es/Select/SelectIcon.vue2.js +0 -66
- package/es/Select/SelectRealList.vue2.js +0 -95
- package/es/Select/SelectView.vue2.js +0 -99
- package/es/Select/SelectVirtualList.vue2.js +0 -61
- package/es/Skeleton/SkeletonLine.vue2.js +0 -45
- package/es/Skeleton/SkeletonShape.vue2.js +0 -31
- package/es/Slider/Slider.vue2.js +0 -145
- package/es/Slider/SliderBtn.vue2.js +0 -98
- package/es/Slider/SliderInput.vue2.js +0 -56
- package/es/Slider/SliderTicks.vue2.js +0 -66
- package/es/Space/index.vue2.js +0 -96
- package/es/Spin/index.vue2.js +0 -89
- package/es/Split/index.vue2.js +0 -146
- package/es/Statistic/Statistic.vue2.js +0 -155
- package/es/Steps/Step.vue2.js +0 -115
- package/es/Steps/Steps.vue2.js +0 -43
- package/es/Switch/index.vue2.js +0 -154
- package/es/Tabs/TabButton.vue2.js +0 -37
- package/es/Tabs/Tabs.vue2.js +0 -208
- package/es/Tabs/TabsNavInk.vue2.js +0 -62
- package/es/Tabs/TabsTab.vue2.js +0 -91
- package/es/Tag/index.vue2.js +0 -113
- package/es/Textarea/index.vue2.js +0 -164
- package/es/TimePicker/TimePicker.vue2.js +0 -214
- package/es/TimePicker/TimePickerPanel.vue2.js +0 -217
- package/es/Timeline/Timeline.vue2.js +0 -54
- package/es/Timeline/TimelineItem.vue2.js +0 -89
- package/es/Transfer/Transfer.vue2.js +0 -105
- package/es/Transfer/TransferPanel.vue2.js +0 -252
- package/es/Trigger/index.vue2.js +0 -188
- package/es/Typography/TypographyBase.vue2.js +0 -204
- package/es/Typography/TypographyParagraph.vue2.js +0 -50
- package/es/Typography/TypographyTitle.vue2.js +0 -51
- package/es/VerificationCode/index.vue2.js +0 -127
- package/es/Watermark/index.vue2.js +0 -276
- package/es/_shared/components/IconButton.vue2.js +0 -7
- package/es/_virtual/_plugin-vue_export-helper.js +0 -10
- package/lib/Alert/index.vue2.js +0 -1
- package/lib/Anchor/Anchor.vue2.js +0 -1
- package/lib/Anchor/AnchorLink.vue2.js +0 -1
- package/lib/Avatar/Avatar.vue2.js +0 -1
- package/lib/Avatar/AvatarGroup.vue2.js +0 -1
- package/lib/BackTop/index.vue2.js +0 -1
- package/lib/Badge/index.vue2.js +0 -1
- package/lib/Breadcrumb/Breadcrumb.vue2.js +0 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue2.js +0 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +0 -1
- package/lib/Button/Button.vue2.js +0 -1
- package/lib/Calendar/Calendar.vue2.js +0 -1
- package/lib/Calendar/CalendarMonth.vue2.js +0 -1
- package/lib/Calendar/CalendarYear.vue2.js +0 -1
- package/lib/Card/Card.vue2.js +0 -1
- package/lib/Card/CardGrid.vue2.js +0 -1
- package/lib/Card/CardMeta.vue2.js +0 -1
- package/lib/Carousel/Carousel.vue2.js +0 -1
- package/lib/Carousel/CarouselArrow.vue2.js +0 -1
- package/lib/Carousel/CarouselIndicator.vue2.js +0 -1
- package/lib/Carousel/CarouselItem.vue2.js +0 -1
- package/lib/Cascader/Cascader.vue2.js +0 -1
- package/lib/Cascader/CascaderIcon.vue2.js +0 -1
- package/lib/Cascader/CascaderOption.vue2.js +0 -1
- package/lib/Cascader/CascaderPanel.vue2.js +0 -1
- package/lib/Cascader/CascaderSearchPanel.vue2.js +0 -1
- package/lib/Checkbox/Checkbox.vue2.js +0 -1
- package/lib/Collapse/Collapse.vue2.js +0 -1
- package/lib/Collapse/CollapseItem.vue2.js +0 -1
- package/lib/ColorPicker/ColorControl.vue2.js +0 -1
- package/lib/ColorPicker/ColorInput.vue2.js +0 -1
- package/lib/ColorPicker/ColorList.vue2.js +0 -1
- package/lib/ColorPicker/ColorPalette.vue2.js +0 -1
- package/lib/ColorPicker/ColorPanel.vue2.js +0 -1
- package/lib/ColorPicker/ColorPicker.vue2.js +0 -1
- package/lib/Comment/index.vue2.js +0 -1
- package/lib/Descriptions/ReuseItem.vue2.js +0 -1
- package/lib/Descriptions/ReuseTd.vue2.js +0 -1
- package/lib/Divider/index.vue2.js +0 -1
- package/lib/Drawer/Drawer.vue2.js +0 -1
- package/lib/Dropdown/Dgroup.vue2.js +0 -1
- package/lib/Dropdown/Doption.vue2.js +0 -1
- package/lib/Dropdown/Dsubmenu.vue2.js +0 -1
- package/lib/Empty/index.vue2.js +0 -1
- package/lib/Grid/Grid.vue2.js +0 -1
- package/lib/Grid/GridRow.vue2.js +0 -1
- package/lib/Image/Image.vue2.js +0 -1
- package/lib/Image/ImagePreview.vue2.js +0 -1
- package/lib/Image/ImagePreviewAction.vue2.js +0 -1
- package/lib/Image/ImagePreviewArrow.vue2.js +0 -1
- package/lib/Image/ImagePreviewToolbar.vue2.js +0 -1
- package/lib/Input/Input.vue2.js +0 -1
- package/lib/Input/InputSuffix.vue2.js +0 -1
- package/lib/InputNumber/InputNumber.vue2.js +0 -1
- package/lib/InputNumber/InputOperaBtn.vue2.js +0 -1
- package/lib/InputTag/index.vue2.js +0 -1
- package/lib/Layout/Layout.vue2.js +0 -1
- package/lib/Layout/LayoutContent.vue2.js +0 -1
- package/lib/Layout/LayoutFooter.vue2.js +0 -1
- package/lib/Layout/LayoutHeader.vue2.js +0 -1
- package/lib/Layout/LayoutSider.vue2.js +0 -1
- package/lib/Link/index.vue2.js +0 -1
- package/lib/List/List.vue2.js +0 -1
- package/lib/List/ListItem.vue2.js +0 -1
- package/lib/List/ListItemMeta.vue2.js +0 -1
- package/lib/Menu/Menu.vue2.js +0 -1
- package/lib/Menu/MenuEllipsis.vue2.js +0 -1
- package/lib/Menu/MenuItem.vue2.js +0 -1
- package/lib/Menu/MenuItemGroup.vue2.js +0 -1
- package/lib/Menu/SubMenu.vue2.js +0 -1
- package/lib/Message/Message.vue2.js +0 -1
- package/lib/Message/MessageList.vue2.js +0 -1
- package/lib/Modal/Modal.vue2.js +0 -1
- package/lib/Notification/Notification.vue2.js +0 -1
- package/lib/Notification/NotificationList.vue2.js +0 -1
- package/lib/OverflowList/index.vue2.js +0 -1
- package/lib/PageHeader/index.vue2.js +0 -1
- package/lib/Pagination/Pagination.vue2.js +0 -1
- package/lib/Pagination/PaginationItem.vue2.js +0 -1
- package/lib/Progress/Progress.vue2.js +0 -1
- package/lib/Progress/ProgressCircle.vue2.js +0 -1
- package/lib/Progress/ProgressLine.vue2.js +0 -1
- package/lib/Radio/Radio.vue2.js +0 -1
- package/lib/Rate/index.vue2.js +0 -1
- package/lib/ResizeBox/index.vue2.js +0 -1
- package/lib/Result/index.vue2.js +0 -1
- package/lib/Scrollbar/Scrollbar.vue2.js +0 -1
- package/lib/Scrollbar/ScrollbarTrack.vue2.js +0 -1
- package/lib/Select/Optgroup.vue2.js +0 -1
- package/lib/Select/Option.vue2.js +0 -1
- package/lib/Select/Select.vue2.js +0 -1
- package/lib/Select/SelectIcon.vue2.js +0 -1
- package/lib/Select/SelectRealList.vue2.js +0 -1
- package/lib/Select/SelectView.vue2.js +0 -1
- package/lib/Select/SelectVirtualList.vue2.js +0 -1
- package/lib/Skeleton/SkeletonLine.vue2.js +0 -1
- package/lib/Skeleton/SkeletonShape.vue2.js +0 -1
- package/lib/Slider/Slider.vue2.js +0 -1
- package/lib/Slider/SliderBtn.vue2.js +0 -1
- package/lib/Slider/SliderInput.vue2.js +0 -1
- package/lib/Slider/SliderTicks.vue2.js +0 -1
- package/lib/Space/index.vue2.js +0 -1
- package/lib/Spin/index.vue2.js +0 -1
- package/lib/Split/index.vue2.js +0 -1
- package/lib/Statistic/Statistic.vue2.js +0 -1
- package/lib/Steps/Step.vue2.js +0 -1
- package/lib/Steps/Steps.vue2.js +0 -1
- package/lib/Switch/index.vue2.js +0 -1
- package/lib/Tabs/TabButton.vue2.js +0 -1
- package/lib/Tabs/Tabs.vue2.js +0 -1
- package/lib/Tabs/TabsNavInk.vue2.js +0 -1
- package/lib/Tabs/TabsTab.vue2.js +0 -1
- package/lib/Tag/index.vue2.js +0 -1
- package/lib/Textarea/index.vue2.js +0 -1
- package/lib/TimePicker/TimePicker.vue2.js +0 -1
- package/lib/TimePicker/TimePickerPanel.vue2.js +0 -1
- package/lib/Timeline/Timeline.vue2.js +0 -1
- package/lib/Timeline/TimelineItem.vue2.js +0 -1
- package/lib/Transfer/Transfer.vue2.js +0 -1
- package/lib/Transfer/TransferPanel.vue2.js +0 -1
- package/lib/Trigger/index.vue2.js +0 -1
- package/lib/Typography/TypographyBase.vue2.js +0 -1
- package/lib/Typography/TypographyParagraph.vue2.js +0 -1
- package/lib/Typography/TypographyTitle.vue2.js +0 -1
- package/lib/VerificationCode/index.vue2.js +0 -1
- package/lib/Watermark/index.vue2.js +0 -1
- package/lib/_shared/components/IconButton.vue2.js +0 -1
- package/lib/_virtual/_plugin-vue_export-helper.js +0 -1
@@ -1,51 +0,0 @@
|
|
1
|
-
import { defineComponent, toRefs, computed, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, normalizeProps, guardReactiveProps } from "vue";
|
2
|
-
import TypographyBase from "./TypographyBase.vue.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
...{
|
5
|
-
name: "TypographyTitle"
|
6
|
-
},
|
7
|
-
__name: "TypographyTitle",
|
8
|
-
props: {
|
9
|
-
heading: { default: 1 }
|
10
|
-
},
|
11
|
-
setup(__props) {
|
12
|
-
const props = __props;
|
13
|
-
const { heading } = toRefs(props);
|
14
|
-
const tag = computed(() => {
|
15
|
-
return [1, 2, 3, 4, 5, 6].includes(heading.value) ? `h${heading.value}` : "h1";
|
16
|
-
});
|
17
|
-
return (_ctx, _cache) => {
|
18
|
-
return openBlock(), createBlock(TypographyBase, mergeProps({ tag: tag.value }, _ctx.$attrs), createSlots({
|
19
|
-
default: withCtx(() => [
|
20
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
21
|
-
]),
|
22
|
-
_: 2
|
23
|
-
}, [
|
24
|
-
_ctx.$slots["copy-icon"] ? {
|
25
|
-
name: "copy-icon",
|
26
|
-
fn: withCtx((scope) => [
|
27
|
-
renderSlot(_ctx.$slots, "copy-icon", normalizeProps(guardReactiveProps(scope)), void 0, true)
|
28
|
-
]),
|
29
|
-
key: "0"
|
30
|
-
} : void 0,
|
31
|
-
_ctx.$slots["copy-tooltip"] ? {
|
32
|
-
name: "copy-tooltip",
|
33
|
-
fn: withCtx((scope) => [
|
34
|
-
renderSlot(_ctx.$slots, "copy-tooltip", normalizeProps(guardReactiveProps(scope)), void 0, true)
|
35
|
-
]),
|
36
|
-
key: "1"
|
37
|
-
} : void 0,
|
38
|
-
_ctx.$slots["expand-node"] ? {
|
39
|
-
name: "expand-node",
|
40
|
-
fn: withCtx((scope) => [
|
41
|
-
renderSlot(_ctx.$slots, "expand-node", normalizeProps(guardReactiveProps(scope)), void 0, true)
|
42
|
-
]),
|
43
|
-
key: "2"
|
44
|
-
} : void 0
|
45
|
-
]), 1040, ["tag"]);
|
46
|
-
};
|
47
|
-
}
|
48
|
-
});
|
49
|
-
export {
|
50
|
-
_sfc_main as default
|
51
|
-
};
|
@@ -1,127 +0,0 @@
|
|
1
|
-
import { defineComponent, toRefs, computed, ref, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createVNode, createBlock, createCommentVNode, resolveDynamicComponent } from "vue";
|
2
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
|
-
import { sleep } from "../_shared/utils/dom.js";
|
4
|
-
import { isNumber, isString, isFunction } from "../_shared/utils/is.js";
|
5
|
-
import "../_shared/utils/time.js";
|
6
|
-
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
7
|
-
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
8
|
-
import useControlValue from "../_shared/utils/control.js";
|
9
|
-
import { nanoid } from "../node_modules/nanoid/index.browser.js";
|
10
|
-
import Input from "../Input/index.js";
|
11
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
-
...{
|
13
|
-
name: "VerificationCode"
|
14
|
-
},
|
15
|
-
__name: "index",
|
16
|
-
props: {
|
17
|
-
modelValue: { default: void 0 },
|
18
|
-
defaultValue: { default: "" },
|
19
|
-
length: { default: 6 },
|
20
|
-
size: { default: void 0 },
|
21
|
-
disabled: { type: Boolean, default: false },
|
22
|
-
masked: { type: Boolean },
|
23
|
-
readonly: { type: Boolean, default: false },
|
24
|
-
error: { type: Boolean, default: false },
|
25
|
-
separator: {},
|
26
|
-
formatter: {}
|
27
|
-
},
|
28
|
-
emits: ["update:modelValue", "input", "change", "finish"],
|
29
|
-
setup(__props, { emit: __emit }) {
|
30
|
-
const props = __props;
|
31
|
-
const emits = __emit;
|
32
|
-
const { modelValue, defaultValue, length: _length } = toRefs(props);
|
33
|
-
const { formatter } = props;
|
34
|
-
const { size } = getGlobalConfig(props);
|
35
|
-
const computedValue = useControlValue(
|
36
|
-
modelValue,
|
37
|
-
defaultValue.value,
|
38
|
-
(val) => {
|
39
|
-
if (val.length == _length.value) {
|
40
|
-
emits("finish", val);
|
41
|
-
}
|
42
|
-
emits("update:modelValue", val);
|
43
|
-
}
|
44
|
-
);
|
45
|
-
const length = computed(
|
46
|
-
() => new Array(_length.value).fill("").map(() => nanoid())
|
47
|
-
);
|
48
|
-
const formatValue = ref([]);
|
49
|
-
const inputValue = computed(() => {
|
50
|
-
const base = [...computedValue.value];
|
51
|
-
for (let i = base.length; i < _length.value; i++) {
|
52
|
-
base[i] = "";
|
53
|
-
}
|
54
|
-
return base.map((item, i) => {
|
55
|
-
const format = formatter == null ? void 0 : formatter(item, i, formatValue.value.join(""));
|
56
|
-
return item && (isNumber(format) || isString(format)) ? format : item;
|
57
|
-
});
|
58
|
-
});
|
59
|
-
const inputList = ref([]);
|
60
|
-
const isWritable = (i) => {
|
61
|
-
for (let k = 1; k < i; k++) {
|
62
|
-
if (!inputValue.value[k]) return false;
|
63
|
-
}
|
64
|
-
return true;
|
65
|
-
};
|
66
|
-
const handleInput = async (v, ev, i) => {
|
67
|
-
const value = v ? v.at(v.length - 1) : " ";
|
68
|
-
const format = formatter == null ? void 0 : formatter(value, i, formatValue.value.join(""));
|
69
|
-
if (isFunction(formatter) && !isNumber(format) && !isString(format)) {
|
70
|
-
return;
|
71
|
-
}
|
72
|
-
emits("input", value, ev, i);
|
73
|
-
computedValue.value = computedValue.value.slice(0, i) + value + computedValue.value.slice(i + 1);
|
74
|
-
if (v && !inputValue.value[i + 1] && i < _length.value - 1) {
|
75
|
-
inputList.value[i].blur();
|
76
|
-
await sleep(0);
|
77
|
-
inputList.value[i + 1].focus();
|
78
|
-
}
|
79
|
-
};
|
80
|
-
const handleMousedown = (e, i) => {
|
81
|
-
if (isWritable(i)) return;
|
82
|
-
e.preventDefault();
|
83
|
-
};
|
84
|
-
const handleClick = async (i) => {
|
85
|
-
var _a;
|
86
|
-
if (isWritable(i)) return;
|
87
|
-
const index = inputValue.value.findIndex((item) => !item);
|
88
|
-
await sleep(0);
|
89
|
-
(_a = inputList.value[index]) == null ? void 0 : _a.focus();
|
90
|
-
};
|
91
|
-
return (_ctx, _cache) => {
|
92
|
-
return openBlock(), createElementBlock("div", {
|
93
|
-
class: normalizeClass(["yc-verification-code", `yc-verification-code-size-${unref(size)}`])
|
94
|
-
}, [
|
95
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(length.value, (v, i) => {
|
96
|
-
var _a;
|
97
|
-
return openBlock(), createElementBlock(Fragment, { key: v }, [
|
98
|
-
createVNode(unref(Input), {
|
99
|
-
"model-value": inputValue.value[i],
|
100
|
-
size: unref(size),
|
101
|
-
disabled: _ctx.disabled,
|
102
|
-
error: _ctx.error,
|
103
|
-
"invisible-button": false,
|
104
|
-
visibility: _ctx.masked,
|
105
|
-
readonly: _ctx.readonly || !isWritable(i),
|
106
|
-
class: normalizeClass([
|
107
|
-
{
|
108
|
-
"yc-input-disabled-write": !isWritable(i)
|
109
|
-
}
|
110
|
-
]),
|
111
|
-
ref_for: true,
|
112
|
-
ref: (el) => inputList.value[i] = el,
|
113
|
-
onClick: ($event) => handleClick(i),
|
114
|
-
onMousedown: ($event) => handleMousedown($event, i),
|
115
|
-
onInput: (v2, ev) => handleInput(v2, ev, i),
|
116
|
-
onChange: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("change", unref(computedValue)))
|
117
|
-
}, null, 8, ["model-value", "size", "disabled", "error", "visibility", "readonly", "class", "onClick", "onMousedown", "onInput"]),
|
118
|
-
((_a = _ctx.separator) == null ? void 0 : _a.call(_ctx, i, inputValue.value[i])) ? (openBlock(), createBlock(resolveDynamicComponent(unref(getSlotFunction)(_ctx.separator(i, inputValue.value[i]))), { key: 0 })) : createCommentVNode("", true)
|
119
|
-
], 64);
|
120
|
-
}), 128))
|
121
|
-
], 2);
|
122
|
-
};
|
123
|
-
}
|
124
|
-
});
|
125
|
-
export {
|
126
|
-
_sfc_main as default
|
127
|
-
};
|
@@ -1,276 +0,0 @@
|
|
1
|
-
import { defineComponent, toRefs, ref, computed, watch, onMounted, createElementBlock, openBlock, renderSlot } from "vue";
|
2
|
-
import { useMutationObserver } from "../node_modules/@vueuse/core/index.js";
|
3
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
|
-
import "../_shared/utils/dom.js";
|
5
|
-
import { isArray } from "../_shared/utils/is.js";
|
6
|
-
import "../_shared/utils/time.js";
|
7
|
-
import "../Empty/index.js";
|
8
|
-
/* empty css */
|
9
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
|
-
...{
|
11
|
-
name: "Watermark"
|
12
|
-
},
|
13
|
-
__name: "index",
|
14
|
-
props: {
|
15
|
-
content: { default: "" },
|
16
|
-
image: { default: "" },
|
17
|
-
width: { default: void 0 },
|
18
|
-
height: { default: void 0 },
|
19
|
-
gap: { default: () => [90, 90] },
|
20
|
-
offset: { default: () => [45, 45] },
|
21
|
-
rotate: { default: -22 },
|
22
|
-
font: { default: () => {
|
23
|
-
return {
|
24
|
-
color: "rgba(0, 0, 0, 0.15)",
|
25
|
-
fontSize: 16,
|
26
|
-
fontFamily: "sans-serif",
|
27
|
-
fontStyle: "normal",
|
28
|
-
textAlign: "center",
|
29
|
-
fontWeight: "normal"
|
30
|
-
};
|
31
|
-
} },
|
32
|
-
zIndex: { default: 6 },
|
33
|
-
alpha: { default: 1 },
|
34
|
-
grayscale: { type: Boolean, default: false },
|
35
|
-
repeat: { type: Boolean, default: true },
|
36
|
-
staggered: { type: Boolean, default: true },
|
37
|
-
antiTamper: { type: Boolean, default: true }
|
38
|
-
},
|
39
|
-
setup(__props) {
|
40
|
-
const props = __props;
|
41
|
-
const {
|
42
|
-
width,
|
43
|
-
height,
|
44
|
-
alpha,
|
45
|
-
image,
|
46
|
-
grayscale,
|
47
|
-
rotate,
|
48
|
-
repeat,
|
49
|
-
staggered,
|
50
|
-
antiTamper,
|
51
|
-
zIndex
|
52
|
-
} = toRefs(props);
|
53
|
-
const containerRef = ref();
|
54
|
-
const ratio = window.devicePixelRatio || 1;
|
55
|
-
const watermarkMap = ref(/* @__PURE__ */ new Map());
|
56
|
-
const color = computed(() => {
|
57
|
-
var _a;
|
58
|
-
return (_a = props.font) == null ? void 0 : _a.color;
|
59
|
-
});
|
60
|
-
const fontSize = computed(() => {
|
61
|
-
var _a;
|
62
|
-
return ((_a = props.font) == null ? void 0 : _a.fontSize) ?? 16;
|
63
|
-
});
|
64
|
-
const fontWeight = computed(() => {
|
65
|
-
var _a;
|
66
|
-
return ((_a = props.font) == null ? void 0 : _a.fontWeight) ?? "normal";
|
67
|
-
});
|
68
|
-
const fontStyle = computed(() => {
|
69
|
-
var _a;
|
70
|
-
return ((_a = props.font) == null ? void 0 : _a.fontStyle) ?? "normal";
|
71
|
-
});
|
72
|
-
const fontFamily = computed(() => {
|
73
|
-
var _a;
|
74
|
-
return ((_a = props.font) == null ? void 0 : _a.fontFamily) ?? "sans-serif";
|
75
|
-
});
|
76
|
-
const textAlign = computed(() => {
|
77
|
-
var _a;
|
78
|
-
return ((_a = props.font) == null ? void 0 : _a.textAlign) ?? "center";
|
79
|
-
});
|
80
|
-
const contents = computed(
|
81
|
-
() => isArray(props.content) ? props.content : [props.content]
|
82
|
-
);
|
83
|
-
const gapX = computed(() => {
|
84
|
-
var _a;
|
85
|
-
return ((_a = props.gap) == null ? void 0 : _a[0]) ?? 90;
|
86
|
-
});
|
87
|
-
const gapY = computed(() => {
|
88
|
-
var _a;
|
89
|
-
return ((_a = props.gap) == null ? void 0 : _a[1]) ?? 90;
|
90
|
-
});
|
91
|
-
const gapXCenter = computed(() => gapX.value / 2);
|
92
|
-
const gapYCenter = computed(() => gapY.value / 2);
|
93
|
-
const offsetLeft = computed(() => {
|
94
|
-
var _a;
|
95
|
-
return ((_a = props.offset) == null ? void 0 : _a[0]) ?? gapXCenter.value;
|
96
|
-
});
|
97
|
-
const offsetTop = computed(() => {
|
98
|
-
var _a;
|
99
|
-
return ((_a = props.offset) == null ? void 0 : _a[1]) ?? gapYCenter.value;
|
100
|
-
});
|
101
|
-
const markStyle = computed(() => {
|
102
|
-
const left = offsetLeft.value - gapXCenter.value;
|
103
|
-
const top = offsetTop.value - gapYCenter.value;
|
104
|
-
return {
|
105
|
-
position: "absolute",
|
106
|
-
left: left > 0 ? `${left}px` : 0,
|
107
|
-
top: top > 0 ? `${top}px` : 0,
|
108
|
-
width: left > 0 ? `calc(100% - ${left}px)` : "100%",
|
109
|
-
height: top > 0 ? `calc(100% - ${top}px)` : "100%",
|
110
|
-
pointerEvents: "none",
|
111
|
-
backgroundRepeat: props.repeat ? "repeat" : "no-repeat",
|
112
|
-
backgroundPosition: `${left > 0 ? 0 : left}px ${top > 0 ? 0 : top}px`,
|
113
|
-
zIndex: zIndex.value ?? 6
|
114
|
-
};
|
115
|
-
});
|
116
|
-
const isStaggered = computed(() => staggered.value && repeat.value);
|
117
|
-
function camelToKebab(camelCase) {
|
118
|
-
return camelCase.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
119
|
-
}
|
120
|
-
function styleToString(style) {
|
121
|
-
return Object.entries(style).map(([key, value]) => `${camelToKebab(key)}:${value}`).join(";");
|
122
|
-
}
|
123
|
-
function canvasToGray(canvas) {
|
124
|
-
const ctx = canvas.getContext("2d");
|
125
|
-
if (!ctx) return;
|
126
|
-
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
127
|
-
const { data } = imageData;
|
128
|
-
for (let i = 0; i < data.length; i += 4) {
|
129
|
-
const brightness = (data[i] + data[i + 1] + data[i + 2]) / 3;
|
130
|
-
data[i] = brightness;
|
131
|
-
data[i + 1] = brightness;
|
132
|
-
data[i + 2] = brightness;
|
133
|
-
}
|
134
|
-
ctx.putImageData(imageData, 0, 0);
|
135
|
-
}
|
136
|
-
const appendWatermark = (base64, width2) => {
|
137
|
-
var _a;
|
138
|
-
if (containerRef.value) {
|
139
|
-
const watermarkEle = watermarkMap.value.get(containerRef.value);
|
140
|
-
if (watermarkEle) {
|
141
|
-
if (containerRef.value.contains(watermarkEle)) {
|
142
|
-
containerRef.value.removeChild(watermarkEle);
|
143
|
-
}
|
144
|
-
watermarkMap.value.delete(containerRef.value);
|
145
|
-
}
|
146
|
-
const newWatermarkEle = document.createElement("div");
|
147
|
-
newWatermarkEle.setAttribute(
|
148
|
-
"style",
|
149
|
-
styleToString({
|
150
|
-
...markStyle.value,
|
151
|
-
backgroundImage: `url('${base64}')`,
|
152
|
-
backgroundSize: `${width2}px`
|
153
|
-
})
|
154
|
-
);
|
155
|
-
(_a = containerRef.value) == null ? void 0 : _a.append(newWatermarkEle);
|
156
|
-
watermarkMap.value.set(containerRef.value, newWatermarkEle);
|
157
|
-
}
|
158
|
-
};
|
159
|
-
const getMarkSize = (ctx) => {
|
160
|
-
let defaultWidth = 120;
|
161
|
-
let defaultHeight = 28;
|
162
|
-
if (!image.value && ctx.measureText) {
|
163
|
-
ctx.font = `${fontSize.value}px ${fontFamily.value}`;
|
164
|
-
const widths = contents.value.map((item) => ctx.measureText(item).width);
|
165
|
-
defaultWidth = Math.ceil(Math.max(...widths));
|
166
|
-
defaultHeight = fontSize.value * contents.value.length + (contents.value.length - 1) * 3;
|
167
|
-
}
|
168
|
-
return [width.value ?? defaultWidth, height.value ?? defaultHeight];
|
169
|
-
};
|
170
|
-
const renderWatermark = () => {
|
171
|
-
var _a;
|
172
|
-
const canvas = document.createElement("canvas");
|
173
|
-
const ctx = canvas.getContext("2d");
|
174
|
-
if (!ctx) return;
|
175
|
-
const [markWidth, markheight] = getMarkSize(ctx);
|
176
|
-
const realMarkWidth = markWidth * ratio;
|
177
|
-
const realMarkHeight = markheight * ratio;
|
178
|
-
const canvasWidth = (gapX.value + markWidth) * ratio;
|
179
|
-
const canvasHeight = (gapY.value + markheight) * ratio;
|
180
|
-
const drawX = gapX.value / 2 * ratio;
|
181
|
-
const drawY = gapY.value / 2 * ratio;
|
182
|
-
const rotateX = canvasWidth / 2;
|
183
|
-
const rotateY = canvasHeight / 2;
|
184
|
-
const baseSize = isStaggered.value ? 2 : 1;
|
185
|
-
const fillWidth = (gapX.value + markWidth) * baseSize;
|
186
|
-
canvas.width = canvasWidth * baseSize;
|
187
|
-
canvas.height = canvasHeight * baseSize;
|
188
|
-
ctx.globalAlpha = alpha.value;
|
189
|
-
ctx.save();
|
190
|
-
ctx.translate(rotateX, rotateY);
|
191
|
-
ctx.rotate(Math.PI / 180 * rotate.value);
|
192
|
-
ctx.translate(-rotateX, -rotateY);
|
193
|
-
const drawImage = () => {
|
194
|
-
ctx.restore();
|
195
|
-
if (isStaggered.value) {
|
196
|
-
ctx.drawImage(
|
197
|
-
canvas,
|
198
|
-
0,
|
199
|
-
0,
|
200
|
-
canvasWidth,
|
201
|
-
canvasHeight,
|
202
|
-
canvasWidth,
|
203
|
-
canvasHeight,
|
204
|
-
canvasWidth,
|
205
|
-
canvasHeight
|
206
|
-
);
|
207
|
-
}
|
208
|
-
grayscale.value && canvasToGray(canvas);
|
209
|
-
appendWatermark(canvas.toDataURL(), fillWidth);
|
210
|
-
};
|
211
|
-
if (image.value) {
|
212
|
-
const img = new Image();
|
213
|
-
img.onload = () => {
|
214
|
-
ctx.drawImage(img, drawX, drawY, realMarkWidth, realMarkHeight);
|
215
|
-
drawImage();
|
216
|
-
};
|
217
|
-
img.crossOrigin = "anonymous";
|
218
|
-
img.referrerPolicy = "no-referrer";
|
219
|
-
img.src = image.value;
|
220
|
-
} else {
|
221
|
-
const mergedFontSize = Number(fontSize.value) * ratio;
|
222
|
-
ctx.font = `${fontStyle.value} normal ${fontWeight.value} ${mergedFontSize}px/${markheight}px ${fontFamily.value}`;
|
223
|
-
ctx.fillStyle = color.value;
|
224
|
-
ctx.textAlign = textAlign.value;
|
225
|
-
ctx.textBaseline = "top";
|
226
|
-
ctx.translate(realMarkWidth / 2, 0);
|
227
|
-
(_a = contents.value) == null ? void 0 : _a.forEach((item, index) => {
|
228
|
-
ctx.fillText(
|
229
|
-
item ?? "",
|
230
|
-
drawX,
|
231
|
-
drawY + index * (mergedFontSize + 3 * ratio)
|
232
|
-
);
|
233
|
-
});
|
234
|
-
drawImage();
|
235
|
-
}
|
236
|
-
};
|
237
|
-
const isWatermarkEle = (ele) => {
|
238
|
-
return Array.from(watermarkMap.value.values()).includes(ele);
|
239
|
-
};
|
240
|
-
const handleMutations = (mutations) => {
|
241
|
-
if (!antiTamper.value) return;
|
242
|
-
for (const mutation of mutations) {
|
243
|
-
const isRemoved = Array.from(mutation.removedNodes).some(
|
244
|
-
(node) => isWatermarkEle(node)
|
245
|
-
);
|
246
|
-
const isModified = mutation.type === "attributes" && isWatermarkEle(mutation.target);
|
247
|
-
if (isRemoved || isModified) {
|
248
|
-
renderWatermark();
|
249
|
-
break;
|
250
|
-
}
|
251
|
-
}
|
252
|
-
};
|
253
|
-
watch(props, renderWatermark, { deep: true, flush: "post" });
|
254
|
-
useMutationObserver(containerRef, handleMutations, {
|
255
|
-
attributes: true,
|
256
|
-
childList: true,
|
257
|
-
characterData: true,
|
258
|
-
subtree: true
|
259
|
-
});
|
260
|
-
onMounted(() => {
|
261
|
-
renderWatermark();
|
262
|
-
});
|
263
|
-
return (_ctx, _cache) => {
|
264
|
-
return openBlock(), createElementBlock("div", {
|
265
|
-
class: "yc-watermark",
|
266
|
-
ref_key: "containerRef",
|
267
|
-
ref: containerRef
|
268
|
-
}, [
|
269
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true)
|
270
|
-
], 512);
|
271
|
-
};
|
272
|
-
}
|
273
|
-
});
|
274
|
-
export {
|
275
|
-
_sfc_main as default
|
276
|
-
};
|
@@ -1,7 +0,0 @@
|
|
1
|
-
import _sfc_main from "./IconButton.vue3.js";
|
2
|
-
/* empty css */
|
3
|
-
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const IconButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-49d99599"]]);
|
5
|
-
export {
|
6
|
-
IconButton as default
|
7
|
-
};
|
package/lib/Alert/index.vue2.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../_shared/constants/index.js"),o=require("../_shared/components/IconButton.vue2.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js"),/* empty css */;/* empty css */const l={key:0,class:"yc-alert-icon"},n={class:"yc-alert-body"},r={key:0,class:"yc-alert-title"},a={class:"yc-alert-content"},c={key:1,class:"yc-alert-action"},s=e.defineComponent({name:"Alert",__name:"index",props:{type:{default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:{default:""},banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:["close","after-close"],setup(s,{emit:i}){const d=i,m=e.ref(!0),u=e=>{m.value=!1,d("close",e)};return(s,i)=>(e.openBlock(),e.createBlock(e.Transition,{name:"slide-dynamic-origin",onAfterLeave:i[0]||(i[0]=e=>s.$emit("after-close"))},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-alert",`yc-alert-${s.type}`,{"yc-alert-has-title":s.title||s.$slots.title,"yc-alert-center":s.center||s.banner,"yc-alert-banner":s.banner}])},[s.showIcon?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(s.$slots,"icon",{},()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.TYPE_ICON_MAP)[s.type])))],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",n,[s.$slots.title||s.title?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(s.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(s.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",a,[e.renderSlot(s.$slots,"default",{},void 0,!0)])]),s.$slots.action?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(s.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0),s.closable?(e.openBlock(),e.createElementBlock("div",{key:2,class:"yc-alert-close-btn",role:"button","aria-label":"Close",onClick:u},[e.renderSlot(s.$slots,"close-element",{},()=>[e.createVNode(e.unref(o))],!0)])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)]),_:3}))}});module.exports=s;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("./hooks/useContext.js"),r={class:"yc-anchor"},t={key:0,class:"yc-anchor-line-track"},n=e.defineComponent({name:"Anchor",__name:"Anchor",props:{boundary:{default:"start"},lineLess:{type:Boolean,default:!1},scrollContainer:{default:void 0},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},setup(n){const s=n,a=e.ref(),c=e.ref([]),{curHref:u,hrefs:i}=l().provide(s,a),d=e.computed(()=>{const e=i.value.findIndex(e=>e==u.value);return c.value.slice(0,e+1).map(e=>e.offsetHeight).reduce((o,l,r)=>r==e?o+(l-12)/2:o+l,0)+2*e});return e.onMounted(()=>{i.value.length&&(u.value=i.value[0],c.value=[...a.value.querySelectorAll(".yc-anchor-link")])}),(l,n)=>(e.openBlock(),e.createElementBlock("div",r,[l.lineLess?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",t,[e.createElementVNode("div",{class:"yc-anchor-line-slider",style:e.normalizeStyle({top:e.unref(o.valueToPx)(d.value)})},null,4)])),e.createElementVNode("div",{class:"yc-anchor-list",ref_key:"listRef",ref:a},[e.renderSlot(l.$slots,"default",{},void 0,!0)],512)]))}});module.exports=n;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./hooks/useContext.js"),l=["href"],n={key:0,class:"yc-anchor-sublist"},s=e.defineComponent({name:"AnchorLink",__name:"AnchorLink",props:{title:{default:""},href:{default:""}},setup(s){const i=s,{href:u}=e.toRefs(i),{smooth:a,boundary:c,changeHash:d,curHref:f,lineLess:h,scrollContainer:v}=r().inject(),m=e=>{if(f.value=u.value,d.value)return;e.preventDefault();const r=o.getElement(u.value);if(r)if(t.isNumber(c.value)&&v.value){const{top:e}=r.getBoundingClientRect(),{top:o}=v.value.getBoundingClientRect(),{scrollTop:t}=v.value;v.value.scrollTo({top:e-o+t-c.value,behavior:a.value?"smooth":"auto"})}else r.scrollIntoView({block:c.value,behavior:a.value?"smooth":"auto"})};return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-anchor-link-item",{"yc-anchor-link-active":e.unref(f)==e.unref(u)&&!e.unref(h),"yc-anchor-link-lineless-active":e.unref(f)==e.unref(u)&&e.unref(h)}])},[e.createElementVNode("a",{href:e.unref(u),class:"yc-anchor-link",onClick:m,ref:"linkRef"},[e.renderSlot(o.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)],8,l),o.$slots.sublist?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"sublist",{},void 0,!0)])):e.createCommentVNode("",!0)],2))}});module.exports=s;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconImageClose.vue.js"),o=require("./hooks/useContext.js"),l={key:1,class:"yc-avatar-image"},s=["src"],i={key:1,class:"yc-avatar-image-icon"},n=e.defineComponent({name:"Avatar",__name:"Avatar",props:{shape:{default:void 0},imageUrl:{default:""},size:{default:void 0},autoFixFontSize:{type:Boolean,default:void 0},triggerType:{default:"button"},triggerIconStyle:{default:()=>({})},objectFit:{default:"cover"}},emits:["click","error","load"],setup(n,{emit:c}){const u=n,m=c,{size:d,autoFixFontSize:v,shape:y}=o().inject(u),f=e.ref(!1),g=e.ref(1),k=e.ref(),p=e.ref(),h=e.computed(()=>{var e;return null==(e=k.value)?void 0:e.querySelector("img")}),B=e=>{f.value=!0,m("error",e)};return v.value&&t.useResizeObserver(k,()=>{const e=d.value??p.value.offsetWidth,t=e/(k.value.offsetWidth+8);g.value=e&&t<1?t:1}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-avatar",`yc-avatar-shape-${e.unref(y)}`]),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(d)),height:e.unref(r.valueToPx)(e.unref(d))}),ref_key:"avatarRef",ref:p,onClick:o[1]||(o[1]=e=>t.$emit("click",e))},[t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([h.value?"yc-avatar-image":"yc-avatar-text"]),style:e.normalizeStyle({transform:h.value?"":`scale(${g.value}) translateX(-50%)`}),ref_key:"textRef",ref:k},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)):t.imageUrl?(e.openBlock(),e.createElementBlock("span",l,[f.value?(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(e.unref(a))])):(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imageUrl,style:e.normalizeStyle({objectFit:t.objectFit}),alt:"avatar",onLoad:o[0]||(o[0]=e=>t.$emit("load",e)),onError:B},null,44,s))])):e.createCommentVNode("",!0),t.$slots["trigger-icon"]?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([{"yc-avatar-trigger-icon-button":"button"==t.triggerType,"yc-avatar-trigger-icon-mask":"mask"==t.triggerType}]),style:e.normalizeStyle(t.triggerIconStyle)},[e.renderSlot(t.$slots,"trigger-icon",{},void 0,!0)],6)):e.createCommentVNode("",!0)],6))}});module.exports=n;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const l=require("./hooks/useContext.js"),n=require("./index.js"),r=require("../Popover/index.js"),a={class:"yc-avatar-group"},s=e.defineComponent({name:"AvatarGroup",__name:"AvatarGroup",props:{shape:{default:"round"},size:{default:40},autoFixFontSize:{type:Boolean,default:!0},maxCount:{default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{default:()=>({})},maxPopoverTriggerProps:{default:()=>({})}},setup(s){const u=e.useSlots(),i=s,{maxCount:d}=e.toRefs(i);l().provide(i);const c=e.computed(()=>{var e;const t=o.findComponentsFromVnodes((null==(e=u.default)?void 0:e.call(u))||[],n.default.name);return{visible:d.value>0?t.slice(0,d.value):t,hide:t.slice(d.value)}});return(o,l)=>(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.visible,(l,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:n,style:e.normalizeStyle({zIndex:o.zIndexAscend?n+1:c.value.visible.length-n,marginLeft:n?e.unref(t.valueToPx)(-o.size/4):""})},null,8,["style"]))),128)),e.unref(d)>0&&c.value.hide.length?(e.openBlock(),e.createBlock(e.unref(r),{key:0,"trigger-props":o.maxPopoverTriggerProps},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value.hide,(l,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l),{key:n,style:e.normalizeStyle({border:"2px solid #fff",zIndex:o.zIndexAscend?n+1:c.value.hide.length-n,marginLeft:n?e.unref(t.valueToPx)(-o.size/4):""})},null,8,["style"]))),128))]),default:e.withCtx(()=>[e.createVNode(e.unref(n.default),{style:e.normalizeStyle({zIndex:o.zIndexAscend?c.value.visible.length:0,marginLeft:e.unref(t.valueToPx)(-o.size/4),...o.maxStyle})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(`+${c.value.hide.length}`),1)]),_:1},8,["style"])]),_:1},8,["trigger-props"])):e.createCommentVNode("",!0)]))}});module.exports=s;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");;/* empty css */const s=require("../_shared/icons/IconToTop.vue.js"),l=require("../node_modules/b-tween/dist/b-tween.es.js"),n=require("../node_modules/@vueuse/core/index.js"),i=require("../Button/index.js"),a=e.defineComponent({name:"BackTop",__name:"index",props:{visibleHeight:{default:200},targetContainer:{},easeing:{default:"quadOut"},duration:{default:200}},setup(a){const u=a,{targetContainer:d,easeing:c,duration:f}=e.toRefs(u),{zIndex:v}=o.getGlobalConfig(u),m=e.ref(),p=e.ref(0),_=e.computed(()=>t.isUndefined(d.value)?r.findFirstScrollableParent(m.value):r.getElement(d.value)),g=()=>{_.value&&new l({from:{scroll:_.value.scrollTop},to:{scroll:0},duration:f.value,easing:c.value,onUpdate:e=>{_.value.scrollTop=e.scroll}}).start()};return n.useEventListener(_,"scroll",()=>{p.value=_.value.scrollTop}),(r,t)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-back-top",style:e.normalizeStyle({zIndex:e.unref(v)}),ref_key:"buttonRef",ref:m,onClick:g},[e.renderSlot(r.$slots,"default",{},()=>[e.createVNode(e.unref(i.default),{type:"primary",shape:"circle",size:"large"},{default:e.withCtx(()=>[e.createVNode(e.unref(s))]),_:1})],!0)],4),[[e.vShow,p.value>=r.visibleHeight]])]),_:3}))}});module.exports=a;
|
package/lib/Badge/index.vue2.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/constants/index.js"),l={key:0,class:"yc-badge-stauts-wrapper"},o={key:0,class:"yc-badge-status-text"},u=e.defineComponent({name:"Badge",__name:"index",props:{text:{default:""},dot:{type:Boolean,default:!1},dotStyle:{default:()=>({})},maxCount:{default:99},offset:{default:()=>[0,0]},color:{default:void 0},status:{default:void 0},count:{default:void 0}},setup(u){const s=e.useSlots(),n=u,{text:d,dot:r,count:c,maxCount:i,offset:v,dotStyle:m,status:y,color:f}=e.toRefs(n),g=e.computed(()=>({margin:`${t.valueToPx(v.value[1])} ${t.valueToPx(-v.value[0])} 0 0`,...m.value})),p=e.computed(()=>s.content?"yc-badge-custom-dot":f.value||y.value?"yc-badge-status":d.value?"yc-badge-text":r.value?"yc-badge-dot":"yc-badge-number"),b=e.computed(()=>f.value||y.value||d.value||r.value?d.value:c.value>=i.value?`${i.value}+`:c.value);return(t,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-badge",{"yc-badge-no-children":!t.$slots.default}])},[e.renderSlot(t.$slots,"default",{},void 0,!0),"yc-badge-status"==p.value?(e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("div",{class:e.normalizeClass(["yc-badge-stauts-dot",{[`yc-badge-color-${e.unref(f)}`]:e.unref(f),[`yc-badge-status-${e.unref(y)}`]:e.unref(y)}]),style:e.normalizeStyle({backgroundColor:e.unref(a.TAG_PRESET_COLORS).includes(e.unref(f))?"":e.unref(f),...e.unref(m)})},null,6),b.value?(e.openBlock(),e.createElementBlock("div",o,e.toDisplayString(b.value),1)):e.createCommentVNode("",!0)])):"yc-badge-number"!=p.value||e.unref(c)>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass([p.value]),style:e.normalizeStyle(g.value)},[e.renderSlot(t.$slots,"content",{},()=>[e.createTextVNode(e.toDisplayString(b.value),1)],!0)],6)):e.createCommentVNode("",!0)],2))}});module.exports=u;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js"),/* empty css */require("./index.js");const o=require("./BreadcrumbSeparator.vue.js"),l=require("./BreadcrumbMore.vue.js"),a=require("./BreadcrumbItem.vue.js"),s={class:"yc-breadcrumb"},n=e.defineComponent({name:"Breadcrumb",__name:"Breadcrumb",props:{maxCount:{default:0},routes:{default:()=>[]},separator:{default:""},customUrl:{type:Function,default:void 0}},setup(n){const u=n,{maxCount:c,routes:i}=e.toRefs(u),p=e.useSlots(),d=e.computed(()=>{var e;const r=t.findComponentsFromVnodes((null==(e=p.default)?void 0:e.call(p))||[],a.name);return c.value>0&&r.length>c.value?[...r.slice(0,1),{type:"more-icon"},...r.slice(r.length-c.value+1,r.length)]:r}),m=e.computed(()=>{const e=i.value.map((e,r)=>({...e,index:r}));return c.value>0&&e.length>c.value?[...e.slice(0,1),"more-icon",...e.slice(e.length-c.value+1,e.length)]:i.value}),v=e=>i.value.slice(0,e+1).map(e=>{var r;return null==(r=e.path)?void 0:r.replace(/\//g,"")});return(t,n)=>(e.openBlock(),e.createElementBlock("div",s,[t.$slots.default?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(d.value,(r,a)=>{var s,n;return e.openBlock(),e.createElementBlock(e.Fragment,{key:a},["more-icon"==(null==r?void 0:r.type)?(e.openBlock(),e.createBlock(l,{key:0,slots:e.unref(p)},null,8,["slots"])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{key:1})),a<d.value.length-1?(e.openBlock(),e.createBlock(o,{key:2,separator:t.separator,"separator-slots":t.$slots.separator,"item-separator":null==(s=r.props)?void 0:s.separator,"item-separator-slots":null==(n=r.children)?void 0:n.separator},null,8,["separator","separator-slots","item-separator","item-separator-slots"])):e.createCommentVNode("",!0)],64)}),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(m.value,(s,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:s.path},[e.unref(r.isString)(s)?(e.openBlock(),e.createBlock(l,{key:0,slots:e.unref(p)},null,8,["slots"])):e.renderSlot(t.$slots,"item-render",{key:1,route:s,routes:e.unref(i),paths:v(s.index)},()=>{var r;return[e.createVNode(e.unref(a),{path:s.index==m.value.length-1?s.path:(null==(r=t.customUrl)?void 0:r.call(t,v(s.index)))??s.path,droplist:s.children},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(s.label),1)]),_:2},1032,["path","droplist"])]},!0),n<e.unref(i).length-1?(e.openBlock(),e.createBlock(o,{key:2,separator:t.separator,"separator-slots":t.$slots.separator},null,8,["separator","separator-slots"])):e.createCommentVNode("",!0)],64))),128))]))}});module.exports=n;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const t=require("../Dropdown/index.js"),r=require("../Dropdown/Doption.vue.js"),l={class:"yc-breadcrumb-item"},s=["href"],d={key:2,class:"yc-breadcrumb-item-dropdown-icon"},a=e.defineComponent({name:"BreadcrumbItem",__name:"BreadcrumbItem",props:{separator:{default:""},droplist:{default:()=>[]},dropdownProps:{default:()=>({})},path:{default:""},showSeparator:{type:Boolean,default:!0}},setup(a){const n=e.ref(!1);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(t.default),e.mergeProps({"popup-visible":n.value,"onUpdate:popupVisible":i[0]||(i[0]=e=>n.value=e)},a.dropdownProps,{disabled:!a.droplist.length&&!a.$slots.droplist}),{content:e.withCtx(()=>[e.renderSlot(a.$slots,"droplist",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.droplist,o=>(e.openBlock(),e.createBlock(e.unref(r),{key:o.path,value:o.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))],!0)]),default:e.withCtx(()=>[e.createElementVNode("div",l,[a.path?(e.openBlock(),e.createElementBlock("a",{key:0,href:`#${a.path}`},[e.renderSlot(a.$slots,"default",{},void 0,!0)],8,s)):e.renderSlot(a.$slots,"default",{key:1},void 0,!0),a.droplist.length||a.$slots.droplist?(e.openBlock(),e.createElementBlock("div",d,[e.createVNode(e.unref(o),{rotate:n.value?180:0},null,8,["rotate"])])):e.createCommentVNode("",!0)])]),_:3},16,["popup-visible","disabled"]))}});module.exports=a;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconSeparator.vue2.js"),t={class:"yc-breadcrumb-item-separator"},a=e.defineComponent({__name:"BreadcrumbSeparator",props:{separatorSlots:{type:Function},separator:{},itemSeparatorSlots:{type:Function},itemSeparator:{}},setup(a){const s=a,l=e.computed(()=>r.isUndefined(s.itemSeparatorSlots)?s.separatorSlots||s.separator:s.itemSeparatorSlots||s.itemSeparator||s.separatorSlots||s.separator),n=()=>{var e,o,t;return r.isUndefined(s.itemSeparatorSlots)?(null==(e=s.separatorSlots)?void 0:e.call(s))||s.separator:(null==(o=s.itemSeparatorSlots)?void 0:o.call(s))||s.itemSeparator||(null==(t=s.separatorSlots)?void 0:t.call(s))||s.separator};return(r,a)=>(e.openBlock(),e.createElementBlock("span",t,[l.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))]))}});module.exports=a;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),t=require("../Spin/index.js"),n=["href","autofocus"],u={key:0,class:"yc-button-icon"},l=["type","disabled","autofocus"],s={key:0,class:"yc-button-icon"},c=e.defineComponent({name:"Button",__name:"Button",props:{type:{default:void 0},shape:{default:void 0},status:{default:void 0},size:{default:void 0},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},htmlType:{default:"button"},autofocus:{type:Boolean,default:!1},href:{default:""}},emits:["mousedown","mouseup","click","dblclick","contextmenu"],setup(c,{emit:a}){const i=e.useSlots(),d=c,r=a,{loading:p,disabled:f,type:k,status:y,shape:m,long:b}=e.toRefs(d),{size:v,disabled:B,type:h,status:$,shape:g}=o().inject(d),x=e.computed(()=>["yc-button",`yc-button-size-${v.value}`,`yc-button-${h.value}`,`yc-button-status-${$.value}`,`yc-button-shape-${g.value}`,{"yc-button-long":b.value,"yc-button-loading":p.value,"yc-button-disabled":B.value,"yc-button-only-icon":!i.default}]),C=(e,o)=>{B.value||p.value||r(e,o)};return(o,c)=>o.href?(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,href:o.href,class:x.value,autofocus:o.autofocus},o.$attrs,{onMousedown:c[0]||(c[0]=e=>C("mousedown",e)),onMouseup:c[1]||(c[1]=e=>C("mouseup",e)),onClick:c[2]||(c[2]=e=>C("click",e)),onDblclick:c[3]||(c[3]=e=>C("dblclick",e)),onContextmenu:c[4]||(c[4]=e=>C("contextmenu",e))}),[o.$slots.icon||e.unref(p)?(e.openBlock(),e.createElementBlock("span",u,[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,"is-size-inherit":""})):e.renderSlot(o.$slots,"icon",{key:1},void 0,!0)])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],16,n)):(e.openBlock(),e.createElementBlock("button",e.mergeProps({key:1,type:o.htmlType,disabled:e.unref(B),class:x.value,autofocus:o.autofocus},o.$attrs,{onMousedown:c[5]||(c[5]=e=>C("mousedown",e)),onMouseup:c[6]||(c[6]=e=>C("mouseup",e)),onClick:c[7]||(c[7]=e=>C("click",e)),onDblclick:c[8]||(c[8]=e=>C("dblclick",e)),onContextmenu:c[9]||(c[9]=e=>C("contextmenu",e))}),[o.$slots.icon||e.unref(p)?(e.openBlock(),e.createElementBlock("span",s,[e.unref(p)?(e.openBlock(),e.createBlock(e.unref(t),{key:0,"is-size-inherit":""})):e.renderSlot(o.$slots,"icon",{key:1},void 0,!0)])):e.createCommentVNode("",!0),e.renderSlot(o.$slots,"default",{},void 0,!0)],16,l))}});module.exports=c;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),a=require("../node_modules/dayjs/dayjs.min.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const t=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/utils/control.js"),r=require("../_shared/components/IconButton.vue2.js");;/* empty css */const l=require("../Button/index.js");require("../Radio/index.js");const d=require("./CalendarMonth.vue.js"),n=require("./CalendarYear.vue.js"),u=require("../Radio/RadioGroup.vue.js");;/* empty css */const s={class:"yc-calendar-header"},c={class:"yc-calendar-header-left"},i={class:"yc-calendar-header-value"},m={class:"yc-calendar-header-right"},v={class:"yc-calendar-body"},f=e.defineComponent({name:"Calendar",__name:"Calendar",props:{modelValue:{default:void 0},defaultValue:{default:()=>new Date},mode:{default:void 0},defaultMode:{default:"month"},modes:{default:()=>["month","year"]}},emits:["update:modelValue","update:mode","change","panel-change"],setup(f,{emit:h}){const y=f,p=h,{modelValue:V,defaultValue:j,mode:C,defaultMode:_,modes:q}=e.toRefs(y),x=o(V,j.value,e=>{p("update:modelValue",e),p("change",e)}),k=e.ref({});e.watch(()=>x.value,e=>{const t=e?a(e):a();k.value={year:t.year(),month:t.month()+1,day:t.date()}},{immediate:!0});const N=o(C,_.value,e=>{p("update:mode",e),p("panel-change",x.value)}),g=e.computed(()=>{const e={month:"月",year:"年"};return q.value.map(a=>({label:e[a],value:a}))}),w=e=>{x.value=new Date(e.fullDate)},R=e=>{if("today"==e)return void(x.value=new Date);const{year:a,month:t}=k.value;if("next"==e){const e=t+1>12?1:t+1,o=t+1>12||"year"==N.value?1:0;if(k.value.year=a+o,"year"==N.value)return;k.value.month=e}else{const e=t-1<1?12:t-1,o=t-1<1||"year"==N.value?-1:0;if(k.value.year=a+o,"year"==N.value)return;k.value.month=e}};return(a,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-calendar",`yc-calendar-mode-${e.unref(N)}`])},[e.createElementVNode("div",s,[e.createElementVNode("div",c,[e.createVNode(e.unref(r),{class:"yc-calendar-header-icon",role:"button",tabindex:"0",size:28,"hover-size":28,onClick:o[0]||(o[0]=e=>R("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(t),{rotate:180})]),_:1}),e.createElementVNode("div",i,[e.renderSlot(a.$slots,"header",{year:k.value.year,month:k.value.month},()=>[e.createTextVNode(e.toDisplayString(k.value.year)+" 年 "+e.toDisplayString(k.value.month)+" 月 ",1)],!0)]),e.createVNode(e.unref(r),{role:"button",tabindex:"0",class:"yc-calendar-header-icon",size:28,"hover-size":28,onClick:o[1]||(o[1]=e=>R("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(t))]),_:1}),e.createVNode(e.unref(l.default),{onClick:o[2]||(o[2]=e=>R("today")),size:"small"},{default:e.withCtx(()=>o[4]||(o[4]=[e.createTextVNode(" 今天 ",-1)])),_:1,__:[4]})]),e.createElementVNode("div",m,[e.createVNode(e.unref(u),{modelValue:e.unref(N),"onUpdate:modelValue":o[3]||(o[3]=a=>e.isRef(N)?N.value=a:null),options:g.value,type:"button",size:"small"},null,8,["modelValue","options"])])]),e.createElementVNode("div",v,["month"==e.unref(N)?(e.openBlock(),e.createBlock(d,{key:0,"computed-value":e.unref(x),recordDate:k.value,onCellClick:w},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)),void 0,!0)]),key:"0"}:void 0]),1032,["computed-value","recordDate"])):(e.openBlock(),e.createBlock(n,{key:1,"computed-value":e.unref(x),"record-date":k.value,onCellClick:w},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)),void 0,!0)]),key:"0"}:void 0]),1032,["computed-value","record-date"]))])],2))}});module.exports=f;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),l=require("../node_modules/dayjs/dayjs.min.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const a=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const t=require("../_shared/utils/control.js"),n={class:"yc-calendar-week-list"},c={class:"yc-calendar-month-cell-body"},r=["onClick"],o={class:"yc-calendar-date"},s={class:"yc-calendar-date-value"},d={class:"yc-calendar-date-circle"},i=e.defineComponent({__name:"CalendarMonth",props:{computedValue:{},recordDate:{},calendar:{default:void 0},small:{type:Boolean,default:!1}},emits:["cell-click"],setup(i){const m=i,{computedValue:u,calendar:y,small:v,recordDate:k}=e.toRefs(m),h=e.computed(()=>v.value?["日","一","二","三","四","五","六"]:["周日","周一","周二","周三","周四","周五","周六"]),p=t(y,[]);e.watch(()=>k.value.month,()=>{if(y.value)return;const{year:e,month:l}=k.value;p.value=a.generateMonthCalendar(e,l)},{immediate:!0});const B=e=>{const{day:a,year:t,month:n}=e,c=l(),r=c.date(),o=c.month(),s=c.year();return a==r&&n==o&&t==s},E=e=>{const l=u.value.getFullYear(),a=u.value.getMonth(),t=u.value.getDate(),{day:n,year:c,month:r,isCurrentMonth:o}=e,s=t==n&&a==r&&l==c;return v.value?s&&o:s};return(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-calendar-month",{"yc-calendar-month-small":e.unref(v)}])},[e.createElementVNode("div",n,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(h.value,l=>(e.openBlock(),e.createElementBlock("div",{class:"yc-calendar-week-list-item",key:l},e.toDisplayString(l),1))),128))]),e.createElementVNode("div",c,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(a,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:"yc-calendar-month-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(a,t)=>(e.openBlock(),e.createElementBlock("div",{key:t,class:e.normalizeClass(["yc-calendar-cell",{"yc-calendar-cell-today":B(a),"yc-calendar-cell-selected":E(a),"yc-calendar-cell-in-view":a.isCurrentMonth}]),onClick:e=>l.$emit("cell-click",a)},[e.renderSlot(l.$slots,"default",{year:a.year,month:a.month,day:a.day},()=>[e.createElementVNode("div",o,[e.createElementVNode("div",s,[e.createElementVNode("div",d,e.toDisplayString(a.day),1)])])],!0)],10,r))),128))]))),128))])],2))}});module.exports=i;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const r=require("./CalendarMonth.vue.js"),a={class:"yc-calendar-year"},t={class:"yc-calendar-year-cell-title"},c=e.defineComponent({__name:"CalendarYear",props:{computedValue:{},recordDate:{}},emits:["cell-click"],setup(c){const o=c,{computedValue:n,recordDate:s}=e.toRefs(o),d=e.ref([]),u=["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"];return e.watch(()=>s.value.year,()=>{const{year:e}=s.value;d.value=[];const r=[];for(let a=1;a<=12;a++)r.push(l.generateMonthCalendar(e,a)),4==r.length&&(d.value.push([...r]),r.splice(0))},{immediate:!0}),(l,c)=>(e.openBlock(),e.createElementBlock("div",a,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.value,(a,o)=>(e.openBlock(),e.createElementBlock("div",{key:o,class:"yc-calendar-year-row"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a,(a,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"yc-calendar-year-cell"},[e.createElementVNode("div",t,e.toDisplayString(u[4*o+d]),1),e.createVNode(r,{"computed-value":e.unref(n),calendar:a,"record-date":e.unref(s),small:"",class:"yc-calendar-year-cell-body",onCellClick:c[0]||(c[0]=e=>l.$emit("cell-click",e))},e.createSlots({_:2},[l.$slots.default?{name:"default",fn:e.withCtx(({year:r,month:a,day:t})=>[e.renderSlot(l.$slots,"default",{year:r,month:a,day:t},void 0,!0)]),key:"0"}:void 0]),1032,["computed-value","calendar","record-date"])]))),128))]))),128))]))}});module.exports=c;
|
package/lib/Card/Card.vue2.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js"),o=require("../_shared/utils/global-config.js"),l=require("./hooks/useContext.js"),r=require("../Spin/index.js"),a=require("./CardGrid.vue.js"),d=require("./CardMeta.vue.js"),s={key:0,class:"yc-card-header-title text-ellipsis"},c={key:1,class:"yc-card-header-extra text-ellipsis"},i={key:1,class:"yc-card-cover"},n={key:2,class:"yc-card-actions"},u={class:"yc-card-actions-right text-ellipsis"},m=e.defineComponent({name:"Card",__name:"Card",props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{default:void 0},headerStyle:{default:()=>({})},bodyStyle:{default:()=>({})},title:{default:""},extra:{default:""}},setup(m){const y=m,{size:v}=o.getGlobalConfig(y),{slots:p}=l().provide(),k=e.computed(()=>{var e;return(null==(e=p.default)?void 0:e.call(p))||[]}),f=e.computed(()=>!!t.findComponentsFromVnodes(k.value,d.name).length),h=e.computed(()=>!!t.findComponentsFromVnodes(k.value,a.name).length);return(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-card",`yc-card-size-${e.unref(v)}`,{"yc-card-bordered":t.bordered,"yc-card-hoverable":t.hoverable,"yc-card-loading":t.loading,"yc-card-contain-grid":h.value}])},[t.title||t.extra||t.$slots.title||t.$slots.extra?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-card-header",style:e.normalizeStyle(t.headerStyle)},[t.title||t.$slots.title?(e.openBlock(),e.createElementBlock("div",s,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),t.extra||t.$slots.extra?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(t.$slots,"extra",{},()=>[e.createTextVNode(e.toDisplayString(t.extra),1)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),t.$slots.cover?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(t.$slots,"cover",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-card-body",style:e.normalizeStyle(t.bodyStyle)},[t.loading?(e.openBlock(),e.createBlock(e.unref(r),{key:0,"is-size-inherit":"",loading:""},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3})):e.renderSlot(t.$slots,"default",{key:1},void 0,!0),t.$slots.actions&&!f.value?(e.openBlock(),e.createElementBlock("div",n,[e.createElementVNode("div",u,[e.renderSlot(t.$slots,"actions",{},void 0,!0)])])):e.createCommentVNode("",!0)],4)],2))}});module.exports=m;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=e.defineComponent({name:"CardGrid",__name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup:r=>(r,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-card-grid",{"yc-card-grid-hoverable":r.hoverable}])},[e.renderSlot(r.$slots,"default",{},void 0,!0)],2))});module.exports=r;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),s={class:"yc-card-meta"},r={class:"yc-card-meta-content"},c={key:0,class:"yc-card-meta-title text-ellipsis"},a={key:1,class:"yc-card-meta-description"},l={class:"yc-card-meta-footer"},n={key:0,class:"yc-card-meta-avatar"},i={key:1,class:"yc-card-actions"},d={class:"yc-card-actions-right text-ellipsis"},m=e.defineComponent({name:"CardMeta",__name:"CardMeta",props:{title:{default:""},description:{default:""}},setup(m){const{slots:u}=o().inject();return(o,m)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",r,[o.$slots.title||o.title?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)],!0)])):e.createCommentVNode("",!0),o.$slots.description||o.description?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(o.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(o.description),1)],!0)])):e.createCommentVNode("",!0)]),e.createElementVNode("div",l,[o.$slots.avatar?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(o.$slots,"avatar",{},void 0,!0)])):e.createCommentVNode("",!0),e.unref(u).actions?(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(t.getSlotFunction)(e.unref(u).actions))))])])):e.createCommentVNode("",!0)])]))}});module.exports=m;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("./hooks/useContext.js"),t=require("./CarouselArrow.vue.js"),a=require("./CarouselIndicator.vue.js"),n={key:0,class:"yc-carousel-indicator-wrapper"},i={key:1,class:"yc-carousel-arrow-wrapper"},l=e.defineComponent({name:"Carousel",__name:"Carousel",props:{current:{default:void 0},defaultCurrent:{default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{default:500},animationName:{default:"slide"},trigger:{default:"click"},direction:{default:"horizontal"},showArrow:{default:"always"},arrowClass:{default:""},indicatorType:{default:"dot"},indicatorPosition:{default:"bottom"},indicatorClass:{default:""},transitionTimingFunction:{default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:["update:current","change"],setup(l,{emit:s}){const u=l,c=s,{slideTo:d,computedCurrent:m,autoPlay:v,carouselItems:p}=o().provide(u,c),y=e.ref(0),f=()=>{y.value&&(clearInterval(y.value),y.value=0)},C=()=>{var e;v.value&&(f(),y.value=window.setInterval(()=>{d(m.value+1)},(null==(e=v.value)?void 0:e.interval)??3e3))},h=async e=>{f(),await d(e),C()};return e.watch(()=>v.value,()=>{f(),C()},{immediate:!0}),e.onBeforeUnmount(()=>{f()}),(o,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel",`yc-carousel-animation-${o.animationName}`,{"yc-carousel-indicator-outer":"outer"==o.indicatorPosition}])},[e.createElementVNode("div",{class:e.normalizeClass(["yc-carousel-slide",`yc-carousel-direction-${o.direction}`]),onMouseenter:l[0]||(l[0]=o=>{var t;return e.unref(r.isObject)(e.unref(v))&&(null==(t=e.unref(v))?void 0:t.hoverToPause)&&f()}),onMouseleave:l[1]||(l[1]=o=>{var t;return e.unref(r.isObject)(e.unref(v))&&(null==(t=e.unref(v))?void 0:t.hoverToPause)&&C()})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(r,o)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r),{index:o+1},null,8,["index"]))),256))],34),"never"!=o.indicatorType?(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(a,{"indicator-class":o.indicatorClass,trigger:o.trigger,"indicator-position":o.indicatorPosition,"indicator-type":o.indicatorType,onChange:h},null,8,["indicator-class","trigger","indicator-position","indicator-type"])])):e.createCommentVNode("",!0),"never"!=o.showArrow?(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(t,{type:"pre",onChange:h}),e.createVNode(t,{type:"next",onChange:h})])):e.createCommentVNode("",!0)],2))}});module.exports=l;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("./hooks/useContext.js"),t=e.defineComponent({__name:"CarouselArrow",props:{type:{}},emits:["change"],setup(t){const u=t,{type:s}=e.toRefs(u),{showArrow:a,direction:n,arrowClass:l,computedCurrent:c}=o().inject(),i=e.computed(()=>"next"==s.value?"horizontal"==n.value?0:90:"horizontal"==n.value?180:-90),h=e.computed(()=>"next"==s.value?"horizontal"==n.value?"yc-carousel-arrow-right":"yc-carousel-arrow-bottom":"horizontal"==n.value?"yc-carousel-arrow-left":"yc-carousel-arrow-top");return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-arrow",h.value,e.unref(l),{"yc-carousel-arrow-show-hover":"hover"==e.unref(a)}]),onClick:t[0]||(t[0]=r=>o.$emit("change","next"==e.unref(s)?e.unref(c)+1:e.unref(c)-1))},[e.createVNode(e.unref(r),{rotate:i.value},null,8,["rotate"])],2))}});module.exports=t;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./hooks/useContext.js"),i=["onMouseenter","onClick"],n=e.defineComponent({__name:"CarouselIndicator",props:{trigger:{},indicatorType:{},indicatorPosition:{},indicatorClass:{}},emits:["change"],setup(n){const{length:t,computedCurrent:c}=r().inject();return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-indicator",`yc-carousel-indicator-shape-${r.indicatorType}`,`yc-carousel-indicator-position-${r.indicatorPosition}`,r.indicatorClass])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(t),o=>(e.openBlock(),e.createElementBlock("div",{key:o,class:e.normalizeClass(["yc-carousel-indicator-item",{"yc-carousel-indicator-item-active":e.unref(c)==o}]),onMouseenter:i=>"hover"==r.trigger&&e.unref(c)!=o&&r.$emit("change",o),onClick:i=>"click"==r.trigger&&e.unref(c)!=o&&r.$emit("change",o)},null,42,i))),128)),"slider"==r.indicatorType?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-carousel-indicator-item-slider",style:e.normalizeStyle({width:["top","bottom","outer"].includes(r.indicatorPosition)?e.unref(o.valueToPx)(48/e.unref(t)):"",height:["left","right"].includes(r.indicatorPosition)?e.unref(o.valueToPx)(48/e.unref(t)):"",transform:["top","bottom","outer"].includes(r.indicatorPosition)?`translateX(calc(${e.unref(o.valueToPx)(48/e.unref(t)*e.unref(c))} - 100%))`:`translateY(calc(${e.unref(o.valueToPx)(48/e.unref(t)*e.unref(c))} - 100%))`})},null,4)):e.createCommentVNode("",!0)],2))}});module.exports=n;
|
@@ -1 +0,0 @@
|
|
1
|
-
"use strict";const e=require("vue"),n=require("./hooks/useContext.js"),u=e.defineComponent({name:"CarouselItem",__name:"CarouselItem",setup(u){const{moveType:t,preIndex:r,computedCurrent:i,direction:o,moveSpeed:a,animationName:l,transitionTimingFunction:s,getValidIndex:m}=n().inject(),c=e.useAttrs(),v=e.computed(()=>c.index),d=e.computed(()=>{if("slide"!=l.value||i.value==r.value||r.value!=v.value&&i.value!=v.value)return;return`yc-carousel-slide${"horizontal"==o.value?"-x":"-y"}${r.value==v.value?"-out":"-in"}${"positive"==t.value?"":"-reverse"}`});return(n,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-item",d.value,{"yc-carousel-item-current":v.value==e.unref(m)(e.unref(i)),"yc-carousel-item-prev":v.value==e.unref(m)(e.unref(i)-1),"yc-carousel-item-next":v.value==e.unref(m)(e.unref(i)+1)}]),style:e.normalizeStyle({transitionTimingFunction:e.unref(s),animationTimingFunction:e.unref(s),transitionDuration:e.unref(a)+"ms",animationDuration:e.unref(a)+"ms"})},[e.renderSlot(n.$slots,"default",{},void 0,!0)],6))}});module.exports=u;
|