yc-design-vue 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Affix/type.d.ts +3 -2
- package/es/Alert/type.d.ts +6 -5
- package/es/Anchor/type.d.ts +4 -3
- package/es/AutoComplete/index.d.ts +65 -2
- package/es/AutoComplete/index.vue.d.ts +130 -4
- package/es/AutoComplete/type.d.ts +5 -4
- package/es/Avatar/AvatarGroup.vue.js +1 -1
- package/es/Avatar/AvatarGroup.vue2.js +2 -2
- package/es/Avatar/type.d.ts +4 -4
- package/es/BackTop/type.d.ts +2 -1
- package/es/Badge/index.vue.js +1 -1
- package/es/Badge/index.vue2.js +2 -2
- package/es/Badge/type.d.ts +3 -3
- package/es/Breadcrumb/type.d.ts +9 -8
- package/es/Button/Button.vue.js +1 -1
- package/es/Button/Button.vue2.js +2 -2
- package/es/Button/type.d.ts +4 -3
- package/es/Calendar/type.d.ts +5 -4
- package/es/Card/type.d.ts +10 -10
- package/es/Carousel/type.d.ts +3 -2
- package/es/Cascader/type.d.ts +10 -10
- package/es/Checkbox/hooks/useContext.d.ts +2 -5
- package/es/Checkbox/type.d.ts +9 -8
- package/es/Collapse/type.d.ts +9 -8
- package/es/Comment/type.d.ts +7 -6
- package/es/ConfigProvider/index.vue.js +2 -2
- package/es/ConfigProvider/type.d.ts +5 -4
- package/es/Descriptions/type.d.ts +9 -9
- package/es/Divider/type.d.ts +2 -1
- package/es/Drawer/type.d.ts +5 -5
- package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/es/Dropdown/index.d.ts +65 -2
- package/es/Dropdown/type.d.ts +15 -14
- package/es/Empty/type.d.ts +2 -1
- package/es/Grid/type.d.ts +6 -5
- package/es/Icon/type.d.ts +2 -1
- package/es/Image/type.d.ts +11 -10
- package/es/Input/hooks/useCursor.d.ts +2 -1
- package/es/Input/hooks/useCursor.js +2 -2
- package/es/Input/type.d.ts +6 -5
- package/es/InputNumber/type.d.ts +8 -8
- package/es/InputTag/type.d.ts +5 -4
- package/es/Layout/Layout.vue.js +1 -1
- package/es/Layout/Layout.vue2.js +2 -2
- package/es/Layout/type.d.ts +8 -7
- package/es/Link/type.d.ts +3 -2
- package/es/List/type.d.ts +15 -14
- package/es/Mention/index.d.ts +65 -2
- package/es/Mention/index.vue.d.ts +130 -4
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/type.d.ts +11 -10
- package/es/Message/type.d.ts +1 -1
- package/es/Modal/type.d.ts +5 -5
- package/es/Notification/type.d.ts +1 -1
- package/es/OverflowList/index.vue.js +1 -1
- package/es/OverflowList/index.vue2.js +2 -2
- package/es/OverflowList/type.d.ts +3 -2
- package/es/PageHeader/type.d.ts +7 -6
- package/es/Pagination/type.d.ts +8 -8
- package/es/Popconfirm/index.d.ts +65 -2
- package/es/Popconfirm/index.vue.d.ts +130 -4
- package/es/Popconfirm/type.d.ts +4 -4
- package/es/Popover/type.d.ts +4 -4
- package/es/Radio/hooks/useContext.d.ts +3 -6
- package/es/Radio/type.d.ts +9 -8
- package/es/Rate/type.d.ts +3 -2
- package/es/ResizeBox/type.d.ts +6 -5
- package/es/Result/type.d.ts +6 -5
- package/es/Scrollbar/type.d.ts +2 -2
- package/es/Select/Select.vue.d.ts +130 -4
- package/es/Select/index.d.ts +65 -2
- package/es/Select/type.d.ts +19 -18
- package/es/Skeleton/type.d.ts +3 -2
- package/es/Space/index.vue.js +1 -1
- package/es/Space/index.vue2.js +2 -2
- package/es/Space/type.d.ts +3 -2
- package/es/Spin/type.d.ts +4 -3
- package/es/Split/type.d.ts +5 -4
- package/es/Statistic/type.d.ts +7 -7
- package/es/Steps/type.d.ts +8 -7
- package/es/Switch/index.vue.js +1 -1
- package/es/Switch/index.vue2.js +3 -3
- package/es/Switch/type.d.ts +5 -4
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tabs/Tabs.vue2.js +2 -2
- package/es/Tabs/type.d.ts +5 -4
- package/es/Tag/type.d.ts +4 -3
- package/es/TimePicker/type.d.ts +4 -3
- package/es/Timeline/type.d.ts +6 -5
- package/es/Tooltip/type.d.ts +3 -3
- package/es/Transfer/TransferPanel.vue2.js +2 -2
- package/es/Transfer/type.d.ts +13 -12
- package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/es/Trigger/hooks/useTriggerPosition.js +11 -20
- package/es/Trigger/index.d.ts +63 -2
- package/es/Trigger/index.vue.d.ts +130 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +2 -2
- package/es/Trigger/type.d.ts +3 -3
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/Typography/type.d.ts +8 -7
- package/es/Watermark/type.d.ts +2 -1
- package/es/_shared/icons/IconCopy.vue.js +16 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -16
- package/es/_shared/icons/IconDelete.vue.js +1 -16
- package/es/_shared/icons/IconDelete.vue2.js +16 -1
- package/es/_shared/icons/IconEdit.vue.js +16 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -16
- package/es/_shared/icons/IconSearch.vue.js +1 -16
- package/es/_shared/icons/IconSearch.vue2.js +16 -1
- package/es/_shared/utils/dom.d.ts +4 -4
- package/es/_shared/utils/dom.js +6 -6
- package/es/_shared/utils/fn.d.ts +3 -3
- package/es/_shared/utils/fn.js +6 -6
- package/es/_shared/utils/global-config.d.ts +4 -2
- package/es/index.d.ts +65 -2
- package/es/style.css +1 -1
- package/lib/Affix/type.d.ts +3 -2
- package/lib/Alert/type.d.ts +6 -5
- package/lib/Anchor/type.d.ts +4 -3
- package/lib/AutoComplete/index.d.ts +65 -2
- package/lib/AutoComplete/index.vue.d.ts +130 -4
- package/lib/AutoComplete/type.d.ts +5 -4
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue2.js +1 -1
- package/lib/Avatar/type.d.ts +4 -4
- package/lib/BackTop/type.d.ts +2 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Badge/index.vue2.js +1 -1
- package/lib/Badge/type.d.ts +3 -3
- package/lib/Breadcrumb/type.d.ts +9 -8
- package/lib/Button/Button.vue.js +1 -1
- package/lib/Button/Button.vue2.js +1 -1
- package/lib/Button/type.d.ts +4 -3
- package/lib/Calendar/type.d.ts +5 -4
- package/lib/Card/type.d.ts +10 -10
- package/lib/Carousel/type.d.ts +3 -2
- package/lib/Cascader/type.d.ts +10 -10
- package/lib/Checkbox/hooks/useContext.d.ts +2 -5
- package/lib/Checkbox/type.d.ts +9 -8
- package/lib/Collapse/type.d.ts +9 -8
- package/lib/Comment/type.d.ts +7 -6
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +5 -4
- package/lib/Descriptions/type.d.ts +9 -9
- package/lib/Divider/type.d.ts +2 -1
- package/lib/Drawer/type.d.ts +5 -5
- package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/lib/Dropdown/index.d.ts +65 -2
- package/lib/Dropdown/type.d.ts +15 -14
- package/lib/Empty/type.d.ts +2 -1
- package/lib/Grid/type.d.ts +6 -5
- package/lib/Icon/type.d.ts +2 -1
- package/lib/Image/type.d.ts +11 -10
- package/lib/Input/hooks/useCursor.d.ts +2 -1
- package/lib/Input/hooks/useCursor.js +1 -1
- package/lib/Input/type.d.ts +6 -5
- package/lib/InputNumber/type.d.ts +8 -8
- package/lib/InputTag/type.d.ts +5 -4
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/Layout.vue2.js +1 -1
- package/lib/Layout/type.d.ts +8 -7
- package/lib/Link/type.d.ts +3 -2
- package/lib/List/type.d.ts +15 -14
- package/lib/Mention/index.d.ts +65 -2
- package/lib/Mention/index.vue.d.ts +130 -4
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/type.d.ts +11 -10
- package/lib/Message/type.d.ts +1 -1
- package/lib/Modal/type.d.ts +5 -5
- package/lib/Notification/type.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/index.vue2.js +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/PageHeader/type.d.ts +7 -6
- package/lib/Pagination/type.d.ts +8 -8
- package/lib/Popconfirm/index.d.ts +65 -2
- package/lib/Popconfirm/index.vue.d.ts +130 -4
- package/lib/Popconfirm/type.d.ts +4 -4
- package/lib/Popover/type.d.ts +4 -4
- package/lib/Radio/hooks/useContext.d.ts +3 -6
- package/lib/Radio/type.d.ts +9 -8
- package/lib/Rate/type.d.ts +3 -2
- package/lib/ResizeBox/type.d.ts +6 -5
- package/lib/Result/type.d.ts +6 -5
- package/lib/Scrollbar/type.d.ts +2 -2
- package/lib/Select/Select.vue.d.ts +130 -4
- package/lib/Select/index.d.ts +65 -2
- package/lib/Select/type.d.ts +19 -18
- package/lib/Skeleton/type.d.ts +3 -2
- package/lib/Space/index.vue.js +1 -1
- package/lib/Space/index.vue2.js +1 -1
- package/lib/Space/type.d.ts +3 -2
- package/lib/Spin/type.d.ts +4 -3
- package/lib/Split/type.d.ts +5 -4
- package/lib/Statistic/type.d.ts +7 -7
- package/lib/Steps/type.d.ts +8 -7
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Switch/index.vue2.js +1 -1
- package/lib/Switch/type.d.ts +5 -4
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/Tabs.vue2.js +1 -1
- package/lib/Tabs/type.d.ts +5 -4
- package/lib/Tag/type.d.ts +4 -3
- package/lib/TimePicker/type.d.ts +4 -3
- package/lib/Timeline/type.d.ts +6 -5
- package/lib/Tooltip/type.d.ts +3 -3
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Transfer/type.d.ts +13 -12
- package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/index.d.ts +63 -2
- package/lib/Trigger/index.vue.d.ts +130 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Trigger/type.d.ts +3 -3
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/Typography/type.d.ts +8 -7
- package/lib/Watermark/type.d.ts +2 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.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/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.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/utils/dom.d.ts +4 -4
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/fn.d.ts +3 -3
- package/lib/_shared/utils/fn.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -2
- package/lib/index.d.ts +65 -2
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -57,7 +57,70 @@ declare function __VLS_template(): {
|
|
57
57
|
$attrs: {
|
58
58
|
[x: string]: unknown;
|
59
59
|
};
|
60
|
-
$refs:
|
60
|
+
$refs: {
|
61
|
+
[x: string]: unknown;
|
62
|
+
} & {
|
63
|
+
triggerRef: unknown;
|
64
|
+
popupRef: ({
|
65
|
+
$: import('vue').ComponentInternalInstance;
|
66
|
+
$data: {};
|
67
|
+
$props: {
|
68
|
+
readonly preventFocus?: boolean | undefined;
|
69
|
+
readonly tag?: string | undefined;
|
70
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
71
|
+
$attrs: {
|
72
|
+
[x: string]: unknown;
|
73
|
+
};
|
74
|
+
$refs: {
|
75
|
+
[x: string]: unknown;
|
76
|
+
};
|
77
|
+
$slots: Readonly<{
|
78
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
79
|
+
}>;
|
80
|
+
$root: import('vue').ComponentPublicInstance | null;
|
81
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
82
|
+
$host: Element | null;
|
83
|
+
$emit: (event: string, ...args: any[]) => void;
|
84
|
+
$el: any;
|
85
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
86
|
+
preventFocus?: boolean;
|
87
|
+
tag?: string;
|
88
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
89
|
+
preventFocus: boolean;
|
90
|
+
tag: string;
|
91
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
92
|
+
beforeCreate?: (() => void) | (() => void)[];
|
93
|
+
created?: (() => void) | (() => void)[];
|
94
|
+
beforeMount?: (() => void) | (() => void)[];
|
95
|
+
mounted?: (() => void) | (() => void)[];
|
96
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
97
|
+
updated?: (() => void) | (() => void)[];
|
98
|
+
activated?: (() => void) | (() => void)[];
|
99
|
+
deactivated?: (() => void) | (() => void)[];
|
100
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
101
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
102
|
+
destroyed?: (() => void) | (() => void)[];
|
103
|
+
unmounted?: (() => void) | (() => void)[];
|
104
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
105
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
106
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
107
|
+
};
|
108
|
+
$forceUpdate: () => void;
|
109
|
+
$nextTick: typeof import('vue').nextTick;
|
110
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
111
|
+
} & Readonly<{
|
112
|
+
preventFocus: boolean;
|
113
|
+
tag: string;
|
114
|
+
}> & Omit<Readonly<{
|
115
|
+
preventFocus?: boolean;
|
116
|
+
tag?: string;
|
117
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
118
|
+
$slots: {
|
119
|
+
default?(_: {}): any;
|
120
|
+
};
|
121
|
+
}) | null;
|
122
|
+
arrowRef: HTMLDivElement;
|
123
|
+
};
|
61
124
|
$slots: Readonly<{
|
62
125
|
[name: string]: import('vue').Slot<any> | undefined;
|
63
126
|
}>;
|
@@ -178,7 +241,7 @@ declare function __VLS_template(): {
|
|
178
241
|
show(): void;
|
179
242
|
updatePosition(x: number, y: number): void;
|
180
243
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
181
|
-
$slots:
|
244
|
+
$slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
|
182
245
|
}) | null;
|
183
246
|
inputRef: ({
|
184
247
|
$: import('vue').ComponentInternalInstance;
|
@@ -444,7 +507,70 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
444
507
|
$attrs: {
|
445
508
|
[x: string]: unknown;
|
446
509
|
};
|
447
|
-
$refs:
|
510
|
+
$refs: {
|
511
|
+
[x: string]: unknown;
|
512
|
+
} & {
|
513
|
+
triggerRef: unknown;
|
514
|
+
popupRef: ({
|
515
|
+
$: import('vue').ComponentInternalInstance;
|
516
|
+
$data: {};
|
517
|
+
$props: {
|
518
|
+
readonly preventFocus?: boolean | undefined;
|
519
|
+
readonly tag?: string | undefined;
|
520
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
521
|
+
$attrs: {
|
522
|
+
[x: string]: unknown;
|
523
|
+
};
|
524
|
+
$refs: {
|
525
|
+
[x: string]: unknown;
|
526
|
+
};
|
527
|
+
$slots: Readonly<{
|
528
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
529
|
+
}>;
|
530
|
+
$root: import('vue').ComponentPublicInstance | null;
|
531
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
532
|
+
$host: Element | null;
|
533
|
+
$emit: (event: string, ...args: any[]) => void;
|
534
|
+
$el: any;
|
535
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
536
|
+
preventFocus?: boolean;
|
537
|
+
tag?: string;
|
538
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
539
|
+
preventFocus: boolean;
|
540
|
+
tag: string;
|
541
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
542
|
+
beforeCreate?: (() => void) | (() => void)[];
|
543
|
+
created?: (() => void) | (() => void)[];
|
544
|
+
beforeMount?: (() => void) | (() => void)[];
|
545
|
+
mounted?: (() => void) | (() => void)[];
|
546
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
547
|
+
updated?: (() => void) | (() => void)[];
|
548
|
+
activated?: (() => void) | (() => void)[];
|
549
|
+
deactivated?: (() => void) | (() => void)[];
|
550
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
551
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
552
|
+
destroyed?: (() => void) | (() => void)[];
|
553
|
+
unmounted?: (() => void) | (() => void)[];
|
554
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
555
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
556
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
557
|
+
};
|
558
|
+
$forceUpdate: () => void;
|
559
|
+
$nextTick: typeof import('vue').nextTick;
|
560
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
561
|
+
} & Readonly<{
|
562
|
+
preventFocus: boolean;
|
563
|
+
tag: string;
|
564
|
+
}> & Omit<Readonly<{
|
565
|
+
preventFocus?: boolean;
|
566
|
+
tag?: string;
|
567
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
568
|
+
$slots: {
|
569
|
+
default?(_: {}): any;
|
570
|
+
};
|
571
|
+
}) | null;
|
572
|
+
arrowRef: HTMLDivElement;
|
573
|
+
};
|
448
574
|
$slots: Readonly<{
|
449
575
|
[name: string]: import('vue').Slot<any> | undefined;
|
450
576
|
}>;
|
@@ -565,7 +691,7 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
565
691
|
show(): void;
|
566
692
|
updatePosition(x: number, y: number): void;
|
567
693
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
568
|
-
$slots:
|
694
|
+
$slots: Readonly<import('../Trigger').TriggerSlots> & import('../Trigger').TriggerSlots;
|
569
695
|
}) | null;
|
570
696
|
inputRef: ({
|
571
697
|
$: import('vue').ComponentInternalInstance;
|
package/lib/Select/index.d.ts
CHANGED
@@ -126,7 +126,70 @@ declare const Select: {
|
|
126
126
|
$attrs: {
|
127
127
|
[x: string]: unknown;
|
128
128
|
};
|
129
|
-
$refs:
|
129
|
+
$refs: {
|
130
|
+
[x: string]: unknown;
|
131
|
+
} & {
|
132
|
+
triggerRef: unknown;
|
133
|
+
popupRef: ({
|
134
|
+
$: import('vue').ComponentInternalInstance;
|
135
|
+
$data: {};
|
136
|
+
$props: {
|
137
|
+
readonly preventFocus?: boolean | undefined;
|
138
|
+
readonly tag?: string | undefined;
|
139
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
140
|
+
$attrs: {
|
141
|
+
[x: string]: unknown;
|
142
|
+
};
|
143
|
+
$refs: {
|
144
|
+
[x: string]: unknown;
|
145
|
+
};
|
146
|
+
$slots: Readonly<{
|
147
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
148
|
+
}>;
|
149
|
+
$root: import('vue').ComponentPublicInstance | null;
|
150
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
151
|
+
$host: Element | null;
|
152
|
+
$emit: (event: string, ...args: any[]) => void;
|
153
|
+
$el: any;
|
154
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
155
|
+
preventFocus?: boolean;
|
156
|
+
tag?: string;
|
157
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
158
|
+
preventFocus: boolean;
|
159
|
+
tag: string;
|
160
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
161
|
+
beforeCreate?: (() => void) | (() => void)[];
|
162
|
+
created?: (() => void) | (() => void)[];
|
163
|
+
beforeMount?: (() => void) | (() => void)[];
|
164
|
+
mounted?: (() => void) | (() => void)[];
|
165
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
166
|
+
updated?: (() => void) | (() => void)[];
|
167
|
+
activated?: (() => void) | (() => void)[];
|
168
|
+
deactivated?: (() => void) | (() => void)[];
|
169
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
170
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
171
|
+
destroyed?: (() => void) | (() => void)[];
|
172
|
+
unmounted?: (() => void) | (() => void)[];
|
173
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
174
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
175
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
176
|
+
};
|
177
|
+
$forceUpdate: () => void;
|
178
|
+
$nextTick: typeof import('vue').nextTick;
|
179
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
180
|
+
} & Readonly<{
|
181
|
+
preventFocus: boolean;
|
182
|
+
tag: string;
|
183
|
+
}> & Omit<Readonly<{
|
184
|
+
preventFocus?: boolean;
|
185
|
+
tag?: string;
|
186
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
187
|
+
$slots: {
|
188
|
+
default?(_: {}): any;
|
189
|
+
};
|
190
|
+
}) | null;
|
191
|
+
arrowRef: HTMLDivElement;
|
192
|
+
};
|
130
193
|
$slots: Readonly<{
|
131
194
|
[name: string]: import('vue').Slot<any> | undefined;
|
132
195
|
}>;
|
@@ -247,7 +310,7 @@ declare const Select: {
|
|
247
310
|
show(): void;
|
248
311
|
updatePosition(x: number, y: number): void;
|
249
312
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
250
|
-
$slots:
|
313
|
+
$slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
|
251
314
|
}) | null;
|
252
315
|
inputRef: ({
|
253
316
|
$: import('vue').ComponentInternalInstance;
|
package/lib/Select/type.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ObjectData, RenderContent, Size, PopupContainer } from '../_shared/type';
|
2
2
|
import { TriggerInstance, TriggerProps } from '../Trigger';
|
3
3
|
import { TagProps } from '../Tag';
|
4
|
+
import { VNode } from 'vue';
|
4
5
|
export interface SelectProps {
|
5
6
|
multiple?: boolean;
|
6
7
|
modelValue?: SelectValue;
|
@@ -56,21 +57,21 @@ export interface SelectEmits {
|
|
56
57
|
(e: 'select', value: SelectValue): void;
|
57
58
|
}
|
58
59
|
export interface SelectSlots {
|
59
|
-
default()
|
60
|
-
trigger()
|
61
|
-
prefix()
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
footer()
|
66
|
-
header()
|
67
|
-
label(scope: {
|
60
|
+
default?: () => VNode[];
|
61
|
+
trigger?: () => VNode[];
|
62
|
+
prefix?: () => VNode[];
|
63
|
+
'search-icon'?: () => VNode[];
|
64
|
+
'loading-icon'?: () => VNode[];
|
65
|
+
'arrow-icon'?: () => VNode[];
|
66
|
+
footer?: () => VNode[];
|
67
|
+
header?: () => VNode[];
|
68
|
+
label?: (scope: {
|
68
69
|
data: ObjectData;
|
69
|
-
})
|
70
|
-
option(scope: {
|
70
|
+
}) => VNode[];
|
71
|
+
option?: (scope: {
|
71
72
|
data: ObjectData;
|
72
|
-
})
|
73
|
-
empty()
|
73
|
+
}) => VNode[];
|
74
|
+
empty?: () => VNode[];
|
74
75
|
}
|
75
76
|
export interface SelectExpose {
|
76
77
|
focus(): void;
|
@@ -86,16 +87,16 @@ export interface OptionProps {
|
|
86
87
|
isFallbackOption?: boolean;
|
87
88
|
}
|
88
89
|
export interface OptionSlots {
|
89
|
-
default()
|
90
|
-
icon()
|
91
|
-
suffix()
|
90
|
+
default?: () => VNode[];
|
91
|
+
icon?: () => VNode[];
|
92
|
+
suffix?: () => VNode[];
|
92
93
|
}
|
93
94
|
export interface OptgroupProps {
|
94
95
|
label?: string;
|
95
96
|
}
|
96
97
|
export interface OptgroupSlots {
|
97
|
-
default()
|
98
|
-
label()
|
98
|
+
default?: () => VNode[];
|
99
|
+
label?: () => VNode[];
|
99
100
|
}
|
100
101
|
export type SelectValue = (string | number | boolean | ObjectData) | (string | number | boolean | ObjectData)[];
|
101
102
|
export type SelectOptionData = {
|
package/lib/Skeleton/type.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface SkeletonProps {
|
2
3
|
animation?: boolean;
|
3
4
|
loading?: boolean;
|
4
5
|
}
|
5
6
|
export interface SkeletonSlots {
|
6
|
-
default()
|
7
|
-
content()
|
7
|
+
default?: () => VNode[];
|
8
|
+
content?: () => VNode[];
|
8
9
|
}
|
9
10
|
export interface SkeletonLineProps {
|
10
11
|
rows?: number;
|
package/lib/Space/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-7a9a36b0"]]);module.exports=r;
|
package/lib/Space/index.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const s={class:"yc-space-item"},r={key:0,class:"yc-space-split"},a=e.defineComponent({name:"Space",__name:"index",props:{align:{default:void 0},direction:{default:"horizontal"},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"}},setup(a){const n=a,{size:
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/fn.js"),t=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const s={class:"yc-space-item"},r={key:0,class:"yc-space-split"},a=e.defineComponent({name:"Space",__name:"index",props:{align:{default:void 0},direction:{default:"horizontal"},wrap:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"}},setup(a){const n=e.useSlots(),i=a,{size:c,direction:u,align:d}=e.toRefs(i),m=e.computed(()=>l.valueToPx(t.isNumber(c.value)?c.value:{mini:4,small:8,medium:16,large:24}[c.value])),p=e.computed(()=>t.isUndefined(d.value)?"horizontal"==u.value?"center":"start":d.value),v=e.computed(()=>{var l;if(!n.split)return[];const t=[];return((null==(l=n.default)?void 0:l.call(n))||[]).forEach(l=>{l.type===e.Fragment?t.push(...l.children):l.type!==e.Comment&&t.push(l)}),t});return(l,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-space",`yc-space-align-${p.value}`,`yc-space-direction-${e.unref(u)}`,{"yc-space-wrap":l.wrap,"yc-space-fill":l.fill}]),style:e.normalizeStyle({gap:m.value})},[l.$slots.split?e.createCommentVNode("",!0):e.renderSlot(l.$slots,"default",{key:0},void 0,!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(v.value,(t,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:a},[e.createElementVNode("div",s,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(o.getSlotFunction)(t))))]),a<v.value.length-1?(e.openBlock(),e.createElementBlock("div",r,[e.renderSlot(l.$slots,"split",{},void 0,!0)])):e.createCommentVNode("",!0)],64))),128))],6))}});module.exports=a;
|
package/lib/Space/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction, Size } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface SpaceProps {
|
3
4
|
align?: SpaceAlign;
|
4
5
|
direction?: Direction;
|
@@ -7,7 +8,7 @@ export interface SpaceProps {
|
|
7
8
|
size?: Size | number;
|
8
9
|
}
|
9
10
|
export interface SpaceSlots {
|
10
|
-
default()
|
11
|
-
split()
|
11
|
+
default?: () => VNode[];
|
12
|
+
split?: () => VNode[];
|
12
13
|
}
|
13
14
|
export type SpaceAlign = 'start' | 'end' | 'center' | 'baseline';
|
package/lib/Spin/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface SpinProps {
|
2
3
|
size?: number;
|
3
4
|
loading?: boolean;
|
@@ -7,7 +8,7 @@ export interface SpinProps {
|
|
7
8
|
isSizeInherit?: boolean;
|
8
9
|
}
|
9
10
|
export interface SpinSlots {
|
10
|
-
default()
|
11
|
-
icon()
|
12
|
-
tip()
|
11
|
+
default?: () => VNode[];
|
12
|
+
icon?: () => VNode[];
|
13
|
+
tip?: () => VNode[];
|
13
14
|
}
|
package/lib/Split/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface SplitProps {
|
3
4
|
component?: string;
|
4
5
|
direction?: Direction;
|
@@ -15,8 +16,8 @@ export interface SplitEmits {
|
|
15
16
|
(e: 'moving-end'): void;
|
16
17
|
}
|
17
18
|
export interface SplitSlots {
|
18
|
-
|
19
|
-
|
20
|
-
first()
|
21
|
-
second()
|
19
|
+
'resize-trigger-icon'?: () => VNode[];
|
20
|
+
'resize-trigger'?: () => VNode[];
|
21
|
+
first?: () => VNode[];
|
22
|
+
second?: () => VNode[];
|
22
23
|
}
|
package/lib/Statistic/type.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CSSProperties } from 'vue';
|
1
|
+
import { CSSProperties, VNode } from 'vue';
|
2
2
|
export interface StatisticProps {
|
3
3
|
title?: string;
|
4
4
|
value?: StatisticValue;
|
@@ -20,11 +20,11 @@ export interface StatisticEmits {
|
|
20
20
|
(e: 'finish'): void;
|
21
21
|
}
|
22
22
|
export interface StatisticSlots {
|
23
|
-
title()
|
24
|
-
prefix()
|
25
|
-
suffix()
|
26
|
-
extra()
|
27
|
-
value()
|
23
|
+
title?: () => VNode[];
|
24
|
+
prefix?: () => VNode[];
|
25
|
+
suffix?: () => VNode[];
|
26
|
+
extra?: () => VNode[];
|
27
|
+
value?: () => VNode[];
|
28
28
|
}
|
29
29
|
export interface CountdownProps {
|
30
30
|
title?: string;
|
@@ -39,6 +39,6 @@ export interface CountDownEmits {
|
|
39
39
|
(e: 'finish'): void;
|
40
40
|
}
|
41
41
|
export interface CountdownSlots {
|
42
|
-
title()
|
42
|
+
title?: () => VNode[];
|
43
43
|
}
|
44
44
|
export type StatisticValue = number | Date;
|
package/lib/Steps/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface StepsProps {
|
3
4
|
type?: StepType;
|
4
5
|
direction?: Direction;
|
@@ -15,7 +16,7 @@ export interface StepsEmits {
|
|
15
16
|
(e: 'update:current', step: number): void;
|
16
17
|
}
|
17
18
|
export interface StepsSlots {
|
18
|
-
default()
|
19
|
+
default?: () => VNode[];
|
19
20
|
}
|
20
21
|
export interface StepProps {
|
21
22
|
title?: string;
|
@@ -24,16 +25,16 @@ export interface StepProps {
|
|
24
25
|
disabled?: boolean;
|
25
26
|
}
|
26
27
|
export interface StepSlots {
|
27
|
-
node(scope: {
|
28
|
+
node?: (scope: {
|
28
29
|
step: number;
|
29
30
|
status: StepStatus;
|
30
|
-
})
|
31
|
-
icon(scope: {
|
31
|
+
}) => VNode[];
|
32
|
+
icon?: (scope: {
|
32
33
|
step: number;
|
33
34
|
status: StepStatus;
|
34
|
-
})
|
35
|
-
description()
|
36
|
-
default()
|
35
|
+
}) => VNode[];
|
36
|
+
description?: () => VNode[];
|
37
|
+
default?: () => VNode[];
|
37
38
|
}
|
38
39
|
export type StepStatus = 'wait' | 'process' | 'finish' | 'error';
|
39
40
|
export type StepType = 'default' | 'arrow' | 'dot' | 'navigation';
|
package/lib/Switch/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=;/* empty css */;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-be8dccd4"]]);module.exports=r;
|
package/lib/Switch/index.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const c=require("../_shared/utils/global-config.js"),a=require("../_shared/utils/control.js"),t=require("../Spin/index.js"),u=["aria-checked"],o={class:"yc-switch-handle"},n={class:"yc-switch-handle-icon"},s={key:0,class:"yc-switch-placeholder"},r={key:1,class:"yc-switch-text"},d=e.defineComponent({name:"Switch",__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"circle"},size:{default:void 0},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{default:"rgba(22, 93, 255)"},uncheckedColor:{default:"rgb(201, 205, 212)"},checkedText:{default:""},uncheckedText:{default:""},beforeChange:{type:Function,default:()=>!0}},emits:["update:modelValue","change","focus","blur"],setup(d,{emit:i}){e.useCssVars(e=>({
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const l=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const c=require("../_shared/utils/global-config.js"),a=require("../_shared/utils/control.js"),t=require("../Spin/index.js"),u=["aria-checked"],o={class:"yc-switch-handle"},n={class:"yc-switch-handle-icon"},s={key:0,class:"yc-switch-placeholder"},r={key:1,class:"yc-switch-text"},d=e.defineComponent({name:"Switch",__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{default:"circle"},size:{default:void 0},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{default:"rgba(22, 93, 255)"},uncheckedColor:{default:"rgb(201, 205, 212)"},checkedText:{default:""},uncheckedText:{default:""},beforeChange:{type:Function,default:()=>!0}},emits:["update:modelValue","change","focus","blur"],setup(d,{emit:i}){e.useCssVars(e=>({e55eb67a:$.value}));const h=e.useSlots(),k=d,v=i,{modelValue:f,defaultChecked:m,checkedValue:p,uncheckedValue:y,disabled:g,type:b,checkedText:B,uncheckedText:w,checkedColor:C,uncheckedColor:V,loading:S}=e.toRefs(k),{beforeChange:x}=k,{size:N}=c.getGlobalConfig(k),q=a(f,m.value,e=>{v("update:modelValue",e)}),_=e.computed(()=>q.value==p.value),j=e.computed(()=>{const e=_.value&&(B.value||h.checked),l=!_.value&&(w.value||h.unchecked);return"line"!=b.value&&"small"!=N.value&&(e||l)}),$=e.computed(()=>_.value?C.value:V.value),T=e.ref(!1),z=e.computed(()=>T.value||S.value),E=async e=>{if(z.value||g.value)return;const c=_.value?y.value:p.value,a=await(async e=>{let c=!0;T.value=!0;const a=x(e);if(l.isBoolean(a))c=a;else if(a instanceof Promise)try{const e=await a;l.isBoolean(e)&&(c=e)}catch{c=!1}return T.value=!1,c})(c);a&&(q.value=c,v("change",c,e))};return(l,c)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["yc-switch",`yc-switch-shape-${e.unref(b)}`,`yc-switch-size-${e.unref(N)}`,_.value?"yc-switch-checked":"yc-switch-unchecked",{"yc-switch-loading":z.value,"yc-switch-disabled":e.unref(g)}]),"aria-checked":_.value,role:"switch",onFocus:c[0]||(c[0]=e=>l.$emit("focus",e)),onBlur:c[1]||(c[1]=e=>l.$emit("blur",e)),onClick:E},[e.createElementVNode("span",o,[e.createElementVNode("span",n,[z.value?(e.openBlock(),e.createBlock(e.unref(t),{key:0,"is-size-inherit":""})):e.renderSlot(l.$slots,_.value?"checked-icon":"unchecked-icon",{key:1},void 0,!0)])]),j.value?(e.openBlock(),e.createElementBlock("span",s,[e.renderSlot(l.$slots,_.value?"checked":"unchecked",{},()=>[e.createTextVNode(e.toDisplayString(_.value?e.unref(B):e.unref(w)),1)],!0)])):e.createCommentVNode("",!0),j.value?(e.openBlock(),e.createElementBlock("span",r,[e.renderSlot(l.$slots,_.value?"checked":"unchecked",{},()=>[e.createTextVNode(e.toDisplayString(_.value?e.unref(B):e.unref(w)),1)],!0)])):e.createCommentVNode("",!0)],42,u))}});module.exports=d;
|
package/lib/Switch/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface SwitchProps {
|
2
3
|
modelValue?: SwitchValue;
|
3
4
|
defaultChecked?: SwitchValue;
|
@@ -20,10 +21,10 @@ export interface SwitchEmits {
|
|
20
21
|
(e: 'blur', ev: FocusEvent): void;
|
21
22
|
}
|
22
23
|
export interface SwitchSlots {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
'checked-icon'?: () => VNode[];
|
25
|
+
'unchecked-icon'?: () => VNode[];
|
26
|
+
checked?: () => VNode[];
|
27
|
+
unchecked?: () => VNode[];
|
27
28
|
}
|
28
29
|
export type SwitchValue = string | number | boolean;
|
29
30
|
export type SwitchType = 'circle' | 'round' | 'line';
|
package/lib/Tabs/Tabs.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("./Tabs.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=require("./Tabs.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-d4474e51"]]);module.exports=r;
|
package/lib/Tabs/Tabs.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const a=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconPlus.vue.js"),l=require("./hooks/useContext.js"),r=require("./hooks/useTabsScroll.js"),i=require("./TabPane.vue.js");;/* empty css */const s=require("./TabsTab.vue.js"),u=require("./TabsNavInk.vue.js"),c=require("./TabButton.vue.js"),d={class:"yc-tabs-nav"},f={key:3,class:"yc-tabs-nav-extra"},y=e.defineComponent({name:"Tabs",__name:"Tabs",props:{activeKey:{default:void 0},defaultActiveKey:{default:""},position:{default:void 0},size:{default:void 0},type:{default:"line"},direction:{default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destoryOnHide:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{default:"click"}},emits:["update:activeKey","change","tab-click","add","delete"],setup(y,{emit:p}){const m=
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const a=require("../_shared/utils/vue-utils.js");require("../Empty/index.js");/* empty css */const n=require("../_shared/icons/IconArrowRight.vue.js"),o=require("../_shared/icons/IconPlus.vue.js"),l=require("./hooks/useContext.js"),r=require("./hooks/useTabsScroll.js"),i=require("./TabPane.vue.js");;/* empty css */const s=require("./TabsTab.vue.js"),u=require("./TabsNavInk.vue.js"),c=require("./TabButton.vue.js"),d={class:"yc-tabs-nav"},f={key:3,class:"yc-tabs-nav-extra"},y=e.defineComponent({name:"Tabs",__name:"Tabs",props:{activeKey:{default:void 0},defaultActiveKey:{default:""},position:{default:void 0},size:{default:void 0},type:{default:"line"},direction:{default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destoryOnHide:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{default:"click"}},emits:["update:activeKey","change","tab-click","add","delete"],setup(y,{emit:p}){const m=e.useSlots(),v=y,h=p,k=e.ref(),{computedActiveKey:b,size:B,direction:z,autoSwitch:x,position:C}=l().provide(v,h,k),j=e.computed(()=>{var e;return a.findComponentsFromVnodes((null==(e=m.default)?void 0:e.call(m))||[],i.name)}),q=e.computed(()=>j.value.map(e=>({title:"",path:"",disabled:!1,...e.props||{},slots:e.children}))),_=e.computed(()=>v.showAddButton&&["line","card","card-gutter"].includes(v.type)),g=e.computed(()=>{const e=q.value.findIndex(e=>e.path==b.value);return e<0?0:e}),{scrollDis:N,isScrollable:V,preDisabled:T,nextDisabled:$,navHeight:w,handleScroll:E}=r({listRef:k,panes:q,direction:z}),S=async()=>{h("add"),x.value&&(await e.nextTick(),b.value=q.value[q.value.length-1].path)};return(a,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-tabs",`yc-tabs-${e.unref(z)}`,`yc-tabs-type-${a.type}`,`yc-tabs-size-${e.unref(B)}`,{"yc-tabs-animation":a.animation,"yc-tabs-justify":"horizontal"==e.unref(z)&&a.justify,"yc-tabs-no-padding":a.headerPadding&&["line","text"].includes(a.type)&&"horizontal"===v.direction,[`yc-tabs-${e.unref(C)}`]:e.unref(C)}])},[e.createElementVNode("div",d,[e.unref(V)?(e.openBlock(),e.createBlock(c,{key:0,disabled:e.unref(T),direction:"horizontal"==e.unref(z)?"left":"up",onClick:l[0]||(l[0]=t=>e.unref(E)("pre"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?180:-90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["yc-tabs-nav-tab",{"yc-tabs-nav-tab-scroll":e.unref(V)}])},[e.createElementVNode("div",{class:"yc-tabs-nav-tab-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${e.unref(t.valueToPx)(e.unref(N))})`}),ref_key:"listRef",ref:k},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(q.value,(t,a)=>(e.openBlock(),e.createBlock(s,{key:a,index:a,node:t},null,8,["index","node"]))),128)),"line"==a.type?(e.openBlock(),e.createBlock(u,{key:0,"cur-index":g.value,panes:q.value},null,8,["cur-index","panes"])):e.createCommentVNode("",!0)],4)],2),e.unref(V)?(e.openBlock(),e.createBlock(c,{key:1,disabled:e.unref($),direction:"horizontal"==e.unref(z)?"right":"down",onClick:l[1]||(l[1]=t=>e.unref(E)("next"))},{default:e.withCtx(()=>[e.createVNode(e.unref(n),{rotate:"horizontal"==e.unref(z)?0:90,size:14},null,8,["rotate"])]),_:1},8,["disabled","direction"])):e.createCommentVNode("",!0),_.value?(e.openBlock(),e.createBlock(c,{key:2,type:"add",size:"12",onClick:S},{default:e.withCtx(()=>[e.createVNode(e.unref(o),{size:12})]),_:1})):e.createCommentVNode("",!0),a.$slots.extra?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(a.$slots,"extra",{},void 0,!0)])):e.createCommentVNode("",!0)]),a.hideContent?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"yc-tabs-content",style:e.normalizeStyle({height:"vertical"==e.unref(z)?`${e.unref(t.valueToPx)(e.unref(w))}`:""})},[e.createElementVNode("div",{class:"yc-tabs-content-list",style:e.normalizeStyle({transform:`translate${"horizontal"==e.unref(z)?"X":"Y"}(${100*-g.value}%)`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(j.value,(t,a)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t),{key:a}))),128))],4)],4))],2))}});module.exports=y;
|
package/lib/Tabs/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction, Size } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface TabsProps {
|
3
4
|
activeKey?: TabKey;
|
4
5
|
defaultActiveKey?: TabKey;
|
@@ -24,8 +25,8 @@ export interface TabsEmits {
|
|
24
25
|
(e: 'delete', value: TabKey): void;
|
25
26
|
}
|
26
27
|
export interface TabsSlots {
|
27
|
-
extra()
|
28
|
-
default()
|
28
|
+
extra?: () => VNode[];
|
29
|
+
default?: () => VNode[];
|
29
30
|
}
|
30
31
|
export interface TabPaneProps {
|
31
32
|
title?: string;
|
@@ -35,8 +36,8 @@ export interface TabPaneProps {
|
|
35
36
|
destoryOnHide?: boolean;
|
36
37
|
}
|
37
38
|
export interface TabPaneSlots {
|
38
|
-
default()
|
39
|
-
title()
|
39
|
+
default?: () => VNode[];
|
40
|
+
title?: () => VNode[];
|
40
41
|
}
|
41
42
|
export type TabKey = string | number;
|
42
43
|
export type TabType = 'line' | 'card' | 'card-gutter' | 'text' | 'rounded' | 'capsule';
|
package/lib/Tag/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface TagProps {
|
2
3
|
color?: string;
|
3
4
|
size?: TagSize;
|
@@ -18,8 +19,8 @@ export interface TagEmits {
|
|
18
19
|
(e: 'check', value: boolean, ev: MouseEvent): void;
|
19
20
|
}
|
20
21
|
export interface TagSlots {
|
21
|
-
default()
|
22
|
-
icon()
|
23
|
-
|
22
|
+
default?: () => VNode[];
|
23
|
+
icon?: () => VNode[];
|
24
|
+
'close-icon'?: () => VNode[];
|
24
25
|
}
|
25
26
|
export type TagSize = 'small' | 'medium' | 'large';
|
package/lib/TimePicker/type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PopupContainer, Size } from '../_shared/type';
|
2
2
|
import { TriggerProps } from '../Trigger';
|
3
|
+
import { VNode } from 'vue';
|
3
4
|
export interface TimePickerProps {
|
4
5
|
type?: TimePickerType;
|
5
6
|
modelValue?: TimePickerValue;
|
@@ -37,9 +38,9 @@ export interface TimePickerEmits {
|
|
37
38
|
(e: 'popup-visible-change', value: boolean): void;
|
38
39
|
}
|
39
40
|
export interface TimePickerSlots {
|
40
|
-
prefix()
|
41
|
-
|
42
|
-
extra()
|
41
|
+
prefix?: () => VNode[];
|
42
|
+
'suffix-icon'?: () => VNode[];
|
43
|
+
extra?: () => VNode[];
|
43
44
|
}
|
44
45
|
export type TimeUnit = 'hour' | 'minute' | 'second';
|
45
46
|
export type TimePickerValue = string | number | Date | (string | number | Date)[];
|
package/lib/Timeline/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Direction } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface TimelineProps {
|
3
4
|
reverse?: boolean;
|
4
5
|
direction?: Direction;
|
@@ -7,8 +8,8 @@ export interface TimelineProps {
|
|
7
8
|
labelPosition?: TimelineLabelPosition;
|
8
9
|
}
|
9
10
|
export interface TimelineSlots {
|
10
|
-
dot()
|
11
|
-
default()
|
11
|
+
dot?: () => VNode[];
|
12
|
+
default?: () => VNode[];
|
12
13
|
}
|
13
14
|
export interface TimelineItemProps {
|
14
15
|
dotColor?: string;
|
@@ -20,9 +21,9 @@ export interface TimelineItemProps {
|
|
20
21
|
isGhost?: boolean;
|
21
22
|
}
|
22
23
|
export interface TimelineItemSlots {
|
23
|
-
dot()
|
24
|
-
label()
|
25
|
-
default()
|
24
|
+
dot?: () => VNode[];
|
25
|
+
label?: () => VNode[];
|
26
|
+
default?: () => VNode[];
|
26
27
|
}
|
27
28
|
export type TimelineMode = 'left' | 'right' | 'top' | 'bottom' | 'alternate';
|
28
29
|
export type TimelineLabelPosition = 'relative' | 'same';
|