mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2025-12-27 08:50:16 +00:00
2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
import{b as f,d as t,s as S}from"./index-e37943c3.js";import{d as b,u as E}from"./index-45cca80f.js";import{E as o}from"./aria-60e0cdc6.js";import{_ as C,d as O,h as T,r as _,J as I,I as L,o as $,u as m,O as h}from"./base-d77b0726.js";const M=O({inheritAttrs:!1});function w(n,l,c,s,i,d){return T(n.$slots,"default")}var P=C(M,[["render",w],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const v=O({name:"ElCollectionItem",inheritAttrs:!1});function A(n,l,c,s,i,d){return T(n.$slots,"default")}var B=C(v,[["render",A],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const K="data-el-collection-item",x=n=>{const l=`El${n}Collection`,c=`${l}Item`,s=Symbol(l),i=Symbol(c),d={...P,name:l,setup(){const u=_(null),a=new Map;I(s,{itemMap:a,getItems:()=>{const r=m(u);if(!r)return[];const e=Array.from(r.querySelectorAll(`[${K}]`));return[...a.values()].sort((y,N)=>e.indexOf(y.ref)-e.indexOf(N.ref))},collectionRef:u})}},g={...B,name:c,setup(u,{attrs:a}){const p=_(null),r=L(s,void 0);I(i,{collectionItemRef:p}),$(()=>{const e=m(p);e&&r.itemMap.set(e,{ref:e,...a})}),h(()=>{const e=m(p);r.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:s,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:d,ElCollectionItem:g}},U=f({trigger:b.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:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:t(Object)},teleported:E.teleported}),V=f({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:S}}),q=f({onKeydown:{type:t(Function)}}),Y=[o.down,o.pageDown,o.home],j=[o.up,o.pageUp,o.end],z=[...Y,...j],{ElCollection:G,ElCollectionItem:H,COLLECTION_INJECTION_KEY:W,COLLECTION_ITEM_INJECTION_KEY:Q}=x("Dropdown");export{Q as C,G as E,z as F,j as L,V as a,K as b,x as c,U as d,H as e,q as f,W as g};
|