yc-design-vue 1.9.5 → 1.9.7
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/Alert/index.vue.js +4 -4
- package/es/AutoComplete/index.d.ts +3 -3
- package/es/AutoComplete/index.vue.d.ts +6 -6
- package/es/Avatar/Avatar.vue.js +3 -1
- package/es/BackTop/index.vue.js +3 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +3 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +3 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +3 -1
- package/es/Calendar/Calendar.vue.js +4 -4
- package/es/Carousel/CarouselArrow.vue.js +3 -1
- package/es/Cascader/CascaderIcon.vue.js +4 -4
- package/es/Cascader/CascaderOption.vue.d.ts +2 -2
- package/es/Cascader/CascaderOption.vue.js +3 -1
- package/es/Checkbox/Checkbox.vue.js +4 -4
- package/es/Collapse/CollapseItem.vue.js +5 -5
- 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 -2
- package/es/Drawer/Drawer.vue.js +6 -7
- package/es/Dropdown/Doption.vue.js +0 -3
- package/es/Dropdown/Dropdown.vue.js +1 -3
- package/es/Dropdown/DropdownButton.vue.js +3 -1
- package/es/Dropdown/Dsubmenu.vue.d.ts +6 -6
- package/es/Dropdown/Dsubmenu.vue.js +10 -11
- package/es/Dropdown/index.css +1 -1
- package/es/Dropdown/index.d.ts +3 -3
- package/es/Empty/index.vue.js +3 -1
- package/es/Image/Image.vue.js +3 -1
- package/es/Image/ImagePreview.vue.js +6 -5
- package/es/Image/ImagePreviewArrow.vue.js +3 -1
- package/es/Image/ImagePreviewToolbar.vue.js +3 -1
- package/es/Input/Input.vue.js +4 -4
- package/es/Input/InputSuffix.vue.js +5 -5
- package/es/InputNumber/InputOperaBtn.vue.js +3 -1
- package/es/InputTag/index.vue.js +4 -4
- package/es/Layout/LayoutSider.vue.js +3 -1
- package/es/Layout/index.css +1 -1
- package/es/Link/index.vue.js +3 -1
- package/es/List/List.vue.d.ts +1 -1
- package/es/List/index.d.ts +3 -3
- package/es/Mention/index.d.ts +6 -6
- package/es/Mention/index.vue.d.ts +7 -7
- package/es/Menu/Menu.vue.js +3 -1
- package/es/Menu/MenuEllipsis.vue.js +5 -2
- package/es/Menu/MenuItem.vue.js +2 -1
- package/es/Menu/SubMenu.vue.js +3 -3
- package/es/Menu/hooks/useContext.js +2 -4
- package/es/Menu/index.css +1 -1
- package/es/Message/Message.vue.js +3 -3
- package/es/Modal/Modal.vue.js +6 -7
- package/es/Notification/Notification.vue.js +3 -3
- package/es/PageHeader/index.vue.js +4 -4
- package/es/Pagination/PaginationItem.vue.js +3 -1
- package/es/Popconfirm/index.d.ts +3 -3
- package/es/Popconfirm/index.vue.d.ts +6 -6
- package/es/Progress/ProgressCircle.vue.js +3 -1
- package/es/Radio/Radio.vue.js +3 -3
- package/es/Rate/index.vue.js +3 -1
- package/es/ResizeBox/index.vue.js +3 -1
- package/es/Select/Select.vue.d.ts +6 -6
- package/es/Select/SelectIcon.vue.js +4 -4
- package/es/Select/index.d.ts +3 -3
- package/es/Spin/index.vue.js +3 -1
- package/es/Split/index.vue.js +3 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/index.d.ts +3 -3
- package/es/Steps/Step.vue.js +3 -1
- package/es/Tabs/TabButton.vue.js +4 -4
- package/es/Tabs/Tabs.vue.js +3 -1
- package/es/Tag/index.vue.js +3 -3
- package/es/Textarea/index.vue.js +5 -5
- package/es/TimePicker/TimePicker.vue.js +3 -3
- package/es/Transfer/Transfer.vue.d.ts +2 -2
- package/es/Transfer/Transfer.vue.js +3 -1
- package/es/Transfer/TransferPanel.vue.js +4 -4
- package/es/Transfer/index.d.ts +5 -5
- package/es/Trigger/hooks/useTriggerPosition.js +2 -1
- 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 +8 -9
- package/es/Typography/TypographyBase.vue.js +3 -1
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/_shared/components/{ExpandTransition.vue2.js → ExpandTransition/index.vue2.js} +5 -5
- package/es/_shared/components/ExpandTransition/index.vue3.js +5 -0
- package/es/_shared/components/Icon/index.vue2.js +5 -0
- package/es/_shared/components/{Icon.vue3.js → Icon/index.vue3.js} +5 -5
- package/es/_shared/components/{IconButton.vue.js → IconButton/index.vue2.js} +9 -7
- package/es/_shared/components/IconButton/index.vue3.js +5 -0
- package/es/_shared/components/{PreventFocus.vue.js → PreventFocus/index.vue.js} +1 -1
- package/es/_shared/components/PreventFocus/index.vue2.js +4 -0
- package/es/_shared/components/index.d.ts +4 -4
- package/es/_shared/constants/index.js +3 -1
- package/es/_shared/icons/IconArrowDown.vue.js +10 -4
- package/es/_shared/icons/IconArrowRight.vue.js +10 -4
- package/es/_shared/icons/IconCheck.vue.js +10 -4
- package/es/_shared/icons/IconCheckboxChecked.vue.js +10 -4
- package/es/_shared/icons/IconClose.vue.js +10 -4
- package/es/_shared/icons/IconCopy.vue2.js +10 -4
- package/es/_shared/icons/IconDelete.vue2.js +10 -4
- package/es/_shared/icons/IconDragDot.vue.js +10 -4
- package/es/_shared/icons/IconEdit.vue2.js +10 -4
- package/es/_shared/icons/IconEmpty.vue.js +10 -4
- package/es/_shared/icons/IconError.vue.js +10 -4
- package/es/_shared/icons/IconExclamation.vue2.js +10 -4
- package/es/_shared/icons/IconEyeClose.vue2.js +10 -4
- package/es/_shared/icons/IconEyeOpen.vue2.js +10 -4
- package/es/_shared/icons/IconFaceSmile.vue.js +10 -4
- package/es/_shared/icons/IconFullScreen.vue2.js +10 -4
- package/es/_shared/icons/IconImageClose.vue.js +10 -4
- package/es/_shared/icons/IconInfo.vue.js +10 -4
- package/es/_shared/icons/IconInfoLine.vue.js +10 -4
- package/es/_shared/icons/IconLink.vue.js +10 -4
- package/es/_shared/icons/IconLoading.vue.js +10 -4
- package/es/_shared/icons/IconMenuFold.vue.js +10 -4
- package/es/_shared/icons/IconMenuUnfold.vue.js +10 -4
- package/es/_shared/icons/IconMinus.vue2.js +10 -4
- package/es/_shared/icons/IconMore.vue.js +10 -4
- package/es/_shared/icons/IconOriginSize.vue2.js +10 -4
- package/es/_shared/icons/IconPlus.vue.js +10 -4
- package/es/_shared/icons/IconRight.vue.js +10 -4
- package/es/_shared/icons/IconRotateLeft.vue2.js +10 -4
- package/es/_shared/icons/IconRotateRight.vue2.js +10 -4
- package/es/_shared/icons/IconSearch.vue2.js +10 -4
- package/es/_shared/icons/IconSeparator.vue2.js +10 -4
- package/es/_shared/icons/IconStar.vue.js +10 -4
- package/es/_shared/icons/IconSuccess.vue.js +10 -4
- package/es/_shared/icons/IconTime.vue.js +10 -4
- package/es/_shared/icons/IconToTop.vue.js +10 -4
- package/es/_shared/icons/IconWarning.vue.js +10 -4
- package/es/_shared/icons/IconZoomIn.vue2.js +10 -4
- package/es/_shared/icons/IconZoomOut.vue2.js +10 -4
- package/es/_shared/utils/global-config.d.ts +1 -6
- package/es/_shared/utils/global-config.js +7 -10
- package/es/_shared/utils/locale.js +1 -1
- package/es/index.d.ts +3 -3
- package/es/shared.css +1 -1
- package/es/style.css +1 -1
- package/lib/Alert/index.js +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/Alert/index.vue3.js +1 -1
- package/lib/AutoComplete/index.d.ts +3 -3
- package/lib/AutoComplete/index.js +1 -1
- package/lib/AutoComplete/index.vue.d.ts +6 -6
- package/lib/AutoComplete/index.vue3.js +1 -1
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/BackTop/index.js +1 -1
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/BackTop/index.vue3.js +1 -1
- package/lib/Badge/index.js +1 -1
- package/lib/Badge/index.vue3.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/Calendar/Calendar.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Cascader/Cascader.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue3.js +1 -1
- package/lib/Cascader/CascaderOption.vue.d.ts +2 -2
- package/lib/Cascader/CascaderOption.vue.js +1 -1
- package/lib/Checkbox/Checkbox.vue.js +1 -1
- package/lib/Collapse/CollapseItem.vue.js +1 -1
- package/lib/Comment/index.js +1 -1
- package/lib/Comment/index.vue3.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 -2
- package/lib/Divider/index.js +1 -1
- package/lib/Divider/index.vue3.js +1 -1
- package/lib/Drawer/Drawer.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/index.css +1 -1
- package/lib/Dropdown/index.d.ts +3 -3
- package/lib/Empty/index.js +1 -1
- package/lib/Empty/index.vue.js +1 -1
- package/lib/Empty/index.vue3.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/Input/Input.vue.js +1 -1
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue.js +1 -1
- package/lib/InputTag/index.js +1 -1
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/InputTag/index.vue3.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Layout/index.css +1 -1
- package/lib/Link/index.js +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Link/index.vue3.js +1 -1
- package/lib/List/List.vue.d.ts +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 +7 -7
- 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/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/Modal/Modal.vue.js +1 -1
- package/lib/Notification/Notification.vue.js +1 -1
- package/lib/OverflowList/index.js +1 -1
- package/lib/OverflowList/index.vue3.js +1 -1
- package/lib/PageHeader/index.js +1 -1
- package/lib/PageHeader/index.vue.js +1 -1
- package/lib/PageHeader/index.vue3.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Popconfirm/index.d.ts +3 -3
- package/lib/Popconfirm/index.js +1 -1
- package/lib/Popconfirm/index.vue.d.ts +6 -6
- package/lib/Popconfirm/index.vue3.js +1 -1
- package/lib/Popover/index.js +1 -1
- package/lib/Popover/index.vue3.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/Rate/index.vue3.js +1 -1
- package/lib/ResizeBox/index.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue3.js +1 -1
- package/lib/Result/index.js +1 -1
- package/lib/Result/index.vue3.js +1 -1
- package/lib/Select/Select.vue.d.ts +6 -6
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/SelectIcon.vue3.js +1 -1
- package/lib/Select/index.d.ts +3 -3
- package/lib/Space/index.js +1 -1
- package/lib/Space/index.vue3.js +1 -1
- package/lib/Spin/index.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Spin/index.vue3.js +1 -1
- package/lib/Split/index.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Split/index.vue3.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/index.d.ts +3 -3
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Switch/index.js +1 -1
- package/lib/Switch/index.vue3.js +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tag/index.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Tag/index.vue3.js +1 -1
- package/lib/Textarea/index.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/Textarea/index.vue3.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/Tooltip/index.js +1 -1
- package/lib/Tooltip/index.vue3.js +1 -1
- package/lib/Transfer/Transfer.vue.d.ts +2 -2
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Transfer/index.d.ts +5 -5
- 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.js +1 -1
- package/lib/Trigger/index.vue.d.ts +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue3.js +1 -1
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/VerificationCode/index.js +1 -1
- package/lib/VerificationCode/index.vue3.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.js +1 -1
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/Watermark/index.vue3.js +1 -1
- package/lib/_shared/components/ExpandTransition/index.vue2.js +1 -0
- package/lib/_shared/components/ExpandTransition/index.vue3.js +1 -0
- package/lib/_shared/components/Icon/index.vue2.js +1 -0
- package/lib/_shared/components/Icon/index.vue3.js +1 -0
- package/lib/_shared/components/IconButton/index.vue2.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -0
- package/lib/_shared/components/PreventFocus/index.vue.js +1 -0
- package/lib/_shared/components/PreventFocus/index.vue2.js +1 -0
- package/lib/_shared/components/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.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.vue2.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconImageClose.vue.js +1 -1
- package/lib/_shared/icons/IconInfo.vue.js +1 -1
- package/lib/_shared/icons/IconInfoLine.vue.js +1 -1
- package/lib/_shared/icons/IconLink.vue.js +1 -1
- package/lib/_shared/icons/IconLoading.vue.js +1 -1
- package/lib/_shared/icons/IconMenuFold.vue.js +1 -1
- package/lib/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconMore.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconPlus.vue.js +1 -1
- package/lib/_shared/icons/IconRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/icons/IconStar.vue.js +1 -1
- package/lib/_shared/icons/IconSuccess.vue.js +1 -1
- package/lib/_shared/icons/IconTime.vue.js +1 -1
- package/lib/_shared/icons/IconToTop.vue.js +1 -1
- package/lib/_shared/icons/IconWarning.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +1 -6
- 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/shared.css +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/Drawer/index.css +0 -1
- package/es/Layout/hooks/useTheme.d.ts +0 -4
- package/es/Layout/hooks/useTheme.js +0 -33
- package/es/Message/index.css +0 -1
- package/es/Modal/index.css +0 -1
- package/es/Notification/index.css +0 -1
- package/es/_shared/components/ExpandTransition.vue3.js +0 -5
- package/es/_shared/components/Icon.vue2.js +0 -5
- package/es/_shared/components/IconButton.vue3.js +0 -5
- package/es/_shared/components/PreventFocus.vue2.js +0 -4
- package/lib/Drawer/index.css +0 -1
- package/lib/Layout/hooks/useTheme.d.ts +0 -4
- package/lib/Layout/hooks/useTheme.js +0 -1
- package/lib/Message/index.css +0 -1
- package/lib/Modal/index.css +0 -1
- package/lib/Notification/index.css +0 -1
- package/lib/_shared/components/ExpandTransition.vue2.js +0 -1
- package/lib/_shared/components/ExpandTransition.vue3.js +0 -1
- package/lib/_shared/components/Icon.vue2.js +0 -1
- package/lib/_shared/components/Icon.vue3.js +0 -1
- package/lib/_shared/components/IconButton.vue.js +0 -1
- package/lib/_shared/components/IconButton.vue3.js +0 -1
- package/lib/_shared/components/PreventFocus.vue.js +0 -1
- package/lib/_shared/components/PreventFocus.vue2.js +0 -1
- /package/es/_shared/components/{ExpandTransition.vue.d.ts → ExpandTransition/index.vue.d.ts} +0 -0
- /package/es/_shared/components/{Icon.vue.d.ts → Icon/index.vue.d.ts} +0 -0
- /package/es/_shared/components/{IconButton.vue.d.ts → IconButton/index.vue.d.ts} +0 -0
- /package/es/_shared/components/{PreventFocus.vue.d.ts → PreventFocus/index.vue.d.ts} +0 -0
- /package/es/{public → src/lang}/lang-es/zh-cn.js +0 -0
- /package/lib/_shared/components/{ExpandTransition.vue.d.ts → ExpandTransition/index.vue.d.ts} +0 -0
- /package/lib/_shared/components/{Icon.vue.d.ts → Icon/index.vue.d.ts} +0 -0
- /package/lib/_shared/components/{IconButton.vue.d.ts → IconButton/index.vue.d.ts} +0 -0
- /package/lib/_shared/components/{PreventFocus.vue.d.ts → PreventFocus/index.vue.d.ts} +0 -0
- /package/lib/{public → src/lang}/lang-es/zh-cn.js +0 -0
@@ -6,16 +6,18 @@ import { isBoolean, isUndefined } from "../_shared/utils/is.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../_shared/utils/locale.js";
|
8
8
|
import useControlValue from "../_shared/utils/control.js";
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
|
+
/* empty css */
|
11
|
+
/* empty css */
|
10
12
|
import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
|
11
|
-
import useMenuContext from "../Menu/hooks/useContext.js";
|
12
13
|
import "./index.js";
|
13
14
|
import Trigger from "../Trigger/index.js";
|
14
15
|
import Scrollbar from "../Scrollbar/index.js";
|
15
16
|
import _sfc_main$1 from "./Doption.vue.js";
|
16
17
|
/* empty css */
|
17
|
-
const _hoisted_1 = { class: "yc-dropdown
|
18
|
-
const _hoisted_2 = {
|
18
|
+
const _hoisted_1 = { class: "yc-dropdown" };
|
19
|
+
const _hoisted_2 = { class: "yc-dropdown-list" };
|
20
|
+
const _hoisted_3 = {
|
19
21
|
key: 0,
|
20
22
|
class: "yc-dropdown-footer"
|
21
23
|
};
|
@@ -46,7 +48,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
48
|
position: _position,
|
47
49
|
popupMaxHeight: _popupMaxHeight
|
48
50
|
} = toRefs(props);
|
49
|
-
const { theme } = useMenuContext().inject();
|
50
51
|
const computedVisible = useControlValue(
|
51
52
|
popupVisible,
|
52
53
|
defaultPopupVisible.value,
|
@@ -108,25 +109,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
108
109
|
ref: triggerRef
|
109
110
|
}, _ctx.triggerProps), {
|
110
111
|
content: withCtx(() => [
|
111
|
-
createElementVNode("div",
|
112
|
-
class: normalizeClass(["yc-dropdown", `yc-dropdown-theme-${unref(theme)}`])
|
113
|
-
}, [
|
112
|
+
createElementVNode("div", _hoisted_1, [
|
114
113
|
createVNode(unref(Scrollbar), {
|
115
114
|
style: normalizeStyle({
|
116
115
|
maxHeight: popupMaxHeight.value
|
117
116
|
})
|
118
117
|
}, {
|
119
118
|
default: withCtx(() => [
|
120
|
-
createElementVNode("div",
|
119
|
+
createElementVNode("div", _hoisted_2, [
|
121
120
|
renderSlot(_ctx.$slots, "content")
|
122
121
|
])
|
123
122
|
]),
|
124
123
|
_: 3
|
125
124
|
}, 8, ["style"]),
|
126
|
-
_ctx.$slots.footer ? (openBlock(), createElementBlock("div",
|
125
|
+
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
127
126
|
renderSlot(_ctx.$slots, "footer")
|
128
127
|
])) : createCommentVNode("", true)
|
129
|
-
]
|
128
|
+
])
|
130
129
|
]),
|
131
130
|
default: withCtx(() => [
|
132
131
|
createVNode(unref(_sfc_main$1), {
|
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}
|
package/es/Dropdown/index.d.ts
CHANGED
@@ -373,6 +373,7 @@ declare const Dropdown: {
|
|
373
373
|
focusDelay: number;
|
374
374
|
disabled: boolean;
|
375
375
|
scrollToCloseDistance: number;
|
376
|
+
scrollToClose: boolean;
|
376
377
|
autoSetPosition: boolean;
|
377
378
|
alignPoint: boolean;
|
378
379
|
position: import('..').TriggerPostion;
|
@@ -393,7 +394,6 @@ declare const Dropdown: {
|
|
393
394
|
autoFitPosition: boolean;
|
394
395
|
updateAtScroll: boolean;
|
395
396
|
preventFocus: boolean;
|
396
|
-
scrollToClose: boolean;
|
397
397
|
needTransformOrigin: boolean;
|
398
398
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
399
399
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -427,6 +427,7 @@ declare const Dropdown: {
|
|
427
427
|
focusDelay: number;
|
428
428
|
disabled: boolean;
|
429
429
|
scrollToCloseDistance: number;
|
430
|
+
scrollToClose: boolean;
|
430
431
|
autoSetPosition: boolean;
|
431
432
|
alignPoint: boolean;
|
432
433
|
position: import('..').TriggerPostion;
|
@@ -447,14 +448,13 @@ declare const Dropdown: {
|
|
447
448
|
autoFitPosition: boolean;
|
448
449
|
updateAtScroll: boolean;
|
449
450
|
preventFocus: boolean;
|
450
|
-
scrollToClose: boolean;
|
451
451
|
needTransformOrigin: boolean;
|
452
452
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
453
453
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
454
454
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
455
455
|
onShow?: (() => any) | undefined;
|
456
456
|
onHide?: (() => any) | undefined;
|
457
|
-
}>, "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" | "
|
457
|
+
}>, "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<{
|
458
458
|
hide(): void;
|
459
459
|
show(): void;
|
460
460
|
updatePosition(x: number, y: number): void;
|
package/es/Empty/index.vue.js
CHANGED
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import { useI18n } from "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$1 from "../_shared/icons/IconEmpty.vue.js";
|
8
10
|
const _hoisted_1 = { class: "yc-empty" };
|
9
11
|
const _hoisted_2 = { class: "yc-empty-image" };
|
package/es/Image/Image.vue.js
CHANGED
@@ -4,7 +4,9 @@ import { valueToPx } from "../_shared/utils/dom.js";
|
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import { useI18n } from "../_shared/utils/locale.js";
|
6
6
|
import useControlValue from "../_shared/utils/control.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
9
|
+
/* empty css */
|
8
10
|
import _sfc_main$2 from "../_shared/icons/IconImageClose.vue.js";
|
9
11
|
import useContext from "./hooks/useContext.js";
|
10
12
|
import Spin from "../Spin/index.js";
|
@@ -5,7 +5,9 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
import "../_shared/utils/locale.js";
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
|
-
/* empty css
|
8
|
+
/* empty css */
|
9
|
+
/* empty css */
|
10
|
+
/* empty css */
|
9
11
|
import _sfc_main$2 from "../_shared/icons/IconClose.vue.js";
|
10
12
|
import { useEventListener, onKeyStroke } from "../node_modules/@vueuse/core/index.js";
|
11
13
|
import useModalClose from "../Modal/hooks/useModalClose.js";
|
@@ -52,10 +54,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
52
54
|
defaultScale,
|
53
55
|
zoomRate,
|
54
56
|
wheelZoom,
|
55
|
-
keyboard
|
56
|
-
popupContainer: _popupContainer
|
57
|
+
keyboard
|
57
58
|
} = toRefs(props);
|
58
|
-
const { zIndex, popupContainer } = getGlobalConfig(props);
|
59
|
+
const { zIndex, popupContainer, isAbsolute } = getGlobalConfig(props);
|
59
60
|
const imageRef = ref();
|
60
61
|
const scale = useControlValue(ref(), defaultScale.value);
|
61
62
|
const rotate = ref(0);
|
@@ -137,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
137
138
|
"yc-image-preview",
|
138
139
|
_ctx.$attrs.class,
|
139
140
|
{
|
140
|
-
"yc-image-preview-absolute": unref(
|
141
|
+
"yc-image-preview-absolute": unref(isAbsolute)
|
141
142
|
}
|
142
143
|
]),
|
143
144
|
style: normalizeStyle({
|
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
9
11
|
__name: "ImagePreviewArrow",
|
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import { useI18n } from "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$6 from "../_shared/icons/IconFullScreen.vue2.js";
|
8
10
|
import _sfc_main$1 from "../_shared/icons/IconOriginSize.vue2.js";
|
9
11
|
import _sfc_main$4 from "../_shared/icons/IconRotateLeft.vue2.js";
|
package/es/Input/Input.vue.js
CHANGED
@@ -6,11 +6,11 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
6
6
|
import "../_shared/utils/locale.js";
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import useLimitedInput from "./hooks/useLimitedInput.js";
|
9
|
-
import _sfc_main$2 from "../_shared/components/IconButton.
|
10
|
-
/* empty css */
|
11
|
-
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
9
|
+
import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
|
12
10
|
/* empty css */
|
13
|
-
|
11
|
+
import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
|
12
|
+
/* empty css */
|
13
|
+
/* empty css */
|
14
14
|
import _sfc_main$3 from "./InputSuffix.vue.js";
|
15
15
|
/* empty css */
|
16
16
|
const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent, createBlock, openBlock, unref, withCtx, createElementBlock, createCommentVNode, renderSlot, toDisplayString } from "vue";
|
2
|
+
import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
|
3
|
+
/* empty css */
|
4
|
+
import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
|
2
5
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
6
|
import "../_shared/utils/dom.js";
|
4
7
|
import "../_shared/utils/time.js";
|
5
8
|
import "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
|
+
/* empty css */
|
7
11
|
import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue2.js";
|
8
12
|
import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue2.js";
|
9
|
-
import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
|
10
|
-
/* empty css */
|
11
|
-
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
12
|
-
/* empty css */
|
13
13
|
const _hoisted_1 = {
|
14
14
|
key: 0,
|
15
15
|
class: "yc-input-word-limit"
|
@@ -4,7 +4,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../_shared/utils/locale.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
9
|
+
/* empty css */
|
8
10
|
import _sfc_main$2 from "../_shared/icons/IconMinus.vue2.js";
|
9
11
|
import _sfc_main$3 from "../_shared/icons/IconPlus.vue.js";
|
10
12
|
import Button from "../Button/index.js";
|
package/es/InputTag/index.vue.js
CHANGED
@@ -9,11 +9,11 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
9
9
|
import "../_shared/utils/locale.js";
|
10
10
|
import useControlValue from "../_shared/utils/control.js";
|
11
11
|
import Tag from "../Tag/index.js";
|
12
|
-
import _sfc_main$2 from "../_shared/components/IconButton.
|
13
|
-
/* empty css */
|
14
|
-
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
12
|
+
import _sfc_main$2 from "../_shared/components/IconButton/index.vue2.js";
|
15
13
|
/* empty css */
|
16
|
-
|
14
|
+
import _sfc_main$1 from "../_shared/components/PreventFocus/index.vue.js";
|
15
|
+
/* empty css */
|
16
|
+
/* empty css */
|
17
17
|
const _hoisted_1 = ["disabled", "readonly", "placeholder"];
|
18
18
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
19
19
|
...{
|
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import { mediaQueryHandler, valueToPx } from "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
10
|
import useSiderContext from "./hooks/useSiderContext.js";
|
9
11
|
import ResizeBox from "../ResizeBox/index.js";
|
package/es/Layout/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.yc-layout{flex:1;width:100%;height:100%;display:flex;flex-direction:column}.yc-layout-has-sider{flex-direction:row}.yc-layout,.yc-layout-header,.yc-layout-footer,.yc-layout-sider,.yc-layout-content{flex-shrink:0}.yc-layout-header,.yc-layout-footer{width:100%}.yc-layout-sider{height:100%}.yc-layout-content{flex:1}.yc-layout-sider{position:relative;flex:none;margin:0;padding:0;transition:width .2s cubic-bezier(.34, .69, .1, 1)}
|
1
|
+
.yc-layout{flex:1;width:100%;height:100%;display:flex;flex-direction:column}.yc-layout-has-sider{flex-direction:row}.yc-layout,.yc-layout-header,.yc-layout-footer,.yc-layout-sider,.yc-layout-content{flex-shrink:0}.yc-layout-header,.yc-layout-footer{width:100%}.yc-layout-sider{height:100%}.yc-layout-content{flex:1}.yc-layout-sider{position:relative;flex:none;margin:0;padding:0;transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-layout-sider .yc-layout-sider-children{height:100%;overflow:auto}.yc-layout-sider .yc-layout-sider-trigger{position:absolute;left:0;bottom:0;cursor:pointer;height:48px;width:100%;display:flex;justify-content:center;align-items:center}.yc-layout-sider-has-trigger{padding-bottom:48px}.yc-layout-sider-translation{transition:width .2s cubic-bezier(.34, .69, .1, 1)}.yc-layout-sider-light{background-color:var(--color-menu-light-bg);box-shadow:0 2px 5px 0 rgba(0,0,0,0.08)}.yc-layout-sider-light .yc-layout-sider-trigger{background-color:unset;border-top:1px solid var(--color-bg-5);color:var(--color-text-1)}.yc-layout-sider-dark{background-color:var(--color-menu-dark-bg);box-shadow:none}.yc-layout-sider-dark .yc-layout-sider-trigger{background-color:rgba(255,255,255,0.2);border-top:none;color:var(--color-white)}
|
package/es/Link/index.vue.js
CHANGED
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$1 from "../_shared/icons/IconLink.vue.js";
|
8
10
|
import Spin from "../Spin/index.js";
|
9
11
|
const _hoisted_1 = ["href"];
|
package/es/List/List.vue.d.ts
CHANGED
@@ -151,9 +151,9 @@ declare const __VLS_component: import('vue').DefineComponent<ListProps, {}, {},
|
|
151
151
|
}>, {
|
152
152
|
size: import('./type').ListSize;
|
153
153
|
scrollbar: boolean;
|
154
|
-
split: boolean;
|
155
154
|
data: import('../_shared/type').ObjectData[];
|
156
155
|
hoverable: boolean;
|
156
|
+
split: boolean;
|
157
157
|
loading: boolean;
|
158
158
|
bordered: boolean;
|
159
159
|
virtualListProps: import('..').VirtualListProps;
|
package/es/List/index.d.ts
CHANGED
@@ -20,9 +20,9 @@ declare const List: {
|
|
20
20
|
}, import('vue').PublicProps, {
|
21
21
|
size: import('./type').ListSize;
|
22
22
|
scrollbar: boolean;
|
23
|
-
split: boolean;
|
24
23
|
data: import('../_shared/type').ObjectData[];
|
25
24
|
hoverable: boolean;
|
25
|
+
split: boolean;
|
26
26
|
loading: boolean;
|
27
27
|
bordered: boolean;
|
28
28
|
virtualListProps: import('..').VirtualListProps;
|
@@ -176,9 +176,9 @@ declare const List: {
|
|
176
176
|
}>, {}, {}, {}, {}, {
|
177
177
|
size: import('./type').ListSize;
|
178
178
|
scrollbar: boolean;
|
179
|
-
split: boolean;
|
180
179
|
data: import('../_shared/type').ObjectData[];
|
181
180
|
hoverable: boolean;
|
181
|
+
split: boolean;
|
182
182
|
loading: boolean;
|
183
183
|
bordered: boolean;
|
184
184
|
virtualListProps: import('..').VirtualListProps;
|
@@ -202,9 +202,9 @@ declare const List: {
|
|
202
202
|
}, string, {
|
203
203
|
size: import('./type').ListSize;
|
204
204
|
scrollbar: boolean;
|
205
|
-
split: boolean;
|
206
205
|
data: import('../_shared/type').ObjectData[];
|
207
206
|
hoverable: boolean;
|
207
|
+
split: boolean;
|
208
208
|
loading: boolean;
|
209
209
|
bordered: boolean;
|
210
210
|
virtualListProps: import('..').VirtualListProps;
|
package/es/Mention/index.d.ts
CHANGED
@@ -26,9 +26,9 @@ declare const Mention: {
|
|
26
26
|
"update:modelValue": (value: string) => any;
|
27
27
|
}, import('vue').PublicProps, {
|
28
28
|
disabled: boolean;
|
29
|
-
split: string;
|
30
29
|
type: "input" | "textarea";
|
31
30
|
data: import('..').SelectOptions;
|
31
|
+
split: string;
|
32
32
|
modelValue: string;
|
33
33
|
defaultValue: string;
|
34
34
|
allowClear: boolean;
|
@@ -279,6 +279,7 @@ declare const Mention: {
|
|
279
279
|
focusDelay: number;
|
280
280
|
disabled: boolean;
|
281
281
|
scrollToCloseDistance: number;
|
282
|
+
scrollToClose: boolean;
|
282
283
|
autoSetPosition: boolean;
|
283
284
|
alignPoint: boolean;
|
284
285
|
position: import('..').TriggerPostion;
|
@@ -299,7 +300,6 @@ declare const Mention: {
|
|
299
300
|
autoFitPosition: boolean;
|
300
301
|
updateAtScroll: boolean;
|
301
302
|
preventFocus: boolean;
|
302
|
-
scrollToClose: boolean;
|
303
303
|
needTransformOrigin: boolean;
|
304
304
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
305
305
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -333,6 +333,7 @@ declare const Mention: {
|
|
333
333
|
focusDelay: number;
|
334
334
|
disabled: boolean;
|
335
335
|
scrollToCloseDistance: number;
|
336
|
+
scrollToClose: boolean;
|
336
337
|
autoSetPosition: boolean;
|
337
338
|
alignPoint: boolean;
|
338
339
|
position: import('..').TriggerPostion;
|
@@ -353,14 +354,13 @@ declare const Mention: {
|
|
353
354
|
autoFitPosition: boolean;
|
354
355
|
updateAtScroll: boolean;
|
355
356
|
preventFocus: boolean;
|
356
|
-
scrollToClose: boolean;
|
357
357
|
needTransformOrigin: boolean;
|
358
358
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
359
359
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
360
360
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
361
361
|
onShow?: (() => any) | undefined;
|
362
362
|
onHide?: (() => any) | undefined;
|
363
|
-
}>, "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" | "
|
363
|
+
}>, "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<{
|
364
364
|
hide(): void;
|
365
365
|
show(): void;
|
366
366
|
updatePosition(x: number, y: number): void;
|
@@ -858,9 +858,9 @@ declare const Mention: {
|
|
858
858
|
blur(): void;
|
859
859
|
}, {}, {}, {}, {
|
860
860
|
disabled: boolean;
|
861
|
-
split: string;
|
862
861
|
type: "input" | "textarea";
|
863
862
|
data: import('..').SelectOptions;
|
863
|
+
split: string;
|
864
864
|
modelValue: string;
|
865
865
|
defaultValue: string;
|
866
866
|
allowClear: boolean;
|
@@ -892,9 +892,9 @@ declare const Mention: {
|
|
892
892
|
"update:modelValue": (value: string) => any;
|
893
893
|
}, string, {
|
894
894
|
disabled: boolean;
|
895
|
-
split: string;
|
896
895
|
type: "input" | "textarea";
|
897
896
|
data: import('..').SelectOptions;
|
897
|
+
split: string;
|
898
898
|
modelValue: string;
|
899
899
|
defaultValue: string;
|
900
900
|
allowClear: boolean;
|
@@ -250,6 +250,7 @@ declare function __VLS_template(): {
|
|
250
250
|
focusDelay: number;
|
251
251
|
disabled: boolean;
|
252
252
|
scrollToCloseDistance: number;
|
253
|
+
scrollToClose: boolean;
|
253
254
|
autoSetPosition: boolean;
|
254
255
|
alignPoint: boolean;
|
255
256
|
position: import('..').TriggerPostion;
|
@@ -270,7 +271,6 @@ declare function __VLS_template(): {
|
|
270
271
|
autoFitPosition: boolean;
|
271
272
|
updateAtScroll: boolean;
|
272
273
|
preventFocus: boolean;
|
273
|
-
scrollToClose: boolean;
|
274
274
|
needTransformOrigin: boolean;
|
275
275
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
276
276
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -304,6 +304,7 @@ declare function __VLS_template(): {
|
|
304
304
|
focusDelay: number;
|
305
305
|
disabled: boolean;
|
306
306
|
scrollToCloseDistance: number;
|
307
|
+
scrollToClose: boolean;
|
307
308
|
autoSetPosition: boolean;
|
308
309
|
alignPoint: boolean;
|
309
310
|
position: import('..').TriggerPostion;
|
@@ -324,14 +325,13 @@ declare function __VLS_template(): {
|
|
324
325
|
autoFitPosition: boolean;
|
325
326
|
updateAtScroll: boolean;
|
326
327
|
preventFocus: boolean;
|
327
|
-
scrollToClose: boolean;
|
328
328
|
needTransformOrigin: boolean;
|
329
329
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
330
330
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
331
331
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
332
332
|
onShow?: (() => any) | undefined;
|
333
333
|
onHide?: (() => any) | undefined;
|
334
|
-
}>, "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" | "
|
334
|
+
}>, "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<{
|
335
335
|
hide(): void;
|
336
336
|
show(): void;
|
337
337
|
updatePosition(x: number, y: number): void;
|
@@ -835,9 +835,9 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
835
835
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
836
836
|
}>, {
|
837
837
|
disabled: boolean;
|
838
|
-
split: string;
|
839
838
|
type: "input" | "textarea";
|
840
839
|
data: import('../Select').SelectOptions;
|
840
|
+
split: string;
|
841
841
|
modelValue: string;
|
842
842
|
defaultValue: string;
|
843
843
|
allowClear: boolean;
|
@@ -1088,6 +1088,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1088
1088
|
focusDelay: number;
|
1089
1089
|
disabled: boolean;
|
1090
1090
|
scrollToCloseDistance: number;
|
1091
|
+
scrollToClose: boolean;
|
1091
1092
|
autoSetPosition: boolean;
|
1092
1093
|
alignPoint: boolean;
|
1093
1094
|
position: import('..').TriggerPostion;
|
@@ -1108,7 +1109,6 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1108
1109
|
autoFitPosition: boolean;
|
1109
1110
|
updateAtScroll: boolean;
|
1110
1111
|
preventFocus: boolean;
|
1111
|
-
scrollToClose: boolean;
|
1112
1112
|
needTransformOrigin: boolean;
|
1113
1113
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
1114
1114
|
beforeCreate?: (() => void) | (() => void)[];
|
@@ -1142,6 +1142,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1142
1142
|
focusDelay: number;
|
1143
1143
|
disabled: boolean;
|
1144
1144
|
scrollToCloseDistance: number;
|
1145
|
+
scrollToClose: boolean;
|
1145
1146
|
autoSetPosition: boolean;
|
1146
1147
|
alignPoint: boolean;
|
1147
1148
|
position: import('..').TriggerPostion;
|
@@ -1162,14 +1163,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1162
1163
|
autoFitPosition: boolean;
|
1163
1164
|
updateAtScroll: boolean;
|
1164
1165
|
preventFocus: boolean;
|
1165
|
-
scrollToClose: boolean;
|
1166
1166
|
needTransformOrigin: boolean;
|
1167
1167
|
}> & Omit<Readonly<import('..').TriggerProps> & Readonly<{
|
1168
1168
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1169
1169
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1170
1170
|
onShow?: (() => any) | undefined;
|
1171
1171
|
onHide?: (() => any) | undefined;
|
1172
|
-
}>, "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" | "
|
1172
|
+
}>, "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<{
|
1173
1173
|
hide(): void;
|
1174
1174
|
show(): void;
|
1175
1175
|
updatePosition(x: number, y: number): void;
|
package/es/Menu/Menu.vue.js
CHANGED
@@ -3,7 +3,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
3
3
|
import { mediaQueryHandler } from "../_shared/utils/dom.js";
|
4
4
|
import "../_shared/utils/time.js";
|
5
5
|
import "../_shared/utils/locale.js";
|
6
|
-
/* empty css
|
6
|
+
/* empty css */
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
7
9
|
import _sfc_main$2 from "../_shared/icons/IconMenuFold.vue.js";
|
8
10
|
import _sfc_main$3 from "../_shared/icons/IconMenuUnfold.vue.js";
|
9
11
|
import useMenuContext from "./hooks/useContext.js";
|
@@ -4,7 +4,9 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../_shared/utils/locale.js";
|
7
|
-
/* empty css
|
7
|
+
/* empty css */
|
8
|
+
/* empty css */
|
9
|
+
/* empty css */
|
8
10
|
import _sfc_main$1 from "../_shared/icons/IconMore.vue.js";
|
9
11
|
import useMenuContext, { isMenuItemActive } from "./hooks/useContext.js";
|
10
12
|
import _sfc_main$3 from "./MenuPopOption.vue.js";
|
@@ -51,6 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
51
53
|
showArrow: true,
|
52
54
|
...unref(triggerProps)
|
53
55
|
},
|
56
|
+
class: normalizeClass([`yc-dropdown-popup-${unref(theme)}`]),
|
54
57
|
onSelect: handleSelect
|
55
58
|
}, {
|
56
59
|
content: withCtx(() => [
|
@@ -84,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
84
87
|
], 2)
|
85
88
|
]),
|
86
89
|
_: 1
|
87
|
-
}, 8, ["popup-max-height", "trigger-props"])
|
90
|
+
}, 8, ["popup-max-height", "trigger-props", "class"])
|
88
91
|
]);
|
89
92
|
};
|
90
93
|
}
|
package/es/Menu/MenuItem.vue.js
CHANGED
@@ -186,6 +186,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
186
186
|
showArrow: true,
|
187
187
|
...unref(triggerProps)
|
188
188
|
},
|
189
|
+
class: normalizeClass([`yc-dropdown-popup-${unref(theme)}`]),
|
189
190
|
onSelect: handleSelect
|
190
191
|
}, {
|
191
192
|
content: withCtx(() => [
|
@@ -203,7 +204,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
203
204
|
createVNode(unref(ReuseTemplate))
|
204
205
|
]),
|
205
206
|
_: 1
|
206
|
-
}, 8, ["popup-max-height", "trigger-props"])) : !isSubmenu.value && isRoot.value && unref(computedCollapsed) ? (openBlock(), createBlock(unref(Tooltip), {
|
207
|
+
}, 8, ["popup-max-height", "trigger-props", "class"])) : !isSubmenu.value && isRoot.value && unref(computedCollapsed) ? (openBlock(), createBlock(unref(Tooltip), {
|
207
208
|
key: 1,
|
208
209
|
position: "rt",
|
209
210
|
"trigger-props": {
|
package/es/Menu/SubMenu.vue.js
CHANGED
@@ -5,10 +5,10 @@ import "../node_modules/tinycolor2/esm/tinycolor.js";
|
|
5
5
|
import "../_shared/utils/dom.js";
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../_shared/utils/locale.js";
|
8
|
-
/* empty css */
|
9
|
-
/* empty css */
|
10
|
-
import _sfc_main$3 from "../_shared/components/ExpandTransition.vue2.js";
|
11
8
|
/* empty css */
|
9
|
+
import _sfc_main$3 from "../_shared/components/ExpandTransition/index.vue2.js";
|
10
|
+
/* empty css */
|
11
|
+
/* empty css */
|
12
12
|
import "./index.js";
|
13
13
|
import _sfc_main$1 from "./MenuItem.vue.js";
|
14
14
|
/* empty css */
|
@@ -9,7 +9,6 @@ import "../index.js";
|
|
9
9
|
import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
10
10
|
import { useResizeObserver } from "../../node_modules/@vueuse/core/index.js";
|
11
11
|
import useSiderContext from "../../Layout/hooks/useSiderContext.js";
|
12
|
-
import useTheme from "../../Layout/hooks/useTheme.js";
|
13
12
|
import _sfc_main from "../SubMenu.vue.js";
|
14
13
|
/* empty css */
|
15
14
|
import _sfc_main$1 from "../MenuItem.vue.js";
|
@@ -117,7 +116,6 @@ const getPopupMaxHeight = (popupMaxHeight) => {
|
|
117
116
|
}
|
118
117
|
};
|
119
118
|
const useMenuContext = () => {
|
120
|
-
const { theme: sysTheme } = useTheme();
|
121
119
|
const provide$1 = (props, emits, menuRef) => {
|
122
120
|
const {
|
123
121
|
selectedKeys,
|
@@ -183,7 +181,7 @@ const useMenuContext = () => {
|
|
183
181
|
const menuTree = computed(() => buildMenuTree(menuTreeNodes.value));
|
184
182
|
const max = ref(1e6);
|
185
183
|
const theme = computed(() => {
|
186
|
-
return _theme.value || siderTheme.value ||
|
184
|
+
return _theme.value || siderTheme.value || "light";
|
187
185
|
});
|
188
186
|
if (mode.value == "horizontal") {
|
189
187
|
useResizeObserver(
|
@@ -247,7 +245,7 @@ const useMenuContext = () => {
|
|
247
245
|
triggerProps: ref({}),
|
248
246
|
autoOpenSelected: ref(false),
|
249
247
|
mode: ref("vertical"),
|
250
|
-
theme:
|
248
|
+
theme: ref("light"),
|
251
249
|
popupMaxHeight: ref(),
|
252
250
|
autoScrollIntoView: ref(false),
|
253
251
|
scrollConfig: ref({}),
|