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/Menu/index.d.ts
CHANGED
@@ -10,28 +10,27 @@ export type MenuItemGroupInstance = InstanceType<typeof _MenuItemGroup>;
|
|
10
10
|
export * from './type';
|
11
11
|
declare const Menu: {
|
12
12
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MenuProps> & Readonly<{
|
13
|
-
onCollapse?: ((collapsed: boolean, type:
|
13
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
14
14
|
"onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
|
15
15
|
"onUpdate:openKeys"?: ((value: string) => any) | undefined;
|
16
16
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
17
17
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
18
18
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
19
19
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
20
|
-
collapse: (collapsed: boolean, type:
|
20
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
21
21
|
"update:selectedKeys": (value: string) => any;
|
22
22
|
"update:openKeys": (value: string) => any;
|
23
23
|
"update:collapsed": (value: boolean) => any;
|
24
24
|
"menu-item-click": (key: string) => any;
|
25
25
|
"sub-menu-click": (key: string, openKeys: string[]) => any;
|
26
26
|
}, import('vue').PublicProps, {
|
27
|
-
mode: import('
|
27
|
+
mode: import('..').Direction;
|
28
28
|
triggerProps: import('..').TriggerProps;
|
29
|
-
|
30
|
-
breakpoint: import('..').BreakpointName;
|
31
|
-
popupMaxHeight: import('./type').PopupMaxHeight;
|
29
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
32
30
|
theme: import('..').Theme;
|
33
31
|
levelIndent: number;
|
34
32
|
autoOpen: boolean;
|
33
|
+
collapsed: boolean;
|
35
34
|
defaultCollapsed: boolean;
|
36
35
|
collapsedWidth: number | string;
|
37
36
|
accordion: boolean;
|
@@ -40,6 +39,7 @@ declare const Menu: {
|
|
40
39
|
defaultSelectedKeys: string;
|
41
40
|
openKeys: string[];
|
42
41
|
defaultOpenKeys: string[];
|
42
|
+
breakpoint: import('..').BreakpointName;
|
43
43
|
tooltipProps: import('..').TooltipProps;
|
44
44
|
autoOpenSelected: boolean;
|
45
45
|
autoScrollIntoView: boolean;
|
@@ -53,21 +53,20 @@ declare const Menu: {
|
|
53
53
|
M: {};
|
54
54
|
Defaults: {};
|
55
55
|
}, Readonly<import('./type').MenuProps> & Readonly<{
|
56
|
-
onCollapse?: ((collapsed: boolean, type:
|
56
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
57
57
|
"onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
|
58
58
|
"onUpdate:openKeys"?: ((value: string) => any) | undefined;
|
59
59
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
60
60
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
61
61
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
62
62
|
}>, {}, {}, {}, {}, {
|
63
|
-
mode: import('
|
63
|
+
mode: import('..').Direction;
|
64
64
|
triggerProps: import('..').TriggerProps;
|
65
|
-
|
66
|
-
breakpoint: import('..').BreakpointName;
|
67
|
-
popupMaxHeight: import('./type').PopupMaxHeight;
|
65
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
68
66
|
theme: import('..').Theme;
|
69
67
|
levelIndent: number;
|
70
68
|
autoOpen: boolean;
|
69
|
+
collapsed: boolean;
|
71
70
|
defaultCollapsed: boolean;
|
72
71
|
collapsedWidth: number | string;
|
73
72
|
accordion: boolean;
|
@@ -76,6 +75,7 @@ declare const Menu: {
|
|
76
75
|
defaultSelectedKeys: string;
|
77
76
|
openKeys: string[];
|
78
77
|
defaultOpenKeys: string[];
|
78
|
+
breakpoint: import('..').BreakpointName;
|
79
79
|
tooltipProps: import('..').TooltipProps;
|
80
80
|
autoOpenSelected: boolean;
|
81
81
|
autoScrollIntoView: boolean;
|
@@ -84,28 +84,27 @@ declare const Menu: {
|
|
84
84
|
__isTeleport?: never;
|
85
85
|
__isSuspense?: never;
|
86
86
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').MenuProps> & Readonly<{
|
87
|
-
onCollapse?: ((collapsed: boolean, type:
|
87
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
88
88
|
"onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
|
89
89
|
"onUpdate:openKeys"?: ((value: string) => any) | undefined;
|
90
90
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
91
91
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
92
92
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
93
93
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
94
|
-
collapse: (collapsed: boolean, type:
|
94
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
95
95
|
"update:selectedKeys": (value: string) => any;
|
96
96
|
"update:openKeys": (value: string) => any;
|
97
97
|
"update:collapsed": (value: boolean) => any;
|
98
98
|
"menu-item-click": (key: string) => any;
|
99
99
|
"sub-menu-click": (key: string, openKeys: string[]) => any;
|
100
100
|
}, string, {
|
101
|
-
mode: import('
|
101
|
+
mode: import('..').Direction;
|
102
102
|
triggerProps: import('..').TriggerProps;
|
103
|
-
|
104
|
-
breakpoint: import('..').BreakpointName;
|
105
|
-
popupMaxHeight: import('./type').PopupMaxHeight;
|
103
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
106
104
|
theme: import('..').Theme;
|
107
105
|
levelIndent: number;
|
108
106
|
autoOpen: boolean;
|
107
|
+
collapsed: boolean;
|
109
108
|
defaultCollapsed: boolean;
|
110
109
|
collapsedWidth: number | string;
|
111
110
|
accordion: boolean;
|
@@ -114,6 +113,7 @@ declare const Menu: {
|
|
114
113
|
defaultSelectedKeys: string;
|
115
114
|
openKeys: string[];
|
116
115
|
defaultOpenKeys: string[];
|
116
|
+
breakpoint: import('..').BreakpointName;
|
117
117
|
tooltipProps: import('..').TooltipProps;
|
118
118
|
autoOpenSelected: boolean;
|
119
119
|
autoScrollIntoView: boolean;
|
@@ -150,7 +150,7 @@ declare const Menu: {
|
|
150
150
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
151
151
|
title: string;
|
152
152
|
path: string;
|
153
|
-
popupMaxHeight: import('
|
153
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
154
154
|
selectable: boolean;
|
155
155
|
popup: boolean;
|
156
156
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -163,7 +163,7 @@ declare const Menu: {
|
|
163
163
|
}, Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, {
|
164
164
|
title: string;
|
165
165
|
path: string;
|
166
|
-
popupMaxHeight: import('
|
166
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
167
167
|
selectable: boolean;
|
168
168
|
popup: boolean;
|
169
169
|
}>;
|
@@ -173,7 +173,7 @@ declare const Menu: {
|
|
173
173
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SubMenuProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
174
174
|
title: string;
|
175
175
|
path: string;
|
176
|
-
popupMaxHeight: import('
|
176
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
177
177
|
selectable: boolean;
|
178
178
|
popup: boolean;
|
179
179
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/lib/Menu/type.d.ts
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import { BreakpointName } from '../Grid';
|
2
1
|
import { TooltipProps } from '../Tooltip';
|
3
2
|
import { TriggerProps } from '../Trigger';
|
4
|
-
import { Theme } from '../_shared/type';
|
3
|
+
import { Theme, BreakpointName, PopupMaxHeight, Direction, collapseType } from '../_shared/type';
|
5
4
|
import { VNode } from 'vue';
|
6
5
|
export interface MenuProps {
|
7
6
|
theme?: Theme;
|
8
|
-
mode?:
|
7
|
+
mode?: Direction;
|
9
8
|
levelIndent?: number;
|
10
9
|
autoOpen?: boolean;
|
11
10
|
collapsed?: boolean;
|
@@ -29,7 +28,7 @@ export interface MenuEmits {
|
|
29
28
|
(e: 'update:selectedKeys', value: string): void;
|
30
29
|
(e: 'update:openKeys', value: string): void;
|
31
30
|
(e: 'update:collapsed', value: boolean): void;
|
32
|
-
(e: 'collapse', collapsed: boolean, type:
|
31
|
+
(e: 'collapse', collapsed: boolean, type: collapseType): void;
|
33
32
|
(e: 'menu-item-click', key: string): void;
|
34
33
|
(e: 'sub-menu-click', key: string, openKeys: string[]): void;
|
35
34
|
}
|
@@ -65,5 +64,3 @@ export interface MenuItemGroupSlots {
|
|
65
64
|
default?: () => VNode[];
|
66
65
|
title?: () => VNode[];
|
67
66
|
}
|
68
|
-
export type MenuMode = 'vertical' | 'horizontal';
|
69
|
-
export type PopupMaxHeight = boolean | number;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { MessageProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<MessageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MessageProps> & Readonly<{}>, {
|
3
3
|
duration: number;
|
4
|
-
content: import('
|
4
|
+
content: import('..').RenderContent;
|
5
5
|
icon: import('vue').RenderFunction;
|
6
6
|
type: import('./type').MessageType;
|
7
7
|
closable: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const t=require("../node_modules/@vueuse/shared/index.js"),l={key:0,class:"yc-message-icon"},a={class:"yc-message-content"},u=e.defineComponent({name:"Message",__name:"Message",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},id:{default:""},icon:{type:Function,default:void 0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},onClose:{type:Function,default:void 0},onDestory:{type:Function,default:void 0},resetOnHover:{type:Boolean,default:!1}},setup(u){const r=u,{type:i,id:c,duration:d,resetOnHover:m,isReset:p}=e.toRefs(r),{onClose:v,onDestory:y}=r,{start:f,stop:_}=t.useTimeoutFn(()=>{null==y||y(c.value),null==v||v(c.value)},()=>d.value,{immediate:!1}),B=()=>{_(),null==y||y(c.value),null==v||v(c.value)},h=()=>{!m.value||d.value<=0||_()},q=()=>{!m.value||d.value<=0||f()};return e.watch(()=>p.value,e=>{d.value<=0||!e||(_(),f())}),e.onMounted(()=>{d.value<=0||f()}),(t,u)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-message",`yc-message-${e.unref(i)}`]),onMouseenter:h,onMouseleave:q},["normal"==e.unref(i)&&e.unref(n.isUndefined)(t.icon)||!t.showIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(i)]),{spin:"loading"==e.unref(i)},null,8,["spin"]))])),e.createElementVNode("span",a,e.toDisplayString(t.content),1),t.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"yc-message-close-btn",onClick:B},[e.createVNode(e.unref(s))])):e.createCommentVNode("",!0)],34))}});module.exports=u;
|
package/lib/Message/index.d.ts
CHANGED
@@ -6,7 +6,7 @@ export * from './type';
|
|
6
6
|
declare const Message: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
8
|
duration: number;
|
9
|
-
content: import('
|
9
|
+
content: import('..').RenderContent;
|
10
10
|
icon: import('vue').RenderFunction;
|
11
11
|
type: MessageType;
|
12
12
|
closable: boolean;
|
@@ -25,7 +25,7 @@ declare const Message: {
|
|
25
25
|
Defaults: {};
|
26
26
|
}, Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, {
|
27
27
|
duration: number;
|
28
|
-
content: import('
|
28
|
+
content: import('..').RenderContent;
|
29
29
|
icon: import('vue').RenderFunction;
|
30
30
|
type: MessageType;
|
31
31
|
closable: boolean;
|
@@ -41,7 +41,7 @@ declare const Message: {
|
|
41
41
|
__isSuspense?: never;
|
42
42
|
} & import('vue').ComponentOptionsBase<Readonly<MessageProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
43
43
|
duration: number;
|
44
|
-
content: import('
|
44
|
+
content: import('..').RenderContent;
|
45
45
|
icon: import('vue').RenderFunction;
|
46
46
|
type: MessageType;
|
47
47
|
closable: boolean;
|
package/lib/Message/type.d.ts
CHANGED
@@ -17,10 +17,9 @@ export interface MessageContainerProps {
|
|
17
17
|
messageList?: MessageProps[];
|
18
18
|
position?: MessagePostion;
|
19
19
|
}
|
20
|
+
export type MessagePostion = 'top' | 'bottom';
|
21
|
+
export type MessageType = 'info' | 'success' | 'warning' | 'error' | 'loading' | 'normal';
|
20
22
|
export type MessageConfig = Omit<MessageProps, 'type' | 'onDestory'> & MessageContainerProps;
|
21
|
-
export type MessageReturn = {
|
22
|
-
close?: () => void;
|
23
|
-
};
|
24
23
|
export type MessageMethod = {
|
25
24
|
info: (config: string | MessageConfig) => MessageReturn;
|
26
25
|
success: (config: string | MessageConfig) => MessageReturn;
|
@@ -30,5 +29,6 @@ export type MessageMethod = {
|
|
30
29
|
normoal: (config: string | MessageConfig) => MessageReturn;
|
31
30
|
clear: (position: MessagePostion) => MessageReturn;
|
32
31
|
};
|
33
|
-
export type
|
34
|
-
|
32
|
+
export type MessageReturn = {
|
33
|
+
close?: () => void;
|
34
|
+
};
|
package/lib/Modal/Modal.vue.d.ts
CHANGED
@@ -49,14 +49,14 @@ declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {},
|
|
49
49
|
okButtonProps: import('../Button').ButtonProps;
|
50
50
|
cancelButtonProps: import('../Button').ButtonProps;
|
51
51
|
maskStyle: CSSProperties;
|
52
|
-
modalClass: import('
|
52
|
+
modalClass: import('..').ClassName;
|
53
53
|
modalStyle: CSSProperties;
|
54
54
|
escToClose: boolean;
|
55
55
|
draggable: boolean;
|
56
56
|
fullscreen: boolean;
|
57
57
|
maskAnimationName: string;
|
58
58
|
modalAnimationName: string;
|
59
|
-
bodyClass: import('
|
59
|
+
bodyClass: import('..').ClassName;
|
60
60
|
hideTitle: boolean;
|
61
61
|
simple: boolean;
|
62
62
|
onBeforeCancel: import('./type').OnBeforeCancel;
|
package/lib/Modal/Modal.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const i={key:0,class:"yc-modal-footer"},d=e.defineComponent({name:"Modal",inheritAttrs:!1,__name:"Modal",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{default:400},top:{default:100},mask:{type:Boolean,default:!0},title:{default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{default:void 0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","open","before-open","close","before-close"],setup(d,{emit:u}){const c=d,f=u,{visible:m,defaultVisible:p,width:y,top:k,alignCenter:B,maskClosable:C,escToClose:b,modalStyle:v,fullscreen:g,draggable:h,renderToBody:x}=e.toRefs(c),{onBeforeOk:S,onBeforeCancel:T}=c,{popupContainer:V,zIndex:N,isAbsolute:_}=l.getGlobalConfig(c),{t:w}=t.useI18n(),{outerVisible:q,innerVisible:j,asyncLoading:A,handleClose:z,handleAfterLeave:E}=a({visible:m,defaultVisible:p,escToClose:b,maskClosable:C,onBeforeOk:S,onBeforeCancel:T,emits:f}),$=e.ref(),D=e.ref(),{dragStyle:L,isDraggable:P}=n({visible:j,draggable:h,fullscreen:g,alignCenter:B,top:k,triggerRef:$,modalRef:D}),I=e.computed(()=>({width:g.value?"100%":"auto"==y.value?"fit-content":o.valueToPx(y.value),...L.value,...v.value}));return(o,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(V),disabled:!e.unref(x)},[!o.unmountOnClose||e.unref(q)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-container",o.$attrs.class,{"yc-modal-simple":o.simple,"yc-modal-position-absolute":e.unref(_)}]),style:e.normalizeStyle({zIndex:e.unref(N),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:o.maskAnimationName},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-modal-mask",style:e.normalizeStyle(o.maskStyle)},null,4)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)]),_:1},8,["name"]),e.createElementVNode("div",{class:"yc-modal-wrapper",onClick:l[6]||(l[6]=e.withModifiers(o=>e.unref(z)("mask",o),["self"]))},[e.createVNode(e.Transition,{name:o.modalAnimationName,onBeforeEnter:l[3]||(l[3]=e=>o.$emit("before-open")),onBeforeLeave:l[4]||(l[4]=e=>o.$emit("before-close")),onAfterEnter:l[5]||(l[5]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-modal",o.modalClass,{"yc-modal-draggable":e.unref(P),"yc-modal-fullscreen":e.unref(g)}]),style:e.normalizeStyle(I.value),ref_key:"modalRef",ref:D},[e.renderSlot(o.$slots,"header",{},()=>[e.createElementVNode("div",{class:"yc-modal-header",ref_key:"headerRef",ref:$},[o.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-title","text-ellipsis",{"title-align-center":"center"==o.titleAlign}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)),o.closable&&!o.simple?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-modal-close-button",onClick:l[0]||(l[0]=o=>e.unref(z)("closeBtn",o))})):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",{class:e.normalizeClass(["yc-modal-body",o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.footer?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"footer",{},()=>[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:l[1]||(l[1]=o=>e.unref(z)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(w)("modal.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(r.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(A)},o.okButtonProps,{onClick:l[2]||(l[2]=o=>e.unref(z)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(w)("modal.okText")),1)]),_:1},16,["loading"])])])):e.createCommentVNode("",!0)],6),[[e.vShow,e.unref(j)]])]),_:3},8,["name","onAfterLeave"])])],6)),[[e.vShow,e.unref(q)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=d;
|
@@ -4,9 +4,9 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
|
|
4
4
|
unmountOnClose: boolean;
|
5
5
|
renderToBody: boolean;
|
6
6
|
width: number | string;
|
7
|
-
content: import('
|
7
|
+
content: import('..').RenderContent;
|
8
8
|
footer: boolean;
|
9
|
-
title: string & import('
|
9
|
+
title: string & import('..').RenderContent;
|
10
10
|
mask: boolean;
|
11
11
|
closable: boolean;
|
12
12
|
bodyStyle: import('vue').CSSProperties;
|
@@ -20,14 +20,14 @@ declare const _default: import('vue').DefineComponent<ModalServiceProps, {}, {},
|
|
20
20
|
okButtonProps: import('..').ButtonProps;
|
21
21
|
cancelButtonProps: import('..').ButtonProps;
|
22
22
|
maskStyle: import('vue').CSSProperties;
|
23
|
-
modalClass: import('
|
23
|
+
modalClass: import('..').ClassName;
|
24
24
|
modalStyle: import('vue').CSSProperties;
|
25
25
|
escToClose: boolean;
|
26
26
|
draggable: boolean;
|
27
27
|
fullscreen: boolean;
|
28
28
|
maskAnimationName: string;
|
29
29
|
modalAnimationName: string;
|
30
|
-
bodyClass: import('
|
30
|
+
bodyClass: import('..').ClassName;
|
31
31
|
hideTitle: boolean;
|
32
32
|
simple: boolean;
|
33
33
|
onBeforeCancel: import('./type').OnBeforeCancel;
|
package/lib/Modal/index.d.ts
CHANGED
@@ -43,14 +43,14 @@ declare const Modal: {
|
|
43
43
|
okButtonProps: import('..').ButtonProps;
|
44
44
|
cancelButtonProps: import('..').ButtonProps;
|
45
45
|
maskStyle: import('vue').CSSProperties;
|
46
|
-
modalClass: import('
|
46
|
+
modalClass: import('..').ClassName;
|
47
47
|
modalStyle: import('vue').CSSProperties;
|
48
48
|
escToClose: boolean;
|
49
49
|
draggable: boolean;
|
50
50
|
fullscreen: boolean;
|
51
51
|
maskAnimationName: string;
|
52
52
|
modalAnimationName: string;
|
53
|
-
bodyClass: import('
|
53
|
+
bodyClass: import('..').ClassName;
|
54
54
|
hideTitle: boolean;
|
55
55
|
simple: boolean;
|
56
56
|
onBeforeCancel: import('./type').OnBeforeCancel;
|
@@ -96,14 +96,14 @@ declare const Modal: {
|
|
96
96
|
okButtonProps: import('..').ButtonProps;
|
97
97
|
cancelButtonProps: import('..').ButtonProps;
|
98
98
|
maskStyle: import('vue').CSSProperties;
|
99
|
-
modalClass: import('
|
99
|
+
modalClass: import('..').ClassName;
|
100
100
|
modalStyle: import('vue').CSSProperties;
|
101
101
|
escToClose: boolean;
|
102
102
|
draggable: boolean;
|
103
103
|
fullscreen: boolean;
|
104
104
|
maskAnimationName: string;
|
105
105
|
modalAnimationName: string;
|
106
|
-
bodyClass: import('
|
106
|
+
bodyClass: import('..').ClassName;
|
107
107
|
hideTitle: boolean;
|
108
108
|
simple: boolean;
|
109
109
|
onBeforeCancel: import('./type').OnBeforeCancel;
|
@@ -151,14 +151,14 @@ declare const Modal: {
|
|
151
151
|
okButtonProps: import('..').ButtonProps;
|
152
152
|
cancelButtonProps: import('..').ButtonProps;
|
153
153
|
maskStyle: import('vue').CSSProperties;
|
154
|
-
modalClass: import('
|
154
|
+
modalClass: import('..').ClassName;
|
155
155
|
modalStyle: import('vue').CSSProperties;
|
156
156
|
escToClose: boolean;
|
157
157
|
draggable: boolean;
|
158
158
|
fullscreen: boolean;
|
159
159
|
maskAnimationName: string;
|
160
160
|
modalAnimationName: string;
|
161
|
-
bodyClass: import('
|
161
|
+
bodyClass: import('..').ClassName;
|
162
162
|
hideTitle: boolean;
|
163
163
|
simple: boolean;
|
164
164
|
onBeforeCancel: import('./type').OnBeforeCancel;
|
package/lib/Modal/type.d.ts
CHANGED
@@ -53,6 +53,10 @@ export interface ModalSlots {
|
|
53
53
|
footer?: () => VNode[];
|
54
54
|
title?: () => VNode[];
|
55
55
|
}
|
56
|
+
export type ModalType = 'success' | 'warning' | 'error' | 'info';
|
57
|
+
export type ModalTitleAlign = 'start' | 'center';
|
58
|
+
export type OnBeforeOk = (done: (closed: boolean) => void) => void | boolean | Promise<boolean | void>;
|
59
|
+
export type OnBeforeCancel = () => boolean;
|
56
60
|
export type ModalConfig = Omit<ModalProps, 'visible' | 'defaultVisible' | 'popupContainer'> & {
|
57
61
|
title?: RenderContent;
|
58
62
|
content?: RenderContent;
|
@@ -68,10 +72,6 @@ export type ModalUpdateConfig = Omit<ModalConfig, 'title' | 'content' | 'footer'
|
|
68
72
|
export type ModalServiceProps = ModalConfig & {
|
69
73
|
serviceClose?: () => void;
|
70
74
|
};
|
71
|
-
export type ModalReturn = {
|
72
|
-
close: () => void;
|
73
|
-
update: (config: ModalUpdateConfig) => void;
|
74
|
-
};
|
75
75
|
export type ModalMethod = {
|
76
76
|
open: (props: ModalConfig) => ModalReturn;
|
77
77
|
success: (props: ModalConfig) => ModalReturn;
|
@@ -80,7 +80,7 @@ export type ModalMethod = {
|
|
80
80
|
info: (props: ModalConfig) => ModalReturn;
|
81
81
|
confirm: (props: ModalConfig) => ModuleStatus;
|
82
82
|
};
|
83
|
-
export type
|
84
|
-
|
85
|
-
|
86
|
-
|
83
|
+
export type ModalReturn = {
|
84
|
+
close: () => void;
|
85
|
+
update: (config: ModalUpdateConfig) => void;
|
86
|
+
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { NotificationProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<NotificationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationProps> & Readonly<{}>, {
|
3
3
|
duration: number;
|
4
|
-
content: import('
|
4
|
+
content: import('..').RenderContent;
|
5
5
|
style: import('vue').CSSProperties;
|
6
6
|
icon: import('vue').RenderFunction;
|
7
7
|
type: import('./type').NotificationType;
|
8
8
|
footer: import('vue').RenderFunction;
|
9
|
-
title: import('
|
10
|
-
class: import('
|
9
|
+
title: import('..').RenderContent;
|
10
|
+
class: import('..').ClassName;
|
11
11
|
closable: boolean;
|
12
12
|
onClose: (id: string | number) => void;
|
13
13
|
id: string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const c=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const c=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const l=require("../node_modules/@vueuse/shared/index.js"),i={class:"yc-notification-left"},s={key:0,class:"yc-notification-icon"},a={class:"yc-notification-right"},r={key:0,class:"yc-notification-title"},u={key:1,class:"yc-notification-content"},d={key:2,class:"yc-notification-footer"},m=e.defineComponent({name:"Notification",__name:"Notification",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},title:{type:[String,Array,Function],default:""},icon:{type:Function,default:void 0},id:{default:""},style:{default:()=>({})},class:{default:""},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},footer:{type:Function,default:void 0},closeIcon:{type:Function,default:void 0},closeIconElement:{type:Function,default:void 0},onClose:{type:Function,default:void 0},onDestory:{}},setup(m){const f=m,{type:y,id:p,duration:k,class:v,isReset:B}=e.toRefs(f),{onClose:C,onDestory:_}=f,{start:h,stop:q}=l.useTimeoutFn(()=>{null==_||_(p.value),null==C||C(p.value)},()=>k.value,{immediate:!1});e.watch(()=>B.value,e=>{k.value<=0||!e||(q(),h())});const E=()=>{q(),null==_||_(p.value),null==C||C(p.value)};return e.onMounted(()=>{k.value<=0||h()}),(l,m)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-notification",`yc-notification-${e.unref(y)}`,e.unref(v)]),style:e.normalizeStyle(l.style)},[e.createElementVNode("div",i,[l.showIcon?(e.openBlock(),e.createElementBlock("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(y)])))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",a,[e.unref(t.isUndefined)(l.title)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.title))))])),e.unref(t.isUndefined)(l.content)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.content))))])),e.unref(t.isFunction)(l.footer)?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.footer)))])):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-notification-close-btn",onClick:E},[l.closeIconElement?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIconElement),{key:0})):(e.openBlock(),e.createBlock(e.unref(c),{key:1},{default:e.withCtx(()=>[l.closeIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIcon),{key:0})):e.createCommentVNode("",!0)]),_:1}))])):e.createCommentVNode("",!0)],6))}});module.exports=m;
|
@@ -6,13 +6,13 @@ export * from './type';
|
|
6
6
|
declare const Notification: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
8
|
duration: number;
|
9
|
-
content: import('
|
9
|
+
content: import('..').RenderContent;
|
10
10
|
style: import('vue').CSSProperties;
|
11
11
|
icon: import('vue').RenderFunction;
|
12
12
|
type: NotificationType;
|
13
13
|
footer: import('vue').RenderFunction;
|
14
|
-
title: import('
|
15
|
-
class: import('
|
14
|
+
title: import('..').RenderContent;
|
15
|
+
class: import('..').ClassName;
|
16
16
|
closable: boolean;
|
17
17
|
onClose: (id: string | number) => void;
|
18
18
|
id: string;
|
@@ -29,13 +29,13 @@ declare const Notification: {
|
|
29
29
|
Defaults: {};
|
30
30
|
}, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
|
31
31
|
duration: number;
|
32
|
-
content: import('
|
32
|
+
content: import('..').RenderContent;
|
33
33
|
style: import('vue').CSSProperties;
|
34
34
|
icon: import('vue').RenderFunction;
|
35
35
|
type: NotificationType;
|
36
36
|
footer: import('vue').RenderFunction;
|
37
|
-
title: import('
|
38
|
-
class: import('
|
37
|
+
title: import('..').RenderContent;
|
38
|
+
class: import('..').ClassName;
|
39
39
|
closable: boolean;
|
40
40
|
onClose: (id: string | number) => void;
|
41
41
|
id: string;
|
@@ -49,13 +49,13 @@ declare const Notification: {
|
|
49
49
|
__isSuspense?: never;
|
50
50
|
} & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
51
51
|
duration: number;
|
52
|
-
content: import('
|
52
|
+
content: import('..').RenderContent;
|
53
53
|
style: import('vue').CSSProperties;
|
54
54
|
icon: import('vue').RenderFunction;
|
55
55
|
type: NotificationType;
|
56
56
|
footer: import('vue').RenderFunction;
|
57
|
-
title: import('
|
58
|
-
class: import('
|
57
|
+
title: import('..').RenderContent;
|
58
|
+
class: import('..').ClassName;
|
59
59
|
closable: boolean;
|
60
60
|
onClose: (id: string | number) => void;
|
61
61
|
id: string;
|
@@ -23,9 +23,6 @@ export interface NotificationContainerProps {
|
|
23
23
|
position?: NotificationPosition;
|
24
24
|
}
|
25
25
|
export type NotificationConfig = Omit<NotificationProps, 'type' | 'onDestory'> & NotificationContainerProps;
|
26
|
-
export type NotificationReturn = {
|
27
|
-
close?: () => void;
|
28
|
-
};
|
29
26
|
export type NotificationMethods = {
|
30
27
|
info: (config: string | NotificationConfig) => NotificationReturn;
|
31
28
|
success: (config: string | NotificationConfig) => NotificationReturn;
|
@@ -34,5 +31,8 @@ export type NotificationMethods = {
|
|
34
31
|
remove: (id: string) => void;
|
35
32
|
clear: (position: NotificationPosition) => NotificationReturn;
|
36
33
|
};
|
34
|
+
export type NotificationReturn = {
|
35
|
+
close?: () => void;
|
36
|
+
};
|
37
37
|
export type NotificationPosition = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
38
|
-
export type NotificationType = '
|
38
|
+
export type NotificationType = 'success' | 'warning' | 'error' | 'info';
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),t=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../Divider/index.js"),s={class:"yc-page-header"},l={class:"yc-page-header-wrapper"},a={key:0,class:"yc-page-header-breadcrumb"},c={class:"yc-page-header-header"},n={class:"yc-page-header-main"},i={key:0,class:"yc-page-header-title text-ellipsis"},d={key:2,class:"yc-page-header-subtitle text-ellipsis"},u={key:0,class:"yc-page-header-extra"},m={key:0,class:"yc-page-header-content"},p=e.defineComponent({name:"PageHeader",__name:"index",props:{title:{default:""},subtitle:{default:""},showBack:{type:Boolean,default:!0}},emits:["back"],setup:p=>(p,k)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",l,[p.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(p.$slots,"breadcrumb")])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",n,[e.createVNode(e.unref(t),{size:14,"hover-size":30,onClick:k[0]||(k[0]=e=>p.$emit("back",e))},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"back-icon",{},()=>[e.createVNode(e.unref(r))])]),_:3}),p.$slots.title||p.title?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(p.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(p.title),1)])])):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createBlock(e.unref(o),{key:1,direction:"vertical"})):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(p.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(p.subtitle),1)])])):e.createCommentVNode("",!0)]),p.$slots.extra?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(p.$slots,"extra")])):e.createCommentVNode("",!0)])]),p.$slots.default?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(p.$slots,"default")])):e.createCommentVNode("",!0)]))});module.exports=p;
|
@@ -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 u=require("../_shared/icons/IconArrowRight.vue.js"),l=require("../_shared/icons/IconMore.vue.js"),a=require("./hooks/useContext.js"),t=e.defineComponent({__name:"PaginationItem",props:{type:{},page:{default:1}},setup(t){const r=t,{type:o,page:n}=e.toRefs(r),{computedCurrent:i,pages:s,pageItemStyle:v,activePageItemStyle:c,bufferSize:m,disabled:d}=a().inject(),p=e.computed(()=>"item"==o.value&&i.value==n.value),f=e.computed(()=>["item","more-right","more-left"].includes(o.value)?d.value:"pre"==o.value?i.value<=1||d.value:i.value>=s.value||d.value),y=()=>{let e=0;if("item"==o.value)e=n.value;else if("pre"==o.value)e=i.value-1;else if("next"==o.value)e=i.value+1;else{const u=2*m.value+1;e="more-left"==o.value?i.value-u:i.value+u,e="more-left"==o.value&&e<=1?1:e,e="more-right"==o.value&&e>=s.value?s.value:e}f.value||"item"==o.value&&e==i.value||"pre"==o.value&&e<1||"next"==o.value&&e>s.value||(i.value=e)};return(a,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["yc-pagination-item",{"yc-pagination-item-disabled":f.value,"yc-pagination-item-active":p.value}]),style:e.normalizeStyle({...e.unref(v),...p.value?e.unref(c):{}}),onClick:y},[e.renderSlot(a.$slots,"default",{},()=>[["pre","next"].includes(e.unref(o))?(e.openBlock(),e.createBlock(e.unref(u),{key:0,rotate:"pre"==e.unref(o)?180:0},null,8,["rotate"])):e.unref(o).includes("more")?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):e.createCommentVNode("",!0)])],6))}});module.exports=t;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Ref, CSSProperties } from 'vue';
|
2
2
|
import { PaginationEmits } from '../type';
|
3
|
-
import {
|
3
|
+
import { RecordType } from '../../_shared/type';
|
4
4
|
interface PaginationContext {
|
5
5
|
computedCurrent: Ref<number>;
|
6
6
|
computedPageSize: Ref<number>;
|
@@ -12,7 +12,7 @@ interface PaginationContext {
|
|
12
12
|
bufferSize: Ref<number>;
|
13
13
|
}
|
14
14
|
declare const _default: () => {
|
15
|
-
provide: (props:
|
15
|
+
provide: (props: RecordType, emits: PaginationEmits) => {
|
16
16
|
total: import('vue').WritableComputedRef<number, number>;
|
17
17
|
size: import('vue').ComputedRef<any>;
|
18
18
|
pages: import('vue').ComputedRef<number>;
|