You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
2.2 KiB
1 lines
2.2 KiB
import{_ as C,b as m,h as t}from"./BPRC2v3K.js";import{b as S,u as E}from"./C-724rhL.js";import{i as b}from"./Immh241S.js";import{E as o}from"./BUADUvnR.js";import{f as T,r as O,k as _,K as I,P as L,E as $,u as f,J as h}from"./Ca9y1zsW.js";const M=T({inheritAttrs:!1});function P(n,l,i,s,a,d){return O(n.$slots,"default")}var w=C(M,[["render",P],["__file","collection.vue"]]);const K=T({name:"ElCollectionItem",inheritAttrs:!1});function v(n,l,i,s,a,d){return O(n.$slots,"default")}var A=C(K,[["render",v],["__file","collection-item.vue"]]);const B="data-el-collection-item",x=n=>{const l=`El${n}Collection`,i=`${l}Item`,s=Symbol(l),a=Symbol(i),d={...w,name:l,setup(){const u=_(null),c=new Map;I(s,{itemMap:c,getItems:()=>{const r=f(u);if(!r)return[];const e=Array.from(r.querySelectorAll(`[${B}]`));return[...c.values()].sort((y,g)=>e.indexOf(y.ref)-e.indexOf(g.ref))},collectionRef:u})}},N={...A,name:i,setup(u,{attrs:c}){const p=_(null),r=L(s,void 0);I(a,{collectionItemRef:p}),$(()=>{const e=f(p);e&&r.itemMap.set(e,{ref:e,...c})}),h(()=>{const e=f(p);r.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:d,ElCollectionItem:N}},V=m({trigger:S.trigger,effect:{...E.effect,default:"light"},type:{type:t(String)},placement:{type:t(String),default:"bottom"},popperOptions:{type:t(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:t([Number,String]),default:0},maxHeight:{type:t([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,default:"menu"},buttonProps:{type:t(Object)},teleported:E.teleported}),q=m({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:b}}),z=m({onKeydown:{type:t(Function)}}),Y=[o.down,o.pageDown,o.home],j=[o.up,o.pageUp,o.end],G=[...Y,...j],{ElCollection:H,ElCollectionItem:W,COLLECTION_INJECTION_KEY:Q,COLLECTION_ITEM_INJECTION_KEY:X}=x("Dropdown");export{X as C,H as E,G as F,j as L,q as a,B as b,x as c,V as d,W as e,z as f,Q as g};
|