2026-06-04 15:16:36 +03:30
|
|
|
import{ah as x,ai as C,d as U,ar as $,g as _,P as Y,h as v,as as Zn,b as y,O as oe,F as Ne,aE as Qn,M as ye,N as ce,V as Be,aq as se,ax as Z,Y as Te,Q as we,ay as Cn,b3 as Fe,aa as Mn,aw as xn,aV as Xn,aM as Jn,a6 as et,aW as nt,bN as un,R as tt,Z as $e,x as Ze,T as Ge,j as Oe,aZ as at,aD as Sn,b4 as wn}from"./index-4139499d.js";import{a as In,L as ze,M as Kn,H as rt,I as it,O as Se,T as ut,K as lt,s as xe,j as Pe,N as Pn,Q as ot,R as st,V as ct,J as ft,W as On,y as vt}from"./shallowequal-26ff1c74.js";import{c as Ie,i as dt,b as pt,S as De}from"./vnode-b177b857.js";import{w as He}from"./_plugin-vue_export-helper-c6b863a5.js";var ln=["xxxl","xxl","xl","lg","md","sm","xs"],_e={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)",xxxl:"(min-width: 2000px)"},ue=new Map,We=-1,Ee={},mt={matchHandlers:{},dispatch:function(e){return Ee=e,ue.forEach(function(a){return a(Ee)}),ue.size>=1},subscribe:function(e){return ue.size||this.register(),We+=1,ue.set(We,e),e(Ee),We},unsubscribe:function(e){ue.delete(e),ue.size||this.unregister()},unregister:function(){var e=this;Object.keys(_e).forEach(function(a){var r=_e[a],t=e.matchHandlers[r];t==null||t.mql.removeListener(t==null?void 0:t.listener)}),ue.clear()},register:function(){var e=this;Object.keys(_e).forEach(function(a){var r=_e[a],t=function(d){var p=d.matches;e.dispatch(x(x({},Ee),{},C({},a,p)))},i=window.matchMedia(r);i.addListener(t),e.matchHandlers[r]={mql:i,listener:t},t(i)})}};const on=mt;var me={adjustX:1,adjustY:1},ge=[0,0],gt={topLeft:{points:["bl","tl"],overflow:me,offset:[0,-4],targetOffset:ge},topCenter:{points:["bc","tc"],overflow:me,offset:[0,-4],targetOffset:ge},topRight:{points:["br","tr"],overflow:me,offset:[0,-4],targetOffset:ge},bottomLeft:{points:["tl","bl"],overflow:me,offset:[0,4],targetOffset:ge},bottomCenter:{points:["tc","bc"],overflow:me,offset:[0,4],targetOffset:ge},bottomRight:{points:["tr","br"],overflow:me,offset:[0,4],targetOffset:ge}};const yt=gt;var ht=["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"];const Ya=U({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:$.string.def("rc-dropdown"),transitionName:String,overlayClassName:$.string.def(""),openClassName:String,animation:$.any,align:$.object,overlayStyle:{type:Object,default:void 0},placement:$.string.def("bottomLeft"),overlay:$.any,trigger:$.oneOfType([$.string,$.arrayOf($.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:$.array,hideAction:$.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:$.number.def(.15),mouseLeaveDelay:$.number.def(.1)},emits:["visibleChange","overlayClick"],slots:["overlay"],setup:function(e,a){var r=a.slots,t=a.emit,i=a.expose,s=_(!!e.visible);Y(function(){return e.visible},function(f){f!==void 0&&(s.value=f)});var d=_();i({triggerRef:d});var p=function(c){e.visible===void 0&&(s.value=!1),t("overlayClick",c)},I=function(c){e.visible===void 0&&(s.value=c),t("visibleChange",c)},m=function(){var c,M=(c=r.overlay)===null||c===void 0?void 0:c.call(r),P={prefixCls:"".concat(e.prefixCls,"-menu"),onClick:p,getPopupContainer:function(){return d.value.getPopupDomNode()}};return y(Ne,null,[e.arrow&&y("div",{class:"".concat(e.prefixCls,"-arrow")},null),Ie(M,P,!1)])},h=v(function(){var f=e.minOverlayWidthMatchTrigger,c=f===void 0?!e.alignPoint:f;return c}),O=function(){var c,M=(c=r.default)===null||c===void 0?void 0:c.call(r);return s.value&&M?Ie(M[0],{class:e.openClassName||"".concat(e.prefixCls,"-open")},!1):M},l=v(function(){return!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction});return function(){var f=e.prefixCls,c=e.arrow,M=e.showAction,P=e.overlayStyle,V=e.trigger,b=e.placement,w=e.align,R=e.getPopupContainer,j=e.transitionName,S=e.animation,K=e.overlayClassName,E=Zn(e,ht);return
|