yc-design-vue 1.0.5 → 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/BackTop/index.vue.js +1 -1
- package/es/BackTop/index.vue2.js +0 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/Cascader/Cascader.vue.js +1 -1
- package/es/Cascader/Cascader.vue2.js +0 -2
- 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/Drawer/index.js +0 -1
- 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/Menu/hooks/useContext.js +0 -1
- 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/Modal/index.js +0 -1
- 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/Progress/ProgressCircle.vue2.js +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/IconExclamation.vue.js +1 -27
- package/es/_shared/icons/IconExclamation.vue2.js +27 -1
- 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/fn.js +0 -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/BackTop/index.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/Cascader/Cascader.vue.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/Progress/ProgressCircle.vue2.js +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/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.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
package/lib/Modal/index.d.ts
CHANGED
@@ -25,10 +25,11 @@ declare const Modal: {
|
|
25
25
|
unmountOnClose: boolean;
|
26
26
|
popupContainer: import('..').PopupContainer;
|
27
27
|
renderToBody: boolean;
|
28
|
+
draggable: boolean;
|
29
|
+
title: string;
|
28
30
|
width: number | string;
|
29
31
|
visible: boolean;
|
30
32
|
footer: boolean;
|
31
|
-
title: string;
|
32
33
|
mask: boolean;
|
33
34
|
defaultVisible: boolean;
|
34
35
|
closable: boolean;
|
@@ -46,7 +47,6 @@ declare const Modal: {
|
|
46
47
|
modalClass: import('../_shared/type').ClassName;
|
47
48
|
modalStyle: import('vue').CSSProperties;
|
48
49
|
escToClose: boolean;
|
49
|
-
draggable: boolean;
|
50
50
|
fullscreen: boolean;
|
51
51
|
maskAnimationName: string;
|
52
52
|
modalAnimationName: string;
|
@@ -78,10 +78,11 @@ declare const Modal: {
|
|
78
78
|
unmountOnClose: boolean;
|
79
79
|
popupContainer: import('..').PopupContainer;
|
80
80
|
renderToBody: boolean;
|
81
|
+
draggable: boolean;
|
82
|
+
title: string;
|
81
83
|
width: number | string;
|
82
84
|
visible: boolean;
|
83
85
|
footer: boolean;
|
84
|
-
title: string;
|
85
86
|
mask: boolean;
|
86
87
|
defaultVisible: boolean;
|
87
88
|
closable: boolean;
|
@@ -99,7 +100,6 @@ declare const Modal: {
|
|
99
100
|
modalClass: import('../_shared/type').ClassName;
|
100
101
|
modalStyle: import('vue').CSSProperties;
|
101
102
|
escToClose: boolean;
|
102
|
-
draggable: boolean;
|
103
103
|
fullscreen: boolean;
|
104
104
|
maskAnimationName: string;
|
105
105
|
modalAnimationName: string;
|
@@ -133,10 +133,11 @@ declare const Modal: {
|
|
133
133
|
unmountOnClose: boolean;
|
134
134
|
popupContainer: import('..').PopupContainer;
|
135
135
|
renderToBody: boolean;
|
136
|
+
draggable: boolean;
|
137
|
+
title: string;
|
136
138
|
width: number | string;
|
137
139
|
visible: boolean;
|
138
140
|
footer: boolean;
|
139
|
-
title: string;
|
140
141
|
mask: boolean;
|
141
142
|
defaultVisible: boolean;
|
142
143
|
closable: boolean;
|
@@ -154,7 +155,6 @@ declare const Modal: {
|
|
154
155
|
modalClass: import('../_shared/type').ClassName;
|
155
156
|
modalStyle: import('vue').CSSProperties;
|
156
157
|
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
|
-
|
4
|
+
title: import('../_shared/type').RenderContent;
|
5
|
+
id: string;
|
5
6
|
style: import('vue').CSSProperties;
|
7
|
+
content: import('../_shared/type').RenderContent;
|
6
8
|
icon: import('vue').RenderFunction;
|
7
9
|
type: import('./type').NotificationType;
|
8
10
|
footer: import('vue').RenderFunction;
|
9
|
-
title: import('../_shared/type').RenderContent;
|
10
11
|
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
|
-
|
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"]>;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconCheck.vue.js"),t=require("../_shared/icons/IconExclamation.
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const r=require("../_shared/utils/fn.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const o=require("../_shared/icons/IconCheck.vue.js"),t=require("../_shared/icons/IconExclamation.vue2.js"),s=require("../_shared/constants/index.js"),c=["aria-valuenow"],a=["viewBox"],n={key:0},u=["id"],i=["offset","stop-color"],m=["cx","cy","r","stroke-width"],d=["cx","cy","r","stroke-width"],p={key:2,class:e.normalizeClass("yc-progress-circle-text")},k=e.defineComponent({__name:"ProgressCircle",props:{type:{},percent:{},status:{},size:{},text:{},showText:{type:Boolean},width:{},strokeWidth:{},pathStrokeWidth:{},color:{},trackColor:{}},setup(k){const v=k,{size:y,width:f,color:h,strokeWidth:x,pathStrokeWidth:B}=e.toRefs(v);let _=0;const g=e.computed(()=>l.isObject(h.value)),C=e.computed(()=>x.value??("mini"===y.value?f.value/2:{mini:4,small:3,medium:4,large:4}[y.value])),E=e.computed(()=>B.value?B.value:"mini"===y.value?C.value:Math.max(2,C.value-2)),w=e.computed(()=>(f.value-C.value)/2),j=e.computed(()=>2*Math.PI*w.value),z=e.computed(()=>f.value/2),O=e.computed(()=>(_+=1,`yc-progress-circle-linear-gradient-${_}`));return(k,v)=>(e.openBlock(),e.createElementBlock("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":k.percent,class:e.normalizeClass("yc-progress-circle-wrapper"),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(f)),height:e.unref(r.valueToPx)(e.unref(f))})},["circle"===k.type&&"mini"===e.unref(y)&&"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:0,style:e.normalizeStyle({fontSize:e.unref(f)-2,color:e.unref(h)??e.unref(s.TYPE_ICON_COLOR_MAP).success})},null,8,["style"])):(e.openBlock(),e.createElementBlock("svg",{key:1,viewBox:`0 0 ${e.unref(f)} ${e.unref(f)}`,class:e.normalizeClass("yc-progress-circle-svg")},[e.unref(l.isObject)(e.unref(h))?(e.openBlock(),e.createElementBlock("defs",n,[e.createElementVNode("linearGradient",{id:O.value,x1:"0",y1:"1",x2:"0",y2:"0"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(e.unref(h)),r=>(e.openBlock(),e.createElementBlock("stop",{key:r,offset:r,"stop-color":e.unref(h)[r]},null,8,i))),128))],8,u)])):e.createCommentVNode("",!0),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bg"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":E.value,style:e.normalizeStyle({stroke:k.trackColor})},null,12,m),e.createElementVNode("circle",{class:e.normalizeClass("yc-progress-circle-bar"),fill:"none",cx:z.value,cy:z.value,r:w.value,"stroke-width":C.value,style:e.normalizeStyle({stroke:g.value?`url(#${O.value})`:e.unref(h),strokeDasharray:j.value,strokeDashoffset:(k.percent>=1?0:1-k.percent)*j.value})},null,12,d)],8,a)),k.showText&&"mini"!==e.unref(y)?(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(k.$slots,"text",{percent:k.percent},()=>["danger"===k.status?(e.openBlock(),e.createBlock(e.unref(t),{key:0,color:e.unref(s.TYPE_ICON_COLOR_MAP).error},null,8,["color"])):"success"===k.status?(e.openBlock(),e.createBlock(e.unref(o),{key:1,color:e.unref(s.TYPE_ICON_COLOR_MAP).success},null,8,["color"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(k.text),1)],64))],!0)])):e.createCommentVNode("",!0)],12,c))}});module.exports=k;
|
@@ -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("./IconExclamation.vue2.js");module.exports=e;
|