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
@@ -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;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const s=require("../_shared/utils/control.js")
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),i=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const s=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js");require("./index.js");const l=require("../Trigger/index.js"),u=require("../Scrollbar/index.js"),n=require("./Doption.vue.js");;/* empty css */const a={class:"yc-dropdown"},d={class:"yc-dropdown-list"},p={key:0,class:"yc-dropdown-footer"},c=e.defineComponent({name:"Dsubmenu",__name:"Dsubmenu",props:{disabled:{type:Boolean,default:!1},trigger:{default:"click"},position:{default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{default:()=>({})},popupMaxHeight:{default:200}},emits:["update:popupVisible","popup-visible-change"],setup(c,{expose:f,emit:v}){const m=c,g=v,{defaultPopupVisible:h,popupVisible:b,trigger:x,position:y,popupMaxHeight:_}=e.toRefs(m),q=s(b,h.value,e=>{g("update:popupVisible",e),g("popup-visible-change",e)}),j=e.ref(),w=e.ref(),V=e.computed(()=>["rt","lt"].includes(y.value)?y.value:"rt"),k=e.computed(()=>["hover","click"].includes(x.value)?x.value:"hover"),B=e.computed(()=>i.isBoolean(_.value)&&!_.value||i.isUndefined(_)?"":o.valueToPx(i.isBoolean(_.value)?200:_.value)),C=async()=>{var o;await e.nextTick();const i=t.unrefElement(j);if(!i)return;const{left:s,top:r,right:l,width:u}=i.getBoundingClientRect(),n="rt"==V.value?l:s-u,a=r-5;null==(o=w.value)||o.updatePosition(n,a)};return f({show(){q.value=!0},hide(){q.value=!1}}),(t,o)=>(e.openBlock(),e.createBlock(e.unref(l),e.mergeProps({"popup-visible":e.unref(q),"onUpdate:popupVisible":o[0]||(o[0]=t=>e.isRef(q)?q.value=t:null),trigger:k.value,position:V.value,"popup-offset":4,disabled:t.disabled,"mouse-enter-delay":150,"mouse-leave-delay":150,"on-trigger-mouseenter":C,"on-trigger-mouseclick":C,"need-transform-origin":"","auto-set-position":"","auto-fit-popup-min-width":"",ref_key:"triggerRef",ref:w},t.triggerProps),{content:e.withCtx(()=>[e.createElementVNode("div",a,[e.createVNode(e.unref(u),{style:e.normalizeStyle({maxHeight:B.value})},{default:e.withCtx(()=>[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"content")])]),_:3},8,["style"]),t.$slots.footer?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(t.$slots,"footer")])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createVNode(e.unref(n),{disabled:t.disabled,class:e.normalizeClass(t.$attrs.class),style:e.normalizeStyle(t.$attrs.style),"is-submenu":"",ref_key:"optionRef",ref:j},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},8,["disabled","class","style"])]),_:3},16,["popup-visible","trigger","position","disabled"]))}});module.exports=c;
|
package/lib/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/lib/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/lib/Empty/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const s=Object.assign(e,{install:s=>{s.component("Yc"+e.name,e)}});module.exports=s;
|
package/lib/Empty/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/locale.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconEmpty.vue.js"),s={class:"yc-empty"},o={class:"yc-empty-image"},n=["src"],i={class:"yc-empty-description"},c=e.defineComponent({name:"Empty",__name:"index",props:{description:{default:""},imgSrc:{default:""}},setup(c){const d=c,{description:l}=e.toRefs(d),{t:u}=t.useI18n();return(t,c)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",o,[e.renderSlot(t.$slots,"image",{},()=>[t.imgSrc?(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imgSrc,alt:"图片加载失败"},null,8,n)):e.createCommentVNode("",!0),e.createVNode(e.unref(r))])]),e.createElementVNode("div",i,[e.renderSlot(t.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.description||e.unref(u)("empty.description")),1)])])]))}});module.exports=c;
|
package/lib/Empty/index.vue3.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */,/* empty css */module.exports=e;
|
package/lib/Image/Image.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js"),i=require("../_shared/utils/control.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js"),i=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconImageClose.vue.js"),l=require("./hooks/useContext.js"),a=require("../Spin/index.js"),s=require("./ImagePreview.vue.js");;/* empty css */const n=["src","title","alt"],c={key:1,class:"yc-image-overlay"},d={class:"yc-image-loader"},u={key:2,class:"yc-image-overlay"},m={class:"yc-image-error"},v={class:"yc-image-error-icon"},p={class:"yc-image-error-alt"},f={class:"yc-image-footer-caption"},y=["title"],g=["title"],h={key:0,class:"yc-image-footer-extra"},w=e.defineComponent({name:"Image",__name:"Image",props:{src:{default:""},width:{},height:{},title:{default:""},description:{default:""},fit:{},alt:{},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{default:()=>({})},footerClass:{default:""}},emits:["update:previewVisible","preview-visible-change"],setup(w,{emit:k}){const V=w,B=k,{src:x,preview:j,previewVisible:E,defaultPreviewVisible:N}=e.toRefs(V),{hasGroupFather:q,handleClick:C}=l().inject(),{t:P}=o.useI18n(),S=i(E,N.value,e=>{B("update:previewVisible",e),B("preview-visible-change",e)}),b=e.ref(!1),_=e.ref(!1),I=()=>{_.value=!1,b.value=!1},$=()=>{_.value=!1,b.value=!0},z=()=>{if(q.value)return C(x.value);j.value&&(S.value=!0)};return e.watch(()=>x.value,()=>{_.value=!0,b.value=!1},{immediate:!0}),(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:"yc-image",style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height)})},[e.createElementVNode("img",{src:e.unref(x),title:o.title,alt:o.alt??o.description,style:e.normalizeStyle({width:e.unref(t.valueToPx)(o.width),height:e.unref(t.valueToPx)(o.height),objectFit:o.fit}),class:"yc-image-img",onLoad:I,onError:$,onClick:z},null,44,n),e.unref(j)?(e.openBlock(),e.createBlock(s,e.mergeProps({key:0,visible:e.unref(S),"onUpdate:visible":i[0]||(i[0]=t=>e.isRef(S)?S.value=t:null),src:e.unref(x)},o.previewProps),e.createSlots({_:2},[o.$slots["preview-actions"]?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"preview-actions")]),key:"0"}:void 0]),1040,["visible","src"])):e.createCommentVNode("",!0),(o.showLoader||o.$slots.loader)&&_.value?(e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",d,[e.renderSlot(o.$slots,"loader",{},()=>[e.createVNode(e.unref(a),{size:30,tip:e.unref(P)("image.loading")},null,8,["tip"])])])])):e.createCommentVNode("",!0),b.value?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(o.$slots,"error",{},()=>[e.createElementVNode("div",m,[e.renderSlot(o.$slots,"error-icon",{},()=>[e.createElementVNode("div",v,[e.createVNode(e.unref(r),{size:60})])]),e.createElementVNode("div",p,e.toDisplayString(o.alt??o.description),1)])])])):e.createCommentVNode("",!0),!o.hideFooter&&(o.title||o.description||o.$slots.extra)?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["yc-image-footer","inner"==o.footerPosition?"yc-image-footer-inner":"yc-image-footer-outer",o.footerClass])},[e.createElementVNode("div",f,[e.createElementVNode("div",{class:"yc-image-footer-caption-title",title:o.title},e.toDisplayString(o.title),9,y),e.createElementVNode("div",{class:"yc-image-footer-caption-description",title:o.description},e.toDisplayString(o.description),9,g)]),o.$slots.extra?(e.openBlock(),e.createElementBlock("div",h,[e.renderSlot(o.$slots,"extra")])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],4))}});module.exports=w;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const t=require("../_shared/utils/control.js");,/* empty css */,/* empty css */;/* empty css */const a=require("../_shared/icons/IconClose.vue.js"),r=require("../node_modules/@vueuse/core/index.js"),l=require("../Modal/hooks/useModalClose.js"),s=require("./ImagePreviewToolbar.vue.js");;/* empty css */const i={class:"yc-image-preview-mask"},n=["src"],u=e.defineComponent({name:"ImagePreview",inheritAttrs:!1,__name:"ImagePreview",props:{src:{default:""},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{default:void 0},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{default:1},zoomRate:{default:1.1}},emits:["update:visible","close"],setup(u,{emit:c}){const d=u,f=c,{visible:m,defaultVisible:v,maskClosable:p,escToClose:w,defaultScale:y,zoomRate:h,wheelZoom:k,keyboard:g}=e.toRefs(d),{zIndex:b,popupContainer:C,isAbsolute:z}=o.getGlobalConfig(d),B=e.ref(),_=t(e.ref(),y.value),S=e.ref(0),{outerVisible:q,innerVisible:V,handleClose:j,handleAfterLeave:I}=l({visible:m,defaultVisible:v,escToClose:w,maskClosable:p,onBeforeOk:()=>!0,onBeforeCancel:()=>!0,emits:f}),x=e=>{switch(e){case"rotateRight":S.value+=90;break;case"rotateLeft":S.value-=90;break;case"zoomIn":_.value*=h.value;break;case"zoomOut":_.value/=h.value;break;case"originalSize":_.value=y.value,S.value=0;break;case"fullScreen":{const{offsetWidth:e,offsetHeight:o}=B.value;_.value=e>o?window.innerHeight/o:window.innerHeight/e}}};return(()=>{if(k.value&&r.useEventListener("wheel",e=>{e.preventDefault(),e.stopPropagation();const o=e.deltaY<0?1:-1;_.value*=Math.pow(h.value,o)}),g.value){const e={ArrowUp:"zoomIn",ArrowDown:"zoomOut"," ":"originalSize"};r.onKeyStroke(["ArrowUp","ArrowDown"," "],o=>{x(e[o.key])})}})(),(o,t)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(C)},[e.unref(q)?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-image-preview",o.$attrs.class,{"yc-image-preview-absolute":e.unref(z)}]),style:e.normalizeStyle({zIndex:e.unref(b),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:"fade"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",i,null,512),[[e.vShow,e.unref(V)]])]),_:1}),e.createVNode(e.Transition,{name:"fade",onAfterLeave:e.unref(I)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:"yc-image-preview-wrapper",onClick:t[2]||(t[2]=e.withModifiers(o=>e.unref(j)("mask",o,!1),["self"]))},[e.createElementVNode("div",{style:e.normalizeStyle({transform:`scale(${e.unref(_)}, ${e.unref(_)})`}),class:"yc-image-preview-img-container",onClick:t[0]||(t[0]=e.withModifiers(o=>e.unref(j)("mask",o,!1),["self"]))},[e.createElementVNode("img",{src:o.src,style:e.normalizeStyle({transform:`translate(-50%, -50%) rotate(${S.value}deg)`}),class:"yc-image-preview-img",ref_key:"imageRef",ref:B},null,12,n)],4),e.createVNode(s,{actionsLayout:o.actionsLayout,onClick:x},e.createSlots({_:2},[o.$slots.actions?{name:"actions",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"actions")]),key:"0"}:void 0]),1032,["actionsLayout"]),e.renderSlot(o.$slots,"arrow"),o.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-image-preview-close-btn",onClick:t[1]||(t[1]=o=>e.unref(j)("closeBtn",o))},[e.createVNode(e.unref(a))])):e.createCommentVNode("",!0)],512),[[e.vShow,e.unref(V)]])]),_:3},8,["onAfterLeave"])],6)):e.createCommentVNode("",!0)],8,["to"]))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=e.defineComponent({__name:"ImagePreviewArrow",props:{type:{}},setup:o=>(o,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([`yc-image-preview-arrow-${o.type}`])},[e.createVNode(e.unref(r),{rotate:"left"==o.type?180:0},null,8,["rotate"])],2))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const o=require("../_shared/utils/locale.js");,/* empty css */,/* empty css */;/* empty css */const r=require("../_shared/icons/IconFullScreen.vue2.js"),n=require("../_shared/icons/IconOriginSize.vue2.js"),t=require("../_shared/icons/IconRotateLeft.vue2.js"),i=require("../_shared/icons/IconRotateRight.vue2.js"),s=require("../_shared/icons/IconZoomIn.vue2.js"),c=require("../_shared/icons/IconZoomOut.vue2.js"),a=require("./ImagePreviewAction.vue.js");;/* empty css */const u={key:0,class:"yc-image-preview-toolbar"},l=e.defineComponent({__name:"ImagePreviewToolbar",props:{actionsLayout:{default:()=>[]}},emits:["click"],setup(l){const{t:m}=o.useI18n(),d={fullScreen:r,rotateRight:i,rotateLeft:t,zoomIn:s,zoomOut:c,originalSize:n};return(o,r)=>o.actionsLayout.length?(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.actionsLayout,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r},[d[r]?(e.openBlock(),e.createBlock(a,{key:0,name:e.unref(m)(`imagePreview.${r}`),onClick:e=>o.$emit("click",r,e)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(d[r])))]),_:2},1032,["name","onClick"])):e.createCommentVNode("",!0)],64))),128)),e.renderSlot(o.$slots,"actions")])):e.createCommentVNode("",!0)}});module.exports=l;
|
package/lib/Input/Input.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("../_shared/utils/control.js"),n=require("./hooks/useLimitedInput.js"),l
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const t=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const o=require("../_shared/utils/control.js"),n=require("./hooks/useLimitedInput.js"),l=;/* empty css */;/* empty css */const s=;/* empty css */,/* empty css */;/* empty css */const i=require("./InputSuffix.vue.js");;/* empty css */const r=["value","type","disabled","readonly","placeholder"],u=e.defineComponent({name:"Input",__name:"Input",props:{modelValue:{default:void 0},defaultValue:{default:""},size:{default:void 0},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:void 0},placeholder:{default:""},maxLength:{default:void 0},wordLength:{type:Function,default:e=>e.length},wordSlice:{type:Function,default:(e,t)=>e.slice(0,t)},showWordLimit:{type:Boolean,default:!1},inputAttrs:{default:()=>({})},isPassword:{type:Boolean,default:!1},visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!1},invisibleButton:{type:Boolean,default:!0},showInput:{type:Boolean,default:!1}},emits:["update:modelValue","update:visibility","input","change","visibility-change","pressEnter","keydown","clear","focus","blur"],setup(u,{expose:a,emit:d}){const c=u,p=d,{visibility:f,defaultVisibility:y}=e.toRefs(c),{size:m}=t.getGlobalConfig(c),h=e.ref(),v=o(f,y.value,e=>{p("update:visibility",e),p("visibility-change",e)}),b=e.computed(()=>v.value?"password":"text"),{computedValue:w,showWordLimit:k,showClearBtn:B,curLength:x,maxLength:C,error:g,handleInput:_,handleComposition:$}=n({props:c,emits:p,inputRef:h}),q=async(e,t)=>{switch(e){case"input":_(t);break;case"change":p("change",w.value,t);break;case"focus":case"blur":p(e,t);break;case"clear":w.value="",p("clear",t);break;case"keydown":{const e=t;p("keydown",e),"Enter"==e.key&&p("pressEnter",e)}}};return a({focus(){var e;null==(e=h.value)||e.focus()},blur(){var e;null==(e=h.value)||e.blur()},getInputRef:()=>h.value}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-input-outer",`yc-input-size-${e.unref(m)}`,{"yc-input-disabled":t.disabled,"yc-input-error":e.unref(g),"yc-input-has-prepend":t.$slots.prepend,"yc-input-has-append":t.$slots.append}])},[t.$slots.prepend?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-prepend"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prepend")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-input-wrapper",{"yc-input-wrapper-disabled":t.disabled}])},[t.$slots.prefix?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-prefix"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"prefix")]),_:3})):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",e.mergeProps({value:e.unref(w),type:b.value,disabled:t.disabled,readonly:t.readonly,placeholder:t.placeholder},t.inputAttrs,{class:"yc-input",ref_key:"inputRef",ref:h,onInput:o[0]||(o[0]=e=>q("input",e)),onChange:o[1]||(o[1]=e=>q("change",e)),onCompositionstart:o[2]||(o[2]=(...t)=>e.unref($)&&e.unref($)(...t)),onCompositionupdate:o[3]||(o[3]=(...t)=>e.unref($)&&e.unref($)(...t)),onCompositionend:o[4]||(o[4]=(...t)=>e.unref($)&&e.unref($)(...t)),onFocus:o[5]||(o[5]=e=>q("focus",e)),onBlur:o[6]||(o[6]=e=>q("blur",e)),onKeydown:o[7]||(o[7]=e.withKeys(e=>q("keydown",e),["enter"]))}),null,16,r),[[e.vShow,!t.$slots.label||t.$slots.label&&t.showInput]]),t.$slots.label?e.withDirectives((e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-input text-ellipsis"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"label")]),_:3},512)),[[e.vShow,!t.showInput]]):e.createCommentVNode("",!0),e.unref(B)?(e.openBlock(),e.createBlock(e.unref(l),{key:2,class:"yc-input-clear-button",onClick:o[8]||(o[8]=e=>q("clear",e))})):e.createCommentVNode("",!0),t.$slots.suffix||e.unref(k)||t.isPassword&&t.invisibleButton?(e.openBlock(),e.createBlock(i,{key:3,"cur-length":e.unref(x),"max-length":e.unref(C),"computed-value":e.unref(w),"show-word-limit":e.unref(k),"computed-visibility":e.unref(v),"invisible-button":t.invisibleButton,"is-password":t.isPassword,onVisibilityChange:o[9]||(o[9]=e=>v.value=e)},e.createSlots({_:2},[t.$slots.suffix?{name:"suffix",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"suffix")]),key:"0"}:void 0]),1032,["cur-length","max-length","computed-value","show-word-limit","computed-visibility","invisible-button","is-password"])):e.createCommentVNode("",!0)],2),t.$slots.append?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-input-append"},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"append")]),_:3})):e.createCommentVNode("",!0)],2))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue")
|
1
|
+
"use strict";const e=require("vue"),o=;/* empty css */;/* empty css */const i=;/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const t=require("../_shared/icons/IconEyeClose.vue2.js"),s=require("../_shared/icons/IconEyeOpen.vue2.js"),n={key:0,class:"yc-input-word-limit"},r=e.defineComponent({__name:"InputSuffix",props:{curLength:{},maxLength:{},showWordLimit:{type:Boolean},computedVisibility:{type:Boolean},isPassword:{type:Boolean},invisibleButton:{type:Boolean}},emits:["clear","visibilityChange"],setup:r=>(r,u)=>(e.openBlock(),e.createBlock(e.unref(i),{class:"yc-input-suffix"},{default:e.withCtx(()=>[r.showWordLimit?(e.openBlock(),e.createElementBlock("div",n,e.toDisplayString(r.curLength)+"/"+e.toDisplayString(r.maxLength),1)):e.createCommentVNode("",!0),r.isPassword&&r.invisibleButton?(e.openBlock(),e.createBlock(e.unref(o),{key:1,size:14,onClick:u[0]||(u[0]=e=>r.$emit("visibilityChange",!r.computedVisibility))},{default:e.withCtx(()=>[r.computedVisibility?(e.openBlock(),e.createBlock(e.unref(s),{key:0})):(e.openBlock(),e.createBlock(e.unref(t),{key:1}))]),_:1})):e.createCommentVNode("",!0),r.$slots.suffix?e.renderSlot(r.$slots,"suffix",{key:2}):e.createCommentVNode("",!0)]),_:3}))});module.exports=r;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconMinus.vue2.js"),s=require("../_shared/icons/IconPlus.vue.js"),r=require("../Button/index.js"),u=e.defineComponent({__name:"InputOperaBtn",props:{mode:{},type:{},disabled:{type:Boolean},computedValue:{},min:{},max:{},size:{}},emits:["click"],setup(u){const i=u,{disabled:t,computedValue:l,min:c,max:a,type:d}=e.toRefs(i),m=e.computed(()=>t.value?t.value:"minus"==d.value?+l.value<=c.value:+l.value>=a.value);return(u,i)=>(e.openBlock(),e.createBlock(e.unref(r.default),{size:u.size,disabled:m.value,class:e.normalizeClass([{"yc-input-number-plus-embed":"embed"==u.mode}]),onClick:i[0]||(i[0]=o=>u.$emit("click",e.unref(d)))},{icon:e.withCtx(()=>[e.renderSlot(u.$slots,"icon",{},()=>["embed"==u.mode?(e.openBlock(),e.createBlock(e.unref(o),{key:0,rotate:"plus"==e.unref(d)?180:0},null,8,["rotate"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},["minus"==e.unref(d)?(e.openBlock(),e.createBlock(e.unref(n),{key:0})):(e.openBlock(),e.createBlock(e.unref(s),{key:1}))],64))])]),_:3},8,["size","disabled","class"]))}});module.exports=u;
|
package/lib/InputTag/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const s=Object.assign(e,{install:s=>{s.component("Yc"+e.name,e)}});module.exports=s;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),u=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const r=require("../_shared/utils/control.js"),n=require("../Tag/index.js"),s
|
1
|
+
"use strict";const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const t=require("../_shared/utils/dom.js"),u=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js");require("../_shared/utils/locale.js");const r=require("../_shared/utils/control.js"),n=require("../Tag/index.js"),s=;/* empty css */;/* empty css */const i=;/* empty css */,/* empty css */;/* empty css */const d=["disabled","readonly","placeholder"],c=e.defineComponent({name:"InputTag",__name:"index",props:{modelValue:{default:void 0},defaultValue:{default:()=>[]},inputValue:{default:void 0},defaultInputValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{default:void 0},maxTagCount:{default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{},uniqueValue:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},fieldNames:{default:()=>({id:"id",label:"label",value:"value",closeable:"closeable",tagProps:"tagProps"})},allowCreate:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","input","input-value-change","focus","blur","press-enter","remove","clear"],setup(c,{expose:v,emit:p}){const f=c,m=p,{modelValue:g,defaultValue:b,inputValue:h,defaultInputValue:y,allowClear:x,disabled:k,readonly:w,uniqueValue:V,retainInputValue:B,allowCreate:C,maxTagCount:_,fieldNames:j,tagNowrap:q}=e.toRefs(f),{size:N}=o.getGlobalConfig(f),T=e.ref(),E=e.ref(),I=e.computed(()=>Object.fromEntries(["id","label","value","closable","tagProps"].map(e=>[e,j.value[e]??e]))),{width:P}=a.useElementSize(E,void 0,{box:"border-box"}),S=r(g,b.value,e=>m("update:modelValue",e),e=>{const{id:a,label:t,value:o,closable:r,tagProps:n}=I.value;return e.map(e=>{if(u.isObject(e)){const t=e;return t[a]=t[a]??l.nanoid(),t[r]=t[r]??!0,t[n]=t[n]??{bordered:!0,nowrap:q.value},e}const s={};return s[a]=l.nanoid(),s[t]=e,s[o]=e,s[r]=!0,s[n]={bordered:!0,nowrap:q.value},s})}),z=r(h,y.value,e=>{m("update:inputValue",e)}),$=e.computed(()=>({visibleList:_.value>0?S.value.slice(0,_.value):S.value,hideList:S.value.slice(_.value)})),D=e.computed(()=>x.value&&!k.value&&!w.value&&S.value.length),L=()=>{u.isBoolean(B.value)&&B.value||u.isObject(B.value)&&B.value.create||(z.value="")},O=(e,a,t)=>{var u,o;const r=null==(u=z.value)?void 0:u.trim();switch(e){case"input":case"input-value-change":{const{value:l}=a.target;m(e,l,a)}break;case"focus":case"blur":m(e,a),"blur"==e&&L();break;case"pressEnter":{const{label:e,value:t,id:u}=I.value,o=!V.value||V.value&&!S.value.find(e=>((null==e?void 0:e[t])??e)==r);if(!r||!C.value||!o)return;const n={};n[u]=l.nanoid(),n[e]=z.value,n[t]=z.value,S.value=[...S.value,n],m("press-enter",a),L()}break;case"close":{const e=S.value,l=e.find(e=>e.id==t);S.value=e.filter(e=>e.id!=t),m("remove",null==l?void 0:l.value,a)}break;case"remove":{if(r||!(null==(o=S.value)?void 0:o.length))return;const e=S.value[S.value.length-1];S.value=S.value.slice(0,S.value.length-1),m("remove",e.value,a)}break;case"clear":S.value=[],m("clear",a)}};return v({focus(){var e;null==(e=T.value)||e.focus()},blur(){var e;null==(e=T.value)||e.blur()}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-input-tag",`yc-input-tag-size-${e.unref(N)}`,{"yc-input-tag-no-value":!e.unref(S).length,"yc-input-tag-disabled":e.unref(k),"yc-input-tag-error":l.error,"yc-input-tag-has-suffix":l.$slots.suffix||D.value}]),onMousedown:a[8]||(a[8]=e=>e.preventDefault()),onClick:a[9]||(a[9]=e=>{var l;return null==(l=T.value)?void 0:l.focus()})},[l.$slots.prefix?(e.openBlock(),e.createBlock(e.unref(i),{key:0,class:"yc-input-tag-prefix"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-input-tag-mirror",ref_key:"mirrorRef",ref:E},e.toDisplayString(e.unref(z)||(e.unref(S).length?"":l.placeholder)),513),e.createVNode(e.TransitionGroup,{name:"input-tag-zoom",tag:"div",class:"yc-input-tag-inner"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList($.value.visibleList,a=>e.renderSlot(l.$slots,"tag",{key:null==a?void 0:a[I.value.id],tag:a},()=>[e.createVNode(e.unref(n),{closable:a[I.value.closable],bordered:a[I.value.tagProps].bordered,nowrap:a[I.value.tagProps].nowrap,checked:!1,onClose:e=>O("close",e,null==a?void 0:a[I.value.id])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.formatTag?l.formatTag(a):a[I.value.label]),1)]),_:2},1032,["closable","bordered","nowrap","onClose"])])),128)),e.unref(_)>0&&e.unref(S).length>e.unref(_)?(e.openBlock(),e.createBlock(e.unref(n),{nowrap:e.unref(q),checked:!1,bordered:"",key:"yc-select-value-tag"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString($.value.hideList.length)+"... ",1)]),_:1},8,["nowrap"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>e.isRef(z)?z.value=l:null),key:"yc-input-tag-input",disabled:e.unref(k),readonly:e.unref(w),placeholder:e.unref(S).length?"":l.placeholder,style:e.normalizeStyle({width:e.unref(t.valueToPx)(e.unref(P))}),class:"yc-input-tag-input",ref_key:"inputRef",ref:T,onInput:a[1]||(a[1]=e=>O("input",e)),onChange:a[2]||(a[2]=e=>O("input-value-change",e)),onFocus:a[3]||(a[3]=e=>O("focus",e)),onBlur:a[4]||(a[4]=e=>O("blur",e)),onKeydown:[a[5]||(a[5]=e.withKeys(e=>O("pressEnter",e),["enter"])),a[6]||(a[6]=e.withKeys(e=>O("remove",e),["delete"]))]},null,44,d),[[e.vModelText,e.unref(z)]])]),_:3}),l.$slots.suffix||D.value?(e.openBlock(),e.createBlock(e.unref(i),{key:1,class:"yc-input-tag-suffix"},{default:e.withCtx(()=>[D.value?(e.openBlock(),e.createBlock(e.unref(s),{key:0,class:"yc-input-tag-clear-button",onClick:a[7]||(a[7]=e=>O("clear",e))})):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"suffix")]),_:3})):e.createCommentVNode("",!0)],34))}});module.exports=c;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */,/* empty css */module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconArrowRight.vue.js"),l=require("./hooks/useSiderContext.js"),o=require("../ResizeBox/index.js"),a={class:"yc-layout-sider-children"},s={class:"yc-layout-sider-children"},i=e.defineComponent({name:"LayoutSider",inheritAttrs:!1,__name:"LayoutSider",props:{theme:{default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsible:{type:Boolean,default:!1},width:{default:200},collapsedWidth:{default:48},reverseArrow:{type:Boolean,default:!1},breakpoint:{default:void 0},hideTrigger:{type:Boolean,default:!1},resizeDirections:{default:()=>[]}},emits:["update:collapsed","collapse","breakpoint"],setup(i,{emit:u}){const n=i,d=u,{collapsible:c,breakpoint:v,hideTrigger:p,collapsedWidth:y,width:f}=e.toRefs(n),{theme:m,computedCollapsed:h}=l.default().provide(n,d),g=e.ref(f.value),k=e.computed(()=>!p.value&&c.value),B=()=>{if(!c.value)return;const e=!h.value;h.value=e,g.value=e?y.value:f.value,d("collapse",e,"clickTrigger")};return r.mediaQueryHandler((e,r,t)=>{if(!c.value||!v.value)return;const l=t<=r[v.value];h.value=l,g.value=l?y.value:f.value,d("collapse",l,"responsive"),d("breakpoint",l)}),(l,i)=>{var u;return l.resizeDirections.length?(e.openBlock(),e.createBlock(e.unref(o),{key:0,width:g.value,"onUpdate:width":i[0]||(i[0]=e=>g.value=e),directions:l.resizeDirections,class:e.normalizeClass(["yc-layout-sider",`yc-layout-sider-${e.unref(m)}`,l.$attrs.class,{"yc-layout-sider-has-trigger":k.value}])},{default:e.withCtx(()=>[e.createElementVNode("div",a,[e.renderSlot(l.$slots,"default")]),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-layout-sider-trigger",onClick:B},[e.renderSlot(l.$slots,"trigger",{collapsed:e.unref(h)},()=>[e.createVNode(e.unref(t),{rotate:e.unref(h)&&!l.reverseArrow?0:180},null,8,["rotate"])])])):e.createCommentVNode("",!0)]),_:3},8,["width","directions","class"])):(e.openBlock(),e.createElementBlock("aside",{key:1,class:e.normalizeClass(["yc-layout-sider","yc-layout-sider-translation",`yc-layout-sider-${e.unref(m)}`,l.$attrs.class,{"yc-layout-sider-has-trigger":k.value}]),style:e.normalizeStyle({...l.$attrs.style||{},width:e.unref(h)?e.unref(r.valueToPx)(e.unref(y)):(null==(u=l.$attrs.style)?void 0:u.width)||e.unref(r.valueToPx)(g.value)})},[e.createElementVNode("div",s,[e.renderSlot(l.$slots,"default")]),k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-layout-sider-trigger",onClick:B},[e.renderSlot(l.$slots,"trigger",{collapsed:e.unref(h)},()=>[e.createVNode(e.unref(t),{rotate:e.unref(h)&&!l.reverseArrow?0:180},null,8,["rotate"])])])):e.createCommentVNode("",!0)],6))}}});module.exports=i;
|
package/lib/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/lib/Link/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const s=Object.assign(e,{install:s=>{s.component("Yc"+e.name,e)}});module.exports=s;
|
package/lib/Link/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const n=require("../_shared/icons/IconLink.vue.js"),o=require("../Spin/index.js"),l=["href"],t={key:0,class:"yc-link-icon"},r=e.defineComponent({name:"Link",__name:"index",props:{href:{default:""},icon:{type:Boolean,default:!1},status:{default:"normal"},hoverable:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click","dblclick","contextmenu"],setup(r,{emit:i}){const s=r,a=i,{disabled:c,loading:u,href:d}=e.toRefs(s),k=e.computed(()=>u.value||c.value?"javascript:void(0)":d.value||"javascript:void(0)"),m=(e,n)=>{c.value||u.value||a(e,n)};return(r,i)=>(e.openBlock(),e.createElementBlock("a",{href:k.value,class:e.normalizeClass(["yc-link",`yc-link-status-${r.status}`,{"yc-link-hoverable":r.hoverable&&!e.unref(c)&&!e.unref(u),"yc-link-loading":e.unref(u),"yc-link-disabled":e.unref(c)}]),onClick:i[0]||(i[0]=e=>m("click",e)),onDblclick:i[1]||(i[1]=e=>m("dblclick",e)),onContextmenu:i[2]||(i[2]=e=>m("contextmenu",e))},[r.$slots.icon||r.icon||e.unref(u)?(e.openBlock(),e.createElementBlock("span",t,[e.unref(u)?(e.openBlock(),e.createBlock(e.unref(o),{key:1,"is-size-inherit":""})):e.renderSlot(r.$slots,"icon",{key:0},()=>[r.icon?(e.openBlock(),e.createBlock(e.unref(n),{key:0})):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0),e.renderSlot(r.$slots,"default")],42,l))}});module.exports=r;
|
package/lib/Link/index.vue3.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e
|
1
|
+
"use strict";const e=;/* empty css */,/* empty css */module.exports=e;
|
package/lib/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/lib/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/lib/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;
|