vft 0.0.482 → 0.0.483
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/dist/index.css +1 -1
- package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/es/components/autocomplete/index.d.ts +6 -6
- package/es/components/button/index.d.ts +9 -9
- package/es/components/horizontal-menu/horizontal-menu.vue.d.ts +20 -4
- package/es/components/horizontal-menu/horizontal-menu.vue2.js +29 -29
- package/es/components/horizontal-menu/index.d.ts +20 -4
- package/es/components/menu/index.d.ts +28 -7
- package/es/components/menu/menu-item-group.vue.d.ts +2 -4
- package/es/components/menu/menu-item.vue.d.ts +1 -17
- package/es/components/menu/menu.vue.d.ts +3 -28
- package/es/components/menu/menu.vue2.js +81 -76
- package/es/components/menu/sub-menu.vue.d.ts +1 -19
- package/es/components/menu/types.d.ts +64 -0
- package/es/components/popconfirm/index.d.ts +15 -15
- package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/components/select/index.d.ts +4 -4
- package/es/components/select/select.vue.d.ts +4 -4
- package/es/components/select/useSelect.d.ts +4 -4
- package/es/components/side-menu/index.d.ts +55 -4
- package/es/components/side-menu/side-menu.vue.d.ts +20 -3
- package/es/components/side-menu/side-menu.vue2.js +166 -139
- package/es/components/side-menu/types.d.ts +13 -2
- package/es/package.json.d.ts +1 -1
- package/es/package.json.js +1 -1
- package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
- package/lib/components/autocomplete/index.d.ts +6 -6
- package/lib/components/button/index.d.ts +9 -9
- package/lib/components/horizontal-menu/horizontal-menu.vue.d.ts +20 -4
- package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
- package/lib/components/horizontal-menu/index.d.ts +20 -4
- package/lib/components/menu/index.d.ts +28 -7
- package/lib/components/menu/menu-item-group.vue.d.ts +2 -4
- package/lib/components/menu/menu-item.vue.d.ts +1 -17
- package/lib/components/menu/menu.vue.d.ts +3 -28
- package/lib/components/menu/menu.vue2.cjs +1 -1
- package/lib/components/menu/sub-menu.vue.d.ts +1 -19
- package/lib/components/menu/types.d.ts +64 -0
- package/lib/components/popconfirm/index.d.ts +15 -15
- package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
- package/lib/components/select/index.d.ts +4 -4
- package/lib/components/select/select.vue.d.ts +4 -4
- package/lib/components/select/useSelect.d.ts +4 -4
- package/lib/components/side-menu/index.d.ts +55 -4
- package/lib/components/side-menu/side-menu.vue.d.ts +20 -3
- package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
- package/lib/components/side-menu/types.d.ts +13 -2
- package/lib/package.json.cjs +1 -1
- package/lib/package.json.d.ts +1 -1
- package/package.json +5 -5
- package/theme-style/index.css +1 -1
- package/theme-style/src/menu.scss +54 -0
- package/theme-style/vft-menu.css +1 -1
- package/web-types.json +1 -1
|
@@ -62,9 +62,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
62
62
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
63
63
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
64
64
|
readonly effect?: "light" | "dark" | undefined;
|
|
65
|
-
readonly visible?: boolean | null | undefined;
|
|
66
65
|
readonly teleported?: boolean | undefined;
|
|
67
66
|
readonly open?: boolean | undefined;
|
|
67
|
+
readonly visible?: boolean | null | undefined;
|
|
68
68
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
69
69
|
readonly arrowOffset?: number | undefined;
|
|
70
70
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -480,9 +480,9 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
480
480
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
481
481
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
482
482
|
readonly effect?: "light" | "dark" | undefined;
|
|
483
|
-
readonly visible?: boolean | null | undefined;
|
|
484
483
|
readonly teleported?: boolean | undefined;
|
|
485
484
|
readonly open?: boolean | undefined;
|
|
485
|
+
readonly visible?: boolean | null | undefined;
|
|
486
486
|
readonly trigger?: import("vft/es/components/tooltip").TooltipTriggerType | undefined;
|
|
487
487
|
readonly arrowOffset?: number | undefined;
|
|
488
488
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -85,9 +85,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
85
85
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
86
86
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
87
87
|
readonly effect?: "light" | "dark" | undefined;
|
|
88
|
-
readonly visible?: boolean | null | undefined;
|
|
89
88
|
readonly teleported?: boolean | undefined;
|
|
90
89
|
readonly open?: boolean | undefined;
|
|
90
|
+
readonly visible?: boolean | null | undefined;
|
|
91
91
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
92
92
|
readonly arrowOffset?: number | undefined;
|
|
93
93
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -503,9 +503,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
503
503
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
504
504
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
505
505
|
readonly effect?: "light" | "dark" | undefined;
|
|
506
|
-
readonly visible?: boolean | null | undefined;
|
|
507
506
|
readonly teleported?: boolean | undefined;
|
|
508
507
|
readonly open?: boolean | undefined;
|
|
508
|
+
readonly visible?: boolean | null | undefined;
|
|
509
509
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
510
510
|
readonly arrowOffset?: number | undefined;
|
|
511
511
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1006,9 +1006,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1006
1006
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1007
1007
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1008
1008
|
readonly effect?: "light" | "dark" | undefined;
|
|
1009
|
-
readonly visible?: boolean | null | undefined;
|
|
1010
1009
|
readonly teleported?: boolean | undefined;
|
|
1011
1010
|
readonly open?: boolean | undefined;
|
|
1011
|
+
readonly visible?: boolean | null | undefined;
|
|
1012
1012
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1013
1013
|
readonly arrowOffset?: number | undefined;
|
|
1014
1014
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1424,9 +1424,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1424
1424
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1425
1425
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1426
1426
|
readonly effect?: "light" | "dark" | undefined;
|
|
1427
|
-
readonly visible?: boolean | null | undefined;
|
|
1428
1427
|
readonly teleported?: boolean | undefined;
|
|
1429
1428
|
readonly open?: boolean | undefined;
|
|
1429
|
+
readonly visible?: boolean | null | undefined;
|
|
1430
1430
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1431
1431
|
readonly arrowOffset?: number | undefined;
|
|
1432
1432
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -1916,9 +1916,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
1916
1916
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
1917
1917
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
1918
1918
|
readonly effect?: "light" | "dark" | undefined;
|
|
1919
|
-
readonly visible?: boolean | null | undefined;
|
|
1920
1919
|
readonly teleported?: boolean | undefined;
|
|
1921
1920
|
readonly open?: boolean | undefined;
|
|
1921
|
+
readonly visible?: boolean | null | undefined;
|
|
1922
1922
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
1923
1923
|
readonly arrowOffset?: number | undefined;
|
|
1924
1924
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -2334,9 +2334,9 @@ export declare const VftAutocomplete: import("vft/es/utils").SFCWithInstall<{
|
|
|
2334
2334
|
readonly placement?: import("@popperjs/core").Placement | undefined;
|
|
2335
2335
|
readonly strategy?: "fixed" | "absolute" | undefined;
|
|
2336
2336
|
readonly effect?: "light" | "dark" | undefined;
|
|
2337
|
-
readonly visible?: boolean | null | undefined;
|
|
2338
2337
|
readonly teleported?: boolean | undefined;
|
|
2339
2338
|
readonly open?: boolean | undefined;
|
|
2339
|
+
readonly visible?: boolean | null | undefined;
|
|
2340
2340
|
readonly trigger?: import("vft/es/vft").TooltipTriggerType | undefined;
|
|
2341
2341
|
readonly arrowOffset?: number | undefined;
|
|
2342
2342
|
readonly gpuAcceleration?: boolean | undefined;
|
|
@@ -24,12 +24,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
24
24
|
autofocus: {
|
|
25
25
|
type: import("vue").PropType<boolean>;
|
|
26
26
|
};
|
|
27
|
-
icon: {
|
|
28
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
29
|
-
};
|
|
30
27
|
dark: {
|
|
31
28
|
type: import("vue").PropType<boolean>;
|
|
32
29
|
};
|
|
30
|
+
icon: {
|
|
31
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
32
|
+
};
|
|
33
33
|
loading: {
|
|
34
34
|
type: import("vue").PropType<boolean>;
|
|
35
35
|
};
|
|
@@ -114,12 +114,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
114
114
|
autofocus: {
|
|
115
115
|
type: import("vue").PropType<boolean>;
|
|
116
116
|
};
|
|
117
|
-
icon: {
|
|
118
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
119
|
-
};
|
|
120
117
|
dark: {
|
|
121
118
|
type: import("vue").PropType<boolean>;
|
|
122
119
|
};
|
|
120
|
+
icon: {
|
|
121
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
122
|
+
};
|
|
123
123
|
loading: {
|
|
124
124
|
type: import("vue").PropType<boolean>;
|
|
125
125
|
};
|
|
@@ -199,12 +199,12 @@ export declare const VftButton: import("vft/es/utils").SFCWithInstall<{
|
|
|
199
199
|
autofocus: {
|
|
200
200
|
type: import("vue").PropType<boolean>;
|
|
201
201
|
};
|
|
202
|
-
icon: {
|
|
203
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
204
|
-
};
|
|
205
202
|
dark: {
|
|
206
203
|
type: import("vue").PropType<boolean>;
|
|
207
204
|
};
|
|
205
|
+
icon: {
|
|
206
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
207
|
+
};
|
|
208
208
|
loading: {
|
|
209
209
|
type: import("vue").PropType<boolean>;
|
|
210
210
|
};
|
|
@@ -21,8 +21,16 @@ export interface HorizontalMenuProps {
|
|
|
21
21
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<HorizontalMenuProps>>, {
|
|
22
22
|
isInSubMenu: import("vue").ComputedRef<any>;
|
|
23
23
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
close: (val: {
|
|
25
|
+
index: string;
|
|
26
|
+
indexPath: string[];
|
|
27
|
+
event?: Event;
|
|
28
|
+
}) => void;
|
|
29
|
+
open: (val: {
|
|
30
|
+
index: string;
|
|
31
|
+
indexPath: string[];
|
|
32
|
+
e?: Event;
|
|
33
|
+
}) => void;
|
|
26
34
|
select: (val: {
|
|
27
35
|
route: string;
|
|
28
36
|
indexPath: string[];
|
|
@@ -33,8 +41,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
33
41
|
route: string;
|
|
34
42
|
indexPath: string[];
|
|
35
43
|
}) => any) | undefined;
|
|
36
|
-
onClose?: ((
|
|
37
|
-
|
|
44
|
+
onClose?: ((val: {
|
|
45
|
+
index: string;
|
|
46
|
+
indexPath: string[];
|
|
47
|
+
event?: Event;
|
|
48
|
+
}) => any) | undefined;
|
|
49
|
+
onOpen?: ((val: {
|
|
50
|
+
index: string;
|
|
51
|
+
indexPath: string[];
|
|
52
|
+
e?: Event;
|
|
53
|
+
}) => any) | undefined;
|
|
38
54
|
"onSub-menu-click"?: ((val: any) => any) | undefined;
|
|
39
55
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
40
56
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),G=require("@vft/router"),U=require("@vft/utils"),b=require("../menu/index.cjs");require("@vueuse/core");require("../config-provider/hooks/use-global-config.cjs");require("lodash-es");require("../form/index.cjs");const W=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const Y=require("./constants.cjs");function F(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!n.isVNode(t)}const K=n.defineComponent({name:"vft-horizontal-menu"}),Q=n.defineComponent({...K,props:{menus:{},attrMapping:{},openDisabled:{type:Boolean,default:!1},disabledJudgeTurnOver:{type:Boolean,default:!1},subMenuCfg:{default:()=>({})},useRouterJump:{type:Boolean,default:!1},maxRowLength:{type:[Boolean,Number],default:8},defaultActive:{},defaultOpeneds:{},menuOptions:{},enableScroll:{type:Boolean,default:!0},scrollThreshold:{default:10},scrollMaxHeight:{default:"400px"}},emits:["
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("vue"),G=require("@vft/router"),U=require("@vft/utils"),b=require("../menu/index.cjs");require("@vueuse/core");require("../config-provider/hooks/use-global-config.cjs");require("lodash-es");require("../form/index.cjs");const W=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const Y=require("./constants.cjs");function F(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!n.isVNode(t)}const K=n.defineComponent({name:"vft-horizontal-menu"}),Q=n.defineComponent({...K,props:{menus:{},attrMapping:{},openDisabled:{type:Boolean,default:!1},disabledJudgeTurnOver:{type:Boolean,default:!1},subMenuCfg:{default:()=>({})},useRouterJump:{type:Boolean,default:!1},maxRowLength:{type:[Boolean,Number],default:8},defaultActive:{},defaultOpeneds:{},menuOptions:{},enableScroll:{type:Boolean,default:!0},scrollThreshold:{default:10},scrollMaxHeight:{default:"400px"}},emits:["close","open","select","sub-menu-click"],setup(t,{expose:q,emit:k}){const g=k,v=W.useNamespace("horizontal-menu"),R=n.computed(()=>(e,u,a)=>({"grid-template-rows":`repeat(${Math.min(e?.[u]?.[o.value.children]?.length||0,Number(a||t.maxRowLength?a||t.maxRowLength:e?.[u]?.[o.value.children]?.length))}, auto)`})),o=n.computed(()=>({path:"path",children:"children",title:"title",index:"path",icon:"icon",disabled:"disabled",...t.attrMapping})),I=n.getCurrentInstance(),h=n.useSlots(),O=n.ref(),w=I.appContext.config.globalProperties.$router,M=(e,u,a)=>{const i=e[o.value.path],s=e[o.value.title],l=e?.[o.value.index],x=e?.[o.value.icon],p=!!e?.[o.value.disabled],d=t.disabledJudgeTurnOver?!p:p,m=l||i||u+s;return n.createVNode(b.VftMenuItem,n.mergeProps(e,{key:m,index:String(m),icon:x,route:i,title:s,disabled:t.openDisabled&&d,className:a?"vft-menu-popup-item":"vft-menu-no-popup-item"}),{default:a?h.menuItem?()=>h.menuItem?.({item:e}):null:h.menuTopItem?()=>h.menuTopItem?.({item:e}):null})},A=e=>{g("open",e)},L=e=>{g("close",e)},P=e=>{g("sub-menu-click",e)},j=(e,u)=>!t.enableScroll||!e?e:u>t.scrollThreshold?n.createVNode(b.VftMenuItemGroup,{style:{maxHeight:t.scrollMaxHeight,overflowY:"auto"}},F(e)?e:{default:()=>[e]}):e,T=(e,u,a)=>{const i=e[o.value.path],s=e[o.value.title],l=e?.[o.value.children],x=e?.[o.value.index],p=e?.[o.value.icon],d=e?.menuOrder,m=e?.maxRowLength,V=!!e?.[o.value.disabled],z=t.disabledJudgeTurnOver?!V:V,N=x||i||u+s,y=e.type===Y.MenuTypeEnum.TILE;let S=[];if(y)if(d){const r=d.flat();if(r?.length<l.length){const f=Math.max.apply(null,r);for(let c=f+1;c<l.length;c++)d.push([c])}S=d}else for(let r=0;r<l.length;r++)S.push([r]);return l?.length||e?.render?n.createVNode(b.VftSubMenu,n.mergeProps(t.subMenuCfg,e,{index:String(N),key:N,icon:p,showArrow:e.showArrow??t.subMenuCfg.showArrow,disabled:t.openDisabled&&z,toolTipCfg:{...t.subMenuCfg.toolTipCfg||{},...e.subMenuCfg?.toolTipCfg||{}},teleported:!1,"popper-class":[y?v.e("tile"):"",v.e("normal")]}),{default:()=>[j(e?.render?e?.render:y?S.map((r,f)=>n.createVNode("div",{class:"content-main",key:f},[r.map((c,H)=>{const C=l?.[c]?.[o.value.children],D=l?.[c]?.maxRowLength;return l?.length?n.createVNode("div",{class:"content-col",key:H},[n.createVNode("span",{class:C?.length?"title":""},[l?.[c]?.[o.value.title]]),C?.length?n.createVNode("div",{class:"content",style:R.value(l,c,D||m)},[C.map(($,E)=>M($,E,!0))]):null]):null})])):l.map((r,f)=>r[o.value.children]?.length?T(r,f,!0):M(r,f,!0)),l?.length||0)],title:()=>s}):M(e,u,a)};async function B(e){if(t.useRouterJump){const{go:u}=G.useRouterHelper(w),a=e.route;let i=e.route;e.indexPath.some(l=>U.isUrl(l))&&(i=e.indexPath.slice(-2).join("/"));const s=w.getRoutes().filter(l=>l.path===i)?.[0]?.meta?.linkTarget;u(s?{url:a,winOpenOpt:{target:s}}:a)}g("select",e)}const J=n.computed(()=>O.value?.inSubMenu);return q({isInSubMenu:J}),()=>n.createVNode(b.VftMenu,n.mergeProps(t.menuOptions,{ref:O,onSelect:B,onOpen:A,onClose:L,onSubMenuClick:P,mode:"horizontal",class:v.b(),defaultActive:t.defaultActive,defaultOpeneds:t.defaultOpeneds}),{default:()=>[t.menus?.length?t.menus.map((e,u)=>T(e,u,!1)):null]})}});exports.default=Q;
|
|
@@ -44,8 +44,16 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
44
44
|
}>, {
|
|
45
45
|
isInSubMenu: import("vue").ComputedRef<any>;
|
|
46
46
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
close: (val: {
|
|
48
|
+
index: string;
|
|
49
|
+
indexPath: string[];
|
|
50
|
+
event?: Event;
|
|
51
|
+
}) => void;
|
|
52
|
+
open: (val: {
|
|
53
|
+
index: string;
|
|
54
|
+
indexPath: string[];
|
|
55
|
+
e?: Event;
|
|
56
|
+
}) => void;
|
|
49
57
|
select: (val: {
|
|
50
58
|
route: string;
|
|
51
59
|
indexPath: string[];
|
|
@@ -99,8 +107,16 @@ export declare const VftHorizontalMenu: import("vft/es/utils").SFCWithInstall<im
|
|
|
99
107
|
route: string;
|
|
100
108
|
indexPath: string[];
|
|
101
109
|
}) => any) | undefined;
|
|
102
|
-
onClose?: ((
|
|
103
|
-
|
|
110
|
+
onClose?: ((val: {
|
|
111
|
+
index: string;
|
|
112
|
+
indexPath: string[];
|
|
113
|
+
event?: Event;
|
|
114
|
+
}) => any) | undefined;
|
|
115
|
+
onOpen?: ((val: {
|
|
116
|
+
index: string;
|
|
117
|
+
indexPath: string[];
|
|
118
|
+
e?: Event;
|
|
119
|
+
}) => any) | undefined;
|
|
104
120
|
"onSub-menu-click"?: ((val: any) => any) | undefined;
|
|
105
121
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>> & Record<string, any>;
|
|
106
122
|
export * from './constants';
|
|
@@ -27,7 +27,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
27
27
|
type: import("vue").PropType<boolean>;
|
|
28
28
|
};
|
|
29
29
|
horizontalMenuProps: {
|
|
30
|
-
type: import("vue").PropType<Partial<import("./
|
|
30
|
+
type: import("vue").PropType<Partial<import("./types").SubMenuProps>>;
|
|
31
31
|
};
|
|
32
32
|
persistent: {
|
|
33
33
|
type: import("vue").PropType<boolean>;
|
|
@@ -35,6 +35,18 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
35
35
|
disableSubMenuAction: {
|
|
36
36
|
type: import("vue").PropType<boolean>;
|
|
37
37
|
};
|
|
38
|
+
backgroundColor: {
|
|
39
|
+
type: import("vue").PropType<string>;
|
|
40
|
+
};
|
|
41
|
+
textColor: {
|
|
42
|
+
type: import("vue").PropType<string>;
|
|
43
|
+
};
|
|
44
|
+
activeTextColor: {
|
|
45
|
+
type: import("vue").PropType<string>;
|
|
46
|
+
};
|
|
47
|
+
collapseType: {
|
|
48
|
+
type: import("vue").PropType<"menu-title">;
|
|
49
|
+
};
|
|
38
50
|
}>, {
|
|
39
51
|
open: (index: string) => void;
|
|
40
52
|
close: (index: string, indexPath: string[], e?: Event) => void;
|
|
@@ -55,7 +67,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
55
67
|
open: (val: {
|
|
56
68
|
index: string;
|
|
57
69
|
indexPath: string[];
|
|
58
|
-
|
|
70
|
+
e?: Event;
|
|
59
71
|
}) => void;
|
|
60
72
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
61
73
|
mode: {
|
|
@@ -86,7 +98,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
86
98
|
type: import("vue").PropType<boolean>;
|
|
87
99
|
};
|
|
88
100
|
horizontalMenuProps: {
|
|
89
|
-
type: import("vue").PropType<Partial<import("./
|
|
101
|
+
type: import("vue").PropType<Partial<import("./types").SubMenuProps>>;
|
|
90
102
|
};
|
|
91
103
|
persistent: {
|
|
92
104
|
type: import("vue").PropType<boolean>;
|
|
@@ -94,6 +106,18 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
94
106
|
disableSubMenuAction: {
|
|
95
107
|
type: import("vue").PropType<boolean>;
|
|
96
108
|
};
|
|
109
|
+
backgroundColor: {
|
|
110
|
+
type: import("vue").PropType<string>;
|
|
111
|
+
};
|
|
112
|
+
textColor: {
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
114
|
+
};
|
|
115
|
+
activeTextColor: {
|
|
116
|
+
type: import("vue").PropType<string>;
|
|
117
|
+
};
|
|
118
|
+
collapseType: {
|
|
119
|
+
type: import("vue").PropType<"menu-title">;
|
|
120
|
+
};
|
|
97
121
|
}>> & Readonly<{
|
|
98
122
|
onSelect?: ((menuItem: import("./types").MenuItemClicked, routerResult?: Promise<void | import("vue-router").NavigationFailure> | undefined) => any) | undefined;
|
|
99
123
|
onClose?: ((val: {
|
|
@@ -104,7 +128,7 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
104
128
|
onOpen?: ((val: {
|
|
105
129
|
index: string;
|
|
106
130
|
indexPath: string[];
|
|
107
|
-
|
|
131
|
+
e?: Event;
|
|
108
132
|
}) => any) | undefined;
|
|
109
133
|
"onUpdate:collapse"?: ((val: boolean) => any) | undefined;
|
|
110
134
|
"onSub-menu-click"?: ((val: any) => any) | undefined;
|
|
@@ -368,9 +392,6 @@ export declare const VftMenu: import("vft/es/utils").SFCWithInstall<import("vue"
|
|
|
368
392
|
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
369
393
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
370
394
|
};
|
|
371
|
-
export { type MenuProps } from './menu.vue';
|
|
372
|
-
export { type MenuItemProps } from './menu-item.vue';
|
|
373
|
-
export { type SubMenuProps } from './sub-menu.vue';
|
|
374
395
|
export * from './types';
|
|
375
396
|
export declare const VftMenuItem: import("vft/es/utils").SFCWithInstall<{
|
|
376
397
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
title?: string;
|
|
3
|
-
}
|
|
1
|
+
import type { MenuItemGroupProps } from './types';
|
|
4
2
|
declare function __VLS_template(): {
|
|
5
3
|
title?(_: {}): any;
|
|
6
4
|
default?(_: {}): any;
|
|
7
5
|
};
|
|
8
|
-
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<
|
|
6
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MenuItemGroupProps>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MenuItemGroupProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
7
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
10
8
|
export default _default;
|
|
11
9
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { RouteLocationRaw } from 'vue-router';
|
|
3
|
-
export interface MenuItemProps {
|
|
4
|
-
/** 唯一标志 */
|
|
5
|
-
index?: string;
|
|
6
|
-
/** Vue Router 路径对象 */
|
|
7
|
-
route?: RouteLocationRaw;
|
|
8
|
-
/** 是否禁用 */
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
icon?: IconProps | string;
|
|
11
|
-
title?: string | number;
|
|
12
|
-
isAloneUse?: boolean;
|
|
13
|
-
divider?: boolean;
|
|
14
|
-
className?: string;
|
|
15
|
-
reverse?: boolean;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
1
|
+
import type { MenuItemProps } from './types';
|
|
18
2
|
declare function __VLS_template(): {
|
|
19
3
|
title?(_: {}): any;
|
|
20
4
|
default?(_: {}): any;
|
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
import type { NavigationFailure } from 'vue-router';
|
|
2
|
-
import type {
|
|
3
|
-
import type { MenuItemClicked } from './types';
|
|
4
|
-
export interface MenuProps {
|
|
5
|
-
/** 菜单展示模式 */
|
|
6
|
-
mode?: 'horizontal' | 'vertical';
|
|
7
|
-
/** 页面加载时默认激活菜单的 index(menu-item 的index) */
|
|
8
|
-
defaultActive?: string;
|
|
9
|
-
/** 默认打开的 sub-menu 的 index 的数组 */
|
|
10
|
-
defaultOpeneds?: string[];
|
|
11
|
-
/** 是否只保持一个子菜单的展开 */
|
|
12
|
-
uniqueOpened?: boolean;
|
|
13
|
-
/** 是否启用 vue-router 模式。 启用该模式会在激活导航时以 index 作为 path 进行路由跳转 使用 default-active 来设置加载时的激活项 */
|
|
14
|
-
router?: boolean;
|
|
15
|
-
/** 子菜单打开的触发方式,只在 mode 为 horizontal 时有效 */
|
|
16
|
-
menuTrigger?: 'hover' | 'click';
|
|
17
|
-
/** 是否水平折叠收起菜单(仅在 mode 为 vertical 时可用) */
|
|
18
|
-
collapse?: boolean;
|
|
19
|
-
/** 是否开启折叠动画 */
|
|
20
|
-
collapseTransition?: boolean;
|
|
21
|
-
/** 是否省略多余的子项(仅在横向模式生效) */
|
|
22
|
-
ellipsis?: boolean;
|
|
23
|
-
horizontalMenuProps?: Partial<SubMenuProps>;
|
|
24
|
-
persistent?: boolean;
|
|
25
|
-
/** 禁用子菜单的展开收缩行为 */
|
|
26
|
-
disableSubMenuAction?: boolean;
|
|
27
|
-
}
|
|
2
|
+
import type { MenuItemClicked, MenuProps } from './types';
|
|
28
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MenuProps>>, {
|
|
29
4
|
open: (index: string) => void;
|
|
30
5
|
close: (index: string, indexPath: string[], e?: Event) => void;
|
|
@@ -45,7 +20,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
45
20
|
open: (val: {
|
|
46
21
|
index: string;
|
|
47
22
|
indexPath: string[];
|
|
48
|
-
|
|
23
|
+
e?: Event;
|
|
49
24
|
}) => void;
|
|
50
25
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MenuProps>>> & Readonly<{
|
|
51
26
|
onSelect?: ((menuItem: MenuItemClicked, routerResult?: Promise<void | NavigationFailure> | undefined) => any) | undefined;
|
|
@@ -57,7 +32,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
57
32
|
onOpen?: ((val: {
|
|
58
33
|
index: string;
|
|
59
34
|
indexPath: string[];
|
|
60
|
-
|
|
35
|
+
e?: Event;
|
|
61
36
|
}) => any) | undefined;
|
|
62
37
|
"onUpdate:collapse"?: ((val: boolean) => any) | undefined;
|
|
63
38
|
"onSub-menu-click"?: ((val: any) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("vue"),H=require("../icon/index.cjs"),J=require("@vueuse/core"),y=require("@vft/utils");require("../config-provider/hooks/use-global-config.cjs");require("lodash-es");const K=require("../../utils/vue/vnode.cjs");require("../form/index.cjs");const N=require("../../hooks/use-namespace/index.cjs");require("../../hooks/use-model-toggle/index.cjs");require("@popperjs/core");require("../../hooks/use-z-index/index.cjs");const Q=require("./menu-collapse-transition.vue.cjs"),X=require("./sub-menu.vue2.cjs"),Y=require("./use-menu-css-var.cjs"),Z=require("./utils/menu-bar.cjs"),_=l.defineComponent({name:"vft-menu"}),ee=l.defineComponent({..._,props:{mode:{default:"vertical"},defaultActive:{default:""},defaultOpeneds:{default:()=>[]},uniqueOpened:{type:Boolean},router:{type:Boolean},menuTrigger:{default:"hover"},collapse:{type:Boolean},collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},horizontalMenuProps:{},persistent:{type:Boolean,default:!0},disableSubMenuAction:{type:Boolean,default:!1},backgroundColor:{},textColor:{},activeTextColor:{},collapseType:{}},emits:["update:collapse","sub-menu-click","select","close","open"],setup(t,{expose:P,emit:w}){const m=w,h=N.useNamespace("menu"),A=l.useSlots(),M=l.getCurrentInstance(),q=M.appContext.config.globalProperties.$router,i=l.ref(),x=N.useNamespace("sub-menu"),f=l.ref(-1),a=l.ref(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),s=l.ref(t.defaultActive),r=l.ref({}),b=l.ref({}),R=l.computed(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),E=()=>{const e=s.value&&r.value[s.value];if(!e||t.mode==="horizontal"||t.collapse)return;e.indexPath.forEach(u=>{const o=b.value[u];o&&p(u,o.indexPath)})},p=(e,n,u)=>{a.value.includes(e)||(t.uniqueOpened&&(a.value=a.value.filter(o=>n.includes(o))),a.value.push(e),m("open",{index:e,indexPath:n,e:u}))},g=(e,n,u)=>{const o=a.value.indexOf(e);o!==-1&&a.value.splice(o,1),m("close",{index:e,indexPath:n,event:u})},W=({e,index:n,indexPath:u,isFirstLevel:o=!1})=>{if(!o){const c=a.value.includes(n);s.value=n,t.disableSubMenuAction||(c?g(n,u,e):p(n,u,e))}m("sub-menu-click",{e,index:n,indexPath:u})},V=e=>{(t.mode==="horizontal"||t.collapse)&&(a.value=[]);const{index:n,indexPath:u}=e;if(!(y.isNullOrUndefined(n)||y.isNullOrUndefined(u))){if(t.router&&q){const o=e.route||n,c=q.push(o).then(d=>(d||(s.value=n),d));m("select",e,c)}else s.value=n,m("select",e);y.isMobile()&&setTimeout(()=>{a.value=[]},100)}},C=e=>{const n=r.value,u=n[e]||s.value&&n[s.value]||n[t.defaultActive];u?s.value=u.index:s.value=e},$=()=>{if(!i.value)return-1;const e=Array.from(i.value?.childNodes??[]).filter(S=>S.nodeName!=="#text"||S.nodeValue),n=64,u=Number.parseInt(getComputedStyle(i.value).paddingLeft,10),o=Number.parseInt(getComputedStyle(i.value).paddingRight,10),c=i.value.clientWidth-u-o;let d=0,v=0;return e.forEach((S,G)=>{d+=S.offsetWidth||0,d<=c-n&&(v=G+1)}),v===e.length?-1:v},D=(e,n=33.34)=>{let u;return()=>{u&&clearTimeout(u),u=setTimeout(()=>{e()},n)}};let T=!0;const I=()=>{const e=()=>{f.value=-1,l.nextTick(()=>{f.value=$()})};T?e():D(e)(),T=!1};l.watch(()=>t.defaultActive,e=>{r.value[e]||(s.value=""),C(e)}),l.watch(()=>t.collapse,e=>{e&&(a.value=[])}),l.watch(r.value,E);let z;l.watchEffect(()=>{t.mode==="horizontal"&&t.ellipsis?z=J.useResizeObserver(i,I).stop:z?.()});const O=e=>{b.value[e.index]=e},k=e=>{delete b.value[e.index]},L=e=>{r.value[e.index]=e},U=e=>{delete r.value[e.index]},B=l.ref(!1),j=l.ref(),F=l.ref();return l.provide("rootMenu",l.reactive({props:M.props,openedMenus:a,items:r,subMenus:b,activeIndex:s,isMenuPopup:R,inSubMenu:B,inSubMenuMouseEnterTimer:j,inSubMenuMouseleaveTimer:F,addMenuItem:L,removeMenuItem:U,addSubMenu:O,removeSubMenu:k,openMenu:p,closeMenu:g,handleMenuItemClick:V,handleSubMenuClick:W})),l.provide(`subMenu:${M.uid}`,{addSubMenu:O,removeSubMenu:k,mouseInChild:l.ref(!1),level:0}),l.onMounted(()=>{t.mode==="horizontal"&&new Z.default(M.vnode.el,h.namespace.value)}),P({open:e=>{const{indexPath:n}=b.value[e];n.forEach(u=>p(u,n))},close:g,handleResize:I,menu:i,inSubMenu:B,updateActiveIndex:C,activeIndex:s}),()=>{let e=A.default?.()??[];const n=[];if(t.mode==="horizontal"&&i.value){const c=K.flattedChildren(e),d=f.value===-1?c:c.slice(0,f.value),v=f.value===-1?[]:c.slice(f.value);v?.length&&t.ellipsis&&(e=d,n.push(l.h(X.default,{index:"sub-menu-more",class:x.e("hide-arrow"),...t.horizontalMenuProps},{title:()=>l.h(H.VftIcon,{icon:"icon-menu-line",class:x.e("icon-more")}),default:()=>v})))}const u=Y.useMenuCssVar(M.props,0),o=l.h("ul",{key:String(t.collapse),role:"menubar",ref:i,style:u.value,class:{[h.b()]:!0,[h.m(t.mode)]:!0,[h.m("collapse")]:t.collapse,[h.m(`collapse-type-${t.collapseType}`)]:t.collapseType}},[...e,...n]);return t.collapseTransition&&t.mode==="vertical"?l.h(Q.default,()=>o):o}}});exports.default=ee;
|
|
@@ -1,22 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { IconProps } from 'vft/es/components/icon';
|
|
3
|
-
import type { ClassType } from '../types';
|
|
4
|
-
export interface SubMenuProps {
|
|
5
|
-
index: string;
|
|
6
|
-
showTimeout?: number;
|
|
7
|
-
hideTimeout?: number;
|
|
8
|
-
popperClass?: ClassType;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
popperOffset?: number;
|
|
11
|
-
expandIcon?: string | IconProps;
|
|
12
|
-
collapseIcon?: string | IconProps;
|
|
13
|
-
title?: string;
|
|
14
|
-
icon?: IconProps | string;
|
|
15
|
-
showArrow?: boolean;
|
|
16
|
-
toolTipCfg?: ToolTipProps;
|
|
17
|
-
teleported?: boolean;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
}
|
|
1
|
+
import type { SubMenuProps } from './types';
|
|
20
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<SubMenuProps>>, {
|
|
21
3
|
opened: import("vue").ComputedRef<boolean>;
|
|
22
4
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -1,5 +1,66 @@
|
|
|
1
|
+
import type { IconProps } from 'vft/es/components';
|
|
1
2
|
import type { Ref } from 'vue';
|
|
2
3
|
import type { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
import type { ToolTipProps } from 'vft/es/components/tooltip';
|
|
5
|
+
import type { ClassType } from '../types';
|
|
6
|
+
export interface MenuProps {
|
|
7
|
+
/** 菜单展示模式 */
|
|
8
|
+
mode?: 'horizontal' | 'vertical';
|
|
9
|
+
/** 页面加载时默认激活菜单的 index(menu-item 的index) */
|
|
10
|
+
defaultActive?: string;
|
|
11
|
+
/** 默认打开的 sub-menu 的 index 的数组 */
|
|
12
|
+
defaultOpeneds?: string[];
|
|
13
|
+
/** 是否只保持一个子菜单的展开 */
|
|
14
|
+
uniqueOpened?: boolean;
|
|
15
|
+
/** 是否启用 vue-router 模式。 启用该模式会在激活导航时以 index 作为 path 进行路由跳转 使用 default-active 来设置加载时的激活项 */
|
|
16
|
+
router?: boolean;
|
|
17
|
+
/** 子菜单打开的触发方式,只在 mode 为 horizontal 时有效 */
|
|
18
|
+
menuTrigger?: 'hover' | 'click';
|
|
19
|
+
/** 是否水平折叠收起菜单(仅在 mode 为 vertical 时可用) */
|
|
20
|
+
collapse?: boolean;
|
|
21
|
+
/** 是否开启折叠动画 */
|
|
22
|
+
collapseTransition?: boolean;
|
|
23
|
+
/** 是否省略多余的子项(仅在横向模式生效) */
|
|
24
|
+
ellipsis?: boolean;
|
|
25
|
+
horizontalMenuProps?: Partial<SubMenuProps>;
|
|
26
|
+
persistent?: boolean;
|
|
27
|
+
/** 禁用子菜单的展开收缩行为 */
|
|
28
|
+
disableSubMenuAction?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface SubMenuProps {
|
|
31
|
+
index: string;
|
|
32
|
+
showTimeout?: number;
|
|
33
|
+
hideTimeout?: number;
|
|
34
|
+
popperClass?: ClassType;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
popperOffset?: number;
|
|
37
|
+
expandIcon?: string | IconProps;
|
|
38
|
+
collapseIcon?: string | IconProps;
|
|
39
|
+
title?: string;
|
|
40
|
+
icon?: IconProps | string;
|
|
41
|
+
showArrow?: boolean;
|
|
42
|
+
toolTipCfg?: ToolTipProps;
|
|
43
|
+
teleported?: boolean;
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
}
|
|
46
|
+
export interface MenuItemGroupProps {
|
|
47
|
+
title?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface MenuItemProps {
|
|
50
|
+
/** 唯一标志 */
|
|
51
|
+
index?: string;
|
|
52
|
+
/** Vue Router 路径对象 */
|
|
53
|
+
route?: RouteLocationRaw;
|
|
54
|
+
/** 是否禁用 */
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
icon?: IconProps | string;
|
|
57
|
+
title?: string | number;
|
|
58
|
+
isAloneUse?: boolean;
|
|
59
|
+
divider?: boolean;
|
|
60
|
+
className?: string;
|
|
61
|
+
reverse?: boolean;
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
}
|
|
3
64
|
export interface MenuItemRegistered {
|
|
4
65
|
index: string;
|
|
5
66
|
indexPath: string[];
|
|
@@ -24,6 +85,7 @@ export interface MenuProps {
|
|
|
24
85
|
router?: boolean;
|
|
25
86
|
/** 子菜单打开的触发方式,只在 mode 为 horizontal 时有效 */
|
|
26
87
|
menuTrigger?: 'hover' | 'click';
|
|
88
|
+
/** 是否收缩 */
|
|
27
89
|
collapse?: boolean;
|
|
28
90
|
/** 是否水平折叠收起菜单(仅在 mode 为 vertical 时可用) */
|
|
29
91
|
backgroundColor?: string;
|
|
@@ -31,6 +93,8 @@ export interface MenuProps {
|
|
|
31
93
|
activeTextColor?: string;
|
|
32
94
|
/** 是否开启折叠动画 */
|
|
33
95
|
collapseTransition?: boolean;
|
|
96
|
+
/** 收缩类型 */
|
|
97
|
+
collapseType?: 'menu-title';
|
|
34
98
|
/** 是否省略多余的子项(仅在横向模式生效) */
|
|
35
99
|
ellipsis?: boolean;
|
|
36
100
|
persistent?: boolean;
|
|
@@ -7,14 +7,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
7
7
|
type: import("vue").PropType<string | number>;
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
|
-
icon: {
|
|
11
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
12
|
-
default: string;
|
|
13
|
-
};
|
|
14
10
|
teleported: {
|
|
15
11
|
type: import("vue").PropType<boolean>;
|
|
16
12
|
default: boolean;
|
|
17
13
|
};
|
|
14
|
+
icon: {
|
|
15
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
18
|
hideAfter: {
|
|
19
19
|
type: import("vue").PropType<number>;
|
|
20
20
|
default: number;
|
|
@@ -52,8 +52,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
52
52
|
cancel: (val: MouseEvent) => void;
|
|
53
53
|
}, import("vue").PublicProps, {
|
|
54
54
|
width: string | number;
|
|
55
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
56
55
|
teleported: boolean;
|
|
56
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
57
57
|
hideAfter: number;
|
|
58
58
|
persistent: boolean;
|
|
59
59
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -74,14 +74,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
74
74
|
type: import("vue").PropType<string | number>;
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
|
-
icon: {
|
|
78
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
79
|
-
default: string;
|
|
80
|
-
};
|
|
81
77
|
teleported: {
|
|
82
78
|
type: import("vue").PropType<boolean>;
|
|
83
79
|
default: boolean;
|
|
84
80
|
};
|
|
81
|
+
icon: {
|
|
82
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
85
|
hideAfter: {
|
|
86
86
|
type: import("vue").PropType<number>;
|
|
87
87
|
default: number;
|
|
@@ -116,8 +116,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
116
116
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
117
117
|
}>, {}, {}, {}, {}, {
|
|
118
118
|
width: string | number;
|
|
119
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
120
119
|
teleported: boolean;
|
|
120
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
121
121
|
hideAfter: number;
|
|
122
122
|
persistent: boolean;
|
|
123
123
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -135,14 +135,14 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
135
135
|
type: import("vue").PropType<string | number>;
|
|
136
136
|
default: number;
|
|
137
137
|
};
|
|
138
|
-
icon: {
|
|
139
|
-
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
140
|
-
default: string;
|
|
141
|
-
};
|
|
142
138
|
teleported: {
|
|
143
139
|
type: import("vue").PropType<boolean>;
|
|
144
140
|
default: boolean;
|
|
145
141
|
};
|
|
142
|
+
icon: {
|
|
143
|
+
type: import("vue").PropType<string | import("vft/es/vft").IconProps>;
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
146
|
hideAfter: {
|
|
147
147
|
type: import("vue").PropType<number>;
|
|
148
148
|
default: number;
|
|
@@ -180,8 +180,8 @@ export declare const VftPopconfirm: import("vft/es/utils").SFCWithInstall<{
|
|
|
180
180
|
cancel: (val: MouseEvent) => void;
|
|
181
181
|
}, string, {
|
|
182
182
|
width: string | number;
|
|
183
|
-
icon: string | import("vft/es/vft").IconProps;
|
|
184
183
|
teleported: boolean;
|
|
184
|
+
icon: string | import("vft/es/vft").IconProps;
|
|
185
185
|
hideAfter: number;
|
|
186
186
|
persistent: boolean;
|
|
187
187
|
confirmButtonType: import("vft/es/vft").ButtonType;
|
|
@@ -43,8 +43,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
43
43
|
onConfirm?: ((val: MouseEvent) => any) | undefined;
|
|
44
44
|
}>, {
|
|
45
45
|
width: string | number;
|
|
46
|
-
icon: string | IconProps;
|
|
47
46
|
teleported: boolean;
|
|
47
|
+
icon: string | IconProps;
|
|
48
48
|
hideAfter: number;
|
|
49
49
|
persistent: boolean;
|
|
50
50
|
confirmButtonType: ButtonType;
|