"use strict";const e=require("vue"),l=require("../Shared/base-iCmnU-fv.js"),i=require("../Shared/Popup.vue_vue_type_script_setup_true_lang-D6uynoJZ.js"),d={key:0,class:"dropdownLayer-text-container"},c={class:"dropdownLayer-text-render"},w=e.defineComponent({name:"ClDropdownmenu",__name:"Index",props:{className:String,classDropDown:String,label:String,direction:{type:String,default:"left"},isUseLabelArrow:{type:Boolean,default:!1},isUseDropdownArrow:{type:Boolean,default:!1},transitionEnter:String,transitionLeave:String},setup(o){const r=o,s=e.ref(null),a=e.computed(()=>{let n=["panel-dropdownmenu"].join(" ");return l.CommonBase.isEmpty(r.className)||(n+=" "+r.className),n});return e.provide("$DropdownmenuTop",{hideDropdown:()=>{s.value.setOpen(!1)}}),(t,n)=>(e.openBlock(),e.createBlock(i._sfc_main,{ref_key:"refElDropdownLayer",ref:s,classParent:a.value,classDropDown:o.classDropDown,dropdownArrowPos:o.direction,isUseDropdownArrow:o.isUseDropdownArrow,transitionEnter:o.transitionEnter,transitionLeave:o.transitionLeave},{label:e.withCtx(()=>[o.isUseLabelArrow?(e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",c,[e.renderSlot(t.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])]),n[0]||(n[0]=e.createElementVNode("div",{class:"dropdownLayer-text-arrow"},[e.createElementVNode("i",{class:"clIconFont clIcon-angle-down"})],-1))])):e.renderSlot(t.$slots,"label",{key:1},()=>[e.createTextVNode(e.toDisplayString(o.label),1)])]),dropdown:e.withCtx(()=>[e.createElementVNode("ul",null,[e.renderSlot(t.$slots,"default")])]),_:3},8,["classParent","classDropDown","dropdownArrowPos","isUseDropdownArrow","transitionEnter","transitionLeave"]))}});module.exports=w;
//# sourceMappingURL=ClDropdownmenu.cjs.map
