yc-design-vue 1.0.7 → 1.0.9
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.d.ts +3 -3
- package/es/Alert/index.vue.d.ts +1 -1
- package/es/AutoComplete/index.d.ts +10 -10
- package/es/AutoComplete/index.vue.d.ts +20 -20
- package/es/Cascader/CascaderOption.vue.d.ts +1 -1
- package/es/ColorPicker/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/Descriptions.vue.d.ts +1 -1
- package/es/Descriptions/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/index.d.ts +3 -3
- package/es/Drawer/Drawer.vue.d.ts +1 -1
- package/es/Drawer/DrawerService.vue.d.ts +1 -1
- package/es/Drawer/index.d.ts +3 -3
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreview.vue2.js +0 -1
- package/es/InputTag/index.d.ts +5 -5
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/List/List.vue.d.ts +2 -3
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +5 -22
- package/es/List/index.d.ts +1 -4
- package/es/List/type.d.ts +0 -2
- package/es/Mention/index.d.ts +13 -13
- package/es/Mention/index.vue.d.ts +21 -21
- package/es/Message/Message.vue.d.ts +1 -1
- package/es/Message/index.d.ts +3 -3
- package/es/Modal/Modal.vue.d.ts +2 -2
- package/es/Modal/ModalService.vue.d.ts +2 -2
- package/es/Modal/index.d.ts +6 -6
- package/es/Notification/Notification.vue.d.ts +3 -3
- package/es/Notification/index.d.ts +9 -9
- package/es/Pagination/hooks/useContext.d.ts +1 -1
- package/es/Popover/index.d.ts +3 -3
- package/es/Popover/index.vue.d.ts +1 -1
- package/es/Select/Select.vue.d.ts +12 -12
- package/es/Select/index.d.ts +10 -10
- package/es/Statistic/Countdown.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.js +1 -1
- package/es/Statistic/Statistic.vue2.js +9 -2
- package/es/Statistic/index.d.ts +6 -6
- package/es/Tabs/hooks/useContext.d.ts +1 -1
- package/es/Transfer/Transfer.vue.d.ts +1 -1
- package/es/Transfer/index.d.ts +3 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +5 -2
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/_shared/icons/IconCopy.vue.js +1 -16
- package/es/_shared/icons/IconCopy.vue2.js +16 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -16
- package/es/_shared/icons/IconEdit.vue2.js +16 -1
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/global-config.d.ts +1 -1
- package/es/index.d.ts +3 -3
- package/es/style.css +1 -1
- package/lib/Alert/index.d.ts +3 -3
- package/lib/Alert/index.vue.d.ts +1 -1
- package/lib/AutoComplete/index.d.ts +10 -10
- package/lib/AutoComplete/index.vue.d.ts +20 -20
- package/lib/Cascader/CascaderOption.vue.d.ts +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
- package/lib/Descriptions/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +3 -3
- package/lib/Drawer/Drawer.vue.d.ts +1 -1
- package/lib/Drawer/DrawerService.vue.d.ts +1 -1
- package/lib/Drawer/index.d.ts +3 -3
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/InputTag/index.d.ts +5 -5
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/List/List.vue.d.ts +2 -3
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/List/index.d.ts +1 -4
- package/lib/List/type.d.ts +0 -2
- package/lib/Mention/index.d.ts +13 -13
- package/lib/Mention/index.vue.d.ts +21 -21
- package/lib/Message/Message.vue.d.ts +1 -1
- package/lib/Message/index.d.ts +3 -3
- package/lib/Modal/Modal.vue.d.ts +2 -2
- package/lib/Modal/ModalService.vue.d.ts +2 -2
- package/lib/Modal/index.d.ts +6 -6
- package/lib/Notification/Notification.vue.d.ts +3 -3
- package/lib/Notification/index.d.ts +9 -9
- package/lib/Pagination/hooks/useContext.d.ts +1 -1
- package/lib/Popover/index.d.ts +3 -3
- package/lib/Popover/index.vue.d.ts +1 -1
- package/lib/Select/Select.vue.d.ts +12 -12
- package/lib/Select/index.d.ts +10 -10
- package/lib/Statistic/Countdown.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/Statistic.vue2.js +1 -1
- package/lib/Statistic/index.d.ts +6 -6
- package/lib/Tabs/hooks/useContext.d.ts +1 -1
- package/lib/Transfer/Transfer.vue.d.ts +1 -1
- package/lib/Transfer/index.d.ts +3 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.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/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/global-config.d.ts +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/Modal/index.d.ts
CHANGED
@@ -25,11 +25,10 @@ declare const Modal: {
|
|
25
25
|
unmountOnClose: boolean;
|
26
26
|
popupContainer: import('..').PopupContainer;
|
27
27
|
renderToBody: boolean;
|
28
|
-
draggable: boolean;
|
29
|
-
title: string;
|
30
28
|
width: number | string;
|
31
29
|
visible: boolean;
|
32
30
|
footer: boolean;
|
31
|
+
title: string;
|
33
32
|
mask: boolean;
|
34
33
|
defaultVisible: boolean;
|
35
34
|
closable: boolean;
|
@@ -47,6 +46,7 @@ declare const Modal: {
|
|
47
46
|
modalClass: import('../_shared/type').ClassName;
|
48
47
|
modalStyle: import('vue').CSSProperties;
|
49
48
|
escToClose: boolean;
|
49
|
+
draggable: boolean;
|
50
50
|
fullscreen: boolean;
|
51
51
|
maskAnimationName: string;
|
52
52
|
modalAnimationName: string;
|
@@ -78,11 +78,10 @@ declare const Modal: {
|
|
78
78
|
unmountOnClose: boolean;
|
79
79
|
popupContainer: import('..').PopupContainer;
|
80
80
|
renderToBody: boolean;
|
81
|
-
draggable: boolean;
|
82
|
-
title: string;
|
83
81
|
width: number | string;
|
84
82
|
visible: boolean;
|
85
83
|
footer: boolean;
|
84
|
+
title: string;
|
86
85
|
mask: boolean;
|
87
86
|
defaultVisible: boolean;
|
88
87
|
closable: boolean;
|
@@ -100,6 +99,7 @@ declare const Modal: {
|
|
100
99
|
modalClass: import('../_shared/type').ClassName;
|
101
100
|
modalStyle: import('vue').CSSProperties;
|
102
101
|
escToClose: boolean;
|
102
|
+
draggable: boolean;
|
103
103
|
fullscreen: boolean;
|
104
104
|
maskAnimationName: string;
|
105
105
|
modalAnimationName: string;
|
@@ -133,11 +133,10 @@ declare const Modal: {
|
|
133
133
|
unmountOnClose: boolean;
|
134
134
|
popupContainer: import('..').PopupContainer;
|
135
135
|
renderToBody: boolean;
|
136
|
-
draggable: boolean;
|
137
|
-
title: string;
|
138
136
|
width: number | string;
|
139
137
|
visible: boolean;
|
140
138
|
footer: boolean;
|
139
|
+
title: string;
|
141
140
|
mask: boolean;
|
142
141
|
defaultVisible: boolean;
|
143
142
|
closable: boolean;
|
@@ -155,6 +154,7 @@ declare const Modal: {
|
|
155
154
|
modalClass: import('../_shared/type').ClassName;
|
156
155
|
modalStyle: import('vue').CSSProperties;
|
157
156
|
escToClose: boolean;
|
157
|
+
draggable: boolean;
|
158
158
|
fullscreen: boolean;
|
159
159
|
maskAnimationName: string;
|
160
160
|
modalAnimationName: string;
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { NotificationProps } from './type';
|
2
2
|
declare const _default: import('vue').DefineComponent<NotificationProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<NotificationProps> & Readonly<{}>, {
|
3
3
|
duration: number;
|
4
|
-
title: import('../_shared/type').RenderContent;
|
5
|
-
id: string;
|
6
|
-
style: import('vue').CSSProperties;
|
7
4
|
content: import('../_shared/type').RenderContent;
|
5
|
+
style: import('vue').CSSProperties;
|
8
6
|
icon: import('vue').RenderFunction;
|
9
7
|
type: import('./type').NotificationType;
|
10
8
|
footer: import('vue').RenderFunction;
|
9
|
+
title: import('../_shared/type').RenderContent;
|
11
10
|
class: import('../_shared/type').ClassName;
|
11
|
+
id: string;
|
12
12
|
onClose: (id: string | number) => void;
|
13
13
|
closable: boolean;
|
14
14
|
showIcon: boolean;
|
@@ -6,14 +6,14 @@ export * from './type';
|
|
6
6
|
declare const Notification: {
|
7
7
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
8
8
|
duration: number;
|
9
|
-
title: import('../_shared/type').RenderContent;
|
10
|
-
id: string;
|
11
|
-
style: import('vue').CSSProperties;
|
12
9
|
content: import('../_shared/type').RenderContent;
|
10
|
+
style: import('vue').CSSProperties;
|
13
11
|
icon: import('vue').RenderFunction;
|
14
12
|
type: NotificationType;
|
15
13
|
footer: import('vue').RenderFunction;
|
14
|
+
title: import('../_shared/type').RenderContent;
|
16
15
|
class: import('../_shared/type').ClassName;
|
16
|
+
id: string;
|
17
17
|
onClose: (id: string | number) => void;
|
18
18
|
closable: boolean;
|
19
19
|
showIcon: boolean;
|
@@ -29,14 +29,14 @@ declare const Notification: {
|
|
29
29
|
Defaults: {};
|
30
30
|
}, Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, {
|
31
31
|
duration: number;
|
32
|
-
title: import('../_shared/type').RenderContent;
|
33
|
-
id: string;
|
34
|
-
style: import('vue').CSSProperties;
|
35
32
|
content: import('../_shared/type').RenderContent;
|
33
|
+
style: import('vue').CSSProperties;
|
36
34
|
icon: import('vue').RenderFunction;
|
37
35
|
type: NotificationType;
|
38
36
|
footer: import('vue').RenderFunction;
|
37
|
+
title: import('../_shared/type').RenderContent;
|
39
38
|
class: import('../_shared/type').ClassName;
|
39
|
+
id: string;
|
40
40
|
onClose: (id: string | number) => void;
|
41
41
|
closable: boolean;
|
42
42
|
showIcon: boolean;
|
@@ -49,14 +49,14 @@ declare const Notification: {
|
|
49
49
|
__isSuspense?: never;
|
50
50
|
} & import('vue').ComponentOptionsBase<Readonly<NotificationProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
51
51
|
duration: number;
|
52
|
-
title: import('../_shared/type').RenderContent;
|
53
|
-
id: string;
|
54
|
-
style: import('vue').CSSProperties;
|
55
52
|
content: import('../_shared/type').RenderContent;
|
53
|
+
style: import('vue').CSSProperties;
|
56
54
|
icon: import('vue').RenderFunction;
|
57
55
|
type: NotificationType;
|
58
56
|
footer: import('vue').RenderFunction;
|
57
|
+
title: import('../_shared/type').RenderContent;
|
59
58
|
class: import('../_shared/type').ClassName;
|
59
|
+
id: string;
|
60
60
|
onClose: (id: string | number) => void;
|
61
61
|
closable: boolean;
|
62
62
|
showIcon: boolean;
|
@@ -14,7 +14,7 @@ interface PaginationContext {
|
|
14
14
|
declare const _default: () => {
|
15
15
|
provide: (props: Props, emits: PaginationEmits) => {
|
16
16
|
total: import('vue').WritableComputedRef<any, number>;
|
17
|
-
size: import('vue').ComputedRef<
|
17
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
18
18
|
pages: import('vue').ComputedRef<number>;
|
19
19
|
pagesArray: import('vue').ComputedRef<(string | number)[]>;
|
20
20
|
computedCurrent: import('vue').WritableComputedRef<any, number>;
|
package/lib/Popover/index.d.ts
CHANGED
@@ -22,8 +22,8 @@ declare const Popover: {
|
|
22
22
|
arrowClass: import('../_shared/type').ClassName;
|
23
23
|
arrowStyle: import('vue').CSSProperties;
|
24
24
|
popupContainer: import('..').PopupContainer;
|
25
|
-
title: string;
|
26
25
|
content: string;
|
26
|
+
title: string;
|
27
27
|
triggerProps: import('..').TriggerProps;
|
28
28
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
29
29
|
P: {};
|
@@ -48,8 +48,8 @@ declare const Popover: {
|
|
48
48
|
arrowClass: import('../_shared/type').ClassName;
|
49
49
|
arrowStyle: import('vue').CSSProperties;
|
50
50
|
popupContainer: import('..').PopupContainer;
|
51
|
-
title: string;
|
52
51
|
content: string;
|
52
|
+
title: string;
|
53
53
|
triggerProps: import('..').TriggerProps;
|
54
54
|
}>;
|
55
55
|
__isFragment?: never;
|
@@ -74,8 +74,8 @@ declare const Popover: {
|
|
74
74
|
arrowClass: import('../_shared/type').ClassName;
|
75
75
|
arrowStyle: import('vue').CSSProperties;
|
76
76
|
popupContainer: import('..').PopupContainer;
|
77
|
-
title: string;
|
78
77
|
content: string;
|
78
|
+
title: string;
|
79
79
|
triggerProps: import('..').TriggerProps;
|
80
80
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
81
81
|
$slots: Readonly<import('./type').PopoverSlots> & import('./type').PopoverSlots;
|
@@ -25,8 +25,8 @@ declare const __VLS_component: import('vue').DefineComponent<PopoverProps, {
|
|
25
25
|
arrowClass: import('../_shared/type').ClassName;
|
26
26
|
arrowStyle: import('vue').CSSProperties;
|
27
27
|
popupContainer: import('..').PopupContainer;
|
28
|
-
title: string;
|
29
28
|
content: string;
|
29
|
+
title: string;
|
30
30
|
triggerProps: import('../Trigger').TriggerProps;
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
32
32
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
@@ -266,9 +266,9 @@ declare function __VLS_template(): {
|
|
266
266
|
readonly allowCreate?: boolean | undefined;
|
267
267
|
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
268
268
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
269
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
270
269
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
271
270
|
readonly onInput?: ((value: string) => any) | undefined;
|
271
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
272
272
|
readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
273
273
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
274
274
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -289,14 +289,14 @@ declare function __VLS_template(): {
|
|
289
289
|
$root: import('vue').ComponentPublicInstance | null;
|
290
290
|
$parent: import('vue').ComponentPublicInstance | null;
|
291
291
|
$host: Element | null;
|
292
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "
|
292
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
293
293
|
$el: HTMLDivElement;
|
294
294
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
295
295
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
296
296
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
297
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
298
297
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
299
298
|
onInput?: ((value: string) => any) | undefined;
|
299
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
300
300
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
301
301
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
302
302
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -307,9 +307,9 @@ declare function __VLS_template(): {
|
|
307
307
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
308
308
|
focus: (ev: FocusEvent) => any;
|
309
309
|
clear: (ev: MouseEvent) => any;
|
310
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
311
310
|
blur: (ev: FocusEvent) => any;
|
312
311
|
input: (value: string) => any;
|
312
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
313
313
|
"update:modelValue": (value: InputTagValue) => any;
|
314
314
|
"update:inputValue": (value: string) => any;
|
315
315
|
"input-value-change": (value: string, ev: Event) => any;
|
@@ -371,9 +371,9 @@ declare function __VLS_template(): {
|
|
371
371
|
}> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
372
372
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
373
373
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
374
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
375
374
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
376
375
|
onInput?: ((value: string) => any) | undefined;
|
376
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
377
377
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
378
378
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
379
379
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -397,9 +397,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
397
397
|
"update:popupVisible": (value: boolean) => any;
|
398
398
|
"popup-visible-change": (value: boolean) => any;
|
399
399
|
clear: () => any;
|
400
|
-
remove: (index: string | number, ev: Event) => any;
|
401
400
|
select: (value: import('./type').SelectValue) => any;
|
402
401
|
search: (value: string) => any;
|
402
|
+
remove: (index: string | number, ev: Event) => any;
|
403
403
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
404
404
|
"update:inputValue": (value: import('./type').SelectValue) => any;
|
405
405
|
"input-value-change": (value: string) => any;
|
@@ -411,9 +411,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
411
411
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
412
412
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
413
413
|
onClear?: (() => any) | undefined;
|
414
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
415
414
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
416
415
|
onSearch?: ((value: string) => any) | undefined;
|
416
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
417
417
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
418
418
|
"onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
419
419
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -716,9 +716,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
716
716
|
readonly allowCreate?: boolean | undefined;
|
717
717
|
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
718
718
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
719
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
720
719
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
721
720
|
readonly onInput?: ((value: string) => any) | undefined;
|
721
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
722
722
|
readonly "onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
723
723
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
724
724
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -739,14 +739,14 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
739
739
|
$root: import('vue').ComponentPublicInstance | null;
|
740
740
|
$parent: import('vue').ComponentPublicInstance | null;
|
741
741
|
$host: Element | null;
|
742
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "
|
742
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
743
743
|
$el: HTMLDivElement;
|
744
744
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
745
745
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
746
746
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
747
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
748
747
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
749
748
|
onInput?: ((value: string) => any) | undefined;
|
749
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
750
750
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
751
751
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
752
752
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -757,9 +757,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
757
757
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
758
758
|
focus: (ev: FocusEvent) => any;
|
759
759
|
clear: (ev: MouseEvent) => any;
|
760
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
761
760
|
blur: (ev: FocusEvent) => any;
|
762
761
|
input: (value: string) => any;
|
762
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
763
763
|
"update:modelValue": (value: InputTagValue) => any;
|
764
764
|
"update:inputValue": (value: string) => any;
|
765
765
|
"input-value-change": (value: string, ev: Event) => any;
|
@@ -821,9 +821,9 @@ declare const __VLS_component: import('vue').DefineComponent<SelectProps, {
|
|
821
821
|
}> & Omit<Readonly<import('../InputTag').InputTagProps> & Readonly<{
|
822
822
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
823
823
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
824
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
825
824
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
826
825
|
onInput?: ((value: string) => any) | undefined;
|
826
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
827
827
|
"onUpdate:modelValue"?: ((value: InputTagValue) => any) | undefined;
|
828
828
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
829
829
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
package/lib/Select/index.d.ts
CHANGED
@@ -12,9 +12,9 @@ declare const Select: {
|
|
12
12
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
13
13
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
14
14
|
onClear?: (() => any) | undefined;
|
15
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
16
15
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
17
16
|
onSearch?: ((value: string) => any) | undefined;
|
17
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
18
18
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
19
19
|
"onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
20
20
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -30,9 +30,9 @@ declare const Select: {
|
|
30
30
|
"update:popupVisible": (value: boolean) => any;
|
31
31
|
"popup-visible-change": (value: boolean) => any;
|
32
32
|
clear: () => any;
|
33
|
-
remove: (index: string | number, ev: Event) => any;
|
34
33
|
select: (value: import('./type').SelectValue) => any;
|
35
34
|
search: (value: string) => any;
|
35
|
+
remove: (index: string | number, ev: Event) => any;
|
36
36
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
37
37
|
"update:inputValue": (value: import('./type').SelectValue) => any;
|
38
38
|
"input-value-change": (value: string) => any;
|
@@ -335,9 +335,9 @@ declare const Select: {
|
|
335
335
|
readonly allowCreate?: boolean | undefined;
|
336
336
|
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
337
337
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
338
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
339
338
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
340
339
|
readonly onInput?: ((value: string) => any) | undefined;
|
340
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
341
341
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
342
342
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
343
343
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -358,14 +358,14 @@ declare const Select: {
|
|
358
358
|
$root: import('vue').ComponentPublicInstance | null;
|
359
359
|
$parent: import('vue').ComponentPublicInstance | null;
|
360
360
|
$host: Element | null;
|
361
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "
|
361
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
362
362
|
$el: HTMLDivElement;
|
363
363
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
364
364
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
365
365
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
366
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
367
366
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
368
367
|
onInput?: ((value: string) => any) | undefined;
|
368
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
369
369
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
370
370
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
371
371
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -376,9 +376,9 @@ declare const Select: {
|
|
376
376
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
377
377
|
focus: (ev: FocusEvent) => any;
|
378
378
|
clear: (ev: MouseEvent) => any;
|
379
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
380
379
|
blur: (ev: FocusEvent) => any;
|
381
380
|
input: (value: string) => any;
|
381
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
382
382
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
383
383
|
"update:inputValue": (value: string) => any;
|
384
384
|
"input-value-change": (value: string, ev: Event) => any;
|
@@ -440,9 +440,9 @@ declare const Select: {
|
|
440
440
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
441
441
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
442
442
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
443
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
444
443
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
445
444
|
onInput?: ((value: string) => any) | undefined;
|
445
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
446
446
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
447
447
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
448
448
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
@@ -465,9 +465,9 @@ declare const Select: {
|
|
465
465
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
466
466
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
467
467
|
onClear?: (() => any) | undefined;
|
468
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
469
468
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
470
469
|
onSearch?: ((value: string) => any) | undefined;
|
470
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
471
471
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
472
472
|
"onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
473
473
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -521,9 +521,9 @@ declare const Select: {
|
|
521
521
|
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
522
522
|
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
523
523
|
onClear?: (() => any) | undefined;
|
524
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
525
524
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
526
525
|
onSearch?: ((value: string) => any) | undefined;
|
526
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
527
527
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
528
528
|
"onUpdate:inputValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
529
529
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -539,9 +539,9 @@ declare const Select: {
|
|
539
539
|
"update:popupVisible": (value: boolean) => any;
|
540
540
|
"popup-visible-change": (value: boolean) => any;
|
541
541
|
clear: () => any;
|
542
|
-
remove: (index: string | number, ev: Event) => any;
|
543
542
|
select: (value: import('./type').SelectValue) => any;
|
544
543
|
search: (value: string) => any;
|
544
|
+
remove: (index: string | number, ev: Event) => any;
|
545
545
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
546
546
|
"update:inputValue": (value: import('./type').SelectValue) => any;
|
547
547
|
"input-value-change": (value: string) => any;
|
@@ -11,9 +11,9 @@ declare const __VLS_component: import('vue').DefineComponent<CountdownProps, {},
|
|
11
11
|
}, string, import('vue').PublicProps, Readonly<CountdownProps> & Readonly<{
|
12
12
|
onFinish?: (() => any) | undefined;
|
13
13
|
}>, {
|
14
|
-
title: string;
|
15
14
|
value: number;
|
16
15
|
start: boolean;
|
16
|
+
title: string;
|
17
17
|
format: string;
|
18
18
|
easeing: string;
|
19
19
|
valueStyle: import('vue').CSSProperties;
|
@@ -13,10 +13,10 @@ declare const __VLS_component: import('vue').DefineComponent<StatisticProps, {},
|
|
13
13
|
}, string, import('vue').PublicProps, Readonly<StatisticProps> & Readonly<{
|
14
14
|
onFinish?: (() => any) | undefined;
|
15
15
|
}>, {
|
16
|
-
title: string;
|
17
16
|
value: import('./type').StatisticValue;
|
18
17
|
start: boolean;
|
19
18
|
separator: string;
|
19
|
+
title: string;
|
20
20
|
placeholder: string;
|
21
21
|
animation: boolean;
|
22
22
|
format: string;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("./Statistic.vue2.js");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=require("./Statistic.vue2.js");;/* empty css */const t=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-1d5de805"]]);module.exports=t;
|
@@ -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/is.js"),a=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const o=require("../node_modules/b-tween/dist/b-tween.es.js"),s={class:"yc-statistic yc-statistic-countdown"},l={key:0,class:"yc-statistic-title"},i={class:"yc-statistic-content"},n={key:0,class:"yc-statistic-prefix"},r={key:1,class:"yc-statistic-suffix"},u={key:0,class:"yc-statistic-extra"},c=e.defineComponent({name:"Statistic",__name:"Statistic",props:{title:{default:""},value:{default:0},format:{default:"HH:mm:ss"},extra:{default:""},start:{type:Boolean,default:!0},easeing:{default:"quadOut"},precision:{default:0},separator:{default:""},showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{default:2e3},valueFrom:{default:void 0},placeholder:{default:""},valueStyle:{default:()=>({})},isCountdown:{type:Boolean,default:!1}},emits:["finish"],setup(c,{emit:d}){const m=c,f=d,{value:v,precision:p,format:y,start:x,valueFrom:
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/is.js"),a=require("../_shared/utils/time.js");require("../Empty/index.js");/* empty css */const o=require("../node_modules/b-tween/dist/b-tween.es.js"),s={class:"yc-statistic yc-statistic-countdown"},l={key:0,class:"yc-statistic-title"},i={class:"yc-statistic-content"},n={key:0,class:"yc-statistic-prefix"},r={key:1,class:"yc-statistic-suffix"},u={key:0,class:"yc-statistic-extra"},c=e.defineComponent({name:"Statistic",__name:"Statistic",props:{title:{default:""},value:{default:0},format:{default:"HH:mm:ss"},extra:{default:""},start:{type:Boolean,default:!0},easeing:{default:"quadOut"},precision:{default:0},separator:{default:""},showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{default:2e3},valueFrom:{default:void 0},placeholder:{default:""},valueStyle:{default:()=>({})},isCountdown:{type:Boolean,default:!1}},emits:["finish"],setup(c,{emit:d}){const m=c,f=d,{value:v,precision:p,format:y,start:x,valueFrom:S,placeholder:k,animation:B,animationDuration:h,easeing:N,isCountdown:C,showGroupSeparator:V}=e.toRefs(m),g=e.ref(),q=e.computed(()=>t.isUndefined(v.value)?k.value:w(v.value));e.watch([x,B,S,v],()=>{if(!x.value||!B.value||t.isUndefined(S.value)||!t.isNumber(v.value)||S.value-v.value==0)return;new o({from:{textContent:S.value},to:{textContent:v.value},duration:h.value,easeing:N.value,onUpdate:e=>{g.value.textContent=w(e.textContent)},onFinish(){f("finish")}}).start()},{immediate:!0});function w(e){if(t.isNumber(e)&&!C.value){const t=e.toFixed(p.value);return V.value?(e=>{let t=e.toString().split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")})(t):t}return C.value?a.formatSeconds(e,y.value):a.formatDate(e,y.value)}return(t,a)=>(e.openBlock(),e.createElementBlock("div",s,[t.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",i,[e.createElementVNode("div",{class:"yc-statistic-value",style:e.normalizeStyle(t.valueStyle)},[t.$slots.prefix?(e.openBlock(),e.createElementBlock("span",n,[e.renderSlot(t.$slots,"prefix",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("span",{class:"yc-statistic-value-integer",ref_key:"valueRef",ref:g},[e.renderSlot(t.$slots,"value",{},()=>[e.createTextVNode(e.toDisplayString(q.value),1)],!0)],512),t.$slots.suffix?(e.openBlock(),e.createElementBlock("span",r,[e.renderSlot(t.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0)],4),t.$slots.extra||t.extra?(e.openBlock(),e.createElementBlock("div",u,[e.renderSlot(t.$slots,"extra",{},()=>[e.createTextVNode(e.toDisplayString(t.extra),1)],!0)])):e.createCommentVNode("",!0)])]))}});module.exports=c;
|
package/lib/Statistic/index.d.ts
CHANGED
@@ -10,10 +10,10 @@ declare const Statistic: {
|
|
10
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
11
11
|
finish: () => any;
|
12
12
|
}, import('vue').PublicProps, {
|
13
|
-
title: string;
|
14
13
|
value: import('./type').StatisticValue;
|
15
14
|
start: boolean;
|
16
15
|
separator: string;
|
16
|
+
title: string;
|
17
17
|
placeholder: string;
|
18
18
|
animation: boolean;
|
19
19
|
format: string;
|
@@ -37,10 +37,10 @@ declare const Statistic: {
|
|
37
37
|
}, Readonly<import('./type').StatisticProps> & Readonly<{
|
38
38
|
onFinish?: (() => any) | undefined;
|
39
39
|
}>, {}, {}, {}, {}, {
|
40
|
-
title: string;
|
41
40
|
value: import('./type').StatisticValue;
|
42
41
|
start: boolean;
|
43
42
|
separator: string;
|
43
|
+
title: string;
|
44
44
|
placeholder: string;
|
45
45
|
animation: boolean;
|
46
46
|
format: string;
|
@@ -61,10 +61,10 @@ declare const Statistic: {
|
|
61
61
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
62
62
|
finish: () => any;
|
63
63
|
}, string, {
|
64
|
-
title: string;
|
65
64
|
value: import('./type').StatisticValue;
|
66
65
|
start: boolean;
|
67
66
|
separator: string;
|
67
|
+
title: string;
|
68
68
|
placeholder: string;
|
69
69
|
animation: boolean;
|
70
70
|
format: string;
|
@@ -85,9 +85,9 @@ declare const Statistic: {
|
|
85
85
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
86
86
|
finish: () => any;
|
87
87
|
}, import('vue').PublicProps, {
|
88
|
-
title: string;
|
89
88
|
value: number;
|
90
89
|
start: boolean;
|
90
|
+
title: string;
|
91
91
|
format: string;
|
92
92
|
easeing: string;
|
93
93
|
valueStyle: import('vue').CSSProperties;
|
@@ -102,9 +102,9 @@ declare const Statistic: {
|
|
102
102
|
}, Readonly<import('./type').CountdownProps> & Readonly<{
|
103
103
|
onFinish?: (() => any) | undefined;
|
104
104
|
}>, {}, {}, {}, {}, {
|
105
|
-
title: string;
|
106
105
|
value: number;
|
107
106
|
start: boolean;
|
107
|
+
title: string;
|
108
108
|
format: string;
|
109
109
|
easeing: string;
|
110
110
|
valueStyle: import('vue').CSSProperties;
|
@@ -118,9 +118,9 @@ declare const Statistic: {
|
|
118
118
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
119
119
|
finish: () => any;
|
120
120
|
}, string, {
|
121
|
-
title: string;
|
122
121
|
value: number;
|
123
122
|
start: boolean;
|
123
|
+
title: string;
|
124
124
|
format: string;
|
125
125
|
easeing: string;
|
126
126
|
valueStyle: import('vue').CSSProperties;
|
@@ -23,7 +23,7 @@ export type PaneNode = {
|
|
23
23
|
declare const _default: () => {
|
24
24
|
provide: (props: Props, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
25
|
computedActiveKey: import('vue').WritableComputedRef<any, TabKey>;
|
26
|
-
size: import('vue').ComputedRef<
|
26
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
27
27
|
direction: import('vue').ComputedRef<Direction>;
|
28
28
|
position: Ref<TabPositon, TabPositon>;
|
29
29
|
autoSwitch: Ref<boolean, boolean>;
|
@@ -20,8 +20,8 @@ declare const __VLS_component: import('vue').DefineComponent<TransferProps, {},
|
|
20
20
|
"onUpdate:selected"?: ((value: import('./type').TransferItemValue[]) => any) | undefined;
|
21
21
|
}>, {
|
22
22
|
disabled: boolean;
|
23
|
-
title: string[];
|
24
23
|
data: import('./type').TransferItem[];
|
24
|
+
title: string[];
|
25
25
|
modelValue: string[];
|
26
26
|
defaultValue: string[];
|
27
27
|
simple: boolean;
|
package/lib/Transfer/index.d.ts
CHANGED
@@ -17,8 +17,8 @@ declare const Transfer: {
|
|
17
17
|
"update:selected": (value: import('./type').TransferItemValue[]) => any;
|
18
18
|
}, import('vue').PublicProps, {
|
19
19
|
disabled: boolean;
|
20
|
-
title: string[];
|
21
20
|
data: import('./type').TransferItem[];
|
21
|
+
title: string[];
|
22
22
|
modelValue: string[];
|
23
23
|
defaultValue: string[];
|
24
24
|
simple: boolean;
|
@@ -44,8 +44,8 @@ declare const Transfer: {
|
|
44
44
|
"onUpdate:selected"?: ((value: import('./type').TransferItemValue[]) => any) | undefined;
|
45
45
|
}>, {}, {}, {}, {}, {
|
46
46
|
disabled: boolean;
|
47
|
-
title: string[];
|
48
47
|
data: import('./type').TransferItem[];
|
48
|
+
title: string[];
|
49
49
|
modelValue: string[];
|
50
50
|
defaultValue: string[];
|
51
51
|
simple: boolean;
|
@@ -74,8 +74,8 @@ declare const Transfer: {
|
|
74
74
|
"update:selected": (value: import('./type').TransferItemValue[]) => any;
|
75
75
|
}, string, {
|
76
76
|
disabled: boolean;
|
77
|
-
title: string[];
|
78
77
|
data: import('./type').TransferItem[];
|
78
|
+
title: string[];
|
79
79
|
modelValue: string[];
|
80
80
|
defaultValue: string[];
|
81
81
|
simple: boolean;
|
package/lib/Trigger/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-93ea11ef"]]);module.exports=r;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const o=require("../_shared/utils/is.js");require("../_shared/utils/time.js");const t=require("../_shared/utils/vue-utils.js"),n=require("../_shared/utils/global-config.js"),r=require("./hooks/useTriggerVisible.js"),l=require("./hooks/useTriggerPosition.js");,/* empty css */;/* empty css */const u=require("../_shared/components/PreventFocus.vue.js");;/* empty css */const a=e.defineComponent({name:"Trigger",inheritAttrs:!1,__name:"index",props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{default:"hover"},position:{default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{default:0},popupTranslate:{default:()=>[0,0]},showArrow:{type:Boolean,default:!1},popuphoverStay:{type:Boolean},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{default:""},contentStyle:{default:()=>({})},arrowClass:{default:""},arrowStyle:{default:()=>({})},animationName:{default:"fade"},duration:{default:400},mouseEnterDelay:{default:100},mouseLeaveDelay:{default:100},focusDelay:{default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},popupContainer:{default:void 0},renderToBody:{type:Boolean,default:!0},autoFitPosition:{type:Boolean,default:!0},updateAtScroll:{type:Boolean,default:void 0},preventFocus:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:void 0},scrollToCloseDistance:{default:1},needTransformOrigin:{type:Boolean,default:!1},autoSetPosition:{type:Boolean,default:!1},onTriggerMouseenter:{},onTriggerMouseleave:{},onTriggerMouseclick:{},onTriggerFocus:{},onTriggerBlur:{},onClickOutSide:{}},emits:["update:popupVisible","popup-visible-change","show","hide"],setup(a,{expose:s,emit:i}){const d=e.useSlots(),p=a,f=i,{popupContainer:c}=e.toRefs(p),{popupContainer:m}=n.getGlobalConfig(p),y=e.ref(),g=e.ref(),v=e.ref(),h=e.computed(()=>{var e;return t.findFirstLegitChild((null==(e=d.default)?void 0:e.call(d))||[])}),{computedVisible:B,mouseX:C,mouseY:k,handleClickEvent:T,handleMouseenter:w,handleMouseleave:b,handleFocus:_,handleBlur:M}=r({props:p,emits:f,popupRef:y,triggerRef:g}),{position:S,popupStyle:q,contentStyle:j,arrowStyle:F}=l({props:p,computedVisible:B,popupRef:y,triggerRef:g,arrowRef:v,mouseX:C,mouseY:k});return s({hide(){B.value=!1},show(){B.value=!0},updatePosition(e,o){C.value=e,k.value=o}}),(t,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(h.value),{ref_key:"triggerRef",ref:g,onClick:n[0]||(n[0]=o=>e.unref(T)(o,"click")),onContextmenu:n[1]||(n[1]=e.withModifiers(o=>e.unref(T)(o,"contextMenu"),["prevent"])),onMouseenter:e.unref(w),onMouseleave:e.unref(b),onFocus:e.unref(_),onBlur:e.unref(M)},null,40,["onMouseenter","onMouseleave","onFocus","onBlur"])),(e.openBlock(),e.createBlock(e.Teleport,{to:e.unref(m),disabled:!t.renderToBody},[e.createVNode(e.Transition,{name:t.animationName,duration:t.duration,onAfterLeave:n[2]||(n[2]=e=>t.$emit("hide")),onAfterEnter:n[3]||(n[3]=e=>t.$emit("show"))},{default:e.withCtx(()=>[!t.unmountOnClose||e.unref(B)&&!t.disabled?e.withDirectives((e.openBlock(),e.createBlock(e.unref(u),{key:0,"prevent-focus":t.preventFocus,class:e.normalizeClass(["yc-trigger",`yc-trigger-position-${e.unref(S)}`,{"yc-trigger-transform-origin":t.needTransformOrigin,"yc-trigger-absolute":!e.unref(o.isUndefined)(e.unref(c))},t.$attrs.class]),style:e.normalizeStyle({...e.unref(q),...t.$attrs.style||{}}),ref_key:"popupRef",ref:y,onMouseenter:e.unref(w),onMouseleave:e.unref(b)},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["yc-trigger-content",t.contentClass]),style:e.normalizeStyle(e.unref(j))},[e.renderSlot(t.$slots,"content",{},void 0,!0)],6),t.showArrow?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["yc-trigger-arrow",t.arrowClass]),style:e.normalizeStyle(e.unref(F)),ref_key:"arrowRef",ref:v},null,6)):e.createCommentVNode("",!0)]),_:3},8,["prevent-focus","class","style","onMouseenter","onMouseleave"])),[[e.vShow,e.unref(B)&&!t.disabled]]):e.createCommentVNode("",!0)]),_:3},8,["name","duration"])],8,["to","disabled"]))],64))}});module.exports=a;
|