yc-design-vue 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Affix/type.d.ts +1 -1
- package/es/Alert/index.vue.js +2 -2
- package/es/Alert/type.d.ts +1 -1
- package/es/Anchor/hooks/useContext.d.ts +2 -2
- package/es/Anchor/type.d.ts +1 -1
- package/es/AutoComplete/index.d.ts +27 -27
- package/es/AutoComplete/index.vue.d.ts +49 -49
- package/es/AutoComplete/type.d.ts +6 -8
- package/es/Avatar/Avatar.vue.d.ts +1 -1
- package/es/Avatar/Avatar.vue.js +1 -1
- package/es/Avatar/hooks/useContext.d.ts +3 -3
- package/es/Avatar/index.d.ts +3 -3
- package/es/Avatar/type.d.ts +2 -2
- package/es/BackTop/index.vue.js +1 -1
- package/es/BackTop/type.d.ts +1 -1
- package/es/Badge/type.d.ts +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Breadcrumb/type.d.ts +1 -1
- package/es/Button/Button.vue.d.ts +1 -1
- package/es/Button/ButtonGroup.vue.d.ts +1 -1
- package/es/Button/hooks/useContext.d.ts +5 -5
- package/es/Button/index.d.ts +6 -6
- package/es/Button/type.d.ts +4 -5
- package/es/Calendar/Calendar.vue.js +2 -2
- package/es/Card/type.d.ts +2 -1
- package/es/Carousel/Carousel.vue.d.ts +3 -3
- package/es/Carousel/CarouselArrow.vue.js +1 -1
- package/es/Carousel/CarouselIndicator.vue.d.ts +3 -3
- package/es/Carousel/hooks/useContext.d.ts +3 -3
- package/es/Carousel/index.d.ts +9 -9
- package/es/Carousel/type.d.ts +2 -3
- package/es/Cascader/Cascader.vue.d.ts +13 -25
- package/es/Cascader/Cascader.vue.js +1 -1
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +1 -1
- package/es/Cascader/hooks/useContext.d.ts +5 -17
- package/es/Cascader/index.d.ts +17 -29
- package/es/Cascader/type.d.ts +5 -7
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Checkbox/hooks/useContext.d.ts +3 -3
- package/es/Checkbox/type.d.ts +3 -3
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Collapse/hooks/useContext.d.ts +5 -5
- package/es/Collapse/type.d.ts +2 -2
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ConfigProvider/index.d.ts +3 -3
- package/es/ConfigProvider/index.vue.d.ts +1 -1
- package/es/ConfigProvider/type.d.ts +2 -3
- package/es/Descriptions/hooks/useContext.d.ts +2 -2
- package/es/Descriptions/type.d.ts +1 -2
- package/es/Drawer/Drawer.vue.js +2 -2
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Dropdown/Doption.vue.js +1 -1
- package/es/Dropdown/Dropdown.vue.d.ts +1 -1
- package/es/Dropdown/Dropdown.vue.js +1 -1
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +20 -20
- package/es/Dropdown/Dsubmenu.vue.js +2 -2
- package/es/Dropdown/hooks/useContext.d.ts +2 -2
- package/es/Dropdown/index.d.ts +18 -18
- package/es/Dropdown/type.d.ts +5 -6
- package/es/Empty/index.vue.js +1 -1
- package/es/Grid/Grid.vue.d.ts +3 -3
- package/es/Grid/GridCol.vue.d.ts +2 -2
- package/es/Grid/GridItem.vue.d.ts +2 -2
- package/es/Grid/GridRow.vue.d.ts +1 -1
- package/es/Grid/hooks/useContext.d.ts +4 -4
- package/es/Grid/index.d.ts +24 -24
- package/es/Grid/type.d.ts +4 -12
- package/es/Image/Image.vue.d.ts +1 -1
- package/es/Image/Image.vue.js +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewArrow.vue.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue.js +1 -1
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Image/index.d.ts +3 -3
- package/es/Image/type.d.ts +2 -3
- package/es/Input/Input.vue.d.ts +1 -1
- package/es/Input/Input.vue.js +2 -2
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/Input/hooks/useLimitedInput.d.ts +3 -3
- package/es/Input/index.d.ts +3 -3
- package/es/Input/type.d.ts +2 -2
- package/es/InputNumber/InputNumber.vue.d.ts +7 -7
- package/es/InputNumber/InputOperaBtn.vue.js +1 -1
- package/es/InputNumber/index.d.ts +6 -6
- package/es/InputNumber/type.d.ts +3 -4
- package/es/InputTag/index.vue.js +2 -2
- package/es/InputTag/type.d.ts +5 -6
- package/es/Layout/LayoutSider.vue.d.ts +7 -7
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Layout/hooks/useSiderContext.d.ts +2 -2
- package/es/Layout/index.d.ts +19 -19
- package/es/Layout/type.d.ts +4 -5
- package/es/Link/index.vue.js +1 -1
- package/es/Link/type.d.ts +1 -1
- package/es/List/List.vue.d.ts +15 -15
- package/es/List/ListVirtual.vue.d.ts +3 -3
- package/es/List/index.d.ts +10 -10
- package/es/List/type.d.ts +3 -3
- package/es/Mention/index.d.ts +35 -35
- package/es/Mention/index.vue.d.ts +46 -46
- package/es/Mention/type.d.ts +6 -5
- package/es/Menu/Menu.vue.d.ts +6 -6
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/MenuEllipsis.vue.js +1 -1
- package/es/Menu/SubMenu.vue.d.ts +1 -1
- package/es/Menu/SubMenu.vue.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +5 -5
- package/es/Menu/index.d.ts +20 -20
- package/es/Menu/type.d.ts +3 -6
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/Message.vue.js +2 -2
- package/es/Message/index.d.ts +3 -3
- package/es/Message/type.d.ts +5 -5
- package/es/Modal/Modal.vue.d.ts +2 -2
- package/es/Modal/Modal.vue.js +2 -2
- package/es/Modal/ModalService.vue.d.ts +4 -4
- package/es/Modal/index.d.ts +6 -6
- package/es/Modal/index.js +1 -1
- package/es/Modal/type.d.ts +8 -8
- package/es/Notification/Notification.vue.d.ts +3 -3
- package/es/Notification/Notification.vue.js +2 -2
- package/es/Notification/index.d.ts +9 -9
- package/es/Notification/type.d.ts +4 -4
- package/es/PageHeader/index.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Pagination/hooks/useContext.d.ts +2 -2
- package/es/Popconfirm/index.d.ts +18 -18
- package/es/Popconfirm/index.vue.d.ts +21 -21
- package/es/Popconfirm/type.d.ts +4 -4
- package/es/Popover/index.d.ts +9 -9
- package/es/Popover/index.vue.d.ts +3 -3
- package/es/Popover/type.d.ts +3 -3
- package/es/Progress/ProgressCircle.vue.js +1 -1
- package/es/Progress/type.d.ts +1 -1
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Radio/hooks/useContext.d.ts +3 -3
- package/es/Radio/type.d.ts +2 -2
- package/es/Rate/index.vue.js +1 -1
- package/es/ResizeBox/index.vue.js +3 -3
- package/es/Result/type.d.ts +1 -1
- package/es/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/es/Scrollbar/index.d.ts +3 -3
- package/es/Select/Option.vue.d.ts +1 -1
- package/es/Select/Option.vue.js +1 -1
- package/es/Select/Select.vue.d.ts +27 -27
- package/es/Select/Select.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/SelectRealList.vue.js +1 -1
- package/es/Select/hooks/useContext.d.ts +13 -13
- package/es/Select/hooks/useSelectOptions.d.ts +13 -13
- package/es/Select/index.d.ts +26 -26
- package/es/Select/type.d.ts +13 -16
- package/es/Skeleton/type.d.ts +3 -2
- package/es/Slider/Slider.vue.d.ts +1 -1
- package/es/Slider/SliderTicks.vue.d.ts +2 -2
- package/es/Slider/hooks/useContext.d.ts +4 -4
- package/es/Slider/index.d.ts +3 -3
- package/es/Slider/type.d.ts +2 -3
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Spin/index.vue.js +1 -1
- package/es/Split/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +1 -1
- package/es/Steps/hooks/useContext.d.ts +3 -3
- package/es/Switch/type.d.ts +2 -1
- package/es/Tabs/TabButton.vue.js +2 -2
- package/es/Tabs/Tabs.vue.d.ts +1 -1
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tabs/TabsNavInk.vue.d.ts +2 -2
- package/es/Tabs/hooks/useContext.d.ts +5 -5
- package/es/Tabs/hooks/useTabsScroll.d.ts +2 -2
- package/es/Tabs/index.d.ts +3 -3
- package/es/Tabs/type.d.ts +2 -3
- package/es/Tag/index.vue.js +2 -2
- package/es/Tag/type.d.ts +2 -1
- package/es/Textarea/index.vue.js +2 -2
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/type.d.ts +1 -1
- package/es/Timeline/hooks/useContext.d.ts +4 -4
- package/es/Tooltip/index.d.ts +9 -9
- package/es/Tooltip/index.vue.d.ts +3 -3
- package/es/Tooltip/type.d.ts +3 -3
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Transfer/hooks/useContext.d.ts +2 -2
- package/es/Trigger/hooks/useContext.d.ts +2 -2
- package/es/Trigger/hooks/useTriggerPosition.d.ts +3 -4
- package/es/Trigger/hooks/useTriggerVisible.d.ts +2 -2
- package/es/Trigger/index.d.ts +9 -9
- package/es/Trigger/index.vue.d.ts +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/type.d.ts +3 -4
- package/es/Typography/TypographyBase.vue.d.ts +6 -7
- package/es/Typography/TypographyBase.vue.js +3 -4
- package/es/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/es/Typography/TypographyParagraph.vue.js +0 -7
- package/es/Typography/TypographyText.vue.js +0 -7
- package/es/Typography/TypographyTitle.vue.d.ts +1 -1
- package/es/Typography/TypographyTitle.vue.js +0 -7
- package/es/Typography/type.d.ts +4 -14
- package/es/_shared/components/ExpandTransition/index.vue2.js +6 -2
- package/es/_shared/components/IconButton/{index.vue.js → index.vue2.js} +1 -1
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.d.ts +4 -4
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +23 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -23
- package/es/_shared/icons/IconDelete.vue2.js +1 -1
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +23 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -23
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -1
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -1
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/es/_shared/type/index.d.ts +22 -5
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/dom.js +1 -1
- package/es/_shared/utils/global-config.d.ts +4 -4
- package/es/_shared/utils/vue-utils.d.ts +3 -3
- package/es/index.d.ts +59 -59
- package/lib/Affix/type.d.ts +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Alert/type.d.ts +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +2 -2
- package/lib/Anchor/type.d.ts +1 -1
- package/lib/AutoComplete/index.d.ts +27 -27
- package/lib/AutoComplete/index.vue.d.ts +49 -49
- package/lib/AutoComplete/type.d.ts +6 -8
- package/lib/Avatar/Avatar.vue.d.ts +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/hooks/useContext.d.ts +3 -3
- package/lib/Avatar/index.d.ts +3 -3
- package/lib/Avatar/type.d.ts +2 -2
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/BackTop/type.d.ts +1 -1
- package/lib/Badge/type.d.ts +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Breadcrumb/type.d.ts +1 -1
- package/lib/Button/Button.vue.d.ts +1 -1
- package/lib/Button/ButtonGroup.vue.d.ts +1 -1
- package/lib/Button/hooks/useContext.d.ts +5 -5
- package/lib/Button/index.d.ts +6 -6
- package/lib/Button/type.d.ts +4 -5
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Card/type.d.ts +2 -1
- package/lib/Carousel/Carousel.vue.d.ts +3 -3
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.d.ts +3 -3
- package/lib/Carousel/hooks/useContext.d.ts +3 -3
- package/lib/Carousel/index.d.ts +9 -9
- package/lib/Carousel/type.d.ts +2 -3
- package/lib/Cascader/Cascader.vue.d.ts +13 -25
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.d.ts +5 -17
- package/lib/Cascader/index.d.ts +17 -29
- package/lib/Cascader/type.d.ts +5 -7
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/hooks/useContext.d.ts +3 -3
- package/lib/Checkbox/type.d.ts +3 -3
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.d.ts +5 -5
- package/lib/Collapse/type.d.ts +2 -2
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ConfigProvider/index.d.ts +3 -3
- package/lib/ConfigProvider/index.vue.d.ts +1 -1
- package/lib/ConfigProvider/type.d.ts +2 -3
- package/lib/Descriptions/hooks/useContext.d.ts +2 -2
- package/lib/Descriptions/type.d.ts +1 -2
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Dropdown/Doption.vue.js +1 -1
- package/lib/Dropdown/Dropdown.vue.d.ts +1 -1
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.d.ts +20 -20
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +2 -2
- package/lib/Dropdown/index.d.ts +18 -18
- package/lib/Dropdown/type.d.ts +5 -6
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.d.ts +3 -3
- package/lib/Grid/GridCol.vue.d.ts +2 -2
- package/lib/Grid/GridItem.vue.d.ts +2 -2
- package/lib/Grid/GridRow.vue.d.ts +1 -1
- package/lib/Grid/hooks/useContext.d.ts +4 -4
- package/lib/Grid/index.d.ts +24 -24
- package/lib/Grid/type.d.ts +4 -12
- package/lib/Image/Image.vue.d.ts +1 -1
- package/lib/Image/Image.vue.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewArrow.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Image/index.d.ts +3 -3
- package/lib/Image/type.d.ts +2 -3
- package/lib/Input/Input.vue.d.ts +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.d.ts +3 -3
- package/lib/Input/index.d.ts +3 -3
- package/lib/Input/type.d.ts +2 -2
- package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputNumber/index.d.ts +6 -6
- package/lib/InputNumber/type.d.ts +3 -4
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/type.d.ts +5 -6
- package/lib/Layout/LayoutSider.vue.d.ts +7 -7
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.d.ts +2 -2
- package/lib/Layout/index.d.ts +19 -19
- package/lib/Layout/type.d.ts +4 -5
- package/lib/Link/index.vue.js +1 -1
- package/lib/Link/type.d.ts +1 -1
- package/lib/List/List.vue.d.ts +15 -15
- package/lib/List/ListVirtual.vue.d.ts +3 -3
- package/lib/List/index.d.ts +10 -10
- package/lib/List/type.d.ts +3 -3
- package/lib/Mention/index.d.ts +35 -35
- package/lib/Mention/index.vue.d.ts +46 -46
- package/lib/Mention/type.d.ts +6 -5
- package/lib/Menu/Menu.vue.d.ts +6 -6
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.d.ts +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +5 -5
- package/lib/Menu/index.d.ts +20 -20
- package/lib/Menu/type.d.ts +3 -6
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Message/type.d.ts +5 -5
- package/lib/Modal/Modal.vue.d.ts +2 -2
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.d.ts +4 -4
- package/lib/Modal/index.d.ts +6 -6
- package/lib/Modal/type.d.ts +8 -8
- package/lib/Notification/Notification.vue.d.ts +3 -3
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.d.ts +9 -9
- package/lib/Notification/type.d.ts +4 -4
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +2 -2
- package/lib/Popconfirm/index.d.ts +18 -18
- package/lib/Popconfirm/index.vue.d.ts +21 -21
- package/lib/Popconfirm/type.d.ts +4 -4
- package/lib/Popover/index.d.ts +9 -9
- package/lib/Popover/index.vue.d.ts +3 -3
- package/lib/Popover/type.d.ts +3 -3
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/type.d.ts +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Radio/hooks/useContext.d.ts +3 -3
- package/lib/Radio/type.d.ts +2 -2
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Result/type.d.ts +1 -1
- package/lib/Scrollbar/Scrollbar.vue.d.ts +1 -1
- package/lib/Scrollbar/index.d.ts +3 -3
- package/lib/Select/Option.vue.d.ts +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +27 -27
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectRealList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +13 -13
- package/lib/Select/hooks/useSelectOptions.d.ts +13 -13
- package/lib/Select/index.d.ts +26 -26
- package/lib/Select/type.d.ts +13 -16
- package/lib/Skeleton/type.d.ts +3 -2
- package/lib/Slider/Slider.vue.d.ts +1 -1
- package/lib/Slider/SliderTicks.vue.d.ts +2 -2
- package/lib/Slider/hooks/useContext.d.ts +4 -4
- package/lib/Slider/index.d.ts +3 -3
- package/lib/Slider/type.d.ts +2 -3
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +3 -3
- package/lib/Switch/type.d.ts +2 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.d.ts +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.d.ts +2 -2
- package/lib/Tabs/hooks/useContext.d.ts +5 -5
- package/lib/Tabs/hooks/useTabsScroll.d.ts +2 -2
- package/lib/Tabs/index.d.ts +3 -3
- package/lib/Tabs/type.d.ts +2 -3
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Tag/type.d.ts +2 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/type.d.ts +1 -1
- package/lib/Timeline/hooks/useContext.d.ts +4 -4
- package/lib/Tooltip/index.d.ts +9 -9
- package/lib/Tooltip/index.vue.d.ts +3 -3
- package/lib/Tooltip/type.d.ts +3 -3
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +2 -2
- package/lib/Trigger/hooks/useContext.d.ts +2 -2
- package/lib/Trigger/hooks/useTriggerPosition.d.ts +3 -4
- package/lib/Trigger/hooks/useTriggerVisible.d.ts +2 -2
- package/lib/Trigger/index.d.ts +9 -9
- package/lib/Trigger/index.vue.d.ts +3 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/type.d.ts +3 -4
- package/lib/Typography/TypographyBase.vue.d.ts +6 -7
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyParagraph.vue.d.ts +1 -1
- package/lib/Typography/TypographyParagraph.vue.js +1 -1
- package/lib/Typography/TypographyText.vue.js +1 -1
- package/lib/Typography/TypographyTitle.vue.d.ts +1 -1
- package/lib/Typography/TypographyTitle.vue.js +1 -1
- package/lib/Typography/type.d.ts +4 -14
- package/lib/_shared/components/IconButton/index.vue2.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -1
- package/lib/_shared/constants/index.d.ts +4 -4
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.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/_shared/type/index.d.ts +22 -5
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -4
- package/lib/_shared/utils/vue-utils.d.ts +3 -3
- package/lib/index.d.ts +59 -59
- package/package.json +1 -1
- package/lib/_shared/components/IconButton/index.vue.js +0 -1
package/lib/Select/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { RecordType, RenderContent, Size, PopupContainer, FilterOption, Format, FallBack } from '../_shared/type';
|
2
2
|
import { TriggerInstance, TriggerProps } from '../Trigger';
|
3
3
|
import { TagProps } from '../Tag';
|
4
4
|
import { VNode } from 'vue';
|
@@ -22,12 +22,12 @@ export interface SelectProps {
|
|
22
22
|
popupVisible?: boolean;
|
23
23
|
defaultPopupVisible?: boolean;
|
24
24
|
unmountonClose?: boolean;
|
25
|
-
filterOption?: FilterOption
|
25
|
+
filterOption?: boolean | FilterOption<SelectOptionData>;
|
26
26
|
options?: SelectOption[];
|
27
27
|
virtualListProps?: VirtualListProps;
|
28
28
|
triggerProps?: TriggerProps;
|
29
|
-
formatLabel?:
|
30
|
-
fallbackOption?:
|
29
|
+
formatLabel?: Format<SelectOptionData>;
|
30
|
+
fallbackOption?: FallBack<SelectOptionValue, SelectOptionData>;
|
31
31
|
showExtraOptions?: boolean;
|
32
32
|
valueKey?: string;
|
33
33
|
searchDelay?: number;
|
@@ -49,11 +49,11 @@ export interface SelectEmits {
|
|
49
49
|
(e: 'clear'): void;
|
50
50
|
(e: 'remove', index: number | string, ev: Event): void;
|
51
51
|
(e: 'search', value: string): void;
|
52
|
-
(e: 'exceedLimit', value:
|
52
|
+
(e: 'exceedLimit', value: SelectOptionValue, ev?: MouseEvent): void;
|
53
53
|
(e: 'popup-visible-change', value: boolean): void;
|
54
54
|
(e: 'dropdown-scroll', ev: Event): void;
|
55
55
|
(e: 'dropdown-reach-bottom', ev: Event): void;
|
56
|
-
(e: 'select', value:
|
56
|
+
(e: 'select', value: SelectOptionValue): void;
|
57
57
|
}
|
58
58
|
export interface SelectSlots {
|
59
59
|
default?: () => VNode[];
|
@@ -65,10 +65,10 @@ export interface SelectSlots {
|
|
65
65
|
footer?: () => VNode[];
|
66
66
|
header?: () => VNode[];
|
67
67
|
label?: (scope: {
|
68
|
-
data:
|
68
|
+
data: RecordType;
|
69
69
|
}) => VNode[];
|
70
70
|
option?: (scope: {
|
71
|
-
data:
|
71
|
+
data: RecordType;
|
72
72
|
}) => VNode[];
|
73
73
|
empty?: () => VNode[];
|
74
74
|
}
|
@@ -79,7 +79,7 @@ export interface SelectExpose {
|
|
79
79
|
}
|
80
80
|
export interface OptionProps {
|
81
81
|
label?: string;
|
82
|
-
value?:
|
82
|
+
value?: SelectOptionValue;
|
83
83
|
disabled?: boolean;
|
84
84
|
tagProps?: TagProps;
|
85
85
|
id?: string;
|
@@ -97,8 +97,8 @@ export interface OptgroupSlots {
|
|
97
97
|
default?: () => VNode[];
|
98
98
|
label?: () => VNode[];
|
99
99
|
}
|
100
|
-
export type
|
101
|
-
export type SelectValue =
|
100
|
+
export type SelectOptionValue = string | number | boolean | RecordType;
|
101
|
+
export type SelectValue = SelectOptionValue | SelectOptionValue[];
|
102
102
|
export type SelectOptionData = {
|
103
103
|
render?: RenderContent;
|
104
104
|
} & OptionProps;
|
@@ -108,12 +108,9 @@ export type SelectOptionGroup = {
|
|
108
108
|
isGroup?: true;
|
109
109
|
options?: SelectOptionData[];
|
110
110
|
};
|
111
|
-
export type SelectOption =
|
112
|
-
export type FilterOption = boolean | ((inputValue: string, option: SelectOptionData) => boolean);
|
113
|
-
export type FallbackOption = (value: OptionValue) => SelectOptionData;
|
114
|
-
export type FormatLabel = (data: SelectOptionData) => string;
|
111
|
+
export type SelectOption = SelectOptionValue | SelectOptionData | SelectOptionGroup | RecordType;
|
115
112
|
export type VirtualListProps = {
|
116
113
|
itemHeight?: number;
|
117
|
-
buffer?: number;
|
118
114
|
threshold?: number;
|
115
|
+
buffer?: number;
|
119
116
|
};
|
package/lib/Skeleton/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { Shape, Size } from '../_shared/type';
|
2
3
|
export interface SkeletonProps {
|
3
4
|
animation?: boolean;
|
4
5
|
loading?: boolean;
|
@@ -17,5 +18,5 @@ export interface SkeletonShapeProps {
|
|
17
18
|
shape?: SkeletonShapeShape;
|
18
19
|
size?: SkeletonShapeSize;
|
19
20
|
}
|
20
|
-
export type SkeletonShapeSize =
|
21
|
-
export type SkeletonShapeShape =
|
21
|
+
export type SkeletonShapeSize = Exclude<Size, 'mini'>;
|
22
|
+
export type SkeletonShapeShape = Exclude<Shape, 'round'>;
|
@@ -15,10 +15,10 @@ declare const _default: import('vue').DefineComponent<SliderProps, {}, {}, {}, {
|
|
15
15
|
direction: import('..').Direction;
|
16
16
|
min: number;
|
17
17
|
step: number;
|
18
|
+
formatTooltip: import('..').Format<number>;
|
18
19
|
showTooltip: boolean;
|
19
20
|
marks: Record<number, string>;
|
20
21
|
showTicks: boolean;
|
21
|
-
formatTooltip: import('./type').FormatTooltip;
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
23
23
|
trackRef: HTMLDivElement;
|
24
24
|
}, HTMLDivElement>;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { RecordType } from '../_shared/type';
|
2
2
|
type __VLS_Props = {
|
3
3
|
type: 'dots' | 'marks' | 'ticks';
|
4
|
-
data:
|
4
|
+
data: RecordType[];
|
5
5
|
};
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
7
7
|
labelClick: (value: number) => any;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import {
|
3
|
-
import { Direction,
|
2
|
+
import { SliderProps, SliderEmits, SliderValue } from '../type';
|
3
|
+
import { Direction, RecordType } from '../../_shared/type';
|
4
4
|
type SliderContext = {
|
5
5
|
startValue: Ref<number>;
|
6
6
|
endValue: Ref<number>;
|
@@ -14,13 +14,13 @@ type SliderContext = {
|
|
14
14
|
showTooltip: Ref<boolean>;
|
15
15
|
disabled: Ref<boolean>;
|
16
16
|
trackRef: Ref<HTMLDivElement | undefined>;
|
17
|
-
formatTooltip?:
|
17
|
+
formatTooltip?: SliderProps['formatTooltip'];
|
18
18
|
normalizeValue: (value: number) => number;
|
19
19
|
denormalizeValue: (value: number) => number;
|
20
20
|
};
|
21
21
|
declare const _default: () => {
|
22
22
|
inject: () => SliderContext;
|
23
|
-
provide: (props:
|
23
|
+
provide: (props: RecordType, emits: SliderEmits, trackRef: Ref<HTMLDivElement | undefined>) => {
|
24
24
|
range: Ref<boolean, boolean>;
|
25
25
|
direction: Ref<Direction, Direction>;
|
26
26
|
startValue: import('vue').WritableComputedRef<number, number>;
|
package/lib/Slider/index.d.ts
CHANGED
@@ -19,10 +19,10 @@ declare const Slider: {
|
|
19
19
|
direction: import('..').Direction;
|
20
20
|
min: number;
|
21
21
|
step: number;
|
22
|
+
formatTooltip: import('..').Format<number>;
|
22
23
|
showTooltip: boolean;
|
23
24
|
marks: Record<number, string>;
|
24
25
|
showTicks: boolean;
|
25
|
-
formatTooltip: import('./type').FormatTooltip;
|
26
26
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
27
27
|
trackRef: HTMLDivElement;
|
28
28
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -45,10 +45,10 @@ declare const Slider: {
|
|
45
45
|
direction: import('..').Direction;
|
46
46
|
min: number;
|
47
47
|
step: number;
|
48
|
+
formatTooltip: import('..').Format<number>;
|
48
49
|
showTooltip: boolean;
|
49
50
|
marks: Record<number, string>;
|
50
51
|
showTicks: boolean;
|
51
|
-
formatTooltip: import('./type').FormatTooltip;
|
52
52
|
}>;
|
53
53
|
__isFragment?: never;
|
54
54
|
__isTeleport?: never;
|
@@ -69,10 +69,10 @@ declare const Slider: {
|
|
69
69
|
direction: import('..').Direction;
|
70
70
|
min: number;
|
71
71
|
step: number;
|
72
|
+
formatTooltip: import('..').Format<number>;
|
72
73
|
showTooltip: boolean;
|
73
74
|
marks: Record<number, string>;
|
74
75
|
showTicks: boolean;
|
75
|
-
formatTooltip: import('./type').FormatTooltip;
|
76
76
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
77
77
|
install: (app: App) => void;
|
78
78
|
};
|
package/lib/Slider/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Direction } from '../_shared/type';
|
1
|
+
import { Direction, Format } from '../_shared/type';
|
2
2
|
export interface SliderProps {
|
3
3
|
modelValue?: SliderValue;
|
4
4
|
defaultValue?: SliderValue;
|
@@ -12,11 +12,10 @@ export interface SliderProps {
|
|
12
12
|
showInput?: boolean;
|
13
13
|
range?: boolean;
|
14
14
|
showTooltip?: boolean;
|
15
|
-
formatTooltip?:
|
15
|
+
formatTooltip?: Format<number>;
|
16
16
|
}
|
17
17
|
export interface SliderEmits {
|
18
18
|
(e: 'update:modelValue', value: number): void;
|
19
19
|
(e: 'change', value: number): void;
|
20
20
|
}
|
21
21
|
export type SliderValue = number | number[];
|
22
|
-
export type FormatTooltip = (value: number) => string;
|
package/lib/Space/index.d.ts
CHANGED
@@ -4,8 +4,8 @@ export type SpaceInstance = InstanceType<typeof _Space>;
|
|
4
4
|
export * from './type';
|
5
5
|
declare const Space: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
|
-
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
8
7
|
fill: boolean;
|
8
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
9
9
|
wrap: boolean;
|
10
10
|
direction: import('..').Direction;
|
11
11
|
align: import('./type').SpaceAlign;
|
@@ -17,8 +17,8 @@ declare const Space: {
|
|
17
17
|
M: {};
|
18
18
|
Defaults: {};
|
19
19
|
}, Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, {
|
20
|
-
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
21
20
|
fill: boolean;
|
21
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
22
22
|
wrap: boolean;
|
23
23
|
direction: import('..').Direction;
|
24
24
|
align: import('./type').SpaceAlign;
|
@@ -27,8 +27,8 @@ declare const Space: {
|
|
27
27
|
__isTeleport?: never;
|
28
28
|
__isSuspense?: never;
|
29
29
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SpaceProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
30
|
-
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
31
30
|
fill: boolean;
|
31
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
32
32
|
wrap: boolean;
|
33
33
|
direction: import('..').Direction;
|
34
34
|
align: import('./type').SpaceAlign;
|
package/lib/Space/index.vue.d.ts
CHANGED
@@ -7,8 +7,8 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<SpaceProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SpaceProps> & Readonly<{}>, {
|
10
|
-
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
11
10
|
fill: boolean;
|
11
|
+
size: import('./type').SpaceSize | [import('./type').SpaceSize, import('./type').SpaceSize];
|
12
12
|
wrap: boolean;
|
13
13
|
direction: import('..').Direction;
|
14
14
|
align: import('./type').SpaceAlign;
|
package/lib/Spin/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconLoading.vue.js"),l={class:"yc-spin"},i={key:0,class:"yc-dot-loading"},r={key:1,class:"yc-spin-tip"},s={key:0,class:"yc-spin-mask"},c=e.defineComponent({name:"Spin",__name:"index",props:{size:{default:20},loading:{type:Boolean,default:!1},dot:{type:Boolean,default:!1},tip:{default:""},hideIcon:{type:Boolean,default:!1},isSizeInherit:{type:Boolean,default:!1}},setup(c){const{define:a,reuse:d}=o.createReusableTemplate();return(o,c)=>(e.openBlock(),e.createElementBlock("div",l,[e.createVNode(e.unref(a),null,{default:e.withCtx(()=>[o.hideIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-spin-icon",{"yc-spin-icon-loading":!o.dot}]),style:e.normalizeStyle({fontSize:o.isSizeInherit?"inherit":e.unref(t.valueToPx)(o.size)})},[e.renderSlot(o.$slots,"icon",{},()=>[o.dot?(e.openBlock(),e.createElementBlock("div",i,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(5,o=>e.createElementVNode("div",{key:o,class:"yc-dot-loading-item"})),64))])):(e.openBlock(),e.createBlock(e.unref(n),{key:1}))])],6)),o.tip?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(o.$slots,"tip",{},()=>[e.createTextVNode(e.toDisplayString(o.tip),1)])])):e.createCommentVNode("",!0)]),_:3}),o.$slots.default?(e.openBlock(),e.createBlock(e.Transition,{key:1,name:"fade"},{default:e.withCtx(()=>[o.loading?(e.openBlock(),e.createElementBlock("div",s,[e.createVNode(e.unref(d))])):e.createCommentVNode("",!0)]),_:1})):(e.openBlock(),e.createBlock(e.unref(d),{key:0})),e.renderSlot(o.$slots,"default")]))}});module.exports=c;
|
package/lib/Split/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const a=require("../_shared/utils/control.js");,/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const a=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconDragDot.vue.js"),i=require("../node_modules/@vueuse/core/index.js"),o={class:"yc-split-trigger-icon-wrapper"},n={class:"yc-split-trigger-icon"},s={class:"yc-split-pane yc-split-pane-second"},u=e.defineComponent({name:"Split",__name:"index",props:{component:{default:"div"},direction:{default:"horizontal"},size:{default:void 0},defaultSize:{default:.5},min:{default:0},max:{default:1},disabled:{type:Boolean,default:!1}},emits:["update:size","moving-start","moving","moving-end"],setup(u,{emit:d}){const v=u,c=d,{size:m,defaultSize:p,direction:f,min:g,max:h}=e.toRefs(v),y=a(m,p.value,e=>{c("update:size",e)}),z=e.computed(()=>100*(l.isNumber(y.value)?y.value:C(y.value))+"%"),_=e.ref(),x=e.ref(),q=e.computed(()=>{var e,t;return("horizontal"==f.value?null==(e=x.value)?void 0:e.offsetWidth:null==(t=x.value)?void 0:t.offsetHeight)??6}),j=e.computed(()=>{var e;const t=null==(e=_.value)?void 0:e.getBoundingClientRect();return("horizontal"==f.value?null==t?void 0:t.width:null==t?void 0:t.height)??0}),{isDragging:N,x:S,y:b}=i.useDraggable(x,{onMove(){c("moving");const{left:e,top:t}=_.value.getBoundingClientRect(),a="horizontal"==f.value?e:t,r=a+B(g.value),i=a+B(h.value)-q.value;let o="";"horizontal"==f.value?(S.value=S.value<r?r:S.value,S.value=S.value>i?i:S.value,o=S.value-e+"px"):(b.value=b.value<r?r:b.value,b.value=b.value>i?i:b.value,o=b.value-t+"px"),y.value=l.isNumber(y.value)?C(o):o},onStart(){c("moving-start")},onEnd(){c("moving-end")}}),B=e=>l.isNumber(e)?e*j.value:Number.parseFloat(e),C=e=>Number.parseFloat(e)/j.value;return e.watch(()=>y.value,async e=>{if(N.value)return;await t.sleep(0);const{left:l,top:a}=_.value.getBoundingClientRect();S.value=l+B(e),b.value=a+B(e)},{immediate:!0}),(l,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.component),{class:e.normalizeClass(["yc-split",`yc-split-direction-${e.unref(f)}`]),ref_key:"splitRef",ref:_},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"yc-split-pane yc-split-pane-first",style:e.normalizeStyle({flex:`0 0 calc(${z.value} - ${e.unref(t.valueToPx)(q.value/2)}`})},[e.renderSlot(l.$slots,"first")],4),e.createElementVNode("div",{class:"yc-split-trigger",ref_key:"triggerRef",ref:x},[e.renderSlot(l.$slots,"resize-trigger",{},()=>[e.createElementVNode("div",o,[e.createElementVNode("div",n,[e.renderSlot(l.$slots,"resize-trigger-icon",{},()=>[e.createVNode(e.unref(r),{rotate:"horizontal"==e.unref(f)?90:0,size:12},null,8,["rotate"])])])])])],512),e.createElementVNode("div",s,[e.renderSlot(l.$slots,"second")])]),_:3},8,["class"]))}});module.exports=u;
|
package/lib/Steps/Step.vue.js
CHANGED
@@ -1 +1 @@
|
|
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("../_shared/utils/locale.js"),/* empty css
|
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("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconCheck.vue.js"),s=require("../_shared/icons/IconClose.vue.js"),n=require("./hooks/useContext.js"),r={key:0,class:"yc-steps-item-tail"},o={class:"yc-steps-item-node"},i={class:"yc-steps-icon"},l={class:"yc-steps-item-content"},a={class:"yc-steps-item-title"},c={key:0,class:"yc-steps-item-description"},u=e.defineComponent({name:"Step",__name:"Step",props:{title:{default:""},description:{default:""},status:{default:void 0},disabled:{type:Boolean,default:!1}},setup(u){const d=u,{disabled:p}=e.toRefs(d),{curStep:m,stepMap:f,computedCurrent:v,type:y,changeable:k,status:B,nextStatus:h,direction:j,labelPlacement:q,lineLess:x,small:C,emits:N}=n().inject(d),S=e.computed(()=>"dot"!=y.value&&C.value),V=e.computed(()=>x.value||m.value==f.size||["arrow","navigation"].includes(y.value)),_=e=>{k.value&&!p.value&&(v.value=m.value,N("change",m.value,e))};return(n,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-steps-item",`yc-steps-item-${e.unref(j)}`,`yc-steps-item-label-${e.unref(q)}`,`yc-steps-item-${e.unref(B)}`,`yc-steps-item-next-${e.unref(h)}`,{"yc-steps-item-active":e.unref(m)==e.unref(v)&&"navigation"==e.unref(y),"yc-steps-item-line-less":V.value,"yc-steps-item-size-small":S.value}]),onClick:_},["default"==e.unref(y)&&("vertical"==e.unref(j)||"vertical"==e.unref(q))||"dot"==e.unref(y)?(e.openBlock(),e.createElementBlock("div",r)):e.createCommentVNode("",!0),"arrow"!=e.unref(y)?e.renderSlot(n.$slots,"node",{key:1,step:e.unref(m),status:e.unref(B)},()=>[e.createElementVNode("div",o,[e.createElementVNode("div",i,[["default","navigation"].includes(e.unref(y))?e.renderSlot(n.$slots,"icon",{key:0,status:e.unref(B),step:e.unref(m)},()=>["finish"==e.unref(B)?(e.openBlock(),e.createBlock(e.unref(t),{key:0})):"error"==e.unref(B)?(e.openBlock(),e.createBlock(e.unref(s),{key:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(e.unref(m)),1)],64))]):e.createCommentVNode("",!0)])])]):e.createCommentVNode("",!0),e.createElementVNode("div",l,[e.createElementVNode("div",a,[e.renderSlot(n.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)])]),n.$slots.description||n.description?(e.openBlock(),e.createElementBlock("div",c,[e.renderSlot(n.$slots,"description",{},()=>[e.createTextVNode(e.toDisplayString(n.description),1)])])):e.createCommentVNode("",!0)])],2))}});module.exports=u;
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { Ref, Reactive } from 'vue';
|
2
2
|
import { StepsEmits, StepStatus, StepType } from '../type';
|
3
|
-
import {
|
3
|
+
import { Direction, RecordType } from '../../_shared/type';
|
4
4
|
declare const _default: () => {
|
5
|
-
provide: (props:
|
5
|
+
provide: (props: RecordType, emits: StepsEmits) => {
|
6
6
|
direction: import('vue').ComputedRef<Direction>;
|
7
7
|
labelPlacement: import('vue').ComputedRef<Direction>;
|
8
8
|
type: Ref<StepType, StepType>;
|
9
9
|
};
|
10
|
-
inject: (props:
|
10
|
+
inject: (props: RecordType) => {
|
11
11
|
curStep: import('vue').ComputedRef<number>;
|
12
12
|
status: import('vue').ComputedRef<any>;
|
13
13
|
nextStatus: import('vue').ComputedRef<StepStatus>;
|
package/lib/Switch/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { Size } from '../_shared/type';
|
2
3
|
export interface SwitchProps {
|
3
4
|
modelValue?: SwitchValue;
|
4
5
|
defaultChecked?: SwitchValue;
|
@@ -28,5 +29,5 @@ export interface SwitchSlots {
|
|
28
29
|
}
|
29
30
|
export type SwitchValue = string | number | boolean;
|
30
31
|
export type SwitchType = 'circle' | 'round' | 'line';
|
31
|
-
export type SwitchSize = '
|
32
|
+
export type SwitchSize = Exclude<Size, 'mini' | 'large'>;
|
32
33
|
export type BeforeChange = (newValue: SwitchValue) => Promise<boolean | void> | boolean | void;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),t=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const s=e.defineComponent({__name:"TabButton",props:{className:{type:Boolean,default:!0},type:{},direction:{}},setup:s=>(s,o)=>(e.openBlock(),e.createBlock(e.unref(t),e.mergeProps({size:14,class:[`yc-tabs-nav-${s.type?`${s.type}-`:""}button`,{[`yc-tabs-nav-button-${s.direction}`]:s.direction}]},s.$attrs),{default:e.withCtx(()=>[s.$slots.default?e.renderSlot(s.$slots,"default",{key:0}):e.createCommentVNode("",!0)]),_:3},16,["class"]))});module.exports=s;
|
package/lib/Tabs/Tabs.vue.d.ts
CHANGED
@@ -22,7 +22,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {}, {},
|
|
22
22
|
"onTab-click"?: ((value: import('./type').TabKey) => any) | undefined;
|
23
23
|
}>, {
|
24
24
|
size: import('..').Size;
|
25
|
-
trigger: import('
|
25
|
+
trigger: import('..').EventTrigger;
|
26
26
|
position: import('./type').TabPositon;
|
27
27
|
justify: boolean;
|
28
28
|
type: import('./type').TabType;
|
package/lib/Tabs/Tabs.vue.js
CHANGED
@@ -1 +1 @@
|
|
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 n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const a=require("./hooks/useContext.js"),o=require("./hooks/useTabsScroll.js");,/* empty css
|
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 n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const a=require("./hooks/useContext.js"),o=require("./hooks/useTabsScroll.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),l=require("../_shared/icons/IconPlus.vue.js"),i=require("./TabPane.vue.js");;/* empty css */const s=require("./TabsTab.vue.js");;/* empty css */const u=require("./TabsNavInk.vue.js");;/* empty css */const c=require("./TabButton.vue.js");;/* empty css */const d={class:"yc-tabs-nav"},f={key:3,class:"yc-tabs-nav-extra"},p=e.defineComponent({name:"Tabs",__name:"Tabs",props:{activeKey:{default:void 0},defaultActiveKey:{default:""},position:{default:void 0},size:{default:void 0},type:{default:"line"},direction:{default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destoryOnHide:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{default:"click"}},emits:["update:activeKey","change","tab-click","add","delete"],setup(p,{emit:m}){const v=e.useSlots(),y=p,h=m,b=e.ref(),{computedActiveKey:k,size:B,direction:j,autoSwitch:x,position:q}=a().provide(y,h,b),z=e.computed(()=>{var e;return n.findComponentsFromVnodes((null==(e=v.default)?void 0:e.call(v))||[],i.name)}),C=e.computed(()=>z.value.map(e=>({title:"",path:"",disabled:!1,...e.props||{},slots:e.children}))),T=e.computed(()=>y.showAddButton&&["line","card","card-gutter"].includes(y.type)),_=e.computed(()=>{const e=C.value.findIndex(e=>e.path==k.value);return e<0?0:e}),{scrollDis:N,isScrollable:g,preDisabled:V,nextDisabled:$,navHeight:w,handleScroll:E}=o({listRef:b,panes:C,direction:j}),S=async()=>{h("add"),x.value&&(await e.nextTick(),k.value=C.value[C.value.length-1].path)};return(n,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-tabs",`yc-tabs-${e.unref(j)}`,`yc-tabs-type-${n.type}`,`yc-tabs-size-${e.unref(B)}`,{"yc-tabs-animation":n.animation,"yc-tabs-justify":"horizontal"==e.unref(j)&&n.justify,"yc-tabs-no-padding":n.headerPadding&&["line","text"].includes(n.type)&&"horizontal"===y.direction,[`yc-tabs-${e.unref(q)}`]:e.unref(q)}])},[e.createElementVNode("div",d,[e.unref(g)?(e.openBlock(),e.createBlock(c,{key:0,disabled:e.unref(V),direction:"horizontal"==e.unref(j)?"left":"up",onClick:a[0]||(a[0]=t=>e.unref(E)("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r),{rotate:"horizontal"==e.unref(j)?180:-90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-tabs-nav-tab",{"yc-tabs-nav-tab-scroll":e.unref(g)}])},[e.createElementVNode("div",{class:"yc-tabs-nav-tab-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(j)?"X":"Y"}(${e.unref(t.valueToPx)(e.unref(N))})`}),ref_key:"listRef",ref:b},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.value,(t,n)=>(e.openBlock(),e.createBlock(s,{key:n,index:n,node:t},null,8,["index","node"]))),128)),"line"==n.type?(e.openBlock(),e.createBlock(u,{key:0,"cur-index":_.value,panes:C.value},null,8,["cur-index","panes"])):e.createCommentVNode("",!0)],4)],2),e.unref(g)?(e.openBlock(),e.createBlock(c,{key:1,disabled:e.unref($),direction:"horizontal"==e.unref(j)?"right":"down",onClick:a[1]||(a[1]=t=>e.unref(E)("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(r),{rotate:"horizontal"==e.unref(j)?0:90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),T.value?(e.openBlock(),e.createBlock(c,{key:2,type:"add",size:"12",onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(l),{size:12})]),_:1})):e.createCommentVNode("",!0),n.$slots.extra?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(n.$slots,"extra")])):e.createCommentVNode("",!0)]),n.hideContent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-tabs-content",style:e.normalizeStyle({height:"vertical"==e.unref(j)?`${e.unref(t.valueToPx)(e.unref(w))}`:""})},[e.createElementVNode("div",{class:"yc-tabs-content-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(j)?"X":"Y"}(${100*-_.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(z.value,(t,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:n}))),128))],4)],4))],2))}});module.exports=p;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { RecordType } from '../_shared/type';
|
2
2
|
type __VLS_Props = {
|
3
3
|
curIndex: number;
|
4
|
-
panes:
|
4
|
+
panes: RecordType[];
|
5
5
|
};
|
6
6
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
7
7
|
export default _default;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { Ref, Slots } from 'vue';
|
2
|
-
import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits,
|
3
|
-
import { Direction,
|
2
|
+
import { TabPaneProps as _TabPaneProps, TabKey, TabsEmits, TabType, TabPositon } from '../type';
|
3
|
+
import { Direction, EventTrigger, RecordType, Required, Size } from '../../_shared/type';
|
4
4
|
type TabsContext = {
|
5
5
|
computedActiveKey: Ref<TabKey>;
|
6
6
|
type: Ref<TabType>;
|
7
|
-
trigger: Ref<
|
7
|
+
trigger: Ref<EventTrigger>;
|
8
8
|
direction: Ref<Direction>;
|
9
9
|
position: Ref<TabPositon>;
|
10
10
|
editable: Ref<boolean>;
|
@@ -16,12 +16,12 @@ type TabsContext = {
|
|
16
16
|
size: Ref<Size>;
|
17
17
|
emits: TabsEmits;
|
18
18
|
};
|
19
|
-
type TabPaneProps =
|
19
|
+
type TabPaneProps = Required<_TabPaneProps>;
|
20
20
|
export type PaneNode = {
|
21
21
|
slots: Slots;
|
22
22
|
} & TabPaneProps;
|
23
23
|
declare const _default: () => {
|
24
|
-
provide: (props:
|
24
|
+
provide: (props: RecordType, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
25
|
computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
|
26
26
|
size: import('vue').ComputedRef<any>;
|
27
27
|
direction: import('vue').ComputedRef<Direction>;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
import { Direction,
|
2
|
+
import { Direction, RecordType } from '../../_shared/type';
|
3
3
|
declare const _default: (params: {
|
4
4
|
direction: Ref<Direction>;
|
5
|
-
panes: Ref<
|
5
|
+
panes: Ref<RecordType[]>;
|
6
6
|
listRef: Ref<HTMLDivElement | undefined>;
|
7
7
|
}) => {
|
8
8
|
navHeight: Ref<number, number>;
|
package/lib/Tabs/index.d.ts
CHANGED
@@ -19,7 +19,7 @@ declare const Tabs: {
|
|
19
19
|
"tab-click": (value: import('./type').TabKey) => any;
|
20
20
|
}, import('vue').PublicProps, {
|
21
21
|
size: import('..').Size;
|
22
|
-
trigger: import('
|
22
|
+
trigger: import('..').EventTrigger;
|
23
23
|
position: import('./type').TabPositon;
|
24
24
|
justify: boolean;
|
25
25
|
type: import('./type').TabType;
|
@@ -50,7 +50,7 @@ declare const Tabs: {
|
|
50
50
|
"onTab-click"?: ((value: import('./type').TabKey) => any) | undefined;
|
51
51
|
}>, {}, {}, {}, {}, {
|
52
52
|
size: import('..').Size;
|
53
|
-
trigger: import('
|
53
|
+
trigger: import('..').EventTrigger;
|
54
54
|
position: import('./type').TabPositon;
|
55
55
|
justify: boolean;
|
56
56
|
type: import('./type').TabType;
|
@@ -82,7 +82,7 @@ declare const Tabs: {
|
|
82
82
|
"tab-click": (value: import('./type').TabKey) => any;
|
83
83
|
}, string, {
|
84
84
|
size: import('..').Size;
|
85
|
-
trigger: import('
|
85
|
+
trigger: import('..').EventTrigger;
|
86
86
|
position: import('./type').TabPositon;
|
87
87
|
justify: boolean;
|
88
88
|
type: import('./type').TabType;
|
package/lib/Tabs/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Direction, Size } from '../_shared/type';
|
1
|
+
import { Direction, Size, EventTrigger } from '../_shared/type';
|
2
2
|
import { VNode } from 'vue';
|
3
3
|
export interface TabsProps {
|
4
4
|
activeKey?: TabKey;
|
@@ -15,7 +15,7 @@ export interface TabsProps {
|
|
15
15
|
headerPadding?: boolean;
|
16
16
|
autoSwitch?: boolean;
|
17
17
|
hideContent?: boolean;
|
18
|
-
trigger?:
|
18
|
+
trigger?: EventTrigger;
|
19
19
|
}
|
20
20
|
export interface TabsEmits {
|
21
21
|
(e: 'update:activeKey', value: TabKey): void;
|
@@ -42,4 +42,3 @@ export interface TabPaneSlots {
|
|
42
42
|
export type TabKey = string | number;
|
43
43
|
export type TabType = 'line' | 'card' | 'card-gutter' | 'text' | 'rounded' | 'capsule';
|
44
44
|
export type TabPositon = 'left' | 'right' | 'bottom' | 'top';
|
45
|
-
export type TabTrigger = 'click' | 'hover';
|
package/lib/Tag/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../_shared/utils/control.js"),a=require("../Spin/index.js"),c=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../_shared/utils/control.js"),a=require("../Spin/index.js"),c=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const n={key:0,class:"yc-tag-icon"},s={class:"yc-tag-label"},r=e.defineComponent({name:"Tag",__name:"index",props:{color:{default:"default"},size:{default:void 0},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:["update:visible","update:checked","close","check"],setup(r,{emit:d}){const u=r,i=d,{visible:m,defaultVisible:p,checked:y,defaultChecked:f,checkable:k,color:g}=e.toRefs(u),{size:h}=l.getGlobalConfig(u),v=t(m,p.value,e=>i("update:visible",e)),b=t(y,f.value,e=>i("update:checked",e)),B=e.computed(()=>o.TAG_PRESET_COLORS.includes(g.value)?"":g.value),_=(e,o)=>{"close"==e?(v.value=!1,i("close",o)):"check"==e&&k.value&&(b.value=!b.value,i("check",b.value,o))};return(l,t)=>e.unref(v)?(e.openBlock(),e.createElementBlock("label",{key:0,class:e.normalizeClass(["yc-tag",`yc-tag-color-${e.unref(g)}`,`yc-tag-size-${["small","medium","large"].includes(e.unref(h))?e.unref(h):"medium"}`,e.unref(o.TAG_PRESET_COLORS).includes(e.unref(g))?"yc-tag-preset-color":"yc-tag-custom-color",l.nowrap?"yc-tag-no-wrap":"yc-tag-wrap",{"yc-tag-loading":l.loading,"yc-tag-bordered":l.bordered,"yc-tag-checked":e.unref(b),"yc-tag-checkable":e.unref(k)}]),style:e.normalizeStyle({background:B.value}),onClick:t[1]||(t[1]=e=>_("check",e))},[l.$slots.icon?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(l.$slots,"icon")])):e.createCommentVNode("",!0),e.createElementVNode("span",s,[e.renderSlot(l.$slots,"default")]),l.closable?(e.openBlock(),e.createBlock(e.unref(c),{key:1,"hover-size":16,"hover-color":"rgba(255, 255, 255, 0.2)",class:"yc-tag-close-button",onClick:t[0]||(t[0]=e=>_("close",e))},{default:e.withCtx(()=>[l.$slots["close-icon"]?e.renderSlot(l.$slots,"close-icon",{key:0}):e.createCommentVNode("",!0)]),_:3})):e.createCommentVNode("",!0),l.loading?(e.openBlock(),e.createBlock(e.unref(a),{key:2,size:12,class:"yc-tag-loading-icon"})):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0)}});module.exports=r;
|
package/lib/Tag/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { Size } from '../_shared/type';
|
2
3
|
export interface TagProps {
|
3
4
|
color?: string;
|
4
5
|
size?: TagSize;
|
@@ -23,4 +24,4 @@ export interface TagSlots {
|
|
23
24
|
icon?: () => VNode[];
|
24
25
|
'close-icon'?: () => VNode[];
|
25
26
|
}
|
26
|
-
export type TagSize =
|
27
|
+
export type TagSize = Exclude<Size, 'mini'>;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("./hooks/useTextareaHeight.js"),t=require("../Input/hooks/useLimitedInput.js"),o=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),r=require("./hooks/useTextareaHeight.js"),t=require("../Input/hooks/useLimitedInput.js"),o=;/* empty css */;/* empty css */const a=;/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const n=["value","disabled","readonly","placeholder"],l=e.defineComponent({name:"Textarea",__name:"index",props:{modelValue:{default:void 0},defaultValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},error:{type:[Boolean,Object],default:void 0},maxLength:{default:void 0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function,default:e=>e.length},wordSlice:{type:Function,default:(e,r)=>e.slice(0,r)},enterPrevent:{type:Boolean,default:!1},showMirror:{type:Boolean,default:!1}},emits:["update:modelValue","input","change","clear","focus","blur","keydown"],setup(l,{expose:u,emit:s}){const i=l,d=s,{autoSize:c}=e.toRefs(i),p=e.ref(),f=e.ref(),{error:m,computedValue:y,showWordLimit:h,showClearBtn:v,curLength:x,maxLength:k,handleInput:B,handleComposition:b}=t({props:i,emits:d,inputRef:p}),{style:g}=r(f,c.value),w=async(e,r)=>{switch(e){case"input":B(r);break;case"change":d("change",y.value,r);break;case"focus":case"blur":d(e,r);break;case"clear":y.value="",d("clear",r)}};return u({getInputRef:()=>p.value,getMirrorRef:()=>f.value,focus(){var e;null==(e=p.value)||e.focus()},blur(){var e;null==(e=p.value)||e.blur()}}),(r,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-textarea-wrapper",{"yc-textarea-disabled":r.disabled,"yc-textarea-error":e.unref(m),"yc-textarea-auto-size":e.unref(c)}])},[e.unref(c)||r.showMirror?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-textarea-mirror",ref_key:"mirrorRef",ref:f},e.toDisplayString(e.unref(y)),513)):e.createCommentVNode("",!0),e.createElementVNode("textarea",{value:e.unref(y),disabled:r.disabled,readonly:r.readonly,placeholder:r.placeholder,style:e.normalizeStyle(e.unref(g)),class:"yc-textarea",ref_key:"inputRef",ref:p,onCompositionstart:t[0]||(t[0]=(...r)=>e.unref(b)&&e.unref(b)(...r)),onCompositionupdate:t[1]||(t[1]=(...r)=>e.unref(b)&&e.unref(b)(...r)),onCompositionend:t[2]||(t[2]=(...r)=>e.unref(b)&&e.unref(b)(...r)),onKeydown:t[3]||(t[3]=e=>{"Enter"==e.key&&r.enterPrevent&&e.preventDefault(),r.$emit("keydown",e)}),onInput:t[4]||(t[4]=e=>w("input",e)),onChange:t[5]||(t[5]=e=>w("change",e)),onFocus:t[6]||(t[6]=e=>w("focus",e)),onBlur:t[7]||(t[7]=e=>w("blur",e))},null,44,n),e.unref(h)?(e.openBlock(),e.createBlock(e.unref(a),{key:1,tag:"span",class:"yc-textarea-word-limit"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(x))+" / "+e.toDisplayString(e.unref(k)),1)]),_:1})):e.createCommentVNode("",!0),e.unref(v)?(e.openBlock(),e.createBlock(e.unref(o),{key:2,class:"yc-textarea-clear-button",onClick:t[8]||(t[8]=e=>w("clear",e))})):e.createCommentVNode("",!0)],2))}});module.exports=l;
|
@@ -1 +1 @@
|
|
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"),i=require("../_shared/utils/time.js"),o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("./hooks/useContext.js"),n=;/* empty css
|
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"),i=require("../_shared/utils/time.js"),o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("./hooks/useContext.js"),n=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const l=require("../_shared/icons/IconTime.vue.js"),a=require("../Trigger/index.js"),s=require("./TimePickerPanel.vue.js");;/* empty css */const u={key:0,class:"yc-picker-prefix"},c=["value","placeholder","disabled","readonly"],d=["value","placeholder","disabled","readonly"],p={class:"yc-picker-suffix"},f={class:"yc-picker-suffix-icon"},m=e.defineComponent({name:"TimePicker",inheritAttrs:!1,__name:"TimePicker",props:{type:{default:"time"},modelValue:{default:void 0},defaultValue:{default:e=>"time-range"==e.type?[]:""},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},format:{default:"HH:mm:ss"},placeholder:{default:void 0},size:{default:void 0},popupContainer:{default:void 0},step:{},disabledHours:{type:Function,default:()=>[]},disabledMinutes:{type:Function,default:()=>[]},disabledSeconds:{type:Function,default:()=>[]},hideDisabledOptions:{type:Boolean,default:!1},disableConfirm:{type:Boolean},position:{default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},unmountOnClose:{type:Boolean,default:!1}},emits:["update:modelValue","update:popupVisible","change","select","clear","popup-visible-change"],setup(m,{emit:y}){const v=m,k=y,{size:h}=o.getGlobalConfig(v),{type:b,computedValue:g,computedVisible:x,showClearBtn:C,readonly:V,disabled:B,curIndex:q,inputRefs:_,format:j,placeholder:N}=t().provide(v,k),E=e.ref(),w=()=>{g.value="time-range"==b.value?[]:"",k("clear")},P=e=>{var i;q.value=e,x.value=!0,null==(i=E.value)||i.scroll(r.isArray(g.value)?g.value[e]:g.value)},$=()=>{if(x.value=!1,!r.isArray(g.value))return;const e=g.value[0],o=g.value[1];e&&o?i.isValidTimeRange(e,o,j.value)||(g.value=g.value.reverse()):g.value=[]};return(i,o)=>(e.openBlock(),e.createBlock(e.unref(a),e.mergeProps({"popup-visible":e.unref(x),position:i.position,"popup-container":i.popupContainer,"popup-offset":4,"unmount-on-close":i.unmountOnClose,disabled:e.unref(B)||e.unref(V),"on-click-out-side":$,"auto-fit-popup-min-width":!1,"auto-fit-popup-width":!1,trigger:"click","animation-name":"slide-dynamic-origin","prevent-focus":""},i.triggerProps),{content:e.withCtx(()=>[e.createVNode(s,{ref_key:"panelRef",ref:E},e.createSlots({_:2},[i.$slots.extra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(i.$slots,"extra")]),key:"0"}:void 0]),1536)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-picker",`yc-picker-size-${e.unref(h)}`,i.$attrs.class,{"yc-picker-disabled":e.unref(B),"yc-picker-error":i.error,"yc-picker-focus":e.unref(x),"yc-picker-has-prefix":i.$slots.prefix,"yc-picker-allow-clear":e.unref(C),"yc-picker-range":"time-range"==e.unref(b)}]),style:e.normalizeStyle({...i.$attrs.style||{}})},[i.$slots.prefix?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(i.$slots,"prefix")])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-picker-input",{"yc-picker-input-active":!e.unref(q)&&e.unref(x)}]),onClick:o[0]||(o[0]=e.withModifiers(e=>P(0),["stop"]))},[e.createElementVNode("input",{value:e.unref(r.isArray)(e.unref(g))?e.unref(g)[0]:e.unref(g),placeholder:e.unref(r.isArray)(e.unref(N))?e.unref(N)[0]:e.unref(N),disabled:e.unref(B),readonly:e.unref(V),ref:r=>e.unref(_)[0]=r,class:"yc-picker-start-time"},null,8,c)],2),"time-range"==e.unref(b)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o[2]||(o[2]=e.createElementVNode("span",{class:"yc-picker-separator"}," - ",-1)),e.createElementVNode("div",{class:e.normalizeClass(["yc-picker-input",{"yc-picker-input-active":e.unref(q)&&e.unref(x)}]),onClick:o[1]||(o[1]=e.withModifiers(e=>P(1),["stop"]))},[e.createElementVNode("input",{value:e.unref(r.isArray)(e.unref(g))?e.unref(g)[1]:e.unref(g),placeholder:e.unref(r.isArray)(e.unref(N))?e.unref(N)[1]:e.unref(N),disabled:e.unref(B),readonly:e.unref(V),ref:r=>e.unref(_)[1]=r,class:"yc-picker-start-time"},null,8,d)],2)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",p,[e.unref(C)?(e.openBlock(),e.createBlock(e.unref(n),{key:0,size:14,class:"yc-picker-clear-icon",onClick:w})):e.createCommentVNode("",!0),e.createElementVNode("span",f,[e.renderSlot(i.$slots,"suffix-icon",{},()=>[e.createVNode(e.unref(l))])])])],6)]),_:3},16,["popup-visible","position","popup-container","unmount-on-close","disabled"]))}});module.exports=m;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { TimePickerEmits, TimePickerType, TimePickerValue, TimeUnit, DisabledHours, DisabledMinutes, DisabledSeconds } from '../type';
|
3
|
-
import {
|
3
|
+
import { RecordType } from '../../_shared/type';
|
4
4
|
type TimePickerContext = {
|
5
5
|
type: Ref<TimePickerType>;
|
6
6
|
format: Ref<string>;
|
@@ -25,7 +25,7 @@ type TimePickerCell = {
|
|
25
25
|
value: number;
|
26
26
|
};
|
27
27
|
declare const _default: () => {
|
28
|
-
provide: (props:
|
28
|
+
provide: (props: RecordType, emits: TimePickerEmits) => {
|
29
29
|
computedValue: import('vue').WritableComputedRef<TimePickerValue, TimePickerValue>;
|
30
30
|
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
31
31
|
showClearBtn: import('vue').ComputedRef<boolean | "" | 0>;
|
package/lib/TimePicker/type.d.ts
CHANGED
@@ -42,8 +42,8 @@ export interface TimePickerSlots {
|
|
42
42
|
'suffix-icon'?: () => VNode[];
|
43
43
|
extra?: () => VNode[];
|
44
44
|
}
|
45
|
-
export type TimeUnit = 'hour' | 'minute' | 'second';
|
46
45
|
export type TimePickerValue = string | number | Date | (string | number | Date)[];
|
46
|
+
export type TimeUnit = 'hour' | 'minute' | 'second';
|
47
47
|
export type TimePickerType = 'time' | 'time-range';
|
48
48
|
export type TimePickerPosition = 'top' | 'tl' | 'tr' | 'bottom' | 'bl' | 'br';
|
49
49
|
export type DisabledHours = () => number[];
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { TimelineLabelPosition, TimelineMode } from '../type';
|
3
|
-
import {
|
3
|
+
import { Direction, RecordType } from '../../_shared/type';
|
4
4
|
type TimelineContext = {
|
5
5
|
direction: Ref<Direction>;
|
6
6
|
mode: Ref<TimelineMode>;
|
@@ -8,12 +8,12 @@ type TimelineContext = {
|
|
8
8
|
labelPosition: Ref<TimelineLabelPosition>;
|
9
9
|
};
|
10
10
|
declare const _default: () => {
|
11
|
-
provide: (props:
|
11
|
+
provide: (props: RecordType) => {
|
12
12
|
direction: Ref<Direction, Direction>;
|
13
13
|
mode: import('vue').ComputedRef<TimelineMode>;
|
14
|
-
timelineItems: import('vue').ComputedRef<(import('
|
14
|
+
timelineItems: import('vue').ComputedRef<(import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
15
15
|
[key: string]: any;
|
16
|
-
}>)[]>;
|
16
|
+
}> | RecordType)[]>;
|
17
17
|
};
|
18
18
|
inject: () => TimelineContext;
|
19
19
|
};
|