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
@@ -1,6 +1,6 @@
|
|
1
1
|
import { nextTick } from 'vue';
|
2
2
|
import { MentionProps, MentionSlots } from './type';
|
3
|
-
import {
|
3
|
+
import { SelectOptionValue } from '../Select';
|
4
4
|
declare function __VLS_template(): {
|
5
5
|
attrs: Partial<{}>;
|
6
6
|
slots: Readonly<MentionSlots> & MentionSlots;
|
@@ -15,7 +15,7 @@ declare function __VLS_template(): {
|
|
15
15
|
readonly data?: import('../Select').SelectOption[] | undefined;
|
16
16
|
readonly popupContainer?: import('../_shared/type').PopupContainer | undefined;
|
17
17
|
readonly strict?: boolean | undefined;
|
18
|
-
readonly filterOption?: (
|
18
|
+
readonly filterOption?: import('../_shared/type').FilterOption<import('../Select').SelectOptionData> | undefined;
|
19
19
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
20
20
|
readonly allowClear?: boolean | undefined;
|
21
21
|
readonly vistualListProps?: import('../Select').VirtualListProps | undefined;
|
@@ -63,12 +63,12 @@ declare function __VLS_template(): {
|
|
63
63
|
readonly popupVisible?: boolean | undefined;
|
64
64
|
readonly defaultPopupVisible?: boolean | undefined;
|
65
65
|
readonly unmountonClose?: boolean | undefined;
|
66
|
-
readonly filterOption?: import('../Select').
|
66
|
+
readonly filterOption?: (boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>) | undefined;
|
67
67
|
readonly options?: import('../Select').SelectOption[] | undefined;
|
68
68
|
readonly virtualListProps?: import('../Select').VirtualListProps | undefined;
|
69
69
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
70
|
-
readonly formatLabel?: import('../Select').
|
71
|
-
readonly fallbackOption?: import('../Select').
|
70
|
+
readonly formatLabel?: import('../_shared/type').Format<import('../Select').SelectOptionData> | undefined;
|
71
|
+
readonly fallbackOption?: import('../_shared/type').FallBack<SelectOptionValue, import('../Select').SelectOptionData> | undefined;
|
72
72
|
readonly showExtraOptions?: boolean | undefined;
|
73
73
|
readonly valueKey?: string | undefined;
|
74
74
|
readonly searchDelay?: number | undefined;
|
@@ -84,13 +84,13 @@ declare function __VLS_template(): {
|
|
84
84
|
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
85
85
|
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
86
86
|
readonly onClear?: (() => any) | undefined;
|
87
|
-
readonly onSelect?: ((value:
|
87
|
+
readonly onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
88
88
|
readonly onSearch?: ((value: string) => any) | undefined;
|
89
89
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
90
90
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
91
91
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
92
92
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
93
|
-
readonly onExceedLimit?: ((value:
|
93
|
+
readonly onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
94
94
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
95
95
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
96
96
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
@@ -107,7 +107,7 @@ declare function __VLS_template(): {
|
|
107
107
|
readonly popupVisible?: boolean | undefined;
|
108
108
|
readonly defaultPopupVisible?: boolean | undefined;
|
109
109
|
readonly trigger?: import('..').TriggerType | undefined;
|
110
|
-
readonly position?: import('
|
110
|
+
readonly position?: import('../_shared/type').PopupPosition | undefined;
|
111
111
|
readonly disabled?: boolean | undefined;
|
112
112
|
readonly popupOffset?: number | undefined;
|
113
113
|
readonly popupTranslate?: number[] | undefined;
|
@@ -253,7 +253,7 @@ declare function __VLS_template(): {
|
|
253
253
|
scrollToClose: boolean;
|
254
254
|
autoSetPosition: boolean;
|
255
255
|
alignPoint: boolean;
|
256
|
-
position: import('
|
256
|
+
position: import('../_shared/type').PopupPosition;
|
257
257
|
popupOffset: number;
|
258
258
|
popupTranslate: number[];
|
259
259
|
showArrow: boolean;
|
@@ -307,7 +307,7 @@ declare function __VLS_template(): {
|
|
307
307
|
scrollToClose: boolean;
|
308
308
|
autoSetPosition: boolean;
|
309
309
|
alignPoint: boolean;
|
310
|
-
position: import('
|
310
|
+
position: import('../_shared/type').PopupPosition;
|
311
311
|
popupOffset: number;
|
312
312
|
popupTranslate: number[];
|
313
313
|
showArrow: boolean;
|
@@ -354,7 +354,7 @@ declare function __VLS_template(): {
|
|
354
354
|
readonly size?: import('../_shared/type').Size | undefined;
|
355
355
|
readonly maxTagCount?: number | undefined;
|
356
356
|
readonly retainInputValue?: import('..').InputRetainValue | undefined;
|
357
|
-
readonly formatTag?: import('..').
|
357
|
+
readonly formatTag?: import('../_shared/type').Format<import('..').TagData> | undefined;
|
358
358
|
readonly uniqueValue?: boolean | undefined;
|
359
359
|
readonly tagNowrap?: boolean | undefined;
|
360
360
|
readonly fieldNames?: Record<string, string> | undefined;
|
@@ -486,20 +486,20 @@ declare function __VLS_template(): {
|
|
486
486
|
$root: import('vue').ComponentPublicInstance | null;
|
487
487
|
$parent: import('vue').ComponentPublicInstance | null;
|
488
488
|
$host: Element | null;
|
489
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value:
|
489
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
490
490
|
$el: any;
|
491
491
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
492
492
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
493
493
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
494
494
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
495
495
|
onClear?: (() => any) | undefined;
|
496
|
-
onSelect?: ((value:
|
496
|
+
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
497
497
|
onSearch?: ((value: string) => any) | undefined;
|
498
498
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
499
499
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
500
500
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
501
501
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
502
|
-
onExceedLimit?: ((value:
|
502
|
+
onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
503
503
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
504
504
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
505
505
|
}>, {
|
@@ -511,13 +511,13 @@ declare function __VLS_template(): {
|
|
511
511
|
"update:popupVisible": (value: boolean) => any;
|
512
512
|
"popup-visible-change": (value: boolean) => any;
|
513
513
|
clear: () => any;
|
514
|
-
select: (value:
|
514
|
+
select: (value: SelectOptionValue) => any;
|
515
515
|
search: (value: string) => any;
|
516
516
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
517
517
|
"update:inputValue": (value: string) => any;
|
518
518
|
"input-value-change": (value: string) => any;
|
519
519
|
remove: (index: string | number, ev: Event) => any;
|
520
|
-
exceedLimit: (value:
|
520
|
+
exceedLimit: (value: SelectOptionValue, ev?: MouseEvent | undefined) => any;
|
521
521
|
"dropdown-scroll": (ev: Event) => any;
|
522
522
|
"dropdown-reach-bottom": (ev: Event) => any;
|
523
523
|
}, string, {
|
@@ -546,7 +546,7 @@ declare function __VLS_template(): {
|
|
546
546
|
showEmpty: boolean;
|
547
547
|
allowCreate: boolean;
|
548
548
|
maxTagCount: number;
|
549
|
-
filterOption: import('../Select').
|
549
|
+
filterOption: boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
550
550
|
virtualListProps: import('../Select').VirtualListProps;
|
551
551
|
triggerProps: import('..').TriggerProps;
|
552
552
|
searchDelay: number;
|
@@ -599,7 +599,7 @@ declare function __VLS_template(): {
|
|
599
599
|
showEmpty: boolean;
|
600
600
|
allowCreate: boolean;
|
601
601
|
maxTagCount: number;
|
602
|
-
filterOption: import('../Select').
|
602
|
+
filterOption: boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
603
603
|
virtualListProps: import('../Select').VirtualListProps;
|
604
604
|
triggerProps: import('..').TriggerProps;
|
605
605
|
searchDelay: number;
|
@@ -611,13 +611,13 @@ declare function __VLS_template(): {
|
|
611
611
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
612
612
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
613
613
|
onClear?: (() => any) | undefined;
|
614
|
-
onSelect?: ((value:
|
614
|
+
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
615
615
|
onSearch?: ((value: string) => any) | undefined;
|
616
616
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
617
617
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
618
618
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
619
619
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
620
|
-
onExceedLimit?: ((value:
|
620
|
+
onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
621
621
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
622
622
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
623
623
|
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "error" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
@@ -750,7 +750,7 @@ declare function __VLS_template(): {
|
|
750
750
|
modelValue: string;
|
751
751
|
defaultValue: string;
|
752
752
|
allowClear: boolean;
|
753
|
-
filterOption: (
|
753
|
+
filterOption: import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
754
754
|
triggerProps: import('..').TriggerProps;
|
755
755
|
isSelectSetValue: boolean;
|
756
756
|
isSearch: boolean;
|
@@ -783,7 +783,7 @@ declare function __VLS_template(): {
|
|
783
783
|
modelValue: string;
|
784
784
|
defaultValue: string;
|
785
785
|
allowClear: boolean;
|
786
|
-
filterOption: (
|
786
|
+
filterOption: import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
787
787
|
triggerProps: import('..').TriggerProps;
|
788
788
|
isSelectSetValue: boolean;
|
789
789
|
isSearch: boolean;
|
@@ -821,7 +821,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
821
821
|
clear: (ev: MouseEvent) => any;
|
822
822
|
blur: (ev: FocusEvent) => any;
|
823
823
|
input: (value: string, ev: Event) => any;
|
824
|
-
select: (value:
|
824
|
+
select: (value: SelectOptionValue) => any;
|
825
825
|
search: (value: string) => any;
|
826
826
|
"update:modelValue": (value: string) => any;
|
827
827
|
}, string, import('vue').PublicProps, Readonly<MentionProps> & Readonly<{
|
@@ -830,12 +830,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
830
830
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
831
831
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
832
832
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
833
|
-
onSelect?: ((value:
|
833
|
+
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
834
834
|
onSearch?: ((value: string) => any) | undefined;
|
835
835
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
836
836
|
}>, {
|
837
837
|
disabled: boolean;
|
838
|
-
type:
|
838
|
+
type: import('./type').MentionType;
|
839
839
|
data: import('../Select').SelectOption[];
|
840
840
|
split: string;
|
841
841
|
modelValue: string;
|
@@ -853,7 +853,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
853
853
|
readonly data?: import('../Select').SelectOption[] | undefined;
|
854
854
|
readonly popupContainer?: import('../_shared/type').PopupContainer | undefined;
|
855
855
|
readonly strict?: boolean | undefined;
|
856
|
-
readonly filterOption?: (
|
856
|
+
readonly filterOption?: import('../_shared/type').FilterOption<import('../Select').SelectOptionData> | undefined;
|
857
857
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
858
858
|
readonly allowClear?: boolean | undefined;
|
859
859
|
readonly vistualListProps?: import('../Select').VirtualListProps | undefined;
|
@@ -901,12 +901,12 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
901
901
|
readonly popupVisible?: boolean | undefined;
|
902
902
|
readonly defaultPopupVisible?: boolean | undefined;
|
903
903
|
readonly unmountonClose?: boolean | undefined;
|
904
|
-
readonly filterOption?: import('../Select').
|
904
|
+
readonly filterOption?: (boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>) | undefined;
|
905
905
|
readonly options?: import('../Select').SelectOption[] | undefined;
|
906
906
|
readonly virtualListProps?: import('../Select').VirtualListProps | undefined;
|
907
907
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
908
|
-
readonly formatLabel?: import('../Select').
|
909
|
-
readonly fallbackOption?: import('../Select').
|
908
|
+
readonly formatLabel?: import('../_shared/type').Format<import('../Select').SelectOptionData> | undefined;
|
909
|
+
readonly fallbackOption?: import('../_shared/type').FallBack<SelectOptionValue, import('../Select').SelectOptionData> | undefined;
|
910
910
|
readonly showExtraOptions?: boolean | undefined;
|
911
911
|
readonly valueKey?: string | undefined;
|
912
912
|
readonly searchDelay?: number | undefined;
|
@@ -922,13 +922,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
922
922
|
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
923
923
|
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
924
924
|
readonly onClear?: (() => any) | undefined;
|
925
|
-
readonly onSelect?: ((value:
|
925
|
+
readonly onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
926
926
|
readonly onSearch?: ((value: string) => any) | undefined;
|
927
927
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
928
928
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
929
929
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
930
930
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
931
|
-
readonly onExceedLimit?: ((value:
|
931
|
+
readonly onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
932
932
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
933
933
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
934
934
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
@@ -945,7 +945,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
945
945
|
readonly popupVisible?: boolean | undefined;
|
946
946
|
readonly defaultPopupVisible?: boolean | undefined;
|
947
947
|
readonly trigger?: import('..').TriggerType | undefined;
|
948
|
-
readonly position?: import('
|
948
|
+
readonly position?: import('../_shared/type').PopupPosition | undefined;
|
949
949
|
readonly disabled?: boolean | undefined;
|
950
950
|
readonly popupOffset?: number | undefined;
|
951
951
|
readonly popupTranslate?: number[] | undefined;
|
@@ -1091,7 +1091,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1091
1091
|
scrollToClose: boolean;
|
1092
1092
|
autoSetPosition: boolean;
|
1093
1093
|
alignPoint: boolean;
|
1094
|
-
position: import('
|
1094
|
+
position: import('../_shared/type').PopupPosition;
|
1095
1095
|
popupOffset: number;
|
1096
1096
|
popupTranslate: number[];
|
1097
1097
|
showArrow: boolean;
|
@@ -1145,7 +1145,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1145
1145
|
scrollToClose: boolean;
|
1146
1146
|
autoSetPosition: boolean;
|
1147
1147
|
alignPoint: boolean;
|
1148
|
-
position: import('
|
1148
|
+
position: import('../_shared/type').PopupPosition;
|
1149
1149
|
popupOffset: number;
|
1150
1150
|
popupTranslate: number[];
|
1151
1151
|
showArrow: boolean;
|
@@ -1192,7 +1192,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1192
1192
|
readonly size?: import('../_shared/type').Size | undefined;
|
1193
1193
|
readonly maxTagCount?: number | undefined;
|
1194
1194
|
readonly retainInputValue?: import('..').InputRetainValue | undefined;
|
1195
|
-
readonly formatTag?: import('..').
|
1195
|
+
readonly formatTag?: import('../_shared/type').Format<import('..').TagData> | undefined;
|
1196
1196
|
readonly uniqueValue?: boolean | undefined;
|
1197
1197
|
readonly tagNowrap?: boolean | undefined;
|
1198
1198
|
readonly fieldNames?: Record<string, string> | undefined;
|
@@ -1324,20 +1324,20 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1324
1324
|
$root: import('vue').ComponentPublicInstance | null;
|
1325
1325
|
$parent: import('vue').ComponentPublicInstance | null;
|
1326
1326
|
$host: Element | null;
|
1327
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value:
|
1327
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: SelectOptionValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
1328
1328
|
$el: any;
|
1329
1329
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
1330
1330
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1331
1331
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1332
1332
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1333
1333
|
onClear?: (() => any) | undefined;
|
1334
|
-
onSelect?: ((value:
|
1334
|
+
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
1335
1335
|
onSearch?: ((value: string) => any) | undefined;
|
1336
1336
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1337
1337
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1338
1338
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1339
1339
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1340
|
-
onExceedLimit?: ((value:
|
1340
|
+
onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1341
1341
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1342
1342
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1343
1343
|
}>, {
|
@@ -1349,13 +1349,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1349
1349
|
"update:popupVisible": (value: boolean) => any;
|
1350
1350
|
"popup-visible-change": (value: boolean) => any;
|
1351
1351
|
clear: () => any;
|
1352
|
-
select: (value:
|
1352
|
+
select: (value: SelectOptionValue) => any;
|
1353
1353
|
search: (value: string) => any;
|
1354
1354
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
1355
1355
|
"update:inputValue": (value: string) => any;
|
1356
1356
|
"input-value-change": (value: string) => any;
|
1357
1357
|
remove: (index: string | number, ev: Event) => any;
|
1358
|
-
exceedLimit: (value:
|
1358
|
+
exceedLimit: (value: SelectOptionValue, ev?: MouseEvent | undefined) => any;
|
1359
1359
|
"dropdown-scroll": (ev: Event) => any;
|
1360
1360
|
"dropdown-reach-bottom": (ev: Event) => any;
|
1361
1361
|
}, string, {
|
@@ -1384,7 +1384,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1384
1384
|
showEmpty: boolean;
|
1385
1385
|
allowCreate: boolean;
|
1386
1386
|
maxTagCount: number;
|
1387
|
-
filterOption: import('../Select').
|
1387
|
+
filterOption: boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
1388
1388
|
virtualListProps: import('../Select').VirtualListProps;
|
1389
1389
|
triggerProps: import('..').TriggerProps;
|
1390
1390
|
searchDelay: number;
|
@@ -1437,7 +1437,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1437
1437
|
showEmpty: boolean;
|
1438
1438
|
allowCreate: boolean;
|
1439
1439
|
maxTagCount: number;
|
1440
|
-
filterOption: import('../Select').
|
1440
|
+
filterOption: boolean | import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
1441
1441
|
virtualListProps: import('../Select').VirtualListProps;
|
1442
1442
|
triggerProps: import('..').TriggerProps;
|
1443
1443
|
searchDelay: number;
|
@@ -1449,13 +1449,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1449
1449
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1450
1450
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1451
1451
|
onClear?: (() => any) | undefined;
|
1452
|
-
onSelect?: ((value:
|
1452
|
+
onSelect?: ((value: SelectOptionValue) => any) | undefined;
|
1453
1453
|
onSearch?: ((value: string) => any) | undefined;
|
1454
1454
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1455
1455
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1456
1456
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1457
1457
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1458
|
-
onExceedLimit?: ((value:
|
1458
|
+
onExceedLimit?: ((value: SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1459
1459
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1460
1460
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1461
1461
|
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "error" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
@@ -1588,7 +1588,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1588
1588
|
modelValue: string;
|
1589
1589
|
defaultValue: string;
|
1590
1590
|
allowClear: boolean;
|
1591
|
-
filterOption: (
|
1591
|
+
filterOption: import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
1592
1592
|
triggerProps: import('..').TriggerProps;
|
1593
1593
|
isSelectSetValue: boolean;
|
1594
1594
|
isSearch: boolean;
|
@@ -1621,7 +1621,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1621
1621
|
modelValue: string;
|
1622
1622
|
defaultValue: string;
|
1623
1623
|
allowClear: boolean;
|
1624
|
-
filterOption: (
|
1624
|
+
filterOption: import('../_shared/type').FilterOption<import('../Select').SelectOptionData>;
|
1625
1625
|
triggerProps: import('..').TriggerProps;
|
1626
1626
|
isSelectSetValue: boolean;
|
1627
1627
|
isSearch: boolean;
|
package/lib/Mention/type.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { SelectOption,
|
2
|
-
import {
|
1
|
+
import { SelectOption, SelectOptionValue } from '../Select';
|
2
|
+
import { RecordType } from '../_shared/type';
|
3
3
|
import { VNode } from 'vue';
|
4
4
|
export interface MentionProps {
|
5
5
|
modelValue?: string;
|
@@ -7,7 +7,7 @@ export interface MentionProps {
|
|
7
7
|
data?: SelectOption[];
|
8
8
|
prefix?: string | string[];
|
9
9
|
split?: string;
|
10
|
-
type?:
|
10
|
+
type?: MentionType;
|
11
11
|
disabled?: boolean;
|
12
12
|
allowClear?: boolean;
|
13
13
|
}
|
@@ -15,7 +15,7 @@ export interface MentionEmits {
|
|
15
15
|
(e: 'update:modelValue', value: string): void;
|
16
16
|
(e: 'change', value: string): void;
|
17
17
|
(e: 'search', value: string): void;
|
18
|
-
(e: 'select', value:
|
18
|
+
(e: 'select', value: SelectOptionValue): void;
|
19
19
|
(e: 'focus', ev: FocusEvent): void;
|
20
20
|
(e: 'blur', ev: FocusEvent): void;
|
21
21
|
(e: 'clear', ev: MouseEvent): void;
|
@@ -27,6 +27,7 @@ export interface MentionExpose {
|
|
27
27
|
}
|
28
28
|
export interface MentionSlots {
|
29
29
|
option?: (scope: {
|
30
|
-
data:
|
30
|
+
data: RecordType;
|
31
31
|
}) => VNode[];
|
32
32
|
}
|
33
|
+
export type MentionType = 'input' | 'textarea';
|
package/lib/Menu/Menu.vue.d.ts
CHANGED
@@ -9,28 +9,27 @@ declare function __VLS_template(): {
|
|
9
9
|
};
|
10
10
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
11
11
|
declare const __VLS_component: import('vue').DefineComponent<MenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
12
|
-
collapse: (collapsed: boolean, type:
|
12
|
+
collapse: (collapsed: boolean, type: import('..').collapseType) => any;
|
13
13
|
"update:selectedKeys": (value: string) => any;
|
14
14
|
"update:openKeys": (value: string) => any;
|
15
15
|
"update:collapsed": (value: boolean) => any;
|
16
16
|
"menu-item-click": (key: string) => any;
|
17
17
|
"sub-menu-click": (key: string, openKeys: string[]) => any;
|
18
18
|
}, string, import('vue').PublicProps, Readonly<MenuProps> & Readonly<{
|
19
|
-
onCollapse?: ((collapsed: boolean, type:
|
19
|
+
onCollapse?: ((collapsed: boolean, type: import('..').collapseType) => any) | undefined;
|
20
20
|
"onUpdate:selectedKeys"?: ((value: string) => any) | undefined;
|
21
21
|
"onUpdate:openKeys"?: ((value: string) => any) | undefined;
|
22
22
|
"onUpdate:collapsed"?: ((value: boolean) => any) | undefined;
|
23
23
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
24
24
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
25
25
|
}>, {
|
26
|
-
mode: import('
|
26
|
+
mode: import('..').Direction;
|
27
27
|
triggerProps: import('..').TriggerProps;
|
28
|
-
|
29
|
-
breakpoint: import('..').BreakpointName;
|
30
|
-
popupMaxHeight: import('./type').PopupMaxHeight;
|
28
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
31
29
|
theme: import('..').Theme;
|
32
30
|
levelIndent: number;
|
33
31
|
autoOpen: boolean;
|
32
|
+
collapsed: boolean;
|
34
33
|
defaultCollapsed: boolean;
|
35
34
|
collapsedWidth: number | string;
|
36
35
|
accordion: boolean;
|
@@ -39,6 +38,7 @@ declare const __VLS_component: import('vue').DefineComponent<MenuProps, {}, {},
|
|
39
38
|
defaultSelectedKeys: string;
|
40
39
|
openKeys: string[];
|
41
40
|
defaultOpenKeys: string[];
|
41
|
+
breakpoint: import('..').BreakpointName;
|
42
42
|
tooltipProps: import('..').TooltipProps;
|
43
43
|
autoOpenSelected: boolean;
|
44
44
|
autoScrollIntoView: boolean;
|
package/lib/Menu/Menu.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"),require("../_shared/utils/locale.js"),/* 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"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconMenuFold.vue.js"),l=require("../_shared/icons/IconMenuUnfold.vue.js"),n=require("./hooks/useContext.js"),u=require("./MenuEllipsis.vue.js");;/* empty css */const a=e.defineComponent({name:"Menu",inheritAttrs:!1,__name:"Menu",props:{theme:{default:void 0},mode:{default:"vertical"},levelIndent:{default:20},autoOpen:{type:Boolean,default:!1},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsedWidth:{default:48},accordion:{type:Boolean,default:!1},showCollapseButton:{type:Boolean,default:!1},selectedKeys:{default:void 0},defaultSelectedKeys:{default:""},openKeys:{default:void 0},defaultOpenKeys:{default:()=>[]},breakpoint:{default:void 0},triggerProps:{default:()=>({})},tooltipProps:{default:()=>({})},autoOpenSelected:{type:Boolean,default:!1},autoScrollIntoView:{type:Boolean,default:!1},scrollConfig:{},popupMaxHeight:{type:[Boolean,Number],default:167}},emits:["update:selectedKeys","update:openKeys","update:collapsed","collapse","menu-item-click","sub-menu-click"],setup(a,{emit:r}){const s=a,d=r,c=e.ref(),{computedCollapsed:i,collapsedWidth:p,breakpoint:m,menuTree:f,max:y,theme:v}=n.default().provide(s,d,c),h=()=>{const e=!i.value;i.value=e,d("collapse",e,"clickTrigger")};return o.mediaQueryHandler((e,o,t)=>{if(!m.value)return;const l=t<=o[m.value];i.value=l,d("collapse",l,"responsive")}),(o,n)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-menu",`yc-menu-mode-${o.mode}`,`yc-menu-${e.unref(v)}`,o.$attrs.class,{"yc-menu-collapsed":e.unref(i)&&"horizontal"!=o.mode}]),style:e.normalizeStyle({...o.$attrs.style||{},width:e.unref(i)?e.unref(p):null==(a=o.$attrs.style)?void 0:a.width})},[e.createElementVNode("div",{class:"yc-menu-inner",ref_key:"menuRef",ref:c},[e.renderSlot(o.$slots,"default"),"horizontal"==o.mode&&e.unref(y)<e.unref(f).length?(e.openBlock(),e.createBlock(u,{key:0})):e.createCommentVNode("",!0)],512),o.showCollapseButton&&"horizontal"!=o.mode?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-collapse-button",onClick:h},[e.unref(i)?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):(e.openBlock(),e.createBlock(e.unref(t),{key:0}))])):e.createCommentVNode("",!0)],6)}}});module.exports=a;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue"),r=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./hooks/useContext.js"),n=require("./MenuPopOption.vue.js"),s=require("../Dropdown/index.js"),u={class:e.normalizeClass(["yc-menu-item-wrapper","yc-menu-item-mode-horizontal"])},i={class:"yc-menu-item-title"},c={class:"yc-menu-icon-suffix"},l=e.defineComponent({__name:"MenuEllipsis",setup(l){const{computedSelectedKeys:a,theme:p,triggerProps:m,popupMaxHeight:d,menuTree:h,max:v,emits:f}=o.default().inject(),g=e.computed(()=>h.value.slice(v.value)),x=e.computed(()=>g.value.some(e=>o.isMenuItemActive(h.value,e.path,a.value))),y=e=>{a.value!=e&&(a.value=e,f("menu-item-click",e))};return(o,l)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(e.unref(s.default),{"popup-max-height":e.unref(d),"trigger-props":{position:"bl",popupOffset:20,showArrow:!0,...e.unref(m)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(p)}`]),onSelect:y},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,r=>(e.openBlock(),e.createBlock(n,{key:r.path,"tree-node":r,"popup-max-height":e.unref(d),"trigger-props":e.unref(m),"computed-selected-keys":e.unref(a)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item","yc-menu-item-ellipsis",`yc-menu-item-${e.unref(p)}`,{"yc-menu-item-selected":x.value}])},[e.createElementVNode("div",i,[e.createVNode(e.unref(t))]),e.createElementVNode("div",c,[e.createVNode(e.unref(r))])],2)]),_:1},8,["popup-max-height","trigger-props","class"])]))}});module.exports=l;
|
@@ -9,7 +9,7 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<SubMenuProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SubMenuProps> & Readonly<{}>, {
|
10
10
|
title: string;
|
11
11
|
path: string;
|
12
|
-
popupMaxHeight: import('
|
12
|
+
popupMaxHeight: import('..').PopupMaxHeight;
|
13
13
|
selectable: boolean;
|
14
14
|
popup: boolean;
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
package/lib/Menu/SubMenu.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");/* empty css
|
1
|
+
"use strict";const e=require("vue"),t=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");/* empty css */const o=;/* empty css */,/* empty css */,/* empty css */require("./index.js");const r=require("./MenuItem.vue.js");;/* empty css */const s={class:"yc-menu-inline-content"},u=e.defineComponent({name:"SubMenu",__name:"SubMenu",props:{path:{default:""},title:{default:""},selectable:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(u){const{mode:i,theme:l,computedOpenKeys:a,computedCollapsed:d}=t.default().inject();return(t,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-menu-inline",`yc-menu-inline-${e.unref(l)}`])},[e.createVNode(e.unref(r),{"is-submenu":"",path:t.path,popupMaxHeight:t.popupMaxHeight,class:"yc-menu-inline-header"},e.createSlots({suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"expand-icon-down",{},()=>[e.createVNode(e.unref(n),{rotate:e.unref(a).includes(t.path)?180:0},null,8,["rotate"])])]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),_:2},[t.$slots.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),key:"0"}:void 0]),1032,["path","popupMaxHeight"]),e.createVNode(e.unref(o),null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",s,[e.renderSlot(t.$slots,"default")],512),[[e.vShow,"vertical"==e.unref(i)&&!e.unref(d)&&e.unref(a).includes(t.path)]])]),_:3})],2))}});module.exports=u;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { Ref, VNode } from 'vue';
|
2
2
|
import { TooltipProps } from '../../Tooltip';
|
3
3
|
import { TriggerProps } from '../../Trigger';
|
4
|
-
import {
|
5
|
-
import {
|
4
|
+
import { MenuEmits } from '../type';
|
5
|
+
import { RecordType, PopupMaxHeight, Direction } from '../../_shared/type';
|
6
6
|
type MenuContext = {
|
7
7
|
computedSelectedKeys: Ref<string>;
|
8
8
|
computedOpenKeys: Ref<string[]>;
|
@@ -11,7 +11,7 @@ type MenuContext = {
|
|
11
11
|
accordion: Ref<boolean>;
|
12
12
|
autoOpen: Ref<boolean>;
|
13
13
|
autoOpenSelected: Ref<boolean>;
|
14
|
-
mode: Ref<
|
14
|
+
mode: Ref<Direction>;
|
15
15
|
theme: Ref<'light' | 'dark'>;
|
16
16
|
autoScrollIntoView: Ref<boolean>;
|
17
17
|
scrollConfig: Ref<ScrollIntoViewOptions>;
|
@@ -38,10 +38,10 @@ export declare function buildMenuTree(flatData: MenuTreeNode[]): MenuTreeNode[];
|
|
38
38
|
export declare function isMenuItemActive(menuTree: MenuTreeNode[], currentPath: string, activePath: string): boolean;
|
39
39
|
export declare const getPopupMaxHeight: (popupMaxHeight: PopupMaxHeight) => number | undefined;
|
40
40
|
declare const _default: () => {
|
41
|
-
provide: (props:
|
41
|
+
provide: (props: RecordType, emits: MenuEmits, menuRef: Ref<HTMLDivElement | undefined>) => {
|
42
42
|
theme: import('vue').ComputedRef<import('../../_shared/type').Theme>;
|
43
43
|
computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
|
44
|
-
breakpoint: Ref<import('
|
44
|
+
breakpoint: Ref<import('../../_shared/type').BreakpointName, import('../../_shared/type').BreakpointName>;
|
45
45
|
collapsedWidth: import('vue').ComputedRef<string>;
|
46
46
|
menuTree: import('vue').ComputedRef<MenuTreeNode[]>;
|
47
47
|
max: Ref<number, number>;
|