yc-design-vue 2.0.2 → 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 +2 -2
- 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 +1 -1
- 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.vue.js +1 -23
- package/es/_shared/icons/IconSeparator.vue2.js +23 -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.vue.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/Avatar/Avatar.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=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"),r=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 a=require("../_shared/icons/IconImageClose.vue.js"),o=require("./hooks/useContext.js"),l={key:1,class:"yc-avatar-image"},s=["src"],n={key:1,class:"yc-avatar-image-icon"},i=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(i,{emit:c}){const u=i,d=c,{size:m,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")}),j=e=>{f.value=!0,d("error",e)};return v.value&&r.useResizeObserver(k,()=>{const e=m.value??p.value.offsetWidth,r=e/(k.value.offsetWidth+8);g.value=e&&r<1?r:1}),(r,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-avatar",`yc-avatar-shape-${e.unref(y)}`]),style:e.normalizeStyle({width:e.unref(t.valueToPx)(e.unref(m)),height:e.unref(t.valueToPx)(e.unref(m))}),ref_key:"avatarRef",ref:p,onClick:o[1]||(o[1]=e=>r.$emit("click",e))},[r.$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(r.$slots,"default")],6)):r.imageUrl?(e.openBlock(),e.createElementBlock("span",l,[f.value?(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(e.unref(a))])):(e.openBlock(),e.createElementBlock("img",{key:0,src:r.imageUrl,style:e.normalizeStyle({objectFit:r.objectFit}),alt:"avatar",onLoad:o[0]||(o[0]=e=>r.$emit("load",e)),onError:j},null,44,s))])):e.createCommentVNode("",!0),r.$slots["trigger-icon"]?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([{"yc-avatar-trigger-icon-button":"button"==r.triggerType,"yc-avatar-trigger-icon-mask":"mask"==r.triggerType}]),style:e.normalizeStyle(r.triggerIconStyle)},[e.renderSlot(r.$slots,"trigger-icon")],6)):e.createCommentVNode("",!0)],6))}});module.exports=i;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { RecordType } from '../../_shared/type';
|
2
2
|
declare const _default: () => {
|
3
|
-
provide: (props:
|
4
|
-
inject: (props:
|
3
|
+
provide: (props: RecordType) => void;
|
4
|
+
inject: (props: RecordType) => {
|
5
5
|
shape: import('vue').ComputedRef<any>;
|
6
6
|
size: import('vue').ComputedRef<any>;
|
7
7
|
autoFixFontSize: import('vue').ComputedRef<any>;
|
package/lib/Avatar/index.d.ts
CHANGED
@@ -15,7 +15,7 @@ declare const Avatar: {
|
|
15
15
|
load: (ev: Event) => any;
|
16
16
|
}, import('vue').PublicProps, {
|
17
17
|
size: number;
|
18
|
-
objectFit: import('
|
18
|
+
objectFit: import('..').ObjectFit;
|
19
19
|
shape: import('./type').AvatarShape;
|
20
20
|
autoFixFontSize: boolean;
|
21
21
|
imageUrl: string;
|
@@ -37,7 +37,7 @@ declare const Avatar: {
|
|
37
37
|
onLoad?: ((ev: Event) => any) | undefined;
|
38
38
|
}>, {}, {}, {}, {}, {
|
39
39
|
size: number;
|
40
|
-
objectFit: import('
|
40
|
+
objectFit: import('..').ObjectFit;
|
41
41
|
shape: import('./type').AvatarShape;
|
42
42
|
autoFixFontSize: boolean;
|
43
43
|
imageUrl: string;
|
@@ -57,7 +57,7 @@ declare const Avatar: {
|
|
57
57
|
load: (ev: Event) => any;
|
58
58
|
}, string, {
|
59
59
|
size: number;
|
60
|
-
objectFit: import('
|
60
|
+
objectFit: import('..').ObjectFit;
|
61
61
|
shape: import('./type').AvatarShape;
|
62
62
|
autoFixFontSize: boolean;
|
63
63
|
imageUrl: string;
|
package/lib/Avatar/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
|
+
import { Shape, ObjectFit } from '../_shared/type';
|
2
3
|
import { TriggerProps } from '../Trigger';
|
3
4
|
export interface AvatarProps {
|
4
5
|
shape?: AvatarShape;
|
@@ -30,6 +31,5 @@ export interface AvatarGroupProps {
|
|
30
31
|
export interface AvatarGroupSlots {
|
31
32
|
default?: () => VNode[];
|
32
33
|
}
|
33
|
-
export type AvatarShape =
|
34
|
+
export type AvatarShape = Exclude<Shape, 'circle'>;
|
34
35
|
export type AvatarTriggerType = 'mask' | 'button';
|
35
|
-
export type ObjectFit = 'cover' | 'contain' | 'fill' | 'none';
|
package/lib/BackTop/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
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"),require("../_shared/utils/locale.js"),/* empty css
|
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"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const o=require("../_shared/icons/IconToTop.vue.js"),s=require("../node_modules/b-tween/dist/b-tween.es.js"),n=require("../node_modules/@vueuse/core/index.js"),i=require("../Button/index.js"),u=e.defineComponent({name:"BackTop",__name:"index",props:{visibleHeight:{default:200},targetContainer:{},easeing:{default:"quadOut"},duration:{default:200}},setup(u){const a=u,{targetContainer:l,easeing:d,duration:c}=e.toRefs(a),v=e.ref(),p=e.ref(0),f=e.computed(()=>t.isUndefined(l.value)?r.findFirstScrollableParent(v.value):r.getElement(l.value)),m=()=>{f.value&&new s({from:{scroll:f.value.scrollTop},to:{scroll:0},duration:c.value,easing:d.value,onUpdate:e=>{f.value.scrollTop=e.scroll}}).start()};return n.useEventListener(f,"scroll",()=>{p.value=f.value.scrollTop}),(r,t)=>(e.openBlock(),e.createBlock(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-back-top",ref_key:"buttonRef",ref:v,onClick:m},[e.renderSlot(r.$slots,"default",{},()=>[e.createVNode(e.unref(i.default),{type:"primary",shape:"circle",size:"large"},{default:e.withCtx(()=>[e.createVNode(e.unref(o))]),_:1})])],512),[[e.vShow,p.value>=r.visibleHeight]])]),_:3}))}});module.exports=u;
|
package/lib/BackTop/type.d.ts
CHANGED
package/lib/Badge/type.d.ts
CHANGED
@@ -1 +1 @@
|
|
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("../_shared/utils/locale.js"),/* empty css
|
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("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const r=require("../Dropdown/index.js"),t=require("../Dropdown/Doption.vue.js");;/* empty css */const l={class:"yc-breadcrumb-item"},s=["href"],n={key:2,class:"yc-breadcrumb-item-dropdown-icon"},d=e.defineComponent({name:"BreadcrumbItem",__name:"BreadcrumbItem",props:{separator:{default:""},droplist:{default:()=>[]},dropdownProps:{default:()=>({})},path:{default:""},showSeparator:{type:Boolean,default:!0}},setup(d){const a=e.ref(!1);return(d,i)=>(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({"popup-visible":a.value,"onUpdate:popupVisible":i[0]||(i[0]=e=>a.value=e)},d.dropdownProps,{disabled:!d.droplist.length&&!d.$slots.droplist}),{content:e.withCtx(()=>[e.renderSlot(d.$slots,"droplist",{},()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.droplist,o=>(e.openBlock(),e.createBlock(e.unref(t),{key:o.path,value:o.path},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.label),1)]),_:2},1032,["value"]))),128))])]),default:e.withCtx(()=>[e.createElementVNode("div",l,[d.path?(e.openBlock(),e.createElementBlock("a",{key:0,href:`#${d.path}`},[e.renderSlot(d.$slots,"default")],8,s)):e.renderSlot(d.$slots,"default",{key:1}),d.droplist.length||d.$slots.droplist?(e.openBlock(),e.createElementBlock("div",n,[e.createVNode(e.unref(o),{rotate:a.value?180:0},null,8,["rotate"])])):e.createCommentVNode("",!0)])]),_:3},16,["popup-visible","disabled"]))}});module.exports=d;
|
@@ -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 r=require("../_shared/icons/IconMore.vue.js"),o=require("./BreadcrumbItem.vue.js");;/* empty css */const s=e.defineComponent({__name:"BreadcrumbMore",props:{slots:{}},setup:s=>(s,n)=>(e.openBlock(),e.createBlock(o,null,{default:e.withCtx(()=>[s.slots["more-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.slots["more-icon"]),{key:0})):(e.openBlock(),e.createBlock(e.unref(r),{key:1}))]),_:1}))});module.exports=s;
|
@@ -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");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");const r=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* 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,n=e.computed(()=>r.isUndefined(s.itemSeparatorSlots)?s.separatorSlots||s.separator:s.itemSeparatorSlots||s.itemSeparator||s.separatorSlots||s.separator),i=()=>{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,[n.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:0})):(e.openBlock(),e.createBlock(e.unref(o),{key:1}))]))}});module.exports=a;
|
package/lib/Breadcrumb/type.d.ts
CHANGED
@@ -24,7 +24,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonProps, {}, {}
|
|
24
24
|
type: import('./type').ButtonType;
|
25
25
|
loading: boolean;
|
26
26
|
href: string;
|
27
|
-
shape: import('
|
27
|
+
shape: import('..').Shape;
|
28
28
|
status: import('./type').ButtonStatus;
|
29
29
|
long: boolean;
|
30
30
|
htmlType: import('./type').ButtonHtmlType;
|
@@ -10,7 +10,7 @@ declare const __VLS_component: import('vue').DefineComponent<ButtonGroupProps, {
|
|
10
10
|
size: import('..').Size;
|
11
11
|
disabled: boolean;
|
12
12
|
type: import('./type').ButtonType;
|
13
|
-
shape: import('
|
13
|
+
shape: import('..').Shape;
|
14
14
|
status: import('./type').ButtonStatus;
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ButtonType,
|
2
|
-
import { Size,
|
1
|
+
import { ButtonType, ButtonStatus } from '../type';
|
2
|
+
import { Size, Shape, RecordType } from '../../_shared/type';
|
3
3
|
declare const _default: () => {
|
4
|
-
provide: (props:
|
5
|
-
inject: (props:
|
4
|
+
provide: (props: RecordType) => void;
|
5
|
+
inject: (props: RecordType) => {
|
6
6
|
disabled: import('vue').ComputedRef<boolean>;
|
7
7
|
type: import('vue').ComputedRef<ButtonType>;
|
8
8
|
status: import('vue').ComputedRef<ButtonStatus>;
|
9
|
-
shape: import('vue').ComputedRef<
|
9
|
+
shape: import('vue').ComputedRef<Shape>;
|
10
10
|
size: import('vue').ComputedRef<Size>;
|
11
11
|
};
|
12
12
|
};
|
package/lib/Button/index.d.ts
CHANGED
@@ -23,7 +23,7 @@ declare const Button: {
|
|
23
23
|
type: import('./type').ButtonType;
|
24
24
|
loading: boolean;
|
25
25
|
href: string;
|
26
|
-
shape: import('
|
26
|
+
shape: import('..').Shape;
|
27
27
|
status: import('./type').ButtonStatus;
|
28
28
|
long: boolean;
|
29
29
|
htmlType: import('./type').ButtonHtmlType;
|
@@ -47,7 +47,7 @@ declare const Button: {
|
|
47
47
|
type: import('./type').ButtonType;
|
48
48
|
loading: boolean;
|
49
49
|
href: string;
|
50
|
-
shape: import('
|
50
|
+
shape: import('..').Shape;
|
51
51
|
status: import('./type').ButtonStatus;
|
52
52
|
long: boolean;
|
53
53
|
htmlType: import('./type').ButtonHtmlType;
|
@@ -74,7 +74,7 @@ declare const Button: {
|
|
74
74
|
type: import('./type').ButtonType;
|
75
75
|
loading: boolean;
|
76
76
|
href: string;
|
77
|
-
shape: import('
|
77
|
+
shape: import('..').Shape;
|
78
78
|
status: import('./type').ButtonStatus;
|
79
79
|
long: boolean;
|
80
80
|
htmlType: import('./type').ButtonHtmlType;
|
@@ -87,7 +87,7 @@ declare const Button: {
|
|
87
87
|
size: import('..').Size;
|
88
88
|
disabled: boolean;
|
89
89
|
type: import('./type').ButtonType;
|
90
|
-
shape: import('
|
90
|
+
shape: import('..').Shape;
|
91
91
|
status: import('./type').ButtonStatus;
|
92
92
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
93
93
|
P: {};
|
@@ -100,7 +100,7 @@ declare const Button: {
|
|
100
100
|
size: import('..').Size;
|
101
101
|
disabled: boolean;
|
102
102
|
type: import('./type').ButtonType;
|
103
|
-
shape: import('
|
103
|
+
shape: import('..').Shape;
|
104
104
|
status: import('./type').ButtonStatus;
|
105
105
|
}>;
|
106
106
|
__isFragment?: never;
|
@@ -110,7 +110,7 @@ declare const Button: {
|
|
110
110
|
size: import('..').Size;
|
111
111
|
disabled: boolean;
|
112
112
|
type: import('./type').ButtonType;
|
113
|
-
shape: import('
|
113
|
+
shape: import('..').Shape;
|
114
114
|
status: import('./type').ButtonStatus;
|
115
115
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
116
116
|
$slots: Readonly<import('./type').ButtonGroupSlots> & import('./type').ButtonGroupSlots;
|
package/lib/Button/type.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { Size } from '../_shared/type';
|
2
1
|
import { VNode } from 'vue';
|
2
|
+
import { Shape, Size } from '../_shared/type';
|
3
3
|
export interface ButtonProps {
|
4
4
|
type?: ButtonType;
|
5
|
-
shape?:
|
5
|
+
shape?: Shape;
|
6
6
|
status?: ButtonStatus;
|
7
7
|
size?: Size;
|
8
8
|
long?: boolean;
|
@@ -26,14 +26,13 @@ export interface ButtonSlots {
|
|
26
26
|
export interface ButtonGroupProps {
|
27
27
|
type?: ButtonType;
|
28
28
|
status?: ButtonStatus;
|
29
|
-
shape?:
|
29
|
+
shape?: Shape;
|
30
30
|
size?: Size;
|
31
31
|
disabled?: boolean;
|
32
32
|
}
|
33
33
|
export interface ButtonGroupSlots {
|
34
34
|
default?: () => VNode[];
|
35
35
|
}
|
36
|
-
export type ButtonStatus = '
|
37
|
-
export type ButtonShape = 'square' | 'circle' | 'round';
|
36
|
+
export type ButtonStatus = 'success' | 'warning' | 'danger' | 'normal';
|
38
37
|
export type ButtonType = 'primary' | 'secondary' | 'dashed' | 'outline' | 'text';
|
39
38
|
export type ButtonHtmlType = 'button' | 'reset' | 'submit';
|
@@ -1 +1 @@
|
|
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");const t=require("../_shared/utils/locale.js"),r=require("../_shared/utils/control.js"),o=;/* empty css
|
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");const t=require("../_shared/utils/locale.js"),r=require("../_shared/utils/control.js"),o=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const l=require("../_shared/icons/IconArrowRight.vue.js"),n=require("../Button/index.js");require("../Radio/index.js");const d=require("./CalendarMonth.vue.js");;/* empty css */const u=require("./CalendarYear.vue.js");;/* empty css */const s=require("../Radio/RadioGroup.vue.js");;/* empty css */const c={class:"yc-calendar-header"},i={class:"yc-calendar-header-left"},m={class:"yc-calendar-header-value"},v={class:"yc-calendar-header-right"},f={class:"yc-calendar-body"},h=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(h,{emit:p}){const y=h,V=p,{modelValue:j,defaultValue:q,mode:C,defaultMode:x,modes:_}=e.toRefs(y),k=r(j,q.value,e=>{V("update:modelValue",e),V("change",e)}),{t:N}=t.useI18n(),w=e.ref({}),g=e.computed(()=>{const{year:e,month:t}=w.value;return a().set("year",e).set("month",t).format(N("calendar.formatMonth"))});e.watch(()=>k.value,e=>{const t=e?a(e):a();w.value={year:t.year(),month:t.month()+1,day:t.date()}},{immediate:!0});const R=r(C,x.value,e=>{V("update:mode",e),V("panel-change",k.value)}),z=e.computed(()=>_.value.map(e=>({label:N(`calendar.view.${e}`),value:e}))),B=e=>{k.value=new Date(e.fullDate)},D=e=>{if("today"==e)return void(k.value=new Date);const{year:a,month:t}=w.value;if("next"==e){const e=t+1>12?1:t+1,r=t+1>12||"year"==R.value?1:0;if(w.value.year=a+r,"year"==R.value)return;w.value.month=e}else{const e=t-1<1?12:t-1,r=t-1<1||"year"==R.value?-1:0;if(w.value.year=a+r,"year"==R.value)return;w.value.month=e}};return(a,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-calendar",`yc-calendar-mode-${e.unref(R)}`])},[e.createElementVNode("div",c,[e.createElementVNode("div",i,[e.createVNode(e.unref(o),{class:"yc-calendar-header-icon",role:"button",tabindex:"0",size:28,"hover-size":28,onClick:t[0]||(t[0]=e=>D("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(l),{rotate:180})]),_:1}),e.createElementVNode("div",m,[e.renderSlot(a.$slots,"header",{year:w.value.year,month:w.value.month},()=>[e.createTextVNode(e.toDisplayString(g.value),1)])]),e.createVNode(e.unref(o),{role:"button",tabindex:"0",class:"yc-calendar-header-icon",size:28,"hover-size":28,onClick:t[1]||(t[1]=e=>D("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(l))]),_:1}),e.createVNode(e.unref(n.default),{onClick:t[2]||(t[2]=e=>D("today")),size:"small"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(N)("calendar.today")),1)]),_:1})]),e.createElementVNode("div",v,[e.createVNode(e.unref(s),{modelValue:e.unref(R),"onUpdate:modelValue":t[3]||(t[3]=a=>e.isRef(R)?R.value=a:null),options:z.value,type:"button",size:"small"},null,8,["modelValue","options"])])]),e.createElementVNode("div",f,["month"==e.unref(R)?(e.openBlock(),e.createBlock(d,{key:0,"computed-value":e.unref(k),recordDate:w.value,onCellClick:B},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)))]),key:"0"}:void 0]),1032,["computed-value","recordDate"])):(e.openBlock(),e.createBlock(u,{key:1,"computed-value":e.unref(k),"record-date":w.value,onCellClick:B},e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(t=>[e.renderSlot(a.$slots,"default",e.normalizeProps(e.guardReactiveProps(t)))]),key:"0"}:void 0]),1032,["computed-value","record-date"]))])],2))}});module.exports=h;
|
package/lib/Card/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { CSSProperties, VNode } from 'vue';
|
2
|
+
import { Size } from '../_shared/type';
|
2
3
|
export interface CardProps {
|
3
4
|
bordered?: boolean;
|
4
5
|
loading?: boolean;
|
@@ -31,4 +32,4 @@ export interface CardGridProps {
|
|
31
32
|
export interface CardGridSlots {
|
32
33
|
default?: () => VNode[];
|
33
34
|
}
|
34
|
-
export type CardSize = '
|
35
|
+
export type CardSize = Exclude<Size, 'mini' | 'large'>;
|
@@ -13,9 +13,9 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {},
|
|
13
13
|
onChange?: ((index: number, preIndex: number, isManual: boolean) => any) | undefined;
|
14
14
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
15
15
|
}>, {
|
16
|
-
trigger: import('
|
16
|
+
trigger: import('..').EventTrigger;
|
17
17
|
showArrow: import('./type').CarouselShowArrow;
|
18
|
-
arrowClass: import('
|
18
|
+
arrowClass: import('..').ClassName;
|
19
19
|
animationName: import('./type').CarouselAnimationName;
|
20
20
|
direction: import('..').Direction;
|
21
21
|
transitionTimingFunction: string;
|
@@ -25,7 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<CarouselProps, {},
|
|
25
25
|
autoPlay: import('./type').AutoPlay;
|
26
26
|
indicatorType: import('./type').IndicatorType;
|
27
27
|
indicatorPosition: import('./type').IndicatorPosition;
|
28
|
-
indicatorClass: import('
|
28
|
+
indicatorClass: import('..').ClassName;
|
29
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
30
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
31
31
|
export default _default;
|
@@ -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 r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("./hooks/useContext.js"),t=e.defineComponent({__name:"CarouselArrow",props:{type:{}},emits:["change"],setup(t){const s=t,{type:n}=e.toRefs(s),{showArrow:u,direction:a,arrowClass:c,computedCurrent:l}=o().inject(),i=e.computed(()=>"next"==n.value?"horizontal"==a.value?0:90:"horizontal"==a.value?180:-90),d=e.computed(()=>"next"==n.value?"horizontal"==a.value?"yc-carousel-arrow-right":"yc-carousel-arrow-bottom":"horizontal"==a.value?"yc-carousel-arrow-left":"yc-carousel-arrow-top");return(o,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-carousel-arrow",d.value,e.unref(c),{"yc-carousel-arrow-show-hover":"hover"==e.unref(u)}]),onClick:t[0]||(t[0]=r=>o.$emit("change","next"==e.unref(n)?e.unref(l)+1:e.unref(l)-1))},[e.createVNode(e.unref(r),{rotate:i.value},null,8,["rotate"])],2))}});module.exports=t;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
import { ClassName } from '../_shared/type';
|
1
|
+
import { IndicatorType, IndicatorPosition } from './type';
|
2
|
+
import { ClassName, EventTrigger } from '../_shared/type';
|
3
3
|
type __VLS_Props = {
|
4
|
-
trigger:
|
4
|
+
trigger: EventTrigger;
|
5
5
|
indicatorType: IndicatorType;
|
6
6
|
indicatorPosition: IndicatorPosition;
|
7
7
|
indicatorClass: ClassName;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
2
|
import { CarouselAnimationName, CarouselEmits, CarouselShowArrow } from '../type';
|
3
|
-
import { ClassName, Direction,
|
3
|
+
import { ClassName, Direction, RecordType } from '../../_shared/type';
|
4
4
|
type CarouselContext = {
|
5
5
|
length: Ref<number>;
|
6
6
|
computedCurrent: Ref<number>;
|
@@ -16,8 +16,8 @@ type CarouselContext = {
|
|
16
16
|
};
|
17
17
|
type MoveType = 'positive' | 'negative';
|
18
18
|
declare const _default: () => {
|
19
|
-
provide: (props:
|
20
|
-
carouselItems: import('vue').ComputedRef<
|
19
|
+
provide: (props: RecordType, emits: CarouselEmits) => {
|
20
|
+
carouselItems: import('vue').ComputedRef<RecordType[]>;
|
21
21
|
computedCurrent: import('vue').WritableComputedRef<number, number>;
|
22
22
|
length: import('vue').ComputedRef<number>;
|
23
23
|
autoPlay: Ref<import('..').AutoPlay, import('..').AutoPlay>;
|
package/lib/Carousel/index.d.ts
CHANGED
@@ -12,9 +12,9 @@ declare const Carousel: {
|
|
12
12
|
change: (index: number, preIndex: number, isManual: boolean) => any;
|
13
13
|
"update:current": (index: number) => any;
|
14
14
|
}, import('vue').PublicProps, {
|
15
|
-
trigger: import('
|
15
|
+
trigger: import('..').EventTrigger;
|
16
16
|
showArrow: import('./type').CarouselShowArrow;
|
17
|
-
arrowClass: import('
|
17
|
+
arrowClass: import('..').ClassName;
|
18
18
|
animationName: import('./type').CarouselAnimationName;
|
19
19
|
direction: import('..').Direction;
|
20
20
|
transitionTimingFunction: string;
|
@@ -24,7 +24,7 @@ declare const Carousel: {
|
|
24
24
|
autoPlay: import('./type').AutoPlay;
|
25
25
|
indicatorType: import('./type').IndicatorType;
|
26
26
|
indicatorPosition: import('./type').IndicatorPosition;
|
27
|
-
indicatorClass: import('
|
27
|
+
indicatorClass: import('..').ClassName;
|
28
28
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
29
29
|
P: {};
|
30
30
|
B: {};
|
@@ -36,9 +36,9 @@ declare const Carousel: {
|
|
36
36
|
onChange?: ((index: number, preIndex: number, isManual: boolean) => any) | undefined;
|
37
37
|
"onUpdate:current"?: ((index: number) => any) | undefined;
|
38
38
|
}>, {}, {}, {}, {}, {
|
39
|
-
trigger: import('
|
39
|
+
trigger: import('..').EventTrigger;
|
40
40
|
showArrow: import('./type').CarouselShowArrow;
|
41
|
-
arrowClass: import('
|
41
|
+
arrowClass: import('..').ClassName;
|
42
42
|
animationName: import('./type').CarouselAnimationName;
|
43
43
|
direction: import('..').Direction;
|
44
44
|
transitionTimingFunction: string;
|
@@ -48,7 +48,7 @@ declare const Carousel: {
|
|
48
48
|
autoPlay: import('./type').AutoPlay;
|
49
49
|
indicatorType: import('./type').IndicatorType;
|
50
50
|
indicatorPosition: import('./type').IndicatorPosition;
|
51
|
-
indicatorClass: import('
|
51
|
+
indicatorClass: import('..').ClassName;
|
52
52
|
}>;
|
53
53
|
__isFragment?: never;
|
54
54
|
__isTeleport?: never;
|
@@ -60,9 +60,9 @@ declare const Carousel: {
|
|
60
60
|
change: (index: number, preIndex: number, isManual: boolean) => any;
|
61
61
|
"update:current": (index: number) => any;
|
62
62
|
}, string, {
|
63
|
-
trigger: import('
|
63
|
+
trigger: import('..').EventTrigger;
|
64
64
|
showArrow: import('./type').CarouselShowArrow;
|
65
|
-
arrowClass: import('
|
65
|
+
arrowClass: import('..').ClassName;
|
66
66
|
animationName: import('./type').CarouselAnimationName;
|
67
67
|
direction: import('..').Direction;
|
68
68
|
transitionTimingFunction: string;
|
@@ -72,7 +72,7 @@ declare const Carousel: {
|
|
72
72
|
autoPlay: import('./type').AutoPlay;
|
73
73
|
indicatorType: import('./type').IndicatorType;
|
74
74
|
indicatorPosition: import('./type').IndicatorPosition;
|
75
|
-
indicatorClass: import('
|
75
|
+
indicatorClass: import('..').ClassName;
|
76
76
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
77
77
|
$slots: Readonly<import('./type').CarouselSlots> & import('./type').CarouselSlots;
|
78
78
|
}) & {
|
package/lib/Carousel/type.d.ts
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { ClassName, Direction } from '../_shared/type';
|
2
1
|
import { VNode } from 'vue';
|
2
|
+
import { ClassName, Direction, EventTrigger } from '../_shared/type';
|
3
3
|
export interface CarouselProps {
|
4
4
|
current?: number;
|
5
5
|
defaultCurrent?: number;
|
6
6
|
autoPlay?: AutoPlay;
|
7
7
|
moveSpeed?: number;
|
8
8
|
animationName?: CarouselAnimationName;
|
9
|
-
trigger?:
|
9
|
+
trigger?: EventTrigger;
|
10
10
|
direction?: Direction;
|
11
11
|
showArrow?: CarouselShowArrow;
|
12
12
|
arrowClass?: ClassName;
|
@@ -33,4 +33,3 @@ export type AutoPlay = boolean | {
|
|
33
33
|
};
|
34
34
|
export type IndicatorPosition = 'bottom' | 'top' | 'left' | 'right' | 'outer';
|
35
35
|
export type IndicatorType = 'line' | 'dot' | 'slider' | 'never';
|
36
|
-
export type IndicatorTrigger = 'click' | 'hover';
|
@@ -1,24 +1,12 @@
|
|
1
|
-
import { CascaderProps } from './type';
|
1
|
+
import { CascaderProps, CascaderOptionValue } from './type';
|
2
2
|
declare function __VLS_template(): {
|
3
3
|
attrs: Partial<{}>;
|
4
4
|
slots: {
|
5
5
|
label?(_: {
|
6
|
-
tag: import('
|
6
|
+
tag: import('..').RecordType;
|
7
7
|
}): any;
|
8
8
|
label?(_: {
|
9
|
-
data:
|
10
|
-
id: string | undefined;
|
11
|
-
label: string;
|
12
|
-
level?: number;
|
13
|
-
index?: number;
|
14
|
-
nodePath?: import('./type').CascaderOptionProps[];
|
15
|
-
value?: import('./type').CascaderOptionValue;
|
16
|
-
render?: import('vue').RenderFunction;
|
17
|
-
disabled?: boolean;
|
18
|
-
tagProps?: import('..').TagProps;
|
19
|
-
children?: import('./type').CascaderOption[];
|
20
|
-
isLeaf?: boolean;
|
21
|
-
} | null;
|
9
|
+
data: import('..').RecordType;
|
22
10
|
}): any;
|
23
11
|
prefix?(_: {}): any;
|
24
12
|
prefix?(_: {}): any;
|
@@ -40,7 +28,7 @@ declare function __VLS_template(): {
|
|
40
28
|
readonly wordLength?: import('../Input').WordLength | undefined;
|
41
29
|
readonly wordSlice?: import('../Input').WordSlice | undefined;
|
42
30
|
readonly showWordLimit?: boolean | undefined;
|
43
|
-
readonly inputAttrs?: import('
|
31
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
44
32
|
readonly isPassword?: boolean | undefined;
|
45
33
|
readonly visibility?: boolean | undefined;
|
46
34
|
readonly defaultVisibility?: boolean | undefined;
|
@@ -112,7 +100,7 @@ declare function __VLS_template(): {
|
|
112
100
|
readonly: boolean;
|
113
101
|
wordLength: import('../Input').WordLength;
|
114
102
|
wordSlice: import('../Input').WordSlice;
|
115
|
-
inputAttrs: import('
|
103
|
+
inputAttrs: import('..').RecordType;
|
116
104
|
isPassword: boolean;
|
117
105
|
visibility: boolean;
|
118
106
|
defaultVisibility: boolean;
|
@@ -151,7 +139,7 @@ declare function __VLS_template(): {
|
|
151
139
|
readonly: boolean;
|
152
140
|
wordLength: import('../Input').WordLength;
|
153
141
|
wordSlice: import('../Input').WordSlice;
|
154
|
-
inputAttrs: import('
|
142
|
+
inputAttrs: import('..').RecordType;
|
155
143
|
isPassword: boolean;
|
156
144
|
visibility: boolean;
|
157
145
|
defaultVisibility: boolean;
|
@@ -214,24 +202,24 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
214
202
|
modelValue: import('./type').CascaderValue;
|
215
203
|
defaultValue: import('./type').CascaderValue;
|
216
204
|
allowClear: boolean;
|
205
|
+
formatLabel: import('..').Format<import('./type').CascaderOption[]>;
|
217
206
|
options: import('./type').CascaderOption[];
|
218
|
-
formatLabel: (options: import('./type').CascaderOption[]) => string;
|
219
207
|
inputValue: string;
|
220
208
|
defaultInputValue: string;
|
221
209
|
fieldNames: Record<string, string>;
|
222
210
|
allowSearch: boolean;
|
223
211
|
valueKey: string;
|
224
212
|
maxTagCount: number;
|
225
|
-
filterOption: (
|
213
|
+
filterOption: import('..').FilterOption<import('./type').CascaderOption>;
|
226
214
|
triggerProps: import('../Trigger').TriggerProps;
|
227
215
|
searchDelay: number;
|
228
216
|
tagNowrap: boolean;
|
229
217
|
pathMode: boolean;
|
230
|
-
expandTrigger: import('
|
218
|
+
expandTrigger: import('..').EventTrigger;
|
231
219
|
expandChild: boolean;
|
232
220
|
searchOptionOnlyLabel: boolean;
|
233
221
|
loadMore: import('./type').LoadMore;
|
234
|
-
fallback: import('
|
222
|
+
fallback: boolean | import('..').FallBack<CascaderOptionValue | CascaderOptionValue[], string>;
|
235
223
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
236
224
|
inputRef: ({
|
237
225
|
$: import('vue').ComponentInternalInstance;
|
@@ -249,7 +237,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
249
237
|
readonly wordLength?: import('../Input').WordLength | undefined;
|
250
238
|
readonly wordSlice?: import('../Input').WordSlice | undefined;
|
251
239
|
readonly showWordLimit?: boolean | undefined;
|
252
|
-
readonly inputAttrs?: import('
|
240
|
+
readonly inputAttrs?: import('..').RecordType | undefined;
|
253
241
|
readonly isPassword?: boolean | undefined;
|
254
242
|
readonly visibility?: boolean | undefined;
|
255
243
|
readonly defaultVisibility?: boolean | undefined;
|
@@ -321,7 +309,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
321
309
|
readonly: boolean;
|
322
310
|
wordLength: import('../Input').WordLength;
|
323
311
|
wordSlice: import('../Input').WordSlice;
|
324
|
-
inputAttrs: import('
|
312
|
+
inputAttrs: import('..').RecordType;
|
325
313
|
isPassword: boolean;
|
326
314
|
visibility: boolean;
|
327
315
|
defaultVisibility: boolean;
|
@@ -360,7 +348,7 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
|
|
360
348
|
readonly: boolean;
|
361
349
|
wordLength: import('../Input').WordLength;
|
362
350
|
wordSlice: import('../Input').WordSlice;
|
363
|
-
inputAttrs: import('
|
351
|
+
inputAttrs: import('..').RecordType;
|
364
352
|
isPassword: boolean;
|
365
353
|
visibility: boolean;
|
366
354
|
defaultVisibility: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const a=require("./hooks/useContext.js"),u=require("../Input/index.js"),o=require("../InputTag/index.js"),r=require("../Trigger/index.js"),t=require("./CascaderPanel.vue.js");;/* empty css */const n=require("./CascaderSearchPanel.vue.js");;/* empty css */const i=require("./CascaderIcon.vue.js");;/* empty css */const s=e.defineComponent({name:"Cascader",__name:"Cascader",props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{default:void 0},defaultValue:{default:e=>e.multiple?[]:""},options:{default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{default:void 0},allowSearch:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},inputValue:{default:void 0},defaultInputValue:{default:""},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},expandTrigger:{default:"click"},placeholder:{default:""},filterOption:{type:Function,default:(e,l)=>(l.label??"").toLowerCase().includes(e.toLowerCase())},popupContainer:{default:void 0},maxTagCount:{default:0},formatLabel:{type:Function,default:void 0},triggerProps:{default:()=>({})},loadMore:{type:Function,default:void 0},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{default:500},fieldNames:{default:()=>({})},valueKey:{default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","search","popup-visible-change","focus","blur"],setup(s,{emit:d}){const p=s,c=d,f=e.ref(),{computedValue:v,computedInputValue:h,computedVisible:m,selectOptions:y,searchDelay:b,multiple:g,pathMode:w,disabled:C,allowClear:k,allowSearch:x,loading:B,curLevel:V,curPath:q,getValueKey:j,getOption:S}=a.default().provide(p,c,f),P=e.computed(()=>{let e
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const l=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const a=require("./hooks/useContext.js"),u=require("../Input/index.js"),o=require("../InputTag/index.js"),r=require("../Trigger/index.js"),t=require("./CascaderPanel.vue.js");;/* empty css */const n=require("./CascaderSearchPanel.vue.js");;/* empty css */const i=require("./CascaderIcon.vue.js");;/* empty css */const s=e.defineComponent({name:"Cascader",__name:"Cascader",props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{default:void 0},defaultValue:{default:e=>e.multiple?[]:""},options:{default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{default:void 0},allowSearch:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},inputValue:{default:void 0},defaultInputValue:{default:""},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},expandTrigger:{default:"click"},placeholder:{default:""},filterOption:{type:Function,default:(e,l)=>(l.label??"").toLowerCase().includes(e.toLowerCase())},popupContainer:{default:void 0},maxTagCount:{default:0},formatLabel:{type:Function,default:void 0},triggerProps:{default:()=>({})},loadMore:{type:Function,default:void 0},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{default:500},fieldNames:{default:()=>({})},valueKey:{default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:["update:modelValue","update:inputValue","update:popupVisible","change","input-value-change","clear","search","popup-visible-change","focus","blur"],setup(s,{emit:d}){const p=s,c=d,f=e.ref(),{computedValue:v,computedInputValue:h,computedVisible:m,selectOptions:y,searchDelay:b,multiple:g,pathMode:w,disabled:C,allowClear:k,allowSearch:x,loading:B,curLevel:V,curPath:q,getValueKey:j,getOption:S}=a.default().provide(p,c,f),P=e.computed(()=>{let e;return e=w.value?g.value?v.value.flat(1).length:v.value.length:g.value?v.value.length:v.value,k.value&&!C.value&&!B.value&&!!e}),z=e.computed(()=>!x.value||B.value),_=e.computed(()=>x.value&&h.value),$=async(e,a="")=>{var u,o;switch(e){case"clear":v.value=g.value||w.value?[]:"",c("clear");break;case"search":await l.sleep(b.value),c("search",a);break;case"focus":{if(C.value)return;if(m.value)return null==(u=f.value)?void 0:u.blur();const e=j(g.value?v.value[0]:v.value),a=e?S(e):null;a?(q.value=a.nodePath.map(e=>e.index),V.value=a.level):(q.value=[],V.value=1),m.value=!0,await l.sleep(0),null==(o=f.value)||o.focus()}break;case"blur":m.value=!1;break;case"updateValue":v.value=a.map(e=>e.value)}};return(l,a)=>(e.openBlock(),e.createBlock(e.unref(r),e.mergeProps({"popup-visible":e.unref(m),"onUpdate:popupVisible":a[11]||(a[11]=l=>e.isRef(m)?m.value=l:null),"popup-offset":4,"popup-container":l.popupContainer,disabled:e.unref(C),"content-style":{background:"transparent"},position:"bl",trigger:"focus","animation-name":"slide-dynamic-origin","prevent-focus":""},l.triggerProps),{content:e.withCtx(()=>[_.value?(e.openBlock(),e.createBlock(n,{key:0})):(e.openBlock(),e.createBlock(t,{key:1}))]),default:e.withCtx(()=>{var r,t;return[e.createElementVNode("div",{class:e.normalizeClass(["yc-cascader",{"yc-cascader-allow-clear":P.value,"yc-cascader-allow-search":e.unref(x)},l.$attrs.class]),style:e.normalizeStyle(l.$attrs.style)},[e.unref(g)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,"input-value":e.unref(h),"onUpdate:inputValue":a[1]||(a[1]=l=>e.isRef(h)?h.value=l:null),"model-value":e.unref(y),placeholder:l.placeholder,readonly:z.value,disabled:e.unref(C),size:l.size,error:l.error,"max-tag-count":l.maxTagCount,"tag-nowrap":l.tagNowrap,ref_key:"inputRef",ref:f,onFocus:a[2]||(a[2]=e=>$("focus")),onBlur:a[3]||(a[3]=e=>$("blur")),onInput:a[4]||(a[4]=e=>$("search",e)),"onUpdate:modelValue":a[5]||(a[5]=e=>$("updateValue",e))},e.createSlots({suffix:e.withCtx(()=>[e.createVNode(i,{"popup-visible":e.unref(m),"allow-search":e.unref(x),loading:e.unref(B),"show-clear-btn":P.value,onClear:a[0]||(a[0]=e=>$("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:2},[l.$slots.label?{name:"tag",fn:e.withCtx(a=>[e.renderSlot(l.$slots,"label",e.normalizeProps(e.guardReactiveProps(a)))]),key:"0"}:void 0,l.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),key:"1"}:void 0]),1032,["input-value","model-value","placeholder","readonly","disabled","size","error","max-tag-count","tag-nowrap"])):(e.openBlock(),e.createBlock(e.unref(u),{key:1,modelValue:e.unref(h),"onUpdate:modelValue":a[7]||(a[7]=l=>e.isRef(h)?h.value=l:null),"show-input":e.unref(m),readonly:z.value,disabled:e.unref(C),size:l.size,error:l.error,placeholder:(null==(t=null==(r=e.unref(y)[0])?void 0:r.label)?void 0:t.toString())||"",ref_key:"inputRef",ref:f,onClick:a[8]||(a[8]=e=>$("focus")),onBlur:a[9]||(a[9]=e=>$("blur")),onInput:a[10]||(a[10]=e=>$("search",e))},e.createSlots({label:e.withCtx(()=>[e.renderSlot(l.$slots,"label",{data:e.unref(y)[0]},()=>{var a,u;return[e.createElementVNode("span",{class:e.normalizeClass([{"yc-input-placeholder":!(null==(a=e.unref(y)[0])?void 0:a.label)}])},e.toDisplayString((null==(u=e.unref(y)[0])?void 0:u.label)||l.placeholder),3)]})]),suffix:e.withCtx(()=>[e.createVNode(i,{"popup-visible":e.unref(m),"allow-search":e.unref(x),loading:e.unref(B),"show-clear-btn":P.value,onClear:a[6]||(a[6]=e=>$("clear"))},null,8,["popup-visible","allow-search","loading","show-clear-btn"])]),_:2},[l.$slots.prefix?{name:"prefix",fn:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),key:"0"}:void 0]),1032,["modelValue","show-input","readonly","disabled","size","error","placeholder"]))],6)]}),_:3},16,["popup-visible","popup-container","disabled"]))}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js"),c=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js"),c=;/* 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 r=require("../Spin/index.js"),s={class:"yc-cascader-suffix-icon"},t={key:0,class:"yc-cascader-search-icon"},a=e.defineComponent({__name:"CascaderIcon",props:{loading:{type:Boolean},popupVisible:{type:Boolean},showClearBtn:{type:Boolean},allowSearch:{type:Boolean}},emits:["clear"],setup(a){const{slots:i}=o.default().inject(),l=e=>i[e];return(o,a)=>{const u=e.resolveComponent("icon-search");return o.loading?(e.openBlock(),e.createBlock(e.unref(r),{key:0,size:12,class:"yc-cascader-loading-icon"},e.createSlots({_:2},[o.$slots["loading-icon"]?{name:"icon",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l("loading-icon"))))]),key:"0"}:void 0]),1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",s,[e.unref(i)["arrow-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l("arrow-icon")),{key:0})):(e.openBlock(),e.createBlock(e.unref(n),{key:1,rotate:o.popupVisible?180:0},null,8,["rotate"]))]),o.allowSearch?(e.openBlock(),e.createElementBlock("div",t,[e.unref(i)["search-icon"]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l("search-icon")),{key:0})):(e.openBlock(),e.createBlock(u,{key:1}))])):e.createCommentVNode("",!0),o.showClearBtn?(e.openBlock(),e.createBlock(e.unref(c),{key:1,class:"yc-cascader-clear-icon",onClick:a[0]||(a[0]=e.withModifiers(e=>o.$emit("clear"),["stop"]))})):e.createCommentVNode("",!0)],64))}}});module.exports=a;
|