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
@@ -11,7 +11,7 @@ declare function __VLS_template(): {
|
|
11
11
|
readonly popupVisible?: boolean | undefined;
|
12
12
|
readonly defaultPopupVisible?: boolean | undefined;
|
13
13
|
readonly trigger?: import('../Trigger').TriggerType | undefined;
|
14
|
-
readonly position?: import('
|
14
|
+
readonly position?: import('..').PopupPosition | undefined;
|
15
15
|
readonly disabled?: boolean | undefined;
|
16
16
|
readonly popupOffset?: number | undefined;
|
17
17
|
readonly popupTranslate?: number[] | undefined;
|
@@ -21,9 +21,9 @@ declare function __VLS_template(): {
|
|
21
21
|
readonly clickToClose?: boolean | undefined;
|
22
22
|
readonly clickOutsideToClose?: boolean | undefined;
|
23
23
|
readonly unmountOnClose?: boolean | undefined;
|
24
|
-
readonly contentClass?: import('
|
24
|
+
readonly contentClass?: import('..').ClassName | undefined;
|
25
25
|
readonly contentStyle?: import('vue').CSSProperties | undefined;
|
26
|
-
readonly arrowClass?: import('
|
26
|
+
readonly arrowClass?: import('..').ClassName | undefined;
|
27
27
|
readonly arrowStyle?: import('vue').CSSProperties | undefined;
|
28
28
|
readonly animationName?: string | undefined;
|
29
29
|
readonly duration?: number | undefined;
|
@@ -157,14 +157,14 @@ declare function __VLS_template(): {
|
|
157
157
|
scrollToClose: boolean;
|
158
158
|
autoSetPosition: boolean;
|
159
159
|
alignPoint: boolean;
|
160
|
-
position: import('
|
160
|
+
position: import('..').PopupPosition;
|
161
161
|
popupOffset: number;
|
162
162
|
popupTranslate: number[];
|
163
163
|
showArrow: boolean;
|
164
164
|
unmountOnClose: boolean;
|
165
|
-
contentClass: import('
|
165
|
+
contentClass: import('..').ClassName;
|
166
166
|
contentStyle: import('vue').CSSProperties;
|
167
|
-
arrowClass: import('
|
167
|
+
arrowClass: import('..').ClassName;
|
168
168
|
arrowStyle: import('vue').CSSProperties;
|
169
169
|
animationName: string;
|
170
170
|
duration: number;
|
@@ -211,14 +211,14 @@ declare function __VLS_template(): {
|
|
211
211
|
scrollToClose: boolean;
|
212
212
|
autoSetPosition: boolean;
|
213
213
|
alignPoint: boolean;
|
214
|
-
position: import('
|
214
|
+
position: import('..').PopupPosition;
|
215
215
|
popupOffset: number;
|
216
216
|
popupTranslate: number[];
|
217
217
|
showArrow: boolean;
|
218
218
|
unmountOnClose: boolean;
|
219
|
-
contentClass: import('
|
219
|
+
contentClass: import('..').ClassName;
|
220
220
|
contentStyle: import('vue').CSSProperties;
|
221
|
-
arrowClass: import('
|
221
|
+
arrowClass: import('..').ClassName;
|
222
222
|
arrowStyle: import('vue').CSSProperties;
|
223
223
|
animationName: string;
|
224
224
|
duration: number;
|
@@ -317,13 +317,13 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
317
317
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
318
318
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
319
319
|
}>, {
|
320
|
-
trigger: import('
|
320
|
+
trigger: import('..').EventTrigger;
|
321
321
|
popupVisible: boolean;
|
322
322
|
defaultPopupVisible: boolean;
|
323
323
|
disabled: boolean;
|
324
324
|
position: import('./type').DsubmenuPosition;
|
325
325
|
triggerProps: import('../Trigger').TriggerProps;
|
326
|
-
popupMaxHeight:
|
326
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
327
327
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
328
328
|
triggerRef: ({
|
329
329
|
$: import('vue').ComponentInternalInstance;
|
@@ -332,7 +332,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
332
332
|
readonly popupVisible?: boolean | undefined;
|
333
333
|
readonly defaultPopupVisible?: boolean | undefined;
|
334
334
|
readonly trigger?: import('../Trigger').TriggerType | undefined;
|
335
|
-
readonly position?: import('
|
335
|
+
readonly position?: import('..').PopupPosition | undefined;
|
336
336
|
readonly disabled?: boolean | undefined;
|
337
337
|
readonly popupOffset?: number | undefined;
|
338
338
|
readonly popupTranslate?: number[] | undefined;
|
@@ -342,9 +342,9 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
342
342
|
readonly clickToClose?: boolean | undefined;
|
343
343
|
readonly clickOutsideToClose?: boolean | undefined;
|
344
344
|
readonly unmountOnClose?: boolean | undefined;
|
345
|
-
readonly contentClass?: import('
|
345
|
+
readonly contentClass?: import('..').ClassName | undefined;
|
346
346
|
readonly contentStyle?: import('vue').CSSProperties | undefined;
|
347
|
-
readonly arrowClass?: import('
|
347
|
+
readonly arrowClass?: import('..').ClassName | undefined;
|
348
348
|
readonly arrowStyle?: import('vue').CSSProperties | undefined;
|
349
349
|
readonly animationName?: string | undefined;
|
350
350
|
readonly duration?: number | undefined;
|
@@ -478,14 +478,14 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
478
478
|
scrollToClose: boolean;
|
479
479
|
autoSetPosition: boolean;
|
480
480
|
alignPoint: boolean;
|
481
|
-
position: import('
|
481
|
+
position: import('..').PopupPosition;
|
482
482
|
popupOffset: number;
|
483
483
|
popupTranslate: number[];
|
484
484
|
showArrow: boolean;
|
485
485
|
unmountOnClose: boolean;
|
486
|
-
contentClass: import('
|
486
|
+
contentClass: import('..').ClassName;
|
487
487
|
contentStyle: import('vue').CSSProperties;
|
488
|
-
arrowClass: import('
|
488
|
+
arrowClass: import('..').ClassName;
|
489
489
|
arrowStyle: import('vue').CSSProperties;
|
490
490
|
animationName: string;
|
491
491
|
duration: number;
|
@@ -532,14 +532,14 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
532
532
|
scrollToClose: boolean;
|
533
533
|
autoSetPosition: boolean;
|
534
534
|
alignPoint: boolean;
|
535
|
-
position: import('
|
535
|
+
position: import('..').PopupPosition;
|
536
536
|
popupOffset: number;
|
537
537
|
popupTranslate: number[];
|
538
538
|
showArrow: boolean;
|
539
539
|
unmountOnClose: boolean;
|
540
|
-
contentClass: import('
|
540
|
+
contentClass: import('..').ClassName;
|
541
541
|
contentStyle: import('vue').CSSProperties;
|
542
|
-
arrowClass: import('
|
542
|
+
arrowClass: import('..').ClassName;
|
543
543
|
arrowStyle: import('vue').CSSProperties;
|
544
544
|
animationName: string;
|
545
545
|
duration: number;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const r=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const s=require("../_shared/icons/IconArrowRight.vue.js");require("./index.js");const l=require("../Trigger/index.js"),u=require("../Scrollbar/index.js"),n=require("./Doption.vue.js");;/* empty css */const a={class:"yc-dropdown"},d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{type:[Boolean,Number],default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:m}){const v=c,g=m,{defaultPopupVisible:h,popupVisible:b,trigger:y,position:x,popupMaxHeight:_}=e.toRefs(v),q=r(b,h.value,e=>{g("update:popupVisible",e),g("popup-visible-change",e)}),j=e.ref(),w=e.ref(),V=e.computed(()=>["rt","lt"].includes(x.value)?x.value:"rt"),B=e.computed(()=>["hover","click"].includes(y.value)?y.value:"hover"),k=e.computed(()=>i.isBoolean(_.value)&&!_.value||i.isUndefined(_)?"":o.valueToPx(i.isBoolean(_.value)?200:_.value)),C=async()=>{var o;await e.nextTick();const i=t.unrefElement(j);if(!i)return;const{left:r,top:s,right:l,width:u}=i.getBoundingClientRect(),n="rt"==V.value?l:r-u,a=s-5;null==(o=w.value)||o.updatePosition(n,a)};return f({show(){q.value=!0},hide(){q.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(l),e.mergeProps({"popup-visible":e.unref(q),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(q)?q.value=t:null),trigger:B.value,position:V.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":C,"on-trigger-mouseclick":C,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:w},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",a,[e.createVNode(e.unref(u),{style:e.normalizeStyle({maxHeight:k.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content")])]),_:3},8,["style"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n),{disabled:t.disabled,class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:j},{suffix:e.withCtx(()=>[e.createVNode(e.unref(s))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["disabled","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});module.exports=c;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { DoptionValue, DropdownEmits } from '../type';
|
2
|
-
import {
|
2
|
+
import { RecordType } from '../../_shared/type';
|
3
3
|
type DropdownContext = {
|
4
4
|
select: (value: DoptionValue, ev: MouseEvent) => void;
|
5
5
|
};
|
6
6
|
declare const _default: () => {
|
7
|
-
provide: (props:
|
7
|
+
provide: (props: RecordType, emits: DropdownEmits) => {
|
8
8
|
computedVisible: import('vue').WritableComputedRef<boolean, boolean>;
|
9
9
|
};
|
10
10
|
inject: () => DropdownContext;
|
package/lib/Dropdown/index.d.ts
CHANGED
@@ -31,7 +31,7 @@ declare const Dropdown: {
|
|
31
31
|
popupContainer: import('..').PopupContainer;
|
32
32
|
triggerProps: import('..').TriggerProps;
|
33
33
|
hideOnSelect: boolean;
|
34
|
-
popupMaxHeight:
|
34
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
35
35
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
36
36
|
P: {};
|
37
37
|
B: {};
|
@@ -55,7 +55,7 @@ declare const Dropdown: {
|
|
55
55
|
popupContainer: import('..').PopupContainer;
|
56
56
|
triggerProps: import('..').TriggerProps;
|
57
57
|
hideOnSelect: boolean;
|
58
|
-
popupMaxHeight:
|
58
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
59
59
|
}>;
|
60
60
|
__isFragment?: never;
|
61
61
|
__isTeleport?: never;
|
@@ -80,7 +80,7 @@ declare const Dropdown: {
|
|
80
80
|
popupContainer: import('..').PopupContainer;
|
81
81
|
triggerProps: import('..').TriggerProps;
|
82
82
|
hideOnSelect: boolean;
|
83
|
-
popupMaxHeight:
|
83
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
84
84
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
85
85
|
$slots: Readonly<import('./type').DropdownSlots> & import('./type').DropdownSlots;
|
86
86
|
}) & {
|
@@ -215,13 +215,13 @@ declare const Dropdown: {
|
|
215
215
|
"update:popupVisible": (value: boolean) => any;
|
216
216
|
"popup-visible-change": (value: boolean) => any;
|
217
217
|
}, import('vue').PublicProps, {
|
218
|
-
trigger: import('
|
218
|
+
trigger: import('..').EventTrigger;
|
219
219
|
popupVisible: boolean;
|
220
220
|
defaultPopupVisible: boolean;
|
221
221
|
disabled: boolean;
|
222
222
|
position: import('./type').DsubmenuPosition;
|
223
223
|
triggerProps: import('..').TriggerProps;
|
224
|
-
popupMaxHeight:
|
224
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
225
225
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
226
226
|
triggerRef: ({
|
227
227
|
$: import('vue').ComponentInternalInstance;
|
@@ -230,7 +230,7 @@ declare const Dropdown: {
|
|
230
230
|
readonly popupVisible?: boolean | undefined;
|
231
231
|
readonly defaultPopupVisible?: boolean | undefined;
|
232
232
|
readonly trigger?: import('..').TriggerType | undefined;
|
233
|
-
readonly position?: import('..').
|
233
|
+
readonly position?: import('..').PopupPosition | undefined;
|
234
234
|
readonly disabled?: boolean | undefined;
|
235
235
|
readonly popupOffset?: number | undefined;
|
236
236
|
readonly popupTranslate?: number[] | undefined;
|
@@ -240,9 +240,9 @@ declare const Dropdown: {
|
|
240
240
|
readonly clickToClose?: boolean | undefined;
|
241
241
|
readonly clickOutsideToClose?: boolean | undefined;
|
242
242
|
readonly unmountOnClose?: boolean | undefined;
|
243
|
-
readonly contentClass?: import('
|
243
|
+
readonly contentClass?: import('..').ClassName | undefined;
|
244
244
|
readonly contentStyle?: import('vue').CSSProperties | undefined;
|
245
|
-
readonly arrowClass?: import('
|
245
|
+
readonly arrowClass?: import('..').ClassName | undefined;
|
246
246
|
readonly arrowStyle?: import('vue').CSSProperties | undefined;
|
247
247
|
readonly animationName?: string | undefined;
|
248
248
|
readonly duration?: number | undefined;
|
@@ -376,14 +376,14 @@ declare const Dropdown: {
|
|
376
376
|
scrollToClose: boolean;
|
377
377
|
autoSetPosition: boolean;
|
378
378
|
alignPoint: boolean;
|
379
|
-
position: import('..').
|
379
|
+
position: import('..').PopupPosition;
|
380
380
|
popupOffset: number;
|
381
381
|
popupTranslate: number[];
|
382
382
|
showArrow: boolean;
|
383
383
|
unmountOnClose: boolean;
|
384
|
-
contentClass: import('
|
384
|
+
contentClass: import('..').ClassName;
|
385
385
|
contentStyle: import('vue').CSSProperties;
|
386
|
-
arrowClass: import('
|
386
|
+
arrowClass: import('..').ClassName;
|
387
387
|
arrowStyle: import('vue').CSSProperties;
|
388
388
|
animationName: string;
|
389
389
|
duration: number;
|
@@ -430,14 +430,14 @@ declare const Dropdown: {
|
|
430
430
|
scrollToClose: boolean;
|
431
431
|
autoSetPosition: boolean;
|
432
432
|
alignPoint: boolean;
|
433
|
-
position: import('..').
|
433
|
+
position: import('..').PopupPosition;
|
434
434
|
popupOffset: number;
|
435
435
|
popupTranslate: number[];
|
436
436
|
showArrow: boolean;
|
437
437
|
unmountOnClose: boolean;
|
438
|
-
contentClass: import('
|
438
|
+
contentClass: import('..').ClassName;
|
439
439
|
contentStyle: import('vue').CSSProperties;
|
440
|
-
arrowClass: import('
|
440
|
+
arrowClass: import('..').ClassName;
|
441
441
|
arrowStyle: import('vue').CSSProperties;
|
442
442
|
animationName: string;
|
443
443
|
duration: number;
|
@@ -536,13 +536,13 @@ declare const Dropdown: {
|
|
536
536
|
show(): void;
|
537
537
|
hide(): void;
|
538
538
|
}, {}, {}, {}, {
|
539
|
-
trigger: import('
|
539
|
+
trigger: import('..').EventTrigger;
|
540
540
|
popupVisible: boolean;
|
541
541
|
defaultPopupVisible: boolean;
|
542
542
|
disabled: boolean;
|
543
543
|
position: import('./type').DsubmenuPosition;
|
544
544
|
triggerProps: import('..').TriggerProps;
|
545
|
-
popupMaxHeight:
|
545
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
546
546
|
}>;
|
547
547
|
__isFragment?: never;
|
548
548
|
__isTeleport?: never;
|
@@ -557,13 +557,13 @@ declare const Dropdown: {
|
|
557
557
|
"update:popupVisible": (value: boolean) => any;
|
558
558
|
"popup-visible-change": (value: boolean) => any;
|
559
559
|
}, string, {
|
560
|
-
trigger: import('
|
560
|
+
trigger: import('..').EventTrigger;
|
561
561
|
popupVisible: boolean;
|
562
562
|
defaultPopupVisible: boolean;
|
563
563
|
disabled: boolean;
|
564
564
|
position: import('./type').DsubmenuPosition;
|
565
565
|
triggerProps: import('..').TriggerProps;
|
566
|
-
popupMaxHeight:
|
566
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
567
567
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
568
568
|
$slots: Readonly<import('./type').DsubmenuSlots> & import('./type').DsubmenuSlots;
|
569
569
|
});
|
package/lib/Dropdown/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { EventTrigger, RecordType, PopupContainer, PopupMaxHeight, Size } from '../_shared/type';
|
2
2
|
import { TriggerProps, TriggerType } from '../Trigger';
|
3
3
|
import { ButtonProps, ButtonType } from '../Button';
|
4
4
|
import { VNode } from 'vue';
|
@@ -11,7 +11,7 @@ export interface DropdownProps {
|
|
11
11
|
hideOnSelect?: boolean;
|
12
12
|
alignPoint?: boolean;
|
13
13
|
triggerProps?: TriggerProps;
|
14
|
-
popupMaxHeight?:
|
14
|
+
popupMaxHeight?: PopupMaxHeight;
|
15
15
|
}
|
16
16
|
export interface DropdownEmits {
|
17
17
|
(e: 'update:popupVisible', value: boolean): void;
|
@@ -40,12 +40,12 @@ export interface DoptionSlots {
|
|
40
40
|
}
|
41
41
|
export interface DsubmenuProps {
|
42
42
|
disabled?: boolean;
|
43
|
-
trigger?:
|
43
|
+
trigger?: EventTrigger;
|
44
44
|
position?: DsubmenuPosition;
|
45
45
|
popupVisible?: boolean;
|
46
46
|
defaultPopupVisible?: boolean;
|
47
47
|
triggerProps?: TriggerProps;
|
48
|
-
popupMaxHeight?:
|
48
|
+
popupMaxHeight?: PopupMaxHeight;
|
49
49
|
}
|
50
50
|
export interface DsubmenuEmits {
|
51
51
|
(e: 'update:popupVisible', value: boolean): void;
|
@@ -80,7 +80,6 @@ export interface DropdownButtonSlots {
|
|
80
80
|
default?: () => VNode[];
|
81
81
|
icon?: () => VNode[];
|
82
82
|
}
|
83
|
-
export type DoptionValue = string | number | boolean |
|
83
|
+
export type DoptionValue = string | number | boolean | RecordType;
|
84
84
|
export type DropdownPosition = 'top' | 'tr' | 'tl' | 'bottom' | 'br' | 'bl';
|
85
|
-
export type DsubmenuTrigger = 'hover' | 'click';
|
86
85
|
export type DsubmenuPosition = 'rt' | 'lt';
|
package/lib/Empty/index.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");const t=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");const t=require("../_shared/utils/locale.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconEmpty.vue.js"),s={class:"yc-empty"},o={class:"yc-empty-image"},n=["src"],i={class:"yc-empty-description"},c=e.defineComponent({name:"Empty",__name:"index",props:{description:{default:""},imgSrc:{default:""}},setup(c){const d=c,{description:l}=e.toRefs(d),{t:u}=t.useI18n();return(t,c)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",o,[e.renderSlot(t.$slots,"image",{},()=>[t.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgSrc,alt:"图片加载失败"},null,8,n)):e.createCommentVNode("",!0),e.createVNode(e.unref(r))])]),e.createElementVNode("div",i,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description||e.unref(u)("empty.description")),1)])])]))}});module.exports=c;
|
package/lib/Grid/Grid.vue.d.ts
CHANGED
@@ -7,10 +7,10 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<GridProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GridProps> & Readonly<{}>, {
|
10
|
-
|
11
|
-
rowGap: number | import('./type').ResponsiveValue;
|
12
|
-
colGap: number | import('./type').ResponsiveValue;
|
10
|
+
rowGap: number | import('..').ResponsiveValue;
|
13
11
|
collapsed: boolean;
|
12
|
+
cols: number | import('..').ResponsiveValue;
|
13
|
+
colGap: number | import('..').ResponsiveValue;
|
14
14
|
collapsedRows: number;
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -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<GridColProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GridColProps> & Readonly<{}>, {
|
10
|
-
span: number | import('
|
11
|
-
offset: number | import('
|
10
|
+
span: number | import('..').ResponsiveValue;
|
11
|
+
offset: number | import('..').ResponsiveValue;
|
12
12
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
13
13
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
14
14
|
export default _default;
|
@@ -7,9 +7,9 @@ declare function __VLS_template(): {
|
|
7
7
|
};
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<GridItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GridItemProps> & Readonly<{}>, {
|
10
|
-
span: number | import('
|
10
|
+
span: number | import('..').ResponsiveValue;
|
11
11
|
suffix: boolean;
|
12
|
-
offset: number | import('
|
12
|
+
offset: number | import('..').ResponsiveValue;
|
13
13
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
14
14
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
15
15
|
export default _default;
|
@@ -10,8 +10,8 @@ declare const __VLS_component: import('vue').DefineComponent<GridRowProps, {}, {
|
|
10
10
|
wrap: boolean;
|
11
11
|
justify: import('./type').GridRowJustify;
|
12
12
|
div: boolean;
|
13
|
-
gutter: import('./type').Gutter | [import('./type').Gutter, import('./type').Gutter];
|
14
13
|
align: import('./type').GridRowAlign;
|
14
|
+
gutter: import('./type').GridRowGutter | [import('./type').GridRowGutter, import('./type').GridRowGutter];
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
16
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
17
17
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref, Reactive } from 'vue';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { GridRowGutter } from '../type';
|
3
|
+
import { RecordType, BreakpointName } from '../../_shared/type';
|
4
4
|
export declare const GRID_CONTEXT_KEY = "grid-context";
|
5
5
|
export type GridContext = {
|
6
6
|
breakpoint: Ref<BreakpointName>;
|
@@ -17,9 +17,9 @@ export type SpanMap = Map<string, {
|
|
17
17
|
span: number;
|
18
18
|
suffix: boolean;
|
19
19
|
}>;
|
20
|
-
export type GutterValue =
|
20
|
+
export type GutterValue = GridRowGutter | [GridRowGutter, GridRowGutter];
|
21
21
|
declare const _default: () => {
|
22
|
-
provide: (props:
|
22
|
+
provide: (props: RecordType) => {
|
23
23
|
breakpoint: Ref<BreakpointName, BreakpointName>;
|
24
24
|
cols: import('vue').ComputedRef<number>;
|
25
25
|
colGap: import('vue').ComputedRef<number>;
|
package/lib/Grid/index.d.ts
CHANGED
@@ -7,10 +7,10 @@ export type ColInstance = InstanceType<typeof _Col>;
|
|
7
7
|
export * from './type';
|
8
8
|
declare const Grid: {
|
9
9
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').GridProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
10
|
-
|
11
|
-
rowGap: number | import('./type').ResponsiveValue;
|
12
|
-
colGap: number | import('./type').ResponsiveValue;
|
10
|
+
rowGap: number | import('..').ResponsiveValue;
|
13
11
|
collapsed: boolean;
|
12
|
+
cols: number | import('..').ResponsiveValue;
|
13
|
+
colGap: number | import('..').ResponsiveValue;
|
14
14
|
collapsedRows: number;
|
15
15
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
16
16
|
P: {};
|
@@ -20,28 +20,28 @@ declare const Grid: {
|
|
20
20
|
M: {};
|
21
21
|
Defaults: {};
|
22
22
|
}, Readonly<import('./type').GridProps> & Readonly<{}>, {}, {}, {}, {}, {
|
23
|
-
|
24
|
-
rowGap: number | import('./type').ResponsiveValue;
|
25
|
-
colGap: number | import('./type').ResponsiveValue;
|
23
|
+
rowGap: number | import('..').ResponsiveValue;
|
26
24
|
collapsed: boolean;
|
25
|
+
cols: number | import('..').ResponsiveValue;
|
26
|
+
colGap: number | import('..').ResponsiveValue;
|
27
27
|
collapsedRows: number;
|
28
28
|
}>;
|
29
29
|
__isFragment?: never;
|
30
30
|
__isTeleport?: never;
|
31
31
|
__isSuspense?: never;
|
32
32
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').GridProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
33
|
-
|
34
|
-
rowGap: number | import('./type').ResponsiveValue;
|
35
|
-
colGap: number | import('./type').ResponsiveValue;
|
33
|
+
rowGap: number | import('..').ResponsiveValue;
|
36
34
|
collapsed: boolean;
|
35
|
+
cols: number | import('..').ResponsiveValue;
|
36
|
+
colGap: number | import('..').ResponsiveValue;
|
37
37
|
collapsedRows: number;
|
38
38
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
39
39
|
$slots: Readonly<import('./type').GridSlots> & import('./type').GridSlots;
|
40
40
|
}) & {
|
41
41
|
col: {
|
42
42
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').GridColProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
43
|
-
span: number | import('
|
44
|
-
offset: number | import('
|
43
|
+
span: number | import('..').ResponsiveValue;
|
44
|
+
offset: number | import('..').ResponsiveValue;
|
45
45
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
46
46
|
P: {};
|
47
47
|
B: {};
|
@@ -50,15 +50,15 @@ declare const Grid: {
|
|
50
50
|
M: {};
|
51
51
|
Defaults: {};
|
52
52
|
}, Readonly<import('./type').GridColProps> & Readonly<{}>, {}, {}, {}, {}, {
|
53
|
-
span: number | import('
|
54
|
-
offset: number | import('
|
53
|
+
span: number | import('..').ResponsiveValue;
|
54
|
+
offset: number | import('..').ResponsiveValue;
|
55
55
|
}>;
|
56
56
|
__isFragment?: never;
|
57
57
|
__isTeleport?: never;
|
58
58
|
__isSuspense?: never;
|
59
59
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').GridColProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
60
|
-
span: number | import('
|
61
|
-
offset: number | import('
|
60
|
+
span: number | import('..').ResponsiveValue;
|
61
|
+
offset: number | import('..').ResponsiveValue;
|
62
62
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
63
63
|
$slots: Readonly<import('./type').GridColSlots> & import('./type').GridColSlots;
|
64
64
|
});
|
@@ -67,8 +67,8 @@ declare const Grid: {
|
|
67
67
|
wrap: boolean;
|
68
68
|
justify: import('./type').GridRowJustify;
|
69
69
|
div: boolean;
|
70
|
-
gutter: import('./type').Gutter | [import('./type').Gutter, import('./type').Gutter];
|
71
70
|
align: import('./type').GridRowAlign;
|
71
|
+
gutter: import('./type').GridRowGutter | [import('./type').GridRowGutter, import('./type').GridRowGutter];
|
72
72
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
73
73
|
P: {};
|
74
74
|
B: {};
|
@@ -80,8 +80,8 @@ declare const Grid: {
|
|
80
80
|
wrap: boolean;
|
81
81
|
justify: import('./type').GridRowJustify;
|
82
82
|
div: boolean;
|
83
|
-
gutter: import('./type').Gutter | [import('./type').Gutter, import('./type').Gutter];
|
84
83
|
align: import('./type').GridRowAlign;
|
84
|
+
gutter: import('./type').GridRowGutter | [import('./type').GridRowGutter, import('./type').GridRowGutter];
|
85
85
|
}>;
|
86
86
|
__isFragment?: never;
|
87
87
|
__isTeleport?: never;
|
@@ -90,16 +90,16 @@ declare const Grid: {
|
|
90
90
|
wrap: boolean;
|
91
91
|
justify: import('./type').GridRowJustify;
|
92
92
|
div: boolean;
|
93
|
-
gutter: import('./type').Gutter | [import('./type').Gutter, import('./type').Gutter];
|
94
93
|
align: import('./type').GridRowAlign;
|
94
|
+
gutter: import('./type').GridRowGutter | [import('./type').GridRowGutter, import('./type').GridRowGutter];
|
95
95
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
96
96
|
$slots: Readonly<import('./type').GridRowSlots> & import('./type').GridRowSlots;
|
97
97
|
});
|
98
98
|
item: {
|
99
99
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').GridItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
100
|
-
span: number | import('
|
100
|
+
span: number | import('..').ResponsiveValue;
|
101
101
|
suffix: boolean;
|
102
|
-
offset: number | import('
|
102
|
+
offset: number | import('..').ResponsiveValue;
|
103
103
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
104
104
|
P: {};
|
105
105
|
B: {};
|
@@ -108,17 +108,17 @@ declare const Grid: {
|
|
108
108
|
M: {};
|
109
109
|
Defaults: {};
|
110
110
|
}, Readonly<import('./type').GridItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
111
|
-
span: number | import('
|
111
|
+
span: number | import('..').ResponsiveValue;
|
112
112
|
suffix: boolean;
|
113
|
-
offset: number | import('
|
113
|
+
offset: number | import('..').ResponsiveValue;
|
114
114
|
}>;
|
115
115
|
__isFragment?: never;
|
116
116
|
__isTeleport?: never;
|
117
117
|
__isSuspense?: never;
|
118
118
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').GridItemProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
119
|
-
span: number | import('
|
119
|
+
span: number | import('..').ResponsiveValue;
|
120
120
|
suffix: boolean;
|
121
|
-
offset: number | import('
|
121
|
+
offset: number | import('..').ResponsiveValue;
|
122
122
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
123
123
|
$slots: Readonly<import('./type').GridItemSlots> & import('./type').GridItemSlots;
|
124
124
|
});
|
package/lib/Grid/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { VNode } from 'vue';
|
2
|
+
import { ResponsiveValue } from '../_shared/type';
|
2
3
|
export interface GridProps {
|
3
4
|
cols?: number | ResponsiveValue;
|
4
5
|
rowGap?: number | ResponsiveValue;
|
@@ -20,7 +21,7 @@ export interface GridItemSlots {
|
|
20
21
|
}) => void;
|
21
22
|
}
|
22
23
|
export interface GridRowProps {
|
23
|
-
gutter?:
|
24
|
+
gutter?: GridRowGutter | [GridRowGutter, GridRowGutter];
|
24
25
|
justify?: GridRowJustify;
|
25
26
|
align?: GridRowAlign;
|
26
27
|
div?: boolean;
|
@@ -33,21 +34,12 @@ export interface GridColProps {
|
|
33
34
|
span?: number | ResponsiveValue;
|
34
35
|
offset?: number | ResponsiveValue;
|
35
36
|
order?: number | ResponsiveValue;
|
36
|
-
flex?: GridColFlex | ResponsiveValue
|
37
|
+
flex?: GridColFlex | ResponsiveValue<GridColFlex>;
|
37
38
|
}
|
38
39
|
export interface GridColSlots {
|
39
40
|
default?: () => VNode[];
|
40
41
|
}
|
41
|
-
export type
|
42
|
-
xs?: T;
|
43
|
-
sm?: T;
|
44
|
-
md?: T;
|
45
|
-
lg?: T;
|
46
|
-
xl?: T;
|
47
|
-
xxl?: T;
|
48
|
-
};
|
42
|
+
export type GridRowGutter = number | ResponsiveValue;
|
49
43
|
export type GridRowJustify = 'start' | 'center' | 'end' | 'space-around' | 'space-between';
|
50
44
|
export type GridRowAlign = 'start' | 'center' | 'end' | 'stretch';
|
51
|
-
export type BreakpointName = 'xxl' | 'xl' | 'lg' | 'md' | 'sm' | 'xs';
|
52
45
|
export type GridColFlex = number | string | 'initial' | 'auto' | 'none';
|
53
|
-
export type Gutter = number | ResponsiveValue;
|
package/lib/Image/Image.vue.d.ts
CHANGED
@@ -23,7 +23,7 @@ declare const __VLS_component: import('vue').DefineComponent<ImageProps, {}, {},
|
|
23
23
|
previewVisible: boolean;
|
24
24
|
defaultPreviewVisible: boolean;
|
25
25
|
previewProps: import('./type').ImagePreviewProps;
|
26
|
-
footerClass: import('
|
26
|
+
footerClass: import('..').ClassName;
|
27
27
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
28
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
29
29
|
export default _default;
|
package/lib/Image/Image.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 o=require("../_shared/utils/locale.js"),i=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");require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js"),i=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconImageClose.vue.js"),l=require("./hooks/useContext.js"),a=require("../Spin/index.js"),s=require("./ImagePreview.vue.js");;/* empty css */const n=["src","title","alt"],c={key:1,class:"yc-image-overlay"},d={class:"yc-image-loader"},u={key:2,class:"yc-image-overlay"},m={class:"yc-image-error"},v={class:"yc-image-error-icon"},p={class:"yc-image-error-alt"},f={class:"yc-image-footer-caption"},y=["title"],g=["title"],h={key:0,class:"yc-image-footer-extra"},w=e.defineComponent({name:"Image",__name:"Image",props:{src:{default:""},width:{},height:{},title:{default:""},description:{default:""},fit:{},alt:{},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{default:()=>({})},footerClass:{default:""}},emits:["update:previewVisible","preview-visible-change"],setup(w,{emit:k}){const V=w,B=k,{src:x,preview:j,previewVisible:E,defaultPreviewVisible:N}=e.toRefs(V),{hasGroupFather:q,handleClick:C}=l().inject(),{t:P}=o.useI18n(),S=i(E,N.value,e=>{B("update:previewVisible",e),B("preview-visible-change",e)}),b=e.ref(!1),_=e.ref(!1),I=()=>{_.value=!1,b.value=!1},$=()=>{_.value=!1,b.value=!0},z=()=>{if(q.value)return C(x.value);j.value&&(S.value=!0)};return e.watch(()=>x.value,()=>{_.value=!0,b.value=!1},{immediate:!0}),(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-image",style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height)})},[e.createElementVNode("img",{src:e.unref(x),title:o.title,alt:o.alt??o.description,style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height),objectFit:o.fit}),class:"yc-image-img",onLoad:I,onError:$,onClick:z},null,44,n),e.unref(j)?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0,visible:e.unref(S),"onUpdate:visible":i[0]||(i[0]=t=>e.isRef(S)?S.value=t:null),src:e.unref(x)},o.previewProps),e.createSlots({_:2},[o.$slots["preview-actions"]?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"preview-actions")]),key:"0"}:void 0]),1040,["visible","src"])):e.createCommentVNode("",!0),(o.showLoader||o.$slots.loader)&&_.value?(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",d,[e.renderSlot(o.$slots,"loader",{},()=>[e.createVNode(e.unref(a),{size:30,tip:e.unref(P)("image.loading")},null,8,["tip"])])])])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"error",{},()=>[e.createElementVNode("div",m,[e.renderSlot(o.$slots,"error-icon",{},()=>[e.createElementVNode("div",v,[e.createVNode(e.unref(r),{size:60})])]),e.createElementVNode("div",p,e.toDisplayString(o.alt??o.description),1)])])])):e.createCommentVNode("",!0),!o.hideFooter&&(o.title||o.description||o.$slots.extra)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["yc-image-footer","inner"==o.footerPosition?"yc-image-footer-inner":"yc-image-footer-outer",o.footerClass])},[e.createElementVNode("div",f,[e.createElementVNode("div",{class:"yc-image-footer-caption-title",title:o.title},e.toDisplayString(o.title),9,y),e.createElementVNode("div",{class:"yc-image-footer-caption-description",title:o.description},e.toDisplayString(o.description),9,g)]),o.$slots.extra?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(o.$slots,"extra")])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],4))}});module.exports=w;
|