yc-design-vue 1.9.9 → 2.0.0
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 +2 -2
- package/es/AutoComplete/index.d.ts +19 -19
- package/es/AutoComplete/index.vue.d.ts +34 -34
- package/es/AutoComplete/type.d.ts +2 -2
- package/es/Avatar/Avatar.vue.js +1 -1
- package/es/BackTop/index.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Button/index.css +1 -1
- package/es/Calendar/Calendar.vue.js +2 -2
- package/es/Carousel/CarouselArrow.vue.js +1 -1
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +1 -1
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Drawer/Drawer.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Empty/index.vue.js +1 -1
- package/es/Image/Image.vue.js +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewArrow.vue.js +1 -1
- package/es/Image/ImagePreviewToolbar.vue.js +7 -7
- package/es/Input/Input.vue.js +2 -2
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/InputNumber/InputOperaBtn.vue.js +1 -1
- package/es/InputTag/index.vue.js +2 -2
- package/es/Layout/LayoutSider.vue.js +1 -1
- package/es/Link/index.vue.js +1 -1
- package/es/Mention/index.d.ts +27 -27
- package/es/Mention/index.vue.d.ts +70 -70
- package/es/Mention/type.d.ts +3 -3
- package/es/Menu/Menu.vue.js +1 -1
- package/es/Menu/MenuEllipsis.vue.js +1 -1
- package/es/Menu/SubMenu.vue.js +1 -1
- package/es/Message/Message.vue.js +2 -2
- package/es/Modal/Modal.vue.js +2 -2
- package/es/Notification/Notification.vue.js +2 -2
- package/es/PageHeader/index.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +1 -1
- package/es/Progress/ProgressCircle.vue.js +2 -2
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Rate/index.vue.js +1 -1
- package/es/ResizeBox/index.vue.js +45 -33
- package/es/Select/Option.vue.d.ts +1 -1
- package/es/Select/Option.vue.js +1 -1
- package/es/Select/Select.vue.d.ts +14 -14
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/hooks/useContext.d.ts +7 -7
- package/es/Select/hooks/useSelectOptions.d.ts +8 -8
- package/es/Select/index.d.ts +21 -21
- package/es/Select/type.d.ts +9 -8
- package/es/Spin/index.vue.js +1 -1
- package/es/Split/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +1 -1
- package/es/Tabs/TabButton.vue.js +2 -2
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tag/index.vue.js +2 -2
- package/es/Textarea/index.vue.js +2 -2
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/Transfer/Transfer.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue.js +4 -4
- package/es/Trigger/index.vue.js +1 -1
- package/es/Typography/TypographyBase.vue.d.ts +0 -4
- package/es/Typography/TypographyBase.vue.js +2 -2
- package/es/Typography/type.d.ts +0 -5
- package/es/_shared/components/IconButton/{index.vue2.js → index.vue.js} +1 -1
- package/es/_shared/components/IconButton/index.vue3.js +2 -2
- package/es/_shared/constants/index.d.ts +2 -2
- package/es/_shared/constants/index.js +1 -1
- package/es/_shared/icons/IconArrowDown.vue.js +1 -1
- package/es/_shared/icons/IconArrowRight.vue.js +1 -1
- package/es/_shared/icons/IconCheck.vue.js +1 -1
- package/es/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/es/_shared/icons/IconClose.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +1 -1
- package/es/_shared/icons/IconDelete.vue.js +23 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -23
- package/es/_shared/icons/IconDragDot.vue.js +1 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -1
- package/es/_shared/icons/IconEmpty.vue.js +1 -1
- package/es/_shared/icons/IconError.vue.js +1 -1
- package/es/_shared/icons/IconExclamation.vue.js +34 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -34
- package/es/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/es/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/es/_shared/icons/IconFaceSmile.vue.js +1 -1
- package/es/_shared/icons/IconFullScreen.vue.js +1 -23
- package/es/_shared/icons/IconFullScreen.vue2.js +23 -1
- package/es/_shared/icons/IconImageClose.vue.js +1 -1
- package/es/_shared/icons/IconInfo.vue.js +1 -1
- package/es/_shared/icons/IconInfoLine.vue.js +1 -1
- package/es/_shared/icons/IconLink.vue.js +1 -1
- package/es/_shared/icons/IconLoading.vue.js +1 -1
- package/es/_shared/icons/IconMenuFold.vue.js +1 -1
- package/es/_shared/icons/IconMenuUnfold.vue.js +1 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -1
- package/es/_shared/icons/IconMore.vue.js +1 -1
- package/es/_shared/icons/IconOriginSize.vue.js +1 -29
- package/es/_shared/icons/IconOriginSize.vue2.js +29 -1
- package/es/_shared/icons/IconPlus.vue.js +1 -1
- package/es/_shared/icons/IconRight.vue.js +1 -1
- package/es/_shared/icons/IconRotateLeft.vue.js +1 -23
- package/es/_shared/icons/IconRotateLeft.vue2.js +23 -1
- package/es/_shared/icons/IconRotateRight.vue.js +1 -23
- package/es/_shared/icons/IconRotateRight.vue2.js +23 -1
- package/es/_shared/icons/IconSearch.vue.js +23 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -23
- package/es/_shared/icons/IconSeparator.vue2.js +1 -1
- package/es/_shared/icons/IconStar.vue.js +1 -1
- package/es/_shared/icons/IconSuccess.vue.js +1 -1
- package/es/_shared/icons/IconTime.vue.js +1 -1
- package/es/_shared/icons/IconToTop.vue.js +1 -1
- package/es/_shared/icons/IconWarning.vue.js +1 -1
- package/es/_shared/icons/IconZoomIn.vue.js +1 -23
- package/es/_shared/icons/IconZoomIn.vue2.js +23 -1
- package/es/_shared/icons/IconZoomOut.vue.js +1 -23
- package/es/_shared/icons/IconZoomOut.vue2.js +23 -1
- package/es/index.d.ts +3 -3
- package/es/style.css +1 -1
- package/lib/Alert/index.vue.js +1 -1
- package/lib/AutoComplete/index.d.ts +19 -19
- package/lib/AutoComplete/index.vue.d.ts +34 -34
- package/lib/AutoComplete/type.d.ts +2 -2
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbItem.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbMore.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/index.css +1 -1
- package/lib/Calendar/Calendar.vue.js +1 -1
- package/lib/Carousel/CarouselArrow.vue.js +1 -1
- package/lib/Cascader/CascaderIcon.vue.js +1 -1
- 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/Drawer/Drawer.vue.js +1 -1
- package/lib/Dropdown/DropdownButton.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Empty/index.vue.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.vue.js +1 -1
- package/lib/Layout/LayoutSider.vue.js +1 -1
- package/lib/Link/index.vue.js +1 -1
- package/lib/Mention/index.d.ts +27 -27
- package/lib/Mention/index.vue.d.ts +70 -70
- package/lib/Mention/type.d.ts +3 -3
- package/lib/Menu/Menu.vue.js +1 -1
- package/lib/Menu/MenuEllipsis.vue.js +1 -1
- package/lib/Menu/SubMenu.vue.js +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/PageHeader/index.vue.js +1 -1
- package/lib/Pagination/PaginationItem.vue.js +1 -1
- package/lib/Progress/ProgressCircle.vue.js +1 -1
- package/lib/Radio/Radio.vue.js +1 -1
- package/lib/Rate/index.vue.js +1 -1
- package/lib/ResizeBox/index.vue.js +1 -1
- package/lib/Select/Option.vue.d.ts +1 -1
- package/lib/Select/Option.vue.js +1 -1
- package/lib/Select/Select.vue.d.ts +14 -14
- package/lib/Select/SelectIcon.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +7 -7
- package/lib/Select/hooks/useSelectOptions.d.ts +8 -8
- package/lib/Select/index.d.ts +21 -21
- package/lib/Select/type.d.ts +9 -8
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Split/index.vue.js +1 -1
- package/lib/Steps/Step.vue.js +1 -1
- package/lib/Tabs/TabButton.vue.js +1 -1
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tag/index.vue.js +1 -1
- package/lib/Textarea/index.vue.js +1 -1
- package/lib/TimePicker/TimePicker.vue.js +1 -1
- package/lib/Transfer/Transfer.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +0 -4
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/type.d.ts +0 -5
- package/lib/_shared/components/IconButton/index.vue.js +1 -0
- package/lib/_shared/components/IconButton/index.vue3.js +1 -1
- package/lib/_shared/constants/index.d.ts +2 -2
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconArrowDown.vue.js +1 -1
- package/lib/_shared/icons/IconArrowRight.vue.js +1 -1
- package/lib/_shared/icons/IconCheck.vue.js +1 -1
- package/lib/_shared/icons/IconCheckboxChecked.vue.js +1 -1
- package/lib/_shared/icons/IconClose.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconDragDot.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEmpty.vue.js +1 -1
- package/lib/_shared/icons/IconError.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/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.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.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.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.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.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/_shared/components/IconButton/index.vue2.js +0 -1
@@ -1,6 +1,6 @@
|
|
1
1
|
import { nextTick } from 'vue';
|
2
2
|
import { MentionProps, MentionSlots } from './type';
|
3
|
-
import {
|
3
|
+
import { OptionValue } from '../Select';
|
4
4
|
declare function __VLS_template(): {
|
5
5
|
attrs: Partial<{}>;
|
6
6
|
slots: Readonly<MentionSlots> & MentionSlots;
|
@@ -12,7 +12,7 @@ declare function __VLS_template(): {
|
|
12
12
|
readonly modelValue?: string | undefined;
|
13
13
|
readonly defaultValue?: string | undefined;
|
14
14
|
readonly disabled?: boolean | undefined;
|
15
|
-
readonly data?: import('../Select').
|
15
|
+
readonly data?: import('../Select').SelectOption[] | undefined;
|
16
16
|
readonly popupContainer?: import('../_shared/type').PopupContainer | undefined;
|
17
17
|
readonly strict?: boolean | undefined;
|
18
18
|
readonly filterOption?: ((inputValue: string, option: import('../Select').SelectOptionData) => boolean) | undefined;
|
@@ -45,8 +45,8 @@ declare function __VLS_template(): {
|
|
45
45
|
$data: {};
|
46
46
|
$props: {
|
47
47
|
readonly multiple?: boolean | undefined;
|
48
|
-
readonly modelValue?: SelectValue | undefined;
|
49
|
-
readonly defaultValue?: SelectValue | undefined;
|
48
|
+
readonly modelValue?: import('../Select').SelectValue | undefined;
|
49
|
+
readonly defaultValue?: import('../Select').SelectValue | undefined;
|
50
50
|
readonly inputValue?: string | undefined;
|
51
51
|
readonly defaultInputValue?: string | undefined;
|
52
52
|
readonly size?: import('../_shared/type').Size | undefined;
|
@@ -64,7 +64,7 @@ declare function __VLS_template(): {
|
|
64
64
|
readonly defaultPopupVisible?: boolean | undefined;
|
65
65
|
readonly unmountonClose?: boolean | undefined;
|
66
66
|
readonly filterOption?: import('../Select').FilterOption | undefined;
|
67
|
-
readonly options?: import('../Select').
|
67
|
+
readonly options?: import('../Select').SelectOption[] | undefined;
|
68
68
|
readonly virtualListProps?: import('../Select').VirtualListProps | undefined;
|
69
69
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
70
70
|
readonly formatLabel?: import('../Select').FormatLabel | undefined;
|
@@ -80,17 +80,17 @@ declare function __VLS_template(): {
|
|
80
80
|
readonly tagNowrap?: boolean | undefined;
|
81
81
|
readonly hotkeys?: boolean | undefined;
|
82
82
|
readonly showEmpty?: boolean | undefined;
|
83
|
-
readonly onChange?: ((value: SelectValue) => any) | undefined;
|
83
|
+
readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
84
84
|
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
85
85
|
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
86
86
|
readonly onClear?: (() => any) | undefined;
|
87
|
-
readonly onSelect?: ((value:
|
87
|
+
readonly onSelect?: ((value: OptionValue) => any) | undefined;
|
88
88
|
readonly onSearch?: ((value: string) => any) | undefined;
|
89
|
-
readonly "onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
90
|
-
readonly "onUpdate:inputValue"?: ((value:
|
89
|
+
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
90
|
+
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
91
91
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
92
92
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
93
|
-
readonly onExceedLimit?: ((value:
|
93
|
+
readonly onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
94
94
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
95
95
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
96
96
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
@@ -486,20 +486,20 @@ declare function __VLS_template(): {
|
|
486
486
|
$root: import('vue').ComponentPublicInstance | null;
|
487
487
|
$parent: import('vue').ComponentPublicInstance | null;
|
488
488
|
$host: Element | null;
|
489
|
-
$emit: ((event: "change", value: SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value:
|
489
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: OptionValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: OptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
490
490
|
$el: any;
|
491
491
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
492
|
-
onChange?: ((value: SelectValue) => any) | undefined;
|
492
|
+
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
493
493
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
494
494
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
495
495
|
onClear?: (() => any) | undefined;
|
496
|
-
onSelect?: ((value:
|
496
|
+
onSelect?: ((value: OptionValue) => any) | undefined;
|
497
497
|
onSearch?: ((value: string) => any) | undefined;
|
498
|
-
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
499
|
-
"onUpdate:inputValue"?: ((value:
|
498
|
+
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
499
|
+
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
500
500
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
501
501
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
502
|
-
onExceedLimit?: ((value:
|
502
|
+
onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
503
503
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
504
504
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
505
505
|
}>, {
|
@@ -507,17 +507,17 @@ declare function __VLS_template(): {
|
|
507
507
|
blur(): void;
|
508
508
|
getPopupRef(): import('..').TriggerInstance;
|
509
509
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
510
|
-
change: (value: SelectValue) => any;
|
510
|
+
change: (value: import('../Select').SelectValue) => any;
|
511
511
|
"update:popupVisible": (value: boolean) => any;
|
512
512
|
"popup-visible-change": (value: boolean) => any;
|
513
513
|
clear: () => any;
|
514
|
-
select: (value:
|
514
|
+
select: (value: OptionValue) => any;
|
515
515
|
search: (value: string) => any;
|
516
|
-
"update:modelValue": (value: SelectValue) => any;
|
517
|
-
"update:inputValue": (value:
|
516
|
+
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
517
|
+
"update:inputValue": (value: string) => any;
|
518
518
|
"input-value-change": (value: string) => any;
|
519
519
|
remove: (index: string | number, ev: Event) => any;
|
520
|
-
exceedLimit: (value:
|
520
|
+
exceedLimit: (value: OptionValue, ev?: MouseEvent | undefined) => any;
|
521
521
|
"dropdown-scroll": (ev: Event) => any;
|
522
522
|
"dropdown-reach-bottom": (ev: Event) => any;
|
523
523
|
}, string, {
|
@@ -532,11 +532,11 @@ declare function __VLS_template(): {
|
|
532
532
|
placeholder: string;
|
533
533
|
loading: boolean;
|
534
534
|
bordered: boolean;
|
535
|
-
modelValue: SelectValue;
|
536
|
-
defaultValue: SelectValue;
|
535
|
+
modelValue: import('../Select').SelectValue;
|
536
|
+
defaultValue: import('../Select').SelectValue;
|
537
537
|
allowClear: boolean;
|
538
538
|
showExtraOptions: boolean;
|
539
|
-
options: import('../Select').
|
539
|
+
options: import('../Select').SelectOption[];
|
540
540
|
limit: number;
|
541
541
|
inputValue: string;
|
542
542
|
defaultInputValue: string;
|
@@ -585,11 +585,11 @@ declare function __VLS_template(): {
|
|
585
585
|
placeholder: string;
|
586
586
|
loading: boolean;
|
587
587
|
bordered: boolean;
|
588
|
-
modelValue: SelectValue;
|
589
|
-
defaultValue: SelectValue;
|
588
|
+
modelValue: import('../Select').SelectValue;
|
589
|
+
defaultValue: import('../Select').SelectValue;
|
590
590
|
allowClear: boolean;
|
591
591
|
showExtraOptions: boolean;
|
592
|
-
options: import('../Select').
|
592
|
+
options: import('../Select').SelectOption[];
|
593
593
|
limit: number;
|
594
594
|
inputValue: string;
|
595
595
|
defaultInputValue: string;
|
@@ -607,17 +607,17 @@ declare function __VLS_template(): {
|
|
607
607
|
showFooterOnEmpty: boolean;
|
608
608
|
tagNowrap: boolean;
|
609
609
|
}> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
|
610
|
-
onChange?: ((value: SelectValue) => any) | undefined;
|
610
|
+
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
611
611
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
612
612
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
613
613
|
onClear?: (() => any) | undefined;
|
614
|
-
onSelect?: ((value:
|
614
|
+
onSelect?: ((value: OptionValue) => any) | undefined;
|
615
615
|
onSearch?: ((value: string) => any) | undefined;
|
616
|
-
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
617
|
-
"onUpdate:inputValue"?: ((value:
|
616
|
+
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
617
|
+
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
618
618
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
619
619
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
620
|
-
onExceedLimit?: ((value:
|
620
|
+
onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
621
621
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
622
622
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
623
623
|
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "error" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
@@ -746,7 +746,7 @@ declare function __VLS_template(): {
|
|
746
746
|
popupContainer: import('../_shared/type').PopupContainer;
|
747
747
|
strict: boolean;
|
748
748
|
type: "textarea" | "input";
|
749
|
-
data: import('../Select').
|
749
|
+
data: import('../Select').SelectOption[];
|
750
750
|
modelValue: string;
|
751
751
|
defaultValue: string;
|
752
752
|
allowClear: boolean;
|
@@ -779,7 +779,7 @@ declare function __VLS_template(): {
|
|
779
779
|
popupContainer: import('../_shared/type').PopupContainer;
|
780
780
|
strict: boolean;
|
781
781
|
type: "textarea" | "input";
|
782
|
-
data: import('../Select').
|
782
|
+
data: import('../Select').SelectOption[];
|
783
783
|
modelValue: string;
|
784
784
|
defaultValue: string;
|
785
785
|
allowClear: boolean;
|
@@ -821,7 +821,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
821
821
|
clear: (ev: MouseEvent) => any;
|
822
822
|
blur: (ev: FocusEvent) => any;
|
823
823
|
input: (value: string, ev: Event) => any;
|
824
|
-
select: (value:
|
824
|
+
select: (value: OptionValue) => any;
|
825
825
|
search: (value: string) => any;
|
826
826
|
"update:modelValue": (value: string) => any;
|
827
827
|
}, string, import('vue').PublicProps, Readonly<MentionProps> & Readonly<{
|
@@ -830,13 +830,13 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
830
830
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
831
831
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
832
832
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
833
|
-
onSelect?: ((value:
|
833
|
+
onSelect?: ((value: OptionValue) => any) | undefined;
|
834
834
|
onSearch?: ((value: string) => any) | undefined;
|
835
835
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
836
836
|
}>, {
|
837
837
|
disabled: boolean;
|
838
838
|
type: "input" | "textarea";
|
839
|
-
data: import('../Select').
|
839
|
+
data: import('../Select').SelectOption[];
|
840
840
|
split: string;
|
841
841
|
modelValue: string;
|
842
842
|
defaultValue: string;
|
@@ -850,7 +850,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
850
850
|
readonly modelValue?: string | undefined;
|
851
851
|
readonly defaultValue?: string | undefined;
|
852
852
|
readonly disabled?: boolean | undefined;
|
853
|
-
readonly data?: import('../Select').
|
853
|
+
readonly data?: import('../Select').SelectOption[] | undefined;
|
854
854
|
readonly popupContainer?: import('../_shared/type').PopupContainer | undefined;
|
855
855
|
readonly strict?: boolean | undefined;
|
856
856
|
readonly filterOption?: ((inputValue: string, option: import('../Select').SelectOptionData) => boolean) | undefined;
|
@@ -883,8 +883,8 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
883
883
|
$data: {};
|
884
884
|
$props: {
|
885
885
|
readonly multiple?: boolean | undefined;
|
886
|
-
readonly modelValue?: SelectValue | undefined;
|
887
|
-
readonly defaultValue?: SelectValue | undefined;
|
886
|
+
readonly modelValue?: import('../Select').SelectValue | undefined;
|
887
|
+
readonly defaultValue?: import('../Select').SelectValue | undefined;
|
888
888
|
readonly inputValue?: string | undefined;
|
889
889
|
readonly defaultInputValue?: string | undefined;
|
890
890
|
readonly size?: import('../_shared/type').Size | undefined;
|
@@ -902,7 +902,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
902
902
|
readonly defaultPopupVisible?: boolean | undefined;
|
903
903
|
readonly unmountonClose?: boolean | undefined;
|
904
904
|
readonly filterOption?: import('../Select').FilterOption | undefined;
|
905
|
-
readonly options?: import('../Select').
|
905
|
+
readonly options?: import('../Select').SelectOption[] | undefined;
|
906
906
|
readonly virtualListProps?: import('../Select').VirtualListProps | undefined;
|
907
907
|
readonly triggerProps?: import('..').TriggerProps | undefined;
|
908
908
|
readonly formatLabel?: import('../Select').FormatLabel | undefined;
|
@@ -918,17 +918,17 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
918
918
|
readonly tagNowrap?: boolean | undefined;
|
919
919
|
readonly hotkeys?: boolean | undefined;
|
920
920
|
readonly showEmpty?: boolean | undefined;
|
921
|
-
readonly onChange?: ((value: SelectValue) => any) | undefined;
|
921
|
+
readonly onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
922
922
|
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
923
923
|
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
924
924
|
readonly onClear?: (() => any) | undefined;
|
925
|
-
readonly onSelect?: ((value:
|
925
|
+
readonly onSelect?: ((value: OptionValue) => any) | undefined;
|
926
926
|
readonly onSearch?: ((value: string) => any) | undefined;
|
927
|
-
readonly "onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
928
|
-
readonly "onUpdate:inputValue"?: ((value:
|
927
|
+
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
928
|
+
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
929
929
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
930
930
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
931
|
-
readonly onExceedLimit?: ((value:
|
931
|
+
readonly onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
932
932
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
933
933
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
934
934
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
@@ -1324,20 +1324,20 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1324
1324
|
$root: import('vue').ComponentPublicInstance | null;
|
1325
1325
|
$parent: import('vue').ComponentPublicInstance | null;
|
1326
1326
|
$host: Element | null;
|
1327
|
-
$emit: ((event: "change", value: SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value:
|
1327
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: OptionValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: OptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
1328
1328
|
$el: any;
|
1329
1329
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
1330
|
-
onChange?: ((value: SelectValue) => any) | undefined;
|
1330
|
+
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1331
1331
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1332
1332
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1333
1333
|
onClear?: (() => any) | undefined;
|
1334
|
-
onSelect?: ((value:
|
1334
|
+
onSelect?: ((value: OptionValue) => any) | undefined;
|
1335
1335
|
onSearch?: ((value: string) => any) | undefined;
|
1336
|
-
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
1337
|
-
"onUpdate:inputValue"?: ((value:
|
1336
|
+
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1337
|
+
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1338
1338
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1339
1339
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1340
|
-
onExceedLimit?: ((value:
|
1340
|
+
onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1341
1341
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1342
1342
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1343
1343
|
}>, {
|
@@ -1345,17 +1345,17 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1345
1345
|
blur(): void;
|
1346
1346
|
getPopupRef(): import('..').TriggerInstance;
|
1347
1347
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
1348
|
-
change: (value: SelectValue) => any;
|
1348
|
+
change: (value: import('../Select').SelectValue) => any;
|
1349
1349
|
"update:popupVisible": (value: boolean) => any;
|
1350
1350
|
"popup-visible-change": (value: boolean) => any;
|
1351
1351
|
clear: () => any;
|
1352
|
-
select: (value:
|
1352
|
+
select: (value: OptionValue) => any;
|
1353
1353
|
search: (value: string) => any;
|
1354
|
-
"update:modelValue": (value: SelectValue) => any;
|
1355
|
-
"update:inputValue": (value:
|
1354
|
+
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
1355
|
+
"update:inputValue": (value: string) => any;
|
1356
1356
|
"input-value-change": (value: string) => any;
|
1357
1357
|
remove: (index: string | number, ev: Event) => any;
|
1358
|
-
exceedLimit: (value:
|
1358
|
+
exceedLimit: (value: OptionValue, ev?: MouseEvent | undefined) => any;
|
1359
1359
|
"dropdown-scroll": (ev: Event) => any;
|
1360
1360
|
"dropdown-reach-bottom": (ev: Event) => any;
|
1361
1361
|
}, string, {
|
@@ -1370,11 +1370,11 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1370
1370
|
placeholder: string;
|
1371
1371
|
loading: boolean;
|
1372
1372
|
bordered: boolean;
|
1373
|
-
modelValue: SelectValue;
|
1374
|
-
defaultValue: SelectValue;
|
1373
|
+
modelValue: import('../Select').SelectValue;
|
1374
|
+
defaultValue: import('../Select').SelectValue;
|
1375
1375
|
allowClear: boolean;
|
1376
1376
|
showExtraOptions: boolean;
|
1377
|
-
options: import('../Select').
|
1377
|
+
options: import('../Select').SelectOption[];
|
1378
1378
|
limit: number;
|
1379
1379
|
inputValue: string;
|
1380
1380
|
defaultInputValue: string;
|
@@ -1423,11 +1423,11 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1423
1423
|
placeholder: string;
|
1424
1424
|
loading: boolean;
|
1425
1425
|
bordered: boolean;
|
1426
|
-
modelValue: SelectValue;
|
1427
|
-
defaultValue: SelectValue;
|
1426
|
+
modelValue: import('../Select').SelectValue;
|
1427
|
+
defaultValue: import('../Select').SelectValue;
|
1428
1428
|
allowClear: boolean;
|
1429
1429
|
showExtraOptions: boolean;
|
1430
|
-
options: import('../Select').
|
1430
|
+
options: import('../Select').SelectOption[];
|
1431
1431
|
limit: number;
|
1432
1432
|
inputValue: string;
|
1433
1433
|
defaultInputValue: string;
|
@@ -1445,17 +1445,17 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1445
1445
|
showFooterOnEmpty: boolean;
|
1446
1446
|
tagNowrap: boolean;
|
1447
1447
|
}> & Omit<Readonly<import('../Select').SelectProps> & Readonly<{
|
1448
|
-
onChange?: ((value: SelectValue) => any) | undefined;
|
1448
|
+
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1449
1449
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
1450
1450
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
1451
1451
|
onClear?: (() => any) | undefined;
|
1452
|
-
onSelect?: ((value:
|
1452
|
+
onSelect?: ((value: OptionValue) => any) | undefined;
|
1453
1453
|
onSearch?: ((value: string) => any) | undefined;
|
1454
|
-
"onUpdate:modelValue"?: ((value: SelectValue) => any) | undefined;
|
1455
|
-
"onUpdate:inputValue"?: ((value:
|
1454
|
+
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1455
|
+
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1456
1456
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1457
1457
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1458
|
-
onExceedLimit?: ((value:
|
1458
|
+
onExceedLimit?: ((value: OptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1459
1459
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1460
1460
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1461
1461
|
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "error" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
@@ -1584,7 +1584,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1584
1584
|
popupContainer: import('../_shared/type').PopupContainer;
|
1585
1585
|
strict: boolean;
|
1586
1586
|
type: "textarea" | "input";
|
1587
|
-
data: import('../Select').
|
1587
|
+
data: import('../Select').SelectOption[];
|
1588
1588
|
modelValue: string;
|
1589
1589
|
defaultValue: string;
|
1590
1590
|
allowClear: boolean;
|
@@ -1617,7 +1617,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1617
1617
|
popupContainer: import('../_shared/type').PopupContainer;
|
1618
1618
|
strict: boolean;
|
1619
1619
|
type: "textarea" | "input";
|
1620
|
-
data: import('../Select').
|
1620
|
+
data: import('../Select').SelectOption[];
|
1621
1621
|
modelValue: string;
|
1622
1622
|
defaultValue: string;
|
1623
1623
|
allowClear: boolean;
|
package/lib/Mention/type.d.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import {
|
1
|
+
import { SelectOption, OptionValue } from '../Select';
|
2
2
|
import { ObjectData } from '../_shared/type';
|
3
3
|
import { VNode } from 'vue';
|
4
4
|
export interface MentionProps {
|
5
5
|
modelValue?: string;
|
6
6
|
defaultValue?: string;
|
7
|
-
data?:
|
7
|
+
data?: SelectOption[];
|
8
8
|
prefix?: string | string[];
|
9
9
|
split?: string;
|
10
10
|
type?: 'input' | 'textarea';
|
@@ -15,7 +15,7 @@ export interface MentionEmits {
|
|
15
15
|
(e: 'update:modelValue', value: string): void;
|
16
16
|
(e: 'change', value: string): void;
|
17
17
|
(e: 'search', value: string): void;
|
18
|
-
(e: 'select', value:
|
18
|
+
(e: 'select', value: OptionValue): void;
|
19
19
|
(e: 'focus', ev: FocusEvent): void;
|
20
20
|
(e: 'blur', ev: FocusEvent): void;
|
21
21
|
(e: 'clear', ev: MouseEvent): void;
|
package/lib/Menu/Menu.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconMenuFold.vue.js"),l=require("../_shared/icons/IconMenuUnfold.vue.js"),n=require("./hooks/useContext.js"),u=require("./MenuEllipsis.vue.js");;/* empty css */const a=e.defineComponent({name:"Menu",inheritAttrs:!1,__name:"Menu",props:{theme:{default:void 0},mode:{default:"vertical"},levelIndent:{default:20},autoOpen:{type:Boolean,default:!1},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:!1},collapsedWidth:{default:48},accordion:{type:Boolean,default:!1},showCollapseButton:{type:Boolean,default:!1},selectedKeys:{default:void 0},defaultSelectedKeys:{default:""},openKeys:{default:void 0},defaultOpenKeys:{default:()=>[]},breakpoint:{default:void 0},triggerProps:{default:()=>({})},tooltipProps:{default:()=>({})},autoOpenSelected:{type:Boolean,default:!1},autoScrollIntoView:{type:Boolean,default:!1},scrollConfig:{},popupMaxHeight:{type:[Boolean,Number],default:167}},emits:["update:selectedKeys","update:openKeys","update:collapsed","collapse","menu-item-click","sub-menu-click"],setup(a,{emit:r}){const s=a,d=r,c=e.ref(),{computedCollapsed:i,collapsedWidth:p,breakpoint:m,menuTree:f,max:y,theme:v}=n.default().provide(s,d,c),h=()=>{const e=!i.value;i.value=e,d("collapse",e,"clickTrigger")};return o.mediaQueryHandler((e,o,t)=>{if(!m.value)return;const l=t<=o[m.value];i.value=l,d("collapse",l,"responsive")}),(o,n)=>{var a;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-menu",`yc-menu-mode-${o.mode}`,`yc-menu-${e.unref(v)}`,o.$attrs.class,{"yc-menu-collapsed":e.unref(i)&&"horizontal"!=o.mode}]),style:e.normalizeStyle({...o.$attrs.style||{},width:e.unref(i)?e.unref(p):null==(a=o.$attrs.style)?void 0:a.width})},[e.createElementVNode("div",{class:"yc-menu-inner",ref_key:"menuRef",ref:c},[e.renderSlot(o.$slots,"default"),"horizontal"==o.mode&&e.unref(y)<e.unref(f).length?(e.openBlock(),e.createBlock(u,{key:0})):e.createCommentVNode("",!0)],512),o.showCollapseButton&&"horizontal"!=o.mode?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-menu-collapse-button",onClick:h},[e.unref(i)?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):(e.openBlock(),e.createBlock(e.unref(t),{key:0}))])):e.createCommentVNode("",!0)],6)}}});module.exports=a;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),r=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue"),r=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const t=require("../_shared/icons/IconMore.vue.js"),o=require("./hooks/useContext.js"),n=require("./MenuPopOption.vue.js"),s=require("../Dropdown/index.js"),u={class:e.normalizeClass(["yc-menu-item-wrapper","yc-menu-item-mode-horizontal"])},i={class:"yc-menu-item-title"},c={class:"yc-menu-icon-suffix"},l=e.defineComponent({__name:"MenuEllipsis",setup(l){const{computedSelectedKeys:a,theme:p,triggerProps:m,popupMaxHeight:d,menuTree:h,max:v,emits:f}=o.default().inject(),g=e.computed(()=>h.value.slice(v.value)),x=e.computed(()=>g.value.some(e=>o.isMenuItemActive(h.value,e.path,a.value))),y=e=>{a.value!=e&&(a.value=e,f("menu-item-click",e))};return(o,l)=>(e.openBlock(),e.createElementBlock("div",u,[e.createVNode(e.unref(s.default),{"popup-max-height":e.unref(d),"trigger-props":{position:"bl",popupOffset:20,showArrow:!0,...e.unref(m)},class:e.normalizeClass([`yc-dropdown-popup-${e.unref(p)}`]),onSelect:y},{content:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.value,r=>(e.openBlock(),e.createBlock(n,{key:r.path,"tree-node":r,"popup-max-height":e.unref(d),"trigger-props":e.unref(m),"computed-selected-keys":e.unref(a)},null,8,["tree-node","popup-max-height","trigger-props","computed-selected-keys"]))),128))]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-menu-item","yc-menu-item-ellipsis",`yc-menu-item-${e.unref(p)}`,{"yc-menu-item-selected":x.value}])},[e.createElementVNode("div",i,[e.createVNode(e.unref(t))]),e.createElementVNode("div",c,[e.createVNode(e.unref(r))])],2)]),_:1},8,["popup-max-height","trigger-props","class"])]))}});module.exports=l;
|
package/lib/Menu/SubMenu.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");/* empty css
|
1
|
+
"use strict";const e=require("vue"),t=require("./hooks/useContext.js"),n=require("../_shared/icons/IconArrowDown.vue.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");/* empty css */const o=;/* empty css */,/* empty css */,/* empty css */require("./index.js");const r=require("./MenuItem.vue.js");;/* empty css */const s={class:"yc-menu-inline-content"},u=e.defineComponent({name:"SubMenu",__name:"SubMenu",props:{path:{default:""},title:{default:""},selectable:{type:Boolean,default:!1},popup:{type:Boolean,default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(u){const{mode:i,theme:l,computedOpenKeys:a,computedCollapsed:d}=t.default().inject();return(t,u)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-menu-inline",`yc-menu-inline-${e.unref(l)}`])},[e.createVNode(e.unref(r),{"is-submenu":"",path:t.path,popupMaxHeight:t.popupMaxHeight,class:"yc-menu-inline-header"},e.createSlots({suffix:e.withCtx(()=>[e.renderSlot(t.$slots,"expand-icon-down",{},()=>[e.createVNode(e.unref(n),{rotate:e.unref(a).includes(t.path)?180:0},null,8,["rotate"])])]),default:e.withCtx(()=>[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)])]),_:2},[t.$slots.icon?{name:"icon",fn:e.withCtx(()=>[e.renderSlot(t.$slots,"icon")]),key:"0"}:void 0]),1032,["path","popupMaxHeight"]),e.createVNode(e.unref(o),null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",s,[e.renderSlot(t.$slots,"default")],512),[[e.vShow,"vertical"==e.unref(i)&&!e.unref(d)&&e.unref(a).includes(t.path)]])]),_:3})],2))}});module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const n=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const o=require("../_shared/constants/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const t=require("../node_modules/@vueuse/shared/index.js"),l={key:0,class:"yc-message-icon"},a={class:"yc-message-content"},u=e.defineComponent({name:"Message",__name:"Message",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},id:{default:""},icon:{type:Function,default:void 0},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},onClose:{type:Function,default:void 0},onDestory:{type:Function,default:void 0},resetOnHover:{type:Boolean,default:!1}},setup(u){const r=u,{type:i,id:c,duration:d,resetOnHover:m,isReset:p}=e.toRefs(r),{onClose:v,onDestory:y}=r,{start:f,stop:_}=t.useTimeoutFn(()=>{null==y||y(c.value),null==v||v(c.value)},()=>d.value,{immediate:!1}),B=()=>{_(),null==y||y(c.value),null==v||v(c.value)},h=()=>{!m.value||d.value<=0||_()},q=()=>{!m.value||d.value<=0||f()};return e.watch(()=>p.value,e=>{d.value<=0||!e||(_(),f())}),e.onMounted(()=>{d.value<=0||f()}),(t,u)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-message",`yc-message-${e.unref(i)}`]),onMouseenter:h,onMouseleave:q},["normal"==e.unref(i)&&e.unref(n.isUndefined)(t.icon)||!t.showIcon?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",l,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(i)]),{spin:"loading"==e.unref(i)},null,8,["spin"]))])),e.createElementVNode("span",a,e.toDisplayString(t.content),1),t.closable?(e.openBlock(),e.createElementBlock("span",{key:1,class:"yc-message-close-btn",onClick:B},[e.createVNode(e.unref(s))])):e.createCommentVNode("",!0)],34))}});module.exports=u;
|
package/lib/Modal/Modal.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js"),t=require("../_shared/utils/locale.js"),a=require("./hooks/useModalClose.js"),n=require("./hooks/useModalDraggable.js"),r=require("../Button/index.js"),s=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const i={key:0,class:"yc-modal-footer"},d=e.defineComponent({name:"Modal",inheritAttrs:!1,__name:"Modal",props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{default:400},top:{default:100},mask:{type:Boolean,default:!0},title:{default:""},titleAlign:{default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},okText:{default:""},cancelText:{default:""},okLoading:{type:Boolean,default:!1},okButtonProps:{default:()=>({})},cancelButtonProps:{default:()=>({})},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{default:void 0},maskStyle:{default:()=>({})},modalClass:{default:""},modalStyle:{default:()=>({})},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{default:"fade"},modalAnimationName:{default:"zoom-modal"},bodyClass:{default:""},bodyStyle:{default:()=>({})},hideTitle:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},onBeforeCancel:{type:Function,default:()=>!0},onBeforeOk:{type:Function,default:()=>!0}},emits:["update:visible","ok","cancel","open","before-open","close","before-close"],setup(d,{emit:u}){const c=d,f=u,{visible:m,defaultVisible:p,width:y,top:k,alignCenter:B,maskClosable:C,escToClose:b,modalStyle:v,fullscreen:g,draggable:h,renderToBody:x}=e.toRefs(c),{onBeforeOk:S,onBeforeCancel:T}=c,{popupContainer:V,zIndex:N,isAbsolute:_}=l.getGlobalConfig(c),{t:w}=t.useI18n(),{outerVisible:q,innerVisible:j,asyncLoading:A,handleClose:z,handleAfterLeave:E}=a({visible:m,defaultVisible:p,escToClose:b,maskClosable:C,onBeforeOk:S,onBeforeCancel:T,emits:f}),$=e.ref(),D=e.ref(),{dragStyle:L,isDraggable:P}=n({visible:j,draggable:h,fullscreen:g,alignCenter:B,top:k,triggerRef:$,modalRef:D}),I=e.computed(()=>({width:g.value?"100%":"auto"==y.value?"fit-content":o.valueToPx(y.value),...L.value,...v.value}));return(o,l)=>(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(V),disabled:!e.unref(x)},[!o.unmountOnClose||e.unref(q)?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-container",o.$attrs.class,{"yc-modal-simple":o.simple,"yc-modal-position-absolute":e.unref(_)}]),style:e.normalizeStyle({zIndex:e.unref(N),...o.$attrs.style??{}})},[e.createVNode(e.Transition,{name:o.maskAnimationName},{default:e.withCtx(()=>[o.mask?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-modal-mask",style:e.normalizeStyle(o.maskStyle)},null,4)),[[e.vShow,e.unref(j)]]):e.createCommentVNode("",!0)]),_:1},8,["name"]),e.createElementVNode("div",{class:"yc-modal-wrapper",onClick:l[6]||(l[6]=e.withModifiers(o=>e.unref(z)("mask",o),["self"]))},[e.createVNode(e.Transition,{name:o.modalAnimationName,onBeforeEnter:l[3]||(l[3]=e=>o.$emit("before-open")),onBeforeLeave:l[4]||(l[4]=e=>o.$emit("before-close")),onAfterEnter:l[5]||(l[5]=e=>o.$emit("open")),onAfterLeave:e.unref(E)},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["yc-modal",o.modalClass,{"yc-modal-draggable":e.unref(P),"yc-modal-fullscreen":e.unref(g)}]),style:e.normalizeStyle(I.value),ref_key:"modalRef",ref:D},[e.renderSlot(o.$slots,"header",{},()=>[e.createElementVNode("div",{class:"yc-modal-header",ref_key:"headerRef",ref:$},[o.hideTitle?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-modal-title","text-ellipsis",{"title-align-center":"center"==o.titleAlign}])},[e.renderSlot(o.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])],2)),o.closable&&!o.simple?(e.openBlock(),e.createBlock(e.unref(s),{key:1,class:"yc-modal-close-button",onClick:l[0]||(l[0]=o=>e.unref(z)("closeBtn",o))})):e.createCommentVNode("",!0)],512)]),e.createElementVNode("div",{class:e.normalizeClass(["yc-modal-body",o.bodyClass]),style:e.normalizeStyle(o.bodyStyle)},[e.renderSlot(o.$slots,"default")],6),o.footer?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(o.$slots,"footer",{},()=>[o.hideCancel?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(r.default),e.mergeProps({key:0},o.cancelButtonProps,{onClick:l[1]||(l[1]=o=>e.unref(z)("cancelBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.cancelText||e.unref(w)("modal.cancelText")),1)]),_:1},16)),e.createVNode(e.unref(r.default),e.mergeProps({type:"primary",loading:o.okLoading||e.unref(A)},o.okButtonProps,{onClick:l[2]||(l[2]=o=>e.unref(z)("confirmBtn",o))}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.okText||e.unref(w)("modal.okText")),1)]),_:1},16,["loading"])])])):e.createCommentVNode("",!0)],6),[[e.vShow,e.unref(j)]])]),_:3},8,["name","onAfterLeave"])])],6)),[[e.vShow,e.unref(q)]]):e.createCommentVNode("",!0)],8,["to","disabled"]))}});module.exports=d;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const c=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),o=require("../_shared/constants/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const n=require("../_shared/utils/vue-utils.js");require("../_shared/utils/locale.js");const c=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const l=require("../node_modules/@vueuse/shared/index.js"),i={class:"yc-notification-left"},s={key:0,class:"yc-notification-icon"},a={class:"yc-notification-right"},r={key:0,class:"yc-notification-title"},u={key:1,class:"yc-notification-content"},d={key:2,class:"yc-notification-footer"},m=e.defineComponent({name:"Notification",__name:"Notification",props:{type:{default:"info"},content:{type:[String,Array,Function],default:""},title:{type:[String,Array,Function],default:""},icon:{type:Function,default:void 0},id:{default:""},style:{default:()=>({})},class:{default:""},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{default:3e3},isReset:{type:Boolean,default:!1},footer:{type:Function,default:void 0},closeIcon:{type:Function,default:void 0},closeIconElement:{type:Function,default:void 0},onClose:{type:Function,default:void 0},onDestory:{}},setup(m){const f=m,{type:y,id:p,duration:k,class:v,isReset:B}=e.toRefs(f),{onClose:C,onDestory:_}=f,{start:h,stop:q}=l.useTimeoutFn(()=>{null==_||_(p.value),null==C||C(p.value)},()=>k.value,{immediate:!1});e.watch(()=>B.value,e=>{k.value<=0||!e||(q(),h())});const E=()=>{q(),null==_||_(p.value),null==C||C(p.value)};return e.onMounted(()=>{k.value<=0||h()}),(l,m)=>(e.openBlock(),e.createElementBlock("li",{role:"alert",class:e.normalizeClass(["yc-notification",`yc-notification-${e.unref(y)}`,e.unref(v)]),style:e.normalizeStyle(l.style)},[e.createElementVNode("div",i,[l.showIcon?(e.openBlock(),e.createElementBlock("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.icon??e.unref(o.TYPE_ICON_MAP)[e.unref(y)])))])):e.createCommentVNode("",!0)]),e.createElementVNode("div",a,[e.unref(t.isUndefined)(l.title)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",r,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.title))))])),e.unref(t.isUndefined)(l.content)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",u,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(n.getSlotFunction)(l.content))))])),e.unref(t.isFunction)(l.footer)?(e.openBlock(),e.createElementBlock("div",d,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.footer)))])):e.createCommentVNode("",!0)]),l.closable?(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-notification-close-btn",onClick:E},[l.closeIconElement?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIconElement),{key:0})):(e.openBlock(),e.createBlock(e.unref(c),{key:1},{default:e.withCtx(()=>[l.closeIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.closeIcon),{key:0})):e.createCommentVNode("",!0)]),_:1}))])):e.createCommentVNode("",!0)],6))}});module.exports=m;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=;/* empty css
|
1
|
+
"use strict";const e=require("vue"),t=;/* empty css */,/* empty css */require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */;/* empty css */const r=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../Divider/index.js"),s={class:"yc-page-header"},l={class:"yc-page-header-wrapper"},a={key:0,class:"yc-page-header-breadcrumb"},c={class:"yc-page-header-header"},n={class:"yc-page-header-main"},i={key:0,class:"yc-page-header-title text-ellipsis"},d={key:2,class:"yc-page-header-subtitle text-ellipsis"},u={key:0,class:"yc-page-header-extra"},m={key:0,class:"yc-page-header-content"},p=e.defineComponent({name:"PageHeader",__name:"index",props:{title:{default:""},subtitle:{default:""},showBack:{type:Boolean,default:!0}},emits:["back"],setup:p=>(p,k)=>(e.openBlock(),e.createElementBlock("div",s,[e.createElementVNode("div",l,[p.$slots.breadcrumb?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(p.$slots,"breadcrumb")])):e.createCommentVNode("",!0),e.createElementVNode("div",c,[e.createElementVNode("div",n,[e.createVNode(e.unref(t),{size:14,"hover-size":30,onClick:k[0]||(k[0]=e=>p.$emit("back",e))},{default:e.withCtx(()=>[e.renderSlot(p.$slots,"back-icon",{},()=>[e.createVNode(e.unref(r))])]),_:3}),p.$slots.title||p.title?(e.openBlock(),e.createElementBlock("div",i,[e.renderSlot(p.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(p.title),1)])])):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createBlock(e.unref(o),{key:1,direction:"vertical"})):e.createCommentVNode("",!0),p.$slots.subtitle||p.subtitle?(e.openBlock(),e.createElementBlock("div",d,[e.renderSlot(p.$slots,"subtitle",{},()=>[e.createTextVNode(e.toDisplayString(p.subtitle),1)])])):e.createCommentVNode("",!0)]),p.$slots.extra?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(p.$slots,"extra")])):e.createCommentVNode("",!0)])]),p.$slots.default?(e.openBlock(),e.createElementBlock("div",m,[e.renderSlot(p.$slots,"default")])):e.createCommentVNode("",!0)]))});module.exports=p;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const u=require("../_shared/icons/IconArrowRight.vue.js"),l=require("../_shared/icons/IconMore.vue.js"),a=require("./hooks/useContext.js"),t=e.defineComponent({__name:"PaginationItem",props:{type:{},page:{default:1}},setup(t){const r=t,{type:o,page:n}=e.toRefs(r),{computedCurrent:i,pages:s,pageItemStyle:v,activePageItemStyle:c,bufferSize:m,disabled:d}=a().inject(),p=e.computed(()=>"item"==o.value&&i.value==n.value),f=e.computed(()=>["item","more-right","more-left"].includes(o.value)?d.value:"pre"==o.value?i.value<=1||d.value:i.value>=s.value||d.value),y=()=>{let e=0;if("item"==o.value)e=n.value;else if("pre"==o.value)e=i.value-1;else if("next"==o.value)e=i.value+1;else{const u=2*m.value+1;e="more-left"==o.value?i.value-u:i.value+u,e="more-left"==o.value&&e<=1?1:e,e="more-right"==o.value&&e>=s.value?s.value:e}f.value||"item"==o.value&&e==i.value||"pre"==o.value&&e<1||"next"==o.value&&e>s.value||(i.value=e)};return(a,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["yc-pagination-item",{"yc-pagination-item-disabled":f.value,"yc-pagination-item-active":p.value}]),style:e.normalizeStyle({...e.unref(v),...p.value?e.unref(c):{}}),onClick:y},[e.renderSlot(a.$slots,"default",{},()=>[["pre","next"].includes(e.unref(o))?(e.openBlock(),e.createBlock(e.unref(u),{key:0,rotate:"pre"==e.unref(o)?180:0},null,8,["rotate"])):e.unref(o).includes("more")?(e.openBlock(),e.createBlock(e.unref(l),{key:1})):e.createCommentVNode("",!0)])],6))}});module.exports=t;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),o=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js"),o=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../_shared/utils/locale.js"),/* empty css */,/* empty css */;/* empty css */const l=require("../_shared/icons/IconCheck.vue.js"),t=require("../_shared/icons/IconExclamation.vue.js"),s=require("../_shared/constants/index.js"),c=["aria-valuenow"],n=["viewBox"],a={key:0},u=["id"],i=["offset","stop-color"],d=["cx","cy","r","stroke-width"],m=["cx","cy","r","stroke-width"],p={key:2,class:e.normalizeClass("yc-progress-circle-text")},v=e.defineComponent({__name:"ProgressCircle",props:{type:{},percent:{},status:{},size:{},text:{},showText:{type:Boolean},width:{},strokeWidth:{},pathStrokeWidth:{},color:{},trackColor:{}},setup(v){const k=v,{size:y,width:f,color:h,strokeWidth:x,pathStrokeWidth:B}=e.toRefs(k);let _=0;const g=e.computed(()=>o.isObject(h.value)),C=e.computed(()=>x.value??("mini"===y.value?f.value/2:{mini:4,small:3,medium:4,large:4}[y.value])),E=e.computed(()=>B.value?B.value:"mini"===y.value?C.value:Math.max(2,C.value-2)),j=e.computed(()=>(f.value-C.value)/2),w=e.computed(()=>2*Math.PI*j.value),q=e.computed(()=>f.value/2),z=e.computed(()=>(_+=1,`yc-progress-circle-linear-gradient-${_}`));return(v,k)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":v.percent,class:e.normalizeClass("yc-progress-circle-wrapper"),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(f)),height:e.unref(r.valueToPx)(e.unref(f))})},["circle"===v.type&&"mini"===e.unref(y)&&"success"===v.status?(e.openBlock(),e.createBlock(e.unref(l),{key:0,style:e.normalizeStyle({fontSize:e.unref(f)-2,color:e.unref(h)??e.unref(s.TYPE_ICON_COLOR_MAP).success})},null,8,["style"])):(e.openBlock(),e.createElementBlock("svg",{key:1,viewBox:`0 0 ${e.unref(f)} ${e.unref(f)}`,class:e.normalizeClass("yc-progress-circle-svg")},[e.unref(o.isObject)(e.unref(h))?(e.openBlock(),e.createElementBlock("defs",a,[e.createElementVNode("linearGradient",{id:z.value,x1:"0",y1:"1",x2:"0",y2:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(e.unref(h)),r=>(e.openBlock(),e.createElementBlock("stop",{key:r,offset:r,"stop-color":e.unref(h)[r]},null,8,i))),128))],8,u)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bg"),fill:"none",cx:q.value,cy:q.value,r:j.value,"stroke-width":E.value,style:e.normalizeStyle({stroke:v.trackColor})},null,12,d),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bar"),fill:"none",cx:q.value,cy:q.value,r:j.value,"stroke-width":C.value,style:e.normalizeStyle({stroke:g.value?`url(#${z.value})`:e.unref(h),strokeDasharray:w.value,strokeDashoffset:(v.percent>=1?0:1-v.percent)*w.value})},null,12,m)],8,n)),v.showText&&"mini"!==e.unref(y)?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(v.$slots,"text",{percent:v.percent},()=>["danger"===v.status?(e.openBlock(),e.createBlock(e.unref(t),{key:0,color:e.unref(s.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):"success"===v.status?(e.openBlock(),e.createBlock(e.unref(l),{key:1,color:e.unref(s.TYPE_ICON_COLOR_MAP).success},null,8,["color"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(v.text),1)],64))])])):e.createCommentVNode("",!0)],12,c))}});module.exports=v;
|
package/lib/Radio/Radio.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");const a=require("../_shared/utils/control.js"),l=require("./hooks/useContext.js"),o=;/* empty css
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js"),require("../_shared/utils/locale.js");const a=require("../_shared/utils/control.js"),l=require("./hooks/useContext.js"),o=;/* empty css */,/* empty css */,/* empty css */;/* empty css */const t=["value","checked","disabled"],u={key:0,class:"yc-radio-label text-ellipsis"},d={key:1,class:"yc-radio-button-content"},s=e.defineComponent({name:"Radio",__name:"Radio",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{default:void 0},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{emit:r}){const n=s,c=r,{modelValue:i,defaultChecked:v,value:m,disabled:p,type:h}=e.toRefs(n),{computedValue:y,disabled:k,type:b,size:f,hasGroup:B,emits:_}=l().inject(),j=a(i,v.value,e=>{c("update:modelValue",e)}),q=e.computed(()=>B.value?y.value==m.value:j.value),x=e.computed(()=>k.value||p.value),V=e.computed(()=>h.value??b.value),C=e=>{x.value||(B.value?y.value=m.value:(j.value=m.value,c("change",m.value,e)))};return(a,l)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass([`yc-radio-button-size-${e.unref(f)}`,"yc-radio"+("radio"==V.value?"":"-button"),"yc-radio-"+(q.value?"checked":"unchecked"),{"yc-radio-disabled":x.value}]),onClick:C},[e.createElementVNode("input",{type:"radio",class:"yc-radio-target",value:a.value,checked:q.value,disabled:x.value},null,8,t),e.renderSlot(a.$slots,"radio",{checked:q.value,disabled:x.value},()=>["radio"==V.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(o),{"hover-size":24,hoverable:!q.value&&!x.value},{default:e.withCtx(()=>l[0]||(l[0]=[e.createElementVNode("span",{class:"yc-radio-icon"},null,-1)])),_:1,__:[0]},8,["hoverable"]),a.$slots.default?(e.openBlock(),e.createElementBlock("span",u,[e.renderSlot(a.$slots,"default")])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock("span",d,[e.renderSlot(a.$slots,"default")]))])],2))}});module.exports=s;
|