yc-design-vue 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Alert/index.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/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- 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 +2 -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 -2
- package/es/List/index.d.ts +1 -1
- 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/hooks/useModalClose.d.ts +1 -1
- package/es/Modal/hooks/useModalClose.js +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/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/TransferPanel.vue2.js +2 -2
- package/es/Transfer/index.d.ts +3 -3
- package/es/_shared/icons/IconDelete.vue.js +16 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -16
- package/es/_shared/icons/IconSearch.vue.js +16 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -16
- package/es/_shared/icons/IconSeparator.vue.js +16 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -16
- package/es/_shared/utils/dom.d.ts +1 -1
- package/es/_shared/utils/global-config.d.ts +7 -5
- package/es/_shared/utils/global-config.js +5 -3
- 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/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- 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/Image/ImagePreview.vue2.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 -2
- package/lib/List/index.d.ts +1 -1
- 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/hooks/useModalClose.d.ts +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- 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/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/TransferPanel.vue2.js +1 -1
- package/lib/Transfer/index.d.ts +3 -3
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +1 -1
- package/lib/_shared/utils/global-config.d.ts +7 -5
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/index.d.ts +3 -3
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -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
|
-
|
9
|
+
title: import('../_shared/type').RenderContent;
|
10
|
+
id: string;
|
10
11
|
style: import('vue').CSSProperties;
|
12
|
+
content: import('../_shared/type').RenderContent;
|
11
13
|
icon: import('vue').RenderFunction;
|
12
14
|
type: NotificationType;
|
13
15
|
footer: import('vue').RenderFunction;
|
14
|
-
title: import('../_shared/type').RenderContent;
|
15
16
|
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
|
-
|
32
|
+
title: import('../_shared/type').RenderContent;
|
33
|
+
id: string;
|
33
34
|
style: import('vue').CSSProperties;
|
35
|
+
content: import('../_shared/type').RenderContent;
|
34
36
|
icon: import('vue').RenderFunction;
|
35
37
|
type: NotificationType;
|
36
38
|
footer: import('vue').RenderFunction;
|
37
|
-
title: import('../_shared/type').RenderContent;
|
38
39
|
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
|
-
|
52
|
+
title: import('../_shared/type').RenderContent;
|
53
|
+
id: string;
|
53
54
|
style: import('vue').CSSProperties;
|
55
|
+
content: import('../_shared/type').RenderContent;
|
54
56
|
icon: import('vue').RenderFunction;
|
55
57
|
type: NotificationType;
|
56
58
|
footer: import('vue').RenderFunction;
|
57
|
-
title: import('../_shared/type').RenderContent;
|
58
59
|
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:
|
17
|
+
size: import('vue').ComputedRef<string | number | 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
|
-
content: string;
|
26
25
|
title: string;
|
26
|
+
content: 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
|
-
content: string;
|
52
51
|
title: string;
|
52
|
+
content: 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
|
-
content: string;
|
78
77
|
title: string;
|
78
|
+
content: 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
|
-
content: string;
|
29
28
|
title: string;
|
29
|
+
content: 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;
|
269
270
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
270
271
|
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: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => 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;
|
297
298
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
298
299
|
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;
|
310
311
|
blur: (ev: FocusEvent) => any;
|
311
312
|
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;
|
374
375
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
375
376
|
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;
|
400
401
|
select: (value: import('./type').SelectValue) => any;
|
401
402
|
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;
|
414
415
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
415
416
|
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;
|
719
720
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
720
721
|
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: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => 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;
|
747
748
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
748
749
|
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;
|
760
761
|
blur: (ev: FocusEvent) => any;
|
761
762
|
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;
|
824
825
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
825
826
|
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;
|
15
16
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
16
17
|
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;
|
33
34
|
select: (value: import('./type').SelectValue) => any;
|
34
35
|
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;
|
338
339
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
339
340
|
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: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => 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;
|
366
367
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
367
368
|
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;
|
379
380
|
blur: (ev: FocusEvent) => any;
|
380
381
|
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;
|
443
444
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
444
445
|
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;
|
468
469
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
469
470
|
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;
|
524
525
|
onSelect?: ((value: import('./type').SelectValue) => any) | undefined;
|
525
526
|
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;
|
542
543
|
select: (value: import('./type').SelectValue) => any;
|
543
544
|
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;
|
14
15
|
value: number;
|
15
16
|
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;
|
16
17
|
value: import('./type').StatisticValue;
|
17
18
|
start: boolean;
|
18
19
|
separator: string;
|
19
|
-
title: string;
|
20
20
|
placeholder: string;
|
21
21
|
animation: boolean;
|
22
22
|
format: string;
|
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;
|
13
14
|
value: import('./type').StatisticValue;
|
14
15
|
start: boolean;
|
15
16
|
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;
|
40
41
|
value: import('./type').StatisticValue;
|
41
42
|
start: boolean;
|
42
43
|
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;
|
64
65
|
value: import('./type').StatisticValue;
|
65
66
|
start: boolean;
|
66
67
|
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;
|
88
89
|
value: number;
|
89
90
|
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;
|
105
106
|
value: number;
|
106
107
|
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;
|
121
122
|
value: number;
|
122
123
|
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:
|
26
|
+
size: import('vue').ComputedRef<string | number | 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
|
-
data: import('./type').TransferItem[];
|
24
23
|
title: string[];
|
24
|
+
data: import('./type').TransferItem[];
|
25
25
|
modelValue: string[];
|
26
26
|
defaultValue: string[];
|
27
27
|
simple: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/icons/IconDelete.
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js"),require("../_shared/utils/time.js");const l=require("../_shared/utils/global-config.js");;/* empty css */const t=require("../_shared/icons/IconClose.vue.js"),a=require("../_shared/icons/IconDelete.vue.js"),r=require("../_shared/icons/IconSearch.vue.js"),n=require("./hooks/useContext.js"),o=require("../Checkbox/index.js"),u=require("../Scrollbar/index.js"),c=require("../Input/index.js"),s=require("../_shared/components/IconButton.vue.js");;/* empty css */const i={class:"yc-transfer-view"},v={class:"yc-transfer-view-header"},d={class:"yc-transfer-view-header-title"},m={class:"yc-transfer-view-header-count"},f={key:0,class:"yc-transfer-view-search"},p={class:"yc-transfer-view-body"},k={key:1,role:"list",class:"yc-transfer-list"},h=["onClick"],y={class:"yc-transfer-list-item-content text-ellipsis"},g=e.defineComponent({__name:"TransferPanel",props:{type:{}},setup(g){const B=g,{type:C}=e.toRefs(B),{renderEmpty:V}=l.getGlobalConfig(),{computedValue:x,computedSelected:N,targetChecked:b,sourceChecked:_,sourceOptions:w,targetOptions:E,disabled:S,oneWay:j,showSearch:q,showSelectAll:D,simple:I,sourceInputSearchProps:T,targetInputSearchProps:F,slots:P,title:z,emits:L}=n().inject(),O=e.ref(""),A=e.computed(()=>("source"==C.value?w.value:E.value).filter(e=>{var l;return null==(l=e.label)?void 0:l.toLowerCase().includes(O.value.toLowerCase())})),U=e.computed(()=>"source"==C.value?_.value:b.value),G=e.computed(()=>"source"==C.value?T.value:F.value),K=e.computed(()=>"source"==C.value?z.value[0]:z.value[1]),R=e.computed({get:()=>!!U.value.length&&U.value.length==A.value.length,set(e){if(e)N.value=[...new Set([...N.value,...A.value.map(e=>e.value)])];else{const e=Object.fromEntries(A.value.map(e=>[e.value,e]));N.value=N.value.filter(l=>!e[l])}}}),W=e.computed(()=>!!U.value.length&&U.value.length<=A.value.length),$=()=>{!S.value&&x.value.length&&(x.value=[])},H=()=>{var e;return null==(e=P["source"==C.value?"source-title":"target-title"])?void 0:e.call(P,{countTotal:"source"==C.value?w.value.length:E.value.length,countSelected:"source"==C.value?_.value.length:b.value.length,searchValue:O.value,checked:R.value,indeterminate:W.value,onSelectAllChange:e=>{R.value=e},onClear:$})},J=()=>{var e;return null==(e=P[C.value])?void 0:e.call(P,{selectedKeys:U.value,data:A.value,onSelect:e=>{N.value=e}})},M=e=>()=>{var l;return null==(l=P.item)?void 0:l.call(P,e)};return(l,n)=>(e.openBlock(),e.createElementBlock("div",i,[e.createElementVNode("div",v,[e.unref(P)[`${e.unref(C)}-title`]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(H),{key:0})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",d,[!e.unref(D)||e.unref(I)||e.unref(j)&&"target"==e.unref(C)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(K.value),1)],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,modelValue:R.value,"onUpdate:modelValue":n[0]||(n[0]=e=>R.value=e),indeterminate:W.value,disabled:!A.value.length||e.unref(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(K.value),1)]),_:1},8,["modelValue","indeterminate","disabled"]))]),e.createElementVNode("span",m,[e.unref(I)||e.unref(j)&&"target"==e.unref(C)?"target"!=e.unref(C)||e.unref(I)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s),{key:1,size:14,onClick:$},{default:e.withCtx(()=>[e.createVNode(e.unref(a))]),_:1})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(U.value.length)+" / "+e.toDisplayString(A.value.length),1)],64))])],64))]),e.unref(q)?(e.openBlock(),e.createElementBlock("div",f,[e.createVNode(e.unref(c),e.mergeProps({modelValue:O.value,"onUpdate:modelValue":n[1]||(n[1]=e=>O.value=e)},G.value,{onInput:n[2]||(n[2]=l=>e.unref(L)("search",l,e.unref(C)))}),{suffix:e.withCtx(()=>[e.createVNode(e.unref(r))]),_:1},16,["modelValue"])])):e.createCommentVNode("",!0),e.createElementVNode("div",p,[A.value.length?(e.openBlock(),e.createBlock(e.unref(u),{key:0},{default:e.withCtx(()=>[e.unref(P)[e.unref(C)]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J),{key:0})):(e.openBlock(),e.createElementBlock("div",k,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(A.value,l=>(e.openBlock(),e.createElementBlock("div",{key:l.value,role:"listitem",class:e.normalizeClass(["yc-transfer-list-item",{"yc-transfer-list-item-disabled":l.disabled||e.unref(S)}]),onClick:e=>(e=>{const{value:l}=e;S.value||e.disabled||(j.value&&"source"!=C.value||I.value)&&(x.value="source"==C.value?[...x.value,l]:x.value.filter(e=>e!=l))})(l)},[e.unref(j)&&(!e.unref(j)||"source"!=e.unref(C))||e.unref(I)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("span",y,[e.unref(P).item?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(l)),{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(P).item?"":l.label),1)]),"target"!=e.unref(C)||e.unref(I)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(s),{key:0,"hover-size":20},{default:e.withCtx(()=>[e.createVNode(e.unref(t))]),_:1}))],64)):(e.openBlock(),e.createBlock(e.unref(o.default),{key:0,"model-value":U.value.includes(l.value),disabled:l.disabled||e.unref(S),onChange:e=>((e,l)=>{N.value=e?[...N.value,l]:N.value.filter(e=>e!=l),L("select",N.value)})(e,l.value)},{default:e.withCtx(()=>[e.unref(P).item?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(M(l)),{key:0})):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(P).item?"":l.label),1)]),_:2},1032,["model-value","disabled","onChange"]))],10,h))),128))]))]),_:1})):e.createCommentVNode("",!0),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(V)("Transfer"))))])]))}});module.exports=g;
|
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
|
-
data: import('./type').TransferItem[];
|
21
20
|
title: string[];
|
21
|
+
data: import('./type').TransferItem[];
|
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
|
-
data: import('./type').TransferItem[];
|
48
47
|
title: string[];
|
48
|
+
data: import('./type').TransferItem[];
|
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
|
-
data: import('./type').TransferItem[];
|
78
77
|
title: string[];
|
78
|
+
data: import('./type').TransferItem[];
|
79
79
|
modelValue: string[];
|
80
80
|
defaultValue: string[];
|
81
81
|
simple: boolean;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconDelete",setup:o=>(o,m)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>m[0]||(m[0]=[e.createElementVNode("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconDelete.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconSearch",setup:o=>(o,r)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>r[0]||(r[0]=[e.createElementVNode("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconSearch.vue.js");module.exports=e;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("
|
1
|
+
"use strict";const e=require("vue"),t=require("../components/Icon.vue2.js"),o=e.defineComponent({__name:"IconSeparator",setup:o=>(o,r)=>(e.openBlock(),e.createBlock(t,e.normalizeProps(e.guardReactiveProps(o.$attrs)),{default:e.withCtx(()=>r[0]||(r[0]=[e.createElementVNode("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)])),_:1,__:[0]},16))});module.exports=o;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue
|
1
|
+
"use strict";const e=require("./IconSeparator.vue.js");module.exports=e;
|
@@ -18,7 +18,7 @@ export declare const findFirstScrollableParent: (element?: HTMLElement) => HTMLE
|
|
18
18
|
*/
|
19
19
|
export declare const calculateEllipsis: (originElement: HTMLElement, ellipsisConfig: EllipsisConfig | undefined, operations: (HTMLElement | HTMLElement[] | null) | undefined, fullText: string) => {
|
20
20
|
tooltip?: {
|
21
|
-
type?: "
|
21
|
+
type?: "popover" | "tooltip" | undefined;
|
22
22
|
props?: Record<string, any> | undefined;
|
23
23
|
title: string;
|
24
24
|
} | undefined;
|
@@ -11,14 +11,15 @@ export interface ConfigProviderProvide {
|
|
11
11
|
exchangeTime: Ref<boolean>;
|
12
12
|
slots: Partial<ConfigconfigSlots>;
|
13
13
|
}
|
14
|
+
type ValueType = string | undefined | number;
|
14
15
|
export declare const getGlobalConfig: (props?: Props) => {
|
15
16
|
slots: Partial<ConfigconfigSlots>;
|
16
17
|
zIndex: Ref<number, number>;
|
17
|
-
size:
|
18
|
-
updateAtScroll:
|
19
|
-
scrollToClose:
|
20
|
-
popupContainer:
|
21
|
-
exchangeTime:
|
18
|
+
size: import('vue').ComputedRef<ValueType>;
|
19
|
+
updateAtScroll: import('vue').ComputedRef<ValueType>;
|
20
|
+
scrollToClose: import('vue').ComputedRef<ValueType>;
|
21
|
+
popupContainer: import('vue').ComputedRef<ValueType>;
|
22
|
+
exchangeTime: import('vue').ComputedRef<ValueType>;
|
22
23
|
renderEmpty: (name: EmptyComponent) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
23
24
|
[key: string]: any;
|
24
25
|
}> | (() => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
@@ -28,3 +29,4 @@ export declare const getGlobalConfig: (props?: Props) => {
|
|
28
29
|
[key: string]: any;
|
29
30
|
}> | (() => VNode[]);
|
30
31
|
};
|
32
|
+
export {};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("./dom.js");const o=require("./is.js");require("./time.js");const r=require("../../Empty/index.js");;/* empty css */const n=require("../icons/IconLoading.vue.js"),
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue");require("../../node_modules/tinycolor2/esm/tinycolor.js"),require("./dom.js");const o=require("./is.js");require("./time.js");const r=require("../../Empty/index.js");;/* empty css */const n=require("../icons/IconLoading.vue.js"),l="config-props",i=(r,n)=>e.computed(()=>{var e;return o.isUndefined(null==r?void 0:r.value)||o.isString(null==r?void 0:r.value)&&!(null==(e=null==r?void 0:r.value)?void 0:e.length)?n.value:r.value});exports.CONFIG_PROVIDER_PROVIDE_KEY=l,exports.getGlobalConfig=(o={})=>{const{slots:t,zIndex:s,size:u,updateAtScroll:c,scrollToClose:a,exchangeTime:d,popupContainer:p}=e.inject(l,{zIndex:e.ref(1001),size:e.ref("medium"),updateAtScroll:e.ref(!0),scrollToClose:e.ref(!1),exchangeTime:e.ref(!0),popupContainer:e.ref("body"),slots:{}}),{size:m,updateAtScroll:v,scrollToClose:g,exchangeTime:f,popupContainer:x}=e.toRefs(e.isReactive(o)?o:e.reactive(o));return{slots:t,zIndex:s,size:i(m,u),updateAtScroll:i(v,c),scrollToClose:i(g,a),popupContainer:i(x,p),exchangeTime:i(f,d),renderEmpty:e=>t.empty?()=>{var o;return null==(o=t.empty)?void 0:o.call(t,{component:e})}:r,renderLoading:()=>t.loading?t.loading:n}};
|
package/lib/index.d.ts
CHANGED
@@ -420,9 +420,9 @@ declare const _default: {
|
|
420
420
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
421
421
|
finish: () => any;
|
422
422
|
}, import('vue').PublicProps, {
|
423
|
+
title: string;
|
423
424
|
value: number;
|
424
425
|
start: boolean;
|
425
|
-
title: string;
|
426
426
|
format: string;
|
427
427
|
easeing: string;
|
428
428
|
valueStyle: import('vue').CSSProperties;
|
@@ -437,9 +437,9 @@ declare const _default: {
|
|
437
437
|
}, Readonly<import('./Statistic').CountdownProps> & Readonly<{
|
438
438
|
onFinish?: (() => any) | undefined;
|
439
439
|
}>, {}, {}, {}, {}, {
|
440
|
+
title: string;
|
440
441
|
value: number;
|
441
442
|
start: boolean;
|
442
|
-
title: string;
|
443
443
|
format: string;
|
444
444
|
easeing: string;
|
445
445
|
valueStyle: import('vue').CSSProperties;
|
@@ -453,9 +453,9 @@ declare const _default: {
|
|
453
453
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
454
454
|
finish: () => any;
|
455
455
|
}, string, {
|
456
|
+
title: string;
|
456
457
|
value: number;
|
457
458
|
start: boolean;
|
458
|
-
title: string;
|
459
459
|
format: string;
|
460
460
|
easeing: string;
|
461
461
|
valueStyle: import('vue').CSSProperties;
|