yc-design-vue 1.9.4 → 1.9.6
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/index.vue.js +0 -2
- package/es/Alert/index.vue.js +2 -3
- package/es/Anchor/Anchor.vue.js +0 -2
- package/es/Anchor/AnchorLink.vue.js +0 -2
- package/es/Anchor/hooks/useContext.js +0 -2
- package/es/AutoComplete/index.d.ts +6 -6
- package/es/AutoComplete/index.vue.d.ts +12 -12
- package/es/AutoComplete/index.vue.js +0 -2
- package/es/Avatar/Avatar.vue.js +0 -1
- package/es/Avatar/AvatarGroup.vue.js +0 -2
- package/es/Badge/index.vue.js +0 -2
- package/es/Breadcrumb/Breadcrumb.vue.js +0 -2
- package/es/Breadcrumb/BreadcrumbItem.vue.js +0 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +0 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -2
- package/es/Button/Button.vue.d.ts +1 -1
- package/es/Button/index.d.ts +3 -3
- package/es/Calendar/Calendar.vue.js +3 -4
- package/es/Calendar/CalendarMonth.vue.js +0 -2
- package/es/Calendar/CalendarYear.vue.js +0 -2
- package/es/Card/Card.vue.d.ts +1 -1
- package/es/Card/CardMeta.vue.js +0 -2
- package/es/Card/index.d.ts +3 -3
- package/es/Carousel/Carousel.vue.js +0 -2
- package/es/Carousel/CarouselArrow.vue.js +0 -1
- package/es/Carousel/CarouselIndicator.vue.js +0 -2
- package/es/Carousel/hooks/useContext.js +0 -2
- package/es/Cascader/Cascader.vue.d.ts +1 -1
- package/es/Cascader/Cascader.vue.js +0 -2
- package/es/Cascader/CascaderIcon.vue.js +1 -2
- package/es/Cascader/CascaderOption.vue.js +0 -1
- package/es/Cascader/CascaderPanel.vue.js +2 -7
- package/es/Cascader/CascaderSearchPanel.vue.js +2 -7
- package/es/Cascader/hooks/useContext.js +0 -2
- package/es/Cascader/index.d.ts +3 -3
- package/es/Checkbox/Checkbox.vue.js +3 -4
- package/es/Checkbox/hooks/useContext.js +0 -2
- package/es/Collapse/CollapseItem.vue.js +2 -3
- package/es/Collapse/hooks/useContext.js +0 -2
- package/es/ColorPicker/ColorControl.vue.js +0 -2
- package/es/ColorPicker/ColorInput.vue.js +0 -2
- package/es/ColorPicker/ColorList.vue.js +0 -2
- package/es/ColorPicker/ColorPalette.vue.js +0 -2
- package/es/ColorPicker/ColorPanel.vue.js +0 -2
- package/es/Comment/index.vue.js +0 -2
- package/es/ConfigProvider/index.d.ts +0 -6
- package/es/ConfigProvider/index.vue.d.ts +0 -2
- package/es/ConfigProvider/index.vue.js +3 -8
- package/es/ConfigProvider/type.d.ts +0 -7
- package/es/Descriptions/ReuseItem.vue.js +0 -2
- package/es/Descriptions/ReuseTd.vue.js +0 -2
- package/es/Divider/index.vue.js +0 -2
- package/es/Drawer/Drawer.vue.js +4 -5
- package/es/Drawer/DrawerService.vue.js +0 -2
- package/es/Dropdown/Doption.vue.js +0 -3
- package/es/Dropdown/Dropdown.vue.js +1 -5
- package/es/Dropdown/DropdownButton.vue.js +0 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +6 -6
- package/es/Dropdown/Dsubmenu.vue.js +9 -13
- package/es/Dropdown/hooks/useContext.js +0 -2
- package/es/Dropdown/index.css +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +1 -2
- package/es/Grid/Grid.vue.js +0 -2
- package/es/Grid/GridCol.vue.js +0 -2
- package/es/Grid/GridItem.vue.js +0 -2
- package/es/Grid/GridRow.vue.js +0 -2
- package/es/Grid/hooks/useContext.js +0 -2
- package/es/Image/Image.vue.js +2 -3
- package/es/Image/ImagePreview.vue.js +3 -4
- package/es/Image/ImagePreviewArrow.vue.js +0 -1
- package/es/Image/ImagePreviewToolbar.vue.js +0 -1
- package/es/Image/hooks/useContext.js +0 -2
- package/es/Input/Input.vue.js +1 -1
- package/es/Input/InputSuffix.vue.js +1 -2
- package/es/Input/hooks/useLimitedInput.js +0 -2
- package/es/InputNumber/InputNumber.vue.js +0 -2
- package/es/InputNumber/InputOperaBtn.vue.js +0 -1
- package/es/InputTag/index.vue.js +1 -1
- package/es/Layout/Layout.vue.js +0 -2
- package/es/Layout/LayoutSider.vue.js +1 -2
- package/es/Layout/hooks/useSiderContext.js +0 -2
- package/es/Layout/index.css +1 -1
- package/es/Link/index.d.ts +3 -3
- package/es/Link/index.vue.d.ts +1 -1
- package/es/Link/index.vue.js +0 -1
- package/es/List/List.vue.d.ts +1 -1
- package/es/List/List.vue.js +4 -3
- package/es/List/hooks/useScrollReach.js +0 -2
- package/es/List/index.d.ts +3 -3
- package/es/Mention/index.d.ts +6 -6
- package/es/Mention/index.vue.d.ts +12 -12
- package/es/Mention/index.vue.js +0 -2
- package/es/Menu/Menu.vue.js +1 -2
- package/es/Menu/MenuEllipsis.vue.js +2 -2
- package/es/Menu/MenuItem.vue.js +2 -3
- package/es/Menu/MenuItemGroup.vue.js +0 -2
- package/es/Menu/SubMenu.vue.js +2 -3
- package/es/Menu/hooks/useContext.js +2 -6
- package/es/Menu/index.css +1 -1
- package/es/Message/Message.vue.js +2 -3
- package/es/Message/index.js +0 -2
- package/es/Modal/Modal.vue.js +4 -5
- package/es/Modal/ModalService.vue.js +0 -2
- package/es/Modal/hooks/useModalClose.js +0 -2
- package/es/Modal/hooks/useModalDraggable.js +0 -2
- package/es/Modal/hooks/useOnBeforeClose.js +0 -2
- package/es/Notification/Notification.vue.js +2 -3
- package/es/Notification/index.js +0 -2
- package/es/OverflowList/index.vue.js +0 -2
- package/es/PageHeader/index.vue.js +1 -2
- package/es/Pagination/Pagination.vue.js +0 -2
- package/es/Pagination/PaginationItem.vue.js +0 -1
- package/es/Popconfirm/index.d.ts +3 -3
- package/es/Popconfirm/index.vue.d.ts +6 -6
- package/es/Popconfirm/index.vue.js +0 -2
- package/es/Popover/index.vue.js +0 -2
- package/es/Progress/ProgressCircle.vue.js +2 -3
- package/es/Progress/ProgressLine.vue.js +0 -2
- package/es/Progress/ProgressSteps.vue.js +0 -2
- package/es/Radio/Radio.vue.js +2 -3
- package/es/Rate/index.vue.js +2 -3
- package/es/ResizeBox/index.vue.js +0 -1
- package/es/Scrollbar/Scrollbar.vue.js +0 -2
- package/es/Scrollbar/ScrollbarTrack.vue.js +0 -2
- package/es/Select/Option.vue.js +0 -2
- package/es/Select/Select.vue.d.ts +7 -7
- package/es/Select/Select.vue.js +0 -2
- package/es/Select/SelectIcon.vue.js +1 -2
- package/es/Select/SelectRealList.vue.js +0 -2
- package/es/Select/SelectView.vue.js +2 -7
- package/es/Select/SelectVirtualList.vue.js +0 -2
- package/es/Select/hooks/useContext.js +0 -2
- package/es/Select/hooks/useSelectOptions.js +0 -2
- package/es/Select/index.d.ts +6 -6
- package/es/Skeleton/Skeleton.vue.d.ts +1 -1
- package/es/Skeleton/SkeletonLine.vue.js +0 -2
- package/es/Skeleton/index.d.ts +3 -3
- package/es/Slider/SliderBtn.vue.js +0 -2
- package/es/Slider/hooks/useContext.js +0 -2
- package/es/Slider/hooks/useSliderDraggable.js +0 -2
- package/es/Space/index.vue.js +0 -2
- package/es/Spin/index.d.ts +3 -3
- package/es/Spin/index.vue.d.ts +1 -1
- package/es/Spin/index.vue.js +4 -4
- package/es/Split/index.vue.js +0 -1
- package/es/Statistic/Countdown.vue.js +0 -2
- package/es/Statistic/Statistic.vue.js +0 -2
- package/es/Steps/Step.vue.js +0 -1
- package/es/Steps/hooks/useContext.js +0 -2
- package/es/Switch/index.d.ts +3 -3
- package/es/Switch/index.vue.d.ts +1 -1
- package/es/Tabs/TabButton.vue.js +2 -3
- package/es/Tabs/TabPane.vue.js +0 -2
- package/es/Tabs/Tabs.vue.js +3 -4
- package/es/Tabs/TabsNavInk.vue.js +0 -2
- package/es/Tabs/TabsTab.vue.js +0 -2
- package/es/Tabs/hooks/useTabsScroll.js +0 -2
- package/es/Tag/index.d.ts +3 -3
- package/es/Tag/index.vue.d.ts +1 -1
- package/es/Tag/index.vue.js +1 -1
- package/es/Textarea/hooks/useTextareaHeight.js +0 -2
- package/es/Textarea/index.vue.js +2 -3
- package/es/TimePicker/TimePicker.vue.js +1 -1
- package/es/TimePicker/TimePickerPanel.vue.js +0 -2
- package/es/TimePicker/hooks/useContext.js +0 -2
- package/es/Timeline/TimelineItemPending.vue.js +0 -2
- package/es/Timeline/hooks/useContext.js +0 -2
- package/es/Tooltip/index.vue.js +0 -2
- package/es/Transfer/Transfer.vue.js +0 -1
- package/es/Transfer/TransferPanel.vue.js +3 -4
- package/es/Transfer/hooks/useContext.js +0 -2
- package/es/Trigger/hooks/useContext.js +0 -2
- package/es/Trigger/hooks/useTriggerPosition.js +2 -2
- package/es/Trigger/hooks/useTriggerVisible.js +1 -2
- package/es/Trigger/index.css +1 -1
- package/es/Trigger/index.d.ts +3 -3
- package/es/Trigger/index.vue.d.ts +1 -1
- package/es/Trigger/index.vue.js +6 -7
- package/es/Typography/TypographyBase.vue.js +2 -3
- package/es/VerificationCode/index.vue.js +3 -5
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/Watermark/index.vue.js +0 -2
- package/es/_shared/components/{ExpandTransition.vue2.js → ExpandTransition.vue.js} +0 -2
- package/es/_shared/components/ExpandTransition.vue3.js +2 -2
- package/es/_shared/components/Icon.vue3.js +0 -2
- package/es/_shared/components/IconButton.vue.js +0 -1
- package/es/_shared/constants/index.js +0 -1
- package/es/_shared/icons/IconExclamation.vue.js +1 -28
- package/es/_shared/icons/IconExclamation.vue2.js +28 -1
- package/es/_shared/icons/IconSeparator.vue.js +17 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -17
- package/es/_shared/utils/control.js +0 -2
- package/es/_shared/utils/dom.js +1 -1
- package/es/_shared/utils/global-config.d.ts +2 -16
- package/es/_shared/utils/global-config.js +10 -29
- package/es/_shared/utils/locale.js +2 -2
- package/es/index.d.ts +3 -3
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Anchor/Anchor.vue.js +1 -1
- package/lib/Anchor/AnchorLink.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/AutoComplete/index.d.ts +6 -6
- package/lib/AutoComplete/index.vue.d.ts +12 -12
- package/lib/AutoComplete/index.vue.js +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Breadcrumb/Breadcrumb.vue.js +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/Button/Button.vue.d.ts +1 -1
- package/lib/Button/index.d.ts +3 -3
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Calendar/CalendarMonth.vue.js +1 -1
- package/lib/Calendar/CalendarYear.vue.js +1 -1
- package/lib/Card/Card.vue.d.ts +1 -1
- package/lib/Card/CardMeta.vue.js +1 -1
- package/lib/Card/index.d.ts +3 -3
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Carousel/CarouselIndicator.vue.js +1 -1
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +1 -1
- 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/CascaderPanel.vue.js +1 -1
- package/lib/Cascader/CascaderSearchPanel.vue.js +1 -1
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +3 -3
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorInput.vue.js +1 -1
- package/lib/ColorPicker/ColorList.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/ColorPanel.vue.js +1 -1
- package/lib/Comment/index.vue.js +1 -1
- package/lib/ConfigProvider/index.d.ts +0 -6
- package/lib/ConfigProvider/index.vue.d.ts +0 -2
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +0 -7
- package/lib/Descriptions/ReuseItem.vue.js +1 -1
- package/lib/Descriptions/ReuseTd.vue.js +1 -1
- package/lib/Divider/index.vue.js +1 -1
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/DrawerService.vue.js +1 -1
- package/lib/Dropdown/Doption.vue.js +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 +6 -6
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.css +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue.js +1 -1
- package/lib/Grid/hooks/useContext.js +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.js +1 -1
- package/lib/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/hooks/useLimitedInput.js +1 -1
- package/lib/InputNumber/InputNumber.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/Layout/index.css +1 -1
- package/lib/Link/index.d.ts +3 -3
- package/lib/Link/index.vue.d.ts +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/List/List.vue.d.ts +1 -1
- package/lib/List/List.vue.js +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +3 -3
- package/lib/Mention/index.d.ts +6 -6
- package/lib/Mention/index.vue.d.ts +12 -12
- package/lib/Mention/index.vue.js +1 -1
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/MenuItemGroup.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Menu/index.css +1 -1
- package/lib/Message/Message.vue.js +1 -1
- package/lib/Message/index.js +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/ModalService.vue.js +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Modal/hooks/useOnBeforeClose.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/Notification/index.js +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/Pagination.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Popconfirm/index.d.ts +3 -3
- package/lib/Popconfirm/index.vue.d.ts +6 -6
- package/lib/Popconfirm/index.vue.js +1 -1
- package/lib/Popover/index.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Progress/ProgressLine.vue.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue.js +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +7 -7
- 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/SelectView.vue.js +1 -1
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/hooks/useSelectOptions.js +1 -1
- package/lib/Select/index.d.ts +6 -6
- package/lib/Skeleton/Skeleton.vue.d.ts +1 -1
- package/lib/Skeleton/SkeletonLine.vue.js +1 -1
- package/lib/Skeleton/index.d.ts +3 -3
- package/lib/Slider/SliderBtn.vue.js +1 -1
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Space/index.vue.js +1 -1
- package/lib/Spin/index.d.ts +3 -3
- package/lib/Spin/index.vue.d.ts +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Switch/index.d.ts +3 -3
- package/lib/Switch/index.vue.d.ts +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/TabPane.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/TabsNavInk.vue.js +1 -1
- package/lib/Tabs/TabsTab.vue.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Tag/index.d.ts +3 -3
- package/lib/Tag/index.vue.d.ts +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/TimePicker/TimePickerPanel.vue.js +1 -1
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/Timeline/TimelineItemPending.vue.js +1 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Trigger/index.css +1 -1
- package/lib/Trigger/index.d.ts +3 -3
- package/lib/Trigger/index.vue.d.ts +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/VerificationCode/index.vue.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue.js +1 -0
- package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
- package/lib/_shared/components/Icon.vue3.js +1 -1
- package/lib/_shared/components/IconButton.vue.js +1 -1
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.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/utils/control.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +2 -16
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/_shared/utils/locale.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Layout/hooks/useTheme.d.ts +0 -4
- package/es/Layout/hooks/useTheme.js +0 -33
- package/lib/Layout/hooks/useTheme.d.ts +0 -4
- package/lib/Layout/hooks/useTheme.js +0 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +0 -1
- /package/es/{public → src/lang}/lang-es/zh-cn.js +0 -0
- /package/lib/{public → src/lang}/lang-es/zh-cn.js +0 -0
@@ -3,12 +3,8 @@ import useContext, { findOptions } from "./hooks/useContext.js";
|
|
3
3
|
import _sfc_main$1 from "./CascaderOption.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import Scrollbar from "../Scrollbar/index.js";
|
6
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
7
|
-
import "../_shared/utils/dom.js";
|
8
|
-
import "../_shared/utils/time.js";
|
9
|
-
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
10
|
-
import "../_shared/utils/locale.js";
|
11
6
|
import Spin from "../Spin/index.js";
|
7
|
+
import Empty from "../Empty/index.js";
|
12
8
|
const _hoisted_1 = {
|
13
9
|
role: "menu",
|
14
10
|
class: "yc-cascader-list"
|
@@ -16,7 +12,6 @@ const _hoisted_1 = {
|
|
16
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
17
13
|
__name: "CascaderPanel",
|
18
14
|
setup(__props) {
|
19
|
-
const { renderEmpty } = getGlobalConfig();
|
20
15
|
const { options, curLevel, curPath, maxLevel, loading, slots } = useContext().inject();
|
21
16
|
return (_ctx, _cache) => {
|
22
17
|
return openBlock(), createBlock(TransitionGroup, {
|
@@ -28,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
23
|
unref(loading) ? (openBlock(), createBlock(unref(Spin), {
|
29
24
|
key: 0,
|
30
25
|
loading: unref(loading)
|
31
|
-
}, null, 8, ["loading"])) : !unref(options).length ? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(
|
26
|
+
}, null, 8, ["loading"])) : !unref(options).length ? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(Empty)), { key: 1 })) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(unref(maxLevel), (i) => {
|
32
27
|
return withDirectives((openBlock(), createElementBlock("div", {
|
33
28
|
key: i,
|
34
29
|
style: normalizeStyle({
|
@@ -1,13 +1,9 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, createCommentVNode, createVNode, unref, createBlock, resolveDynamicComponent, withCtx, createElementVNode, Fragment, renderList, mergeProps } from "vue";
|
2
2
|
import useContext from "./hooks/useContext.js";
|
3
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
|
-
import "../_shared/utils/dom.js";
|
5
|
-
import "../_shared/utils/time.js";
|
6
|
-
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
|
-
import "../_shared/utils/locale.js";
|
8
3
|
import _sfc_main$1 from "./CascaderOption.vue.js";
|
9
4
|
/* empty css */
|
10
5
|
import Scrollbar from "../Scrollbar/index.js";
|
6
|
+
import Empty from "../Empty/index.js";
|
11
7
|
const _hoisted_1 = { class: "yc-cascader-panel yc-cascader-search-panel" };
|
12
8
|
const _hoisted_2 = {
|
13
9
|
key: 0,
|
@@ -20,12 +16,11 @@ const _hoisted_3 = {
|
|
20
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
21
17
|
__name: "CascaderSearchPanel",
|
22
18
|
setup(__props) {
|
23
|
-
const { renderEmpty } = getGlobalConfig();
|
24
19
|
const { searchOptions, slots } = useContext().inject();
|
25
20
|
return (_ctx, _cache) => {
|
26
21
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
27
22
|
!unref(searchOptions).length ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
28
|
-
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(
|
23
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(Empty))))
|
29
24
|
])) : createCommentVNode("", true),
|
30
25
|
createVNode(unref(Scrollbar), { class: "yc-cascader-column-content" }, {
|
31
26
|
default: withCtx(() => [
|
@@ -3,8 +3,6 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import { isBoolean, isFunction, isArray, isObject } from "../../_shared/utils/is.js";
|
5
5
|
import "../../_shared/utils/time.js";
|
6
|
-
import "../../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../../_shared/utils/locale.js";
|
9
7
|
import useControlValue from "../../_shared/utils/control.js";
|
10
8
|
const CASCADER_CONTEXT_KEY = "cascader-context";
|
package/es/Cascader/index.d.ts
CHANGED
@@ -31,10 +31,10 @@ declare const Cascader: {
|
|
31
31
|
defaultPopupVisible: boolean;
|
32
32
|
disabled: boolean;
|
33
33
|
popupContainer: import('..').PopupContainer;
|
34
|
-
loading: boolean;
|
35
34
|
error: boolean;
|
36
35
|
multiple: boolean;
|
37
36
|
placeholder: string;
|
37
|
+
loading: boolean;
|
38
38
|
modelValue: import('./type').CascaderValue;
|
39
39
|
defaultValue: import('./type').CascaderValue;
|
40
40
|
allowClear: boolean;
|
@@ -232,10 +232,10 @@ declare const Cascader: {
|
|
232
232
|
defaultPopupVisible: boolean;
|
233
233
|
disabled: boolean;
|
234
234
|
popupContainer: import('..').PopupContainer;
|
235
|
-
loading: boolean;
|
236
235
|
error: boolean;
|
237
236
|
multiple: boolean;
|
238
237
|
placeholder: string;
|
238
|
+
loading: boolean;
|
239
239
|
modelValue: import('./type').CascaderValue;
|
240
240
|
defaultValue: import('./type').CascaderValue;
|
241
241
|
allowClear: boolean;
|
@@ -289,10 +289,10 @@ declare const Cascader: {
|
|
289
289
|
defaultPopupVisible: boolean;
|
290
290
|
disabled: boolean;
|
291
291
|
popupContainer: import('..').PopupContainer;
|
292
|
-
loading: boolean;
|
293
292
|
error: boolean;
|
294
293
|
multiple: boolean;
|
295
294
|
placeholder: string;
|
295
|
+
loading: boolean;
|
296
296
|
modelValue: import('./type').CascaderValue;
|
297
297
|
defaultValue: import('./type').CascaderValue;
|
298
298
|
allowClear: boolean;
|
@@ -3,15 +3,14 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import { isUndefined } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
9
6
|
import "../_shared/utils/locale.js";
|
10
7
|
import useControlValue from "../_shared/utils/control.js";
|
11
8
|
import useContext from "./hooks/useContext.js";
|
9
|
+
/* empty css */
|
10
|
+
import _sfc_main$2 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
12
11
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
13
12
|
/* empty css */
|
14
|
-
/* empty css
|
13
|
+
/* empty css */
|
15
14
|
const _hoisted_1 = ["value", "disabled", "checked"];
|
16
15
|
const _hoisted_2 = { class: "yc-checkbox-icon" };
|
17
16
|
const _hoisted_3 = {
|
@@ -3,8 +3,6 @@ import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import { isObject } from "../../_shared/utils/is.js";
|
5
5
|
import "../../_shared/utils/time.js";
|
6
|
-
import "../../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../../_shared/utils/locale.js";
|
9
7
|
import useControlValue from "../../_shared/utils/control.js";
|
10
8
|
const CHECKBOX_GROUP_CONTEXT_KEY = "checkbox-group-context";
|
@@ -3,14 +3,13 @@ import useContext from "./hooks/useContext.js";
|
|
3
3
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
6
|
import "../_shared/utils/locale.js";
|
8
7
|
/* empty css */
|
9
8
|
import _sfc_main$2 from "../_shared/icons/IconRight.vue.js";
|
10
9
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
11
10
|
/* empty css */
|
12
|
-
import _sfc_main$3 from "../_shared/components/ExpandTransition.
|
13
|
-
/* empty css
|
11
|
+
import _sfc_main$3 from "../_shared/components/ExpandTransition.vue.js";
|
12
|
+
/* empty css */
|
14
13
|
const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
|
15
14
|
const _hoisted_2 = {
|
16
15
|
key: 1,
|
@@ -2,8 +2,6 @@ import { toRefs, useSlots, provide, inject, ref, computed } from "vue";
|
|
2
2
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import "../../_shared/utils/time.js";
|
5
|
-
import "../../Empty/index.js";
|
6
|
-
/* empty css */
|
7
5
|
import "../../_shared/utils/locale.js";
|
8
6
|
import useControlValue from "../../_shared/utils/control.js";
|
9
7
|
const COLLAPSE_CONTEXT_KEY = "collapse-context";
|
@@ -3,8 +3,6 @@ import { useDraggable } from "../node_modules/@vueuse/core/index.js";
|
|
3
3
|
import { parseColor, GradientColorCalculator } from "../_shared/utils/color.js";
|
4
4
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
8
|
__name: "ColorControl",
|
@@ -2,8 +2,6 @@ import { defineComponent, toRefs, ref, watch, createElementBlock, openBlock, cre
|
|
2
2
|
import { parseColor } from "../_shared/utils/color.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
|
-
import "../Empty/index.js";
|
6
|
-
/* empty css */
|
7
5
|
import "../_shared/utils/locale.js";
|
8
6
|
import { COLOR_PICKER_FORMAT_OPTIONS } from "../_shared/constants/index.js";
|
9
7
|
import Select from "../Select/index.js";
|
@@ -2,8 +2,6 @@ import { defineComponent, createElementBlock, openBlock, createElementVNode, cre
|
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
|
-
import "../Empty/index.js";
|
6
|
-
/* empty css */
|
7
5
|
import { useI18n } from "../_shared/utils/locale.js";
|
8
6
|
const _hoisted_1 = { class: "yc-color-picker-colors-section" };
|
9
7
|
const _hoisted_2 = { class: "yc-color-picker-colors-text" };
|
@@ -3,8 +3,6 @@ import { useElementBounding, useDraggable } from "../node_modules/@vueuse/core/i
|
|
3
3
|
import { parseColor } from "../_shared/utils/color.js";
|
4
4
|
import { sleep, valueToPx } from "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
8
|
__name: "ColorPalette",
|
@@ -2,8 +2,6 @@ import { defineComponent, ref, createElementBlock, openBlock, normalizeClass, un
|
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
|
-
import "../Empty/index.js";
|
6
|
-
/* empty css */
|
7
5
|
import { useI18n } from "../_shared/utils/locale.js";
|
8
6
|
import useContext from "./hooks/useContext.js";
|
9
7
|
import _sfc_main$1 from "./ColorPalette.vue.js";
|
package/es/Comment/index.vue.js
CHANGED
@@ -3,8 +3,6 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import { isObject } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
import useContext from "./hooks/useContext.js";
|
10
8
|
import Avatar from "../Avatar/index.js";
|
@@ -6,8 +6,6 @@ declare const ConfigProvider: {
|
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
7
7
|
size: import('..').Size;
|
8
8
|
popupContainer: import('..').PopupContainer;
|
9
|
-
updateAtScroll: boolean;
|
10
|
-
scrollToClose: boolean;
|
11
9
|
zIndex: number;
|
12
10
|
locale: import('../_shared/type').ObjectData;
|
13
11
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
@@ -20,8 +18,6 @@ declare const ConfigProvider: {
|
|
20
18
|
}, Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
21
19
|
size: import('..').Size;
|
22
20
|
popupContainer: import('..').PopupContainer;
|
23
|
-
updateAtScroll: boolean;
|
24
|
-
scrollToClose: boolean;
|
25
21
|
zIndex: number;
|
26
22
|
locale: import('../_shared/type').ObjectData;
|
27
23
|
}>;
|
@@ -31,8 +27,6 @@ declare const ConfigProvider: {
|
|
31
27
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').ConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
32
28
|
size: import('..').Size;
|
33
29
|
popupContainer: import('..').PopupContainer;
|
34
|
-
updateAtScroll: boolean;
|
35
|
-
scrollToClose: boolean;
|
36
30
|
zIndex: number;
|
37
31
|
locale: import('../_shared/type').ObjectData;
|
38
32
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -9,8 +9,6 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<ConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConfigProviderProps> & Readonly<{}>, {
|
10
10
|
size: import('..').Size;
|
11
11
|
popupContainer: import('..').PopupContainer;
|
12
|
-
updateAtScroll: boolean;
|
13
|
-
scrollToClose: boolean;
|
14
12
|
zIndex: number;
|
15
13
|
locale: import('../_shared/type').ObjectData;
|
16
14
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
@@ -13,21 +13,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
locale: { default: void 0 },
|
14
14
|
zIndex: { default: 1001 },
|
15
15
|
size: { default: "medium" },
|
16
|
-
popupContainer: { default: "body" }
|
17
|
-
updateAtScroll: { type: Boolean, default: true },
|
18
|
-
scrollToClose: { type: Boolean, default: false }
|
16
|
+
popupContainer: { default: "body" }
|
19
17
|
},
|
20
18
|
setup(__props) {
|
21
|
-
|
19
|
+
useSlots();
|
22
20
|
const props = __props;
|
23
|
-
const { locale, zIndex, size,
|
21
|
+
const { locale, zIndex, size, popupContainer } = toRefs(props);
|
24
22
|
provide(CONFIG_PROVIDER_PROVIDE_KEY, {
|
25
|
-
slots,
|
26
23
|
locale,
|
27
24
|
zIndex,
|
28
25
|
size,
|
29
|
-
updateAtScroll,
|
30
|
-
scrollToClose,
|
31
26
|
popupContainer
|
32
27
|
});
|
33
28
|
return (_ctx, _cache) => {
|
@@ -5,15 +5,8 @@ export interface ConfigProviderProps {
|
|
5
5
|
zIndex?: number;
|
6
6
|
size?: Size;
|
7
7
|
popupContainer?: PopupContainer;
|
8
|
-
updateAtScroll?: boolean;
|
9
|
-
scrollToClose?: boolean;
|
10
8
|
}
|
11
9
|
export interface ConfigconfigSlots {
|
12
10
|
default?: () => VNode[];
|
13
|
-
loading?: () => VNode[];
|
14
|
-
empty?: (scope: {
|
15
|
-
component: EmptyComponent;
|
16
|
-
}) => VNode[];
|
17
11
|
}
|
18
|
-
export type EmptyComponent = 'Select' | 'List' | 'Transfer';
|
19
12
|
export type YcLang = 'ar-EG' | 'de-DE' | 'en-US' | 'es-ES' | 'fr-FR' | 'id-ID' | 'it-it' | 'ja-JP' | 'km-KH' | 'ko-KR' | 'ms-MY' | 'nl-NL' | 'pt-PT' | 'ru-RU' | 'th-TH' | 'vi-VN' | 'zh-CN' | 'zh-TW';
|
@@ -4,8 +4,6 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { isObject } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
7
|
-
import "../Empty/index.js";
|
8
|
-
/* empty css */
|
9
7
|
import "../_shared/utils/locale.js";
|
10
8
|
import useContext from "./hooks/useContext.js";
|
11
9
|
const _hoisted_1 = { class: "yc-descriptions-item" };
|
@@ -4,8 +4,6 @@ import "../_shared/utils/dom.js";
|
|
4
4
|
import { isObject } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
7
|
-
import "../Empty/index.js";
|
8
|
-
/* empty css */
|
9
7
|
import "../_shared/utils/locale.js";
|
10
8
|
import useContext from "./hooks/useContext.js";
|
11
9
|
const _hoisted_1 = ["colspan"];
|
package/es/Divider/index.vue.js
CHANGED
@@ -3,8 +3,6 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
4
|
import { isUndefined } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
10
8
|
...{
|
package/es/Drawer/Drawer.vue.js
CHANGED
@@ -8,7 +8,7 @@ import useModalClose from "../Modal/hooks/useModalClose.js";
|
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
|
10
10
|
/* empty css */
|
11
|
-
/* empty css
|
11
|
+
/* empty css */
|
12
12
|
/* empty css */
|
13
13
|
const _hoisted_1 = {
|
14
14
|
key: 0,
|
@@ -75,11 +75,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
75
|
maskClosable,
|
76
76
|
escToClose,
|
77
77
|
drawerStyle: _drawerStyle,
|
78
|
-
renderToBody
|
79
|
-
popupContainer: _popupContainer
|
78
|
+
renderToBody
|
80
79
|
} = toRefs(props);
|
81
80
|
const { onBeforeOk, onBeforeCancel } = props;
|
82
|
-
const { zIndex, popupContainer } = getGlobalConfig(props);
|
81
|
+
const { zIndex, popupContainer, isAbsolute } = getGlobalConfig(props);
|
83
82
|
const { t } = useI18n();
|
84
83
|
const drawerStyle = computed(() => {
|
85
84
|
return {
|
@@ -116,7 +115,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
116
115
|
`yc-drawer-placement-${unref(placement)}`,
|
117
116
|
_ctx.$attrs.class,
|
118
117
|
{
|
119
|
-
"yc-drawer-position-absolute": unref(
|
118
|
+
"yc-drawer-position-absolute": unref(isAbsolute)
|
120
119
|
}
|
121
120
|
]),
|
122
121
|
style: normalizeStyle({
|
@@ -3,8 +3,6 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
import _sfc_main$1 from "./Drawer.vue.js";
|
10
8
|
/* empty css */
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, renderSlot } from "vue";
|
2
2
|
import useContext from "./hooks/useContext.js";
|
3
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
4
3
|
const _hoisted_1 = {
|
5
4
|
key: 0,
|
6
5
|
class: "yc-dropdown-option-icon"
|
@@ -27,7 +26,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
26
|
const emits = __emit;
|
28
27
|
const { value: optionValue, disabled, isSubmenu } = toRefs(props);
|
29
28
|
const { select } = useContext().inject();
|
30
|
-
const { theme } = useMenuContext().inject();
|
31
29
|
const handleClick = (ev) => {
|
32
30
|
if (disabled.value) return;
|
33
31
|
emits("click", ev);
|
@@ -38,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
38
36
|
return openBlock(), createElementBlock("div", {
|
39
37
|
class: normalizeClass([
|
40
38
|
"yc-dropdown-option",
|
41
|
-
`yc-dropdown-option-theme-${unref(theme)}`,
|
42
39
|
{
|
43
40
|
"yc-dropdown-option-active": _ctx.isActive,
|
44
41
|
"yc-dropdown-option-disabled": unref(disabled),
|
@@ -3,11 +3,8 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
4
|
import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
8
6
|
import "../_shared/utils/locale.js";
|
9
7
|
import useContext from "./hooks/useContext.js";
|
10
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
11
8
|
import Trigger from "../Trigger/index.js";
|
12
9
|
import Scrollbar from "../Scrollbar/index.js";
|
13
10
|
const _hoisted_1 = { class: "yc-dropdown" };
|
@@ -44,7 +41,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
41
|
popupMaxHeight: _popupMaxHeight
|
45
42
|
} = toRefs(props);
|
46
43
|
const { computedVisible } = useContext().provide(props, emits);
|
47
|
-
const { theme } = useMenuContext().inject();
|
48
44
|
const position = computed(() => {
|
49
45
|
return ["top", "tl", "tr", "bottom", "bl", "br"].includes(_position.value) ? _position.value : "bottom";
|
50
46
|
});
|
@@ -75,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
75
71
|
"mouse-leave-delay": 150,
|
76
72
|
alignPoint: _ctx.alignPoint,
|
77
73
|
"auto-fit-popup-min-width": !_ctx.alignPoint && ["top", "bottom"].includes(position.value),
|
78
|
-
class: ["yc-dropdown-popup",
|
74
|
+
class: ["yc-dropdown-popup", _ctx.$attrs.class],
|
79
75
|
style: _ctx.$attrs.style,
|
80
76
|
"animation-name": "slide-dynamic-origin",
|
81
77
|
"need-transform-origin": ""
|
@@ -2,7 +2,6 @@ import { defineComponent, createBlock, openBlock, unref, withCtx, createVNode, m
|
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
|
-
import "../Empty/index.js";
|
6
5
|
import "../_shared/utils/locale.js";
|
7
6
|
/* empty css */
|
8
7
|
import _sfc_main$3 from "../_shared/icons/IconMore.vue.js";
|
@@ -154,6 +154,7 @@ declare function __VLS_template(): {
|
|
154
154
|
focusDelay: number;
|
155
155
|
disabled: boolean;
|
156
156
|
scrollToCloseDistance: number;
|
157
|
+
scrollToClose: boolean;
|
157
158
|
autoSetPosition: boolean;
|
158
159
|
alignPoint: boolean;
|
159
160
|
position: import('../Trigger').TriggerPostion;
|
@@ -174,7 +175,6 @@ declare function __VLS_template(): {
|
|
174
175
|
autoFitPosition: boolean;
|
175
176
|
updateAtScroll: boolean;
|
176
177
|
preventFocus: boolean;
|
177
|
-
scrollToClose: boolean;
|
178
178
|
needTransformOrigin: boolean;
|
179
179
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
180
180
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -208,6 +208,7 @@ declare function __VLS_template(): {
|
|
208
208
|
focusDelay: number;
|
209
209
|
disabled: boolean;
|
210
210
|
scrollToCloseDistance: number;
|
211
|
+
scrollToClose: boolean;
|
211
212
|
autoSetPosition: boolean;
|
212
213
|
alignPoint: boolean;
|
213
214
|
position: import('../Trigger').TriggerPostion;
|
@@ -228,14 +229,13 @@ declare function __VLS_template(): {
|
|
228
229
|
autoFitPosition: boolean;
|
229
230
|
updateAtScroll: boolean;
|
230
231
|
preventFocus: boolean;
|
231
|
-
scrollToClose: boolean;
|
232
232
|
needTransformOrigin: boolean;
|
233
233
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
234
234
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
235
235
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
236
236
|
onShow?: (() => any) | undefined;
|
237
237
|
onHide?: (() => any) | undefined;
|
238
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
238
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
239
239
|
hide(): void;
|
240
240
|
show(): void;
|
241
241
|
updatePosition(x: number, y: number): void;
|
@@ -475,6 +475,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
475
475
|
focusDelay: number;
|
476
476
|
disabled: boolean;
|
477
477
|
scrollToCloseDistance: number;
|
478
|
+
scrollToClose: boolean;
|
478
479
|
autoSetPosition: boolean;
|
479
480
|
alignPoint: boolean;
|
480
481
|
position: import('../Trigger').TriggerPostion;
|
@@ -495,7 +496,6 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
495
496
|
autoFitPosition: boolean;
|
496
497
|
updateAtScroll: boolean;
|
497
498
|
preventFocus: boolean;
|
498
|
-
scrollToClose: boolean;
|
499
499
|
needTransformOrigin: boolean;
|
500
500
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
501
501
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -529,6 +529,7 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
529
529
|
focusDelay: number;
|
530
530
|
disabled: boolean;
|
531
531
|
scrollToCloseDistance: number;
|
532
|
+
scrollToClose: boolean;
|
532
533
|
autoSetPosition: boolean;
|
533
534
|
alignPoint: boolean;
|
534
535
|
position: import('../Trigger').TriggerPostion;
|
@@ -549,14 +550,13 @@ declare const __VLS_component: import('vue').DefineComponent<DsubmenuProps, {
|
|
549
550
|
autoFitPosition: boolean;
|
550
551
|
updateAtScroll: boolean;
|
551
552
|
preventFocus: boolean;
|
552
|
-
scrollToClose: boolean;
|
553
553
|
needTransformOrigin: boolean;
|
554
554
|
}> & Omit<Readonly<import('../Trigger').TriggerProps> & Readonly<{
|
555
555
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
556
556
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
557
557
|
onShow?: (() => any) | undefined;
|
558
558
|
onHide?: (() => any) | undefined;
|
559
|
-
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "
|
559
|
+
}>, "show" | "hide" | ("trigger" | "mouseEnterDelay" | "popupVisible" | "defaultPopupVisible" | "clickToClose" | "blurToClose" | "clickOutsideToClose" | "mouseLeaveDelay" | "focusDelay" | "disabled" | "scrollToCloseDistance" | "scrollToClose" | "autoSetPosition" | "alignPoint" | "position" | "popupOffset" | "popupTranslate" | "showArrow" | "unmountOnClose" | "contentClass" | "contentStyle" | "arrowClass" | "arrowStyle" | "animationName" | "duration" | "autoFitPopupWidth" | "autoFitPopupMinWidth" | "popupContainer" | "renderToBody" | "autoFitPosition" | "updateAtScroll" | "preventFocus" | "needTransformOrigin") | "updatePosition"> & import('vue').ShallowUnwrapRef<{
|
560
560
|
hide(): void;
|
561
561
|
show(): void;
|
562
562
|
updatePosition(x: number, y: number): void;
|
@@ -4,19 +4,18 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import { valueToPx } from "../_shared/utils/dom.js";
|
5
5
|
import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
|
-
import "../Empty/index.js";
|
8
|
-
/* empty css */
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
10
7
|
import "../_shared/utils/locale.js";
|
11
8
|
import useControlValue from "../_shared/utils/control.js";
|
12
|
-
|
9
|
+
/* empty css */
|
10
|
+
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
13
11
|
import "./index.js";
|
14
12
|
import Trigger from "../Trigger/index.js";
|
15
13
|
import Scrollbar from "../Scrollbar/index.js";
|
16
14
|
import _sfc_main$1 from "./Doption.vue.js";
|
17
15
|
/* empty css */
|
18
|
-
const _hoisted_1 = { class: "yc-dropdown
|
19
|
-
const _hoisted_2 = {
|
16
|
+
const _hoisted_1 = { class: "yc-dropdown" };
|
17
|
+
const _hoisted_2 = { class: "yc-dropdown-list" };
|
18
|
+
const _hoisted_3 = {
|
20
19
|
key: 0,
|
21
20
|
class: "yc-dropdown-footer"
|
22
21
|
};
|
@@ -47,7 +46,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
47
46
|
position: _position,
|
48
47
|
popupMaxHeight: _popupMaxHeight
|
49
48
|
} = toRefs(props);
|
50
|
-
const { theme } = useMenuContext().inject();
|
51
49
|
const computedVisible = useControlValue(
|
52
50
|
popupVisible,
|
53
51
|
defaultPopupVisible.value,
|
@@ -109,25 +107,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
109
107
|
ref: triggerRef
|
110
108
|
}, _ctx.triggerProps), {
|
111
109
|
content: withCtx(() => [
|
112
|
-
createElementVNode("div",
|
113
|
-
class: normalizeClass(["yc-dropdown", `yc-dropdown-theme-${unref(theme)}`])
|
114
|
-
}, [
|
110
|
+
createElementVNode("div", _hoisted_1, [
|
115
111
|
createVNode(unref(Scrollbar), {
|
116
112
|
style: normalizeStyle({
|
117
113
|
maxHeight: popupMaxHeight.value
|
118
114
|
})
|
119
115
|
}, {
|
120
116
|
default: withCtx(() => [
|
121
|
-
createElementVNode("div",
|
117
|
+
createElementVNode("div", _hoisted_2, [
|
122
118
|
renderSlot(_ctx.$slots, "content")
|
123
119
|
])
|
124
120
|
]),
|
125
121
|
_: 3
|
126
122
|
}, 8, ["style"]),
|
127
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
123
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
128
124
|
renderSlot(_ctx.$slots, "footer")
|
129
125
|
])) : createCommentVNode("", true)
|
130
|
-
]
|
126
|
+
])
|
131
127
|
]),
|
132
128
|
default: withCtx(() => [
|
133
129
|
createVNode(unref(_sfc_main$1), {
|
@@ -2,8 +2,6 @@ import { toRefs, provide, inject } from "vue";
|
|
2
2
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import "../../_shared/utils/time.js";
|
5
|
-
import "../../Empty/index.js";
|
6
|
-
/* empty css */
|
7
5
|
import "../../_shared/utils/locale.js";
|
8
6
|
import useControlValue from "../../_shared/utils/control.js";
|
9
7
|
const DROPDOWN_CONTEXT_KEY = "dropdown-context";
|
package/es/Dropdown/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-dropdown{padding:4px 0;border-radius:4px;box-shadow:0 4px 10px #0000001a}.yc-dropdown .yc-dropdown-list{display:flex;flex-direction:column}.yc-dropdown .yc-dropdown-footer{border-top:1px solid
|
1
|
+
.yc-dropdown-popup .yc-dropdown{padding:4px 0;background-color:var(--color-bg-popup);border:1px solid var(--color-fill-3);border-radius:4px;box-shadow:0 4px 10px #0000001a}.yc-dropdown-popup .yc-dropdown .yc-dropdown-list{display:flex;flex-direction:column}.yc-dropdown-popup .yc-dropdown .yc-dropdown-footer{border-top:1px solid var(--color-fill-3)}.yc-dropdown-popup .yc-trigger-arrow{z-index:0;background-color:var(--color-bg-popup);border:1px solid var(--color-neutral-3)}.yc-dropdown-option{position:relative;z-index:1;padding:0 12px;line-height:36px;font-size:14px;color:var(--color-text-1);text-align:left;display:flex;align-items:center;transition:all .1s cubic-bezier(0, 0, 1, 1)}.yc-dropdown-option:not(.yc-dropdown-option-disabled).yc-dropdown-option-active,.yc-dropdown-option:not(.yc-dropdown-option-disabled):hover{background-color:var(--color-fill-2)}.yc-dropdown-option.yc-dropdown-option-disabled{cursor:not-allowed;background-color:transparent;color:var(--color-text-4)}.yc-dropdown-option .yc-dropdown-option-icon,.yc-dropdown-option .yc-dropdown-option-content,.yc-dropdown-option .yc-dropdown-option-suffix{flex-shrink:0;display:flex;align-items:center}.yc-dropdown-option .yc-dropdown-option-icon{margin-right:8px;color:inherit}.yc-dropdown-option .yc-dropdown-option-suffix{color:inherit;margin-left:12px}.yc-dropdown-option .yc-dropdown-option-content{flex:1;overflow:hidden}.yc-dropdown-group-title{margin-top:8px;padding:0 12px;color:var(--color-text-3);font-size:12px;line-height:20px}
|