diff --git a/404.html b/404.html new file mode 100644 index 0000000..55d42e1 --- /dev/null +++ b/404.html @@ -0,0 +1,23 @@ + + +
+ + +404
But if you don't change your direction, and if you keep looking, you may end up where you are heading.
(P(),H("div",{class:F(c(a))},[i.title||i.extra||i.$slots.title||i.$slots.extra?(P(),H("div",{key:0,class:F(c(n).e("header"))},[q("div",{class:F(c(n).e("title"))},[de(i.$slots,"title",{},()=>[Ht(Ae(i.title),1)])],2),q("div",{class:F(c(n).e("extra"))},[de(i.$slots,"extra",{},()=>[Ht(Ae(i.extra),1)])],2)],2)):se("v-if",!0),q("div",{class:F(c(n).e("body"))},[q("table",{class:F([c(n).e("table"),c(n).is("bordered",i.border)])},[q("tbody",null,[(P(!0),H(Ue,null,xt(s(),(f,v)=>(P(),ue(dCe,{key:v,row:f},null,8,["row"]))),128))])],2)],2)],2))}});var hCe=ze(pCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),lI=Z({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const mCe=Rt(hCe,{DescriptionsItem:lI}),gCe=Xn(lI),bCe=He({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:ge([String,Array,Object])},zIndex:{type:ge([String,Number])}}),yCe={click:e=>e instanceof MouseEvent},_Ce="overlay";var wCe=Z({name:"ElOverlay",props:bCe,emits:yCe,setup(e,{slots:t,emit:n}){const r=Ie(_Ce),o=i=>{n("click",i)},{onClick:a,onMousedown:l,onMouseup:s}=Tw(e.customMaskEvent?void 0:o);return()=>e.mask?Q("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:l,onMouseup:s},[de(t,"default")],ia.STYLE|ia.CLASS|ia.PROPS,["onClick","onMouseup","onMousedown"]):st("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[de(t,"default")])}});const Zw=wCe,sI=Symbol("dialogInjectionKey"),iI=He({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:On},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),CCe={close:()=>!0},SCe=["aria-label"],kCe=["id"],$Ce=Z({name:"ElDialogContent"}),ECe=Z({...$Ce,props:iI,emits:CCe,setup(e){const t=e,{t:n}=rn(),{Close:r}=W6,{dialogRef:o,headerRef:a,bodyId:l,ns:s,style:i}=Ge(sI),{focusTrapRef:u}=Ge(Lw),f=vg(u,o),v=T(()=>t.draggable);return G6(o,a,v),(p,h)=>(P(),H("div",{ref:c(f),class:F([c(s).b(),c(s).is("fullscreen",p.fullscreen),c(s).is("draggable",c(v)),c(s).is("align-center",p.alignCenter),{[c(s).m("center")]:p.center},p.customClass]),style:lt(c(i)),tabindex:"-1"},[q("header",{ref_key:"headerRef",ref:a,class:F(c(s).e("header"))},[de(p.$slots,"header",{},()=>[q("span",{role:"heading",class:F(c(s).e("title"))},Ae(p.title),3)]),p.showClose?(P(),H("button",{key:0,"aria-label":c(n)("el.dialog.close"),class:F(c(s).e("headerbtn")),type:"button",onClick:h[0]||(h[0]=b=>p.$emit("close"))},[Q(c(at),{class:F(c(s).e("close"))},{default:re(()=>[(P(),ue(jt(p.closeIcon||c(r))))]),_:1},8,["class"])],10,SCe)):se("v-if",!0)],2),q("div",{id:c(l),class:F(c(s).e("body"))},[de(p.$slots,"default")],10,kCe),p.$slots.footer?(P(),H("footer",{key:0,class:F(c(s).e("footer"))},[de(p.$slots,"footer")],2)):se("v-if",!0)],6))}});var TCe=ze(ECe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const uI=He({...iI,appendToBody:{type:Boolean,default:!1},beforeClose:{type:ge(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),cI={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Dt]:e=>yr(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dI=(e,t)=>{const r=vt().emit,{nextZIndex:o}=Zc();let a="";const l=wa(),s=wa(),i=D(!1),u=D(!1),f=D(!1),v=D(e.zIndex||o());let p,h;const b=Cg("namespace",Jh),g=T(()=>{const z={},Y=`--${b.value}-dialog`;return e.fullscreen||(e.top&&(z[`${Y}-margin-top`]=e.top),e.width&&(z[`${Y}-width`]=or(e.width))),z}),_=T(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function S(){r("closed"),r(Dt,!1),e.destroyOnClose&&(f.value=!1)}function w(){r("close")}function C(){h==null||h(),p==null||p(),e.openDelay&&e.openDelay>0?{stop:p}=Ui(()=>x(),e.openDelay):x()}function k(){p==null||p(),h==null||h(),e.closeDelay&&e.closeDelay>0?{stop:h}=Ui(()=>R(),e.closeDelay):R()}function $(){function z(Y){Y||(u.value=!0,i.value=!1)}e.beforeClose?e.beforeClose(z):k()}function O(){e.closeOnClickModal&&$()}function x(){!en||(i.value=!0)}function R(){i.value=!1}function V(){r("openAutoFocus")}function A(){r("closeAutoFocus")}function I(z){var Y;((Y=z.detail)==null?void 0:Y.focusReason)==="pointer"&&z.preventDefault()}e.lockScroll&&J6(i);function B(){e.closeOnPressEscape&&$()}return be(()=>e.modelValue,z=>{z?(u.value=!1,C(),f.value=!0,v.value=e.zIndex?v.value++:o(),tt(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):i.value&&k()}),be(()=>e.fullscreen,z=>{!t.value||(z?(a=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=a)}),bt(()=>{e.modelValue&&(i.value=!0,f.value=!0,C())}),{afterEnter:y,afterLeave:S,beforeLeave:w,handleClose:$,onModalClick:O,close:k,doClose:R,onOpenAutoFocus:V,onCloseAutoFocus:A,onCloseRequested:B,onFocusoutPrevented:I,titleId:l,bodyId:s,closed:u,style:g,overlayDialogStyle:_,rendered:f,visible:i,zIndex:v}},PCe=["aria-label","aria-labelledby","aria-describedby"],OCe=Z({name:"ElDialog",inheritAttrs:!1}),xCe=Z({...OCe,props:uI,emits:cI,setup(e,{expose:t}){const n=e,r=Vr();bl({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},T(()=>!!r.title)),bl({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},T(()=>!!n.customClass));const o=Ie("dialog"),a=D(),l=D(),s=D(),{visible:i,titleId:u,bodyId:f,style:v,overlayDialogStyle:p,rendered:h,zIndex:b,afterEnter:g,afterLeave:_,beforeLeave:y,handleClose:S,onModalClick:w,onOpenAutoFocus:C,onCloseAutoFocus:k,onCloseRequested:$,onFocusoutPrevented:O}=dI(n,a);$t(sI,{dialogRef:a,headerRef:l,bodyId:f,ns:o,rendered:h,style:v});const x=Tw(w),R=T(()=>n.draggable&&!n.fullscreen);return t({visible:i,dialogContentRef:s}),(V,A)=>(P(),ue(Fs,{to:"body",disabled:!V.appendToBody},[Q(tr,{name:"dialog-fade",onAfterEnter:c(g),onAfterLeave:c(_),onBeforeLeave:c(y),persisted:""},{default:re(()=>[Ot(Q(c(Zw),{"custom-mask-event":"",mask:V.modal,"overlay-class":V.modalClass,"z-index":c(b)},{default:re(()=>[q("div",{role:"dialog","aria-modal":"true","aria-label":V.title||void 0,"aria-labelledby":V.title?void 0:c(u),"aria-describedby":c(f),class:F(`${c(o).namespace.value}-overlay-dialog`),style:lt(c(p)),onClick:A[0]||(A[0]=(...I)=>c(x).onClick&&c(x).onClick(...I)),onMousedown:A[1]||(A[1]=(...I)=>c(x).onMousedown&&c(x).onMousedown(...I)),onMouseup:A[2]||(A[2]=(...I)=>c(x).onMouseup&&c(x).onMouseup(...I))},[Q(c($g),{loop:"",trapped:c(i),"focus-start-el":"container",onFocusAfterTrapped:c(C),onFocusAfterReleased:c(k),onFocusoutPrevented:c(O),onReleaseRequested:c($)},{default:re(()=>[c(h)?(P(),ue(TCe,Ft({key:0,ref_key:"dialogContentRef",ref:s},V.$attrs,{"custom-class":V.customClass,center:V.center,"align-center":V.alignCenter,"close-icon":V.closeIcon,draggable:c(R),fullscreen:V.fullscreen,"show-close":V.showClose,title:V.title,onClose:c(S)}),ql({header:re(()=>[V.$slots.title?de(V.$slots,"title",{key:1}):de(V.$slots,"header",{key:0,close:c(S),titleId:c(u),titleClass:c(o).e("title")})]),default:re(()=>[de(V.$slots,"default")]),_:2},[V.$slots.footer?{name:"footer",fn:re(()=>[de(V.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):se("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,PCe)]),_:3},8,["mask","overlay-class","z-index"]),[[on,c(i)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var ACe=ze(xCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const _v=Rt(ACe),ICe=He({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:ge(String),default:"solid"}}),MCe=Z({name:"ElDivider"}),NCe=Z({...MCe,props:ICe,setup(e){const t=e,n=Ie("divider"),r=T(()=>n.cssVar({"border-style":t.borderStyle}));return(o,a)=>(P(),H("div",{class:F([c(n).b(),c(n).m(o.direction)]),style:lt(c(r)),role:"separator"},[o.$slots.default&&o.direction!=="vertical"?(P(),H("div",{key:0,class:F([c(n).e("text"),c(n).is(o.contentPosition)])},[de(o.$slots,"default")],2)):se("v-if",!0)],6))}});var RCe=ze(NCe,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const fI=Rt(RCe),FCe=He({...uI,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),LCe=cI,DCe=Z({name:"ElDrawer",components:{ElOverlay:Zw,ElFocusTrap:$g,ElIcon:at,Close:Ha},inheritAttrs:!1,props:FCe,emits:LCe,setup(e,{slots:t}){bl({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},T(()=>!!t.title)),bl({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},T(()=>!!e.customClass));const n=D(),r=D(),o=Ie("drawer"),{t:a}=rn(),l=T(()=>e.direction==="rtl"||e.direction==="ltr"),s=T(()=>or(e.size));return{...dI(e,n),drawerRef:n,focusStartRef:r,isHorizontal:l,drawerSize:s,ns:o,t:a}}}),BCe=["aria-label","aria-labelledby","aria-describedby"],VCe=["id"],jCe=["aria-label"],zCe=["id"];function HCe(e,t,n,r,o,a){const l=Ct("close"),s=Ct("el-icon"),i=Ct("el-focus-trap"),u=Ct("el-overlay");return P(),ue(Fs,{to:"body",disabled:!e.appendToBody},[Q(tr,{name:e.ns.b("fade"),onAfterEnter:e.afterEnter,onAfterLeave:e.afterLeave,onBeforeLeave:e.beforeLeave,persisted:""},{default:re(()=>[Ot(Q(u,{mask:e.modal,"overlay-class":e.modalClass,"z-index":e.zIndex,onClick:e.onModalClick},{default:re(()=>[Q(i,{loop:"",trapped:e.visible,"focus-trap-el":e.drawerRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:re(()=>[q("div",Ft({ref:"drawerRef","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:e.titleId,"aria-describedby":e.bodyId},e.$attrs,{class:[e.ns.b(),e.direction,e.visible&&"open",e.customClass],style:e.isHorizontal?"width: "+e.drawerSize:"height: "+e.drawerSize,role:"dialog",onClick:t[1]||(t[1]=pt(()=>{},["stop"]))}),[q("span",{ref:"focusStartRef",class:F(e.ns.e("sr-focus")),tabindex:"-1"},null,2),e.withHeader?(P(),H("header",{key:0,class:F(e.ns.e("header"))},[e.$slots.title?de(e.$slots,"title",{key:1},()=>[se(" DEPRECATED SLOT ")]):de(e.$slots,"header",{key:0,close:e.handleClose,titleId:e.titleId,titleClass:e.ns.e("title")},()=>[e.$slots.title?se("v-if",!0):(P(),H("span",{key:0,id:e.titleId,role:"heading",class:F(e.ns.e("title"))},Ae(e.title),11,VCe))]),e.showClose?(P(),H("button",{key:2,"aria-label":e.t("el.drawer.close"),class:F(e.ns.e("close-btn")),type:"button",onClick:t[0]||(t[0]=(...f)=>e.handleClose&&e.handleClose(...f))},[Q(s,{class:F(e.ns.e("close"))},{default:re(()=>[Q(l)]),_:1},8,["class"])],10,jCe)):se("v-if",!0)],2)):se("v-if",!0),e.rendered?(P(),H("div",{key:1,id:e.bodyId,class:F(e.ns.e("body"))},[de(e.$slots,"default")],10,zCe)):se("v-if",!0),e.$slots.footer?(P(),H("div",{key:2,class:F(e.ns.e("footer"))},[de(e.$slots,"footer")],2)):se("v-if",!0)],16,BCe)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[on,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var KCe=ze(DCe,[["render",HCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const Qw=Rt(KCe),WCe=Z({inheritAttrs:!1});function UCe(e,t,n,r,o,a){return de(e.$slots,"default")}var qCe=ze(WCe,[["render",UCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const GCe=Z({name:"ElCollectionItem",inheritAttrs:!1});function YCe(e,t,n,r,o,a){return de(e.$slots,"default")}var XCe=ze(GCe,[["render",YCe],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const vI="data-el-collection-item",pI=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),o=Symbol(n),a={...qCe,name:t,setup(){const s=D(null),i=new Map;$t(r,{itemMap:i,getItems:()=>{const f=c(s);if(!f)return[];const v=Array.from(f.querySelectorAll(`[${vI}]`));return[...i.values()].sort((h,b)=>v.indexOf(h.ref)-v.indexOf(b.ref))},collectionRef:s})}},l={...XCe,name:n,setup(s,{attrs:i}){const u=D(null),f=Ge(r,void 0);$t(o,{collectionItemRef:u}),bt(()=>{const v=c(u);v&&f.itemMap.set(v,{ref:v,...i})}),hn(()=>{const v=c(u);f.itemMap.delete(v)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:o,ElCollection:a,ElCollectionItem:l}},ZCe=He({style:{type:ge([String,Array,Object])},currentTabId:{type:ge(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:ge(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:QCe,ElCollectionItem:JCe,COLLECTION_INJECTION_KEY:Jw,COLLECTION_ITEM_INJECTION_KEY:eSe}=pI("RovingFocusGroup"),e2=Symbol("elRovingFocusGroup"),hI=Symbol("elRovingFocusGroupItem"),tSe={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},nSe=(e,t)=>{if(t!=="rtl")return e;switch(e){case ut.right:return ut.left;case ut.left:return ut.right;default:return e}},rSe=(e,t,n)=>{const r=nSe(e.key,n);if(!(t==="vertical"&&[ut.left,ut.right].includes(r))&&!(t==="horizontal"&&[ut.up,ut.down].includes(r)))return tSe[r]},oSe=(e,t)=>e.map((n,r)=>e[(r+t)%e.length]),t2=e=>{const{activeElement:t}=document;for(const n of e)if(n===t||(n.focus(),t!==document.activeElement))return},$3="currentTabIdChange",E3="rovingFocusGroup.entryFocus",aSe={bubbles:!1,cancelable:!0},lSe=Z({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:ZCe,emits:[$3,"entryFocus"],setup(e,{emit:t}){var n;const r=D((n=e.currentTabId||e.defaultCurrentTabId)!=null?n:null),o=D(!1),a=D(!1),l=D(null),{getItems:s}=Ge(Jw,void 0),i=T(()=>[{outline:"none"},e.style]),u=g=>{t($3,g)},f=()=>{o.value=!0},v=Yn(g=>{var _;(_=e.onMousedown)==null||_.call(e,g)},()=>{a.value=!0}),p=Yn(g=>{var _;(_=e.onFocus)==null||_.call(e,g)},g=>{const _=!c(a),{target:y,currentTarget:S}=g;if(y===S&&_&&!c(o)){const w=new Event(E3,aSe);if(S==null||S.dispatchEvent(w),!w.defaultPrevented){const C=s().filter(R=>R.focusable),k=C.find(R=>R.active),$=C.find(R=>R.id===c(r)),x=[k,$,...C].filter(Boolean).map(R=>R.ref);t2(x)}}a.value=!1}),h=Yn(g=>{var _;(_=e.onBlur)==null||_.call(e,g)},()=>{o.value=!1}),b=(...g)=>{t("entryFocus",...g)};$t(e2,{currentTabbedId:Ys(r),loop:Nn(e,"loop"),tabIndex:T(()=>c(o)?-1:0),rovingFocusGroupRef:l,rovingFocusGroupRootStyle:i,orientation:Nn(e,"orientation"),dir:Nn(e,"dir"),onItemFocus:u,onItemShiftTab:f,onBlur:h,onFocus:p,onMousedown:v}),be(()=>e.currentTabId,g=>{r.value=g!=null?g:null}),Kn(l,E3,b)}});function sSe(e,t,n,r,o,a){return de(e.$slots,"default")}var iSe=ze(lSe,[["render",sSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const uSe=Z({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:QCe,ElRovingFocusGroupImpl:iSe}});function cSe(e,t,n,r,o,a){const l=Ct("el-roving-focus-group-impl"),s=Ct("el-focus-group-collection");return P(),ue(s,null,{default:re(()=>[Q(l,Fa(Vm(e.$attrs)),{default:re(()=>[de(e.$slots,"default")]),_:3},16)]),_:3})}var dSe=ze(uSe,[["render",cSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const fSe=Z({components:{ElRovingFocusCollectionItem:JCe},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(e,{emit:t}){const{currentTabbedId:n,loop:r,onItemFocus:o,onItemShiftTab:a}=Ge(e2,void 0),{getItems:l}=Ge(Jw,void 0),s=wa(),i=D(null),u=Yn(h=>{t("mousedown",h)},h=>{e.focusable?o(c(s)):h.preventDefault()}),f=Yn(h=>{t("focus",h)},()=>{o(c(s))}),v=Yn(h=>{t("keydown",h)},h=>{const{key:b,shiftKey:g,target:_,currentTarget:y}=h;if(b===ut.tab&&g){a();return}if(_!==y)return;const S=rSe(h);if(S){h.preventDefault();let C=l().filter(k=>k.focusable).map(k=>k.ref);switch(S){case"last":{C.reverse();break}case"prev":case"next":{S==="prev"&&C.reverse();const k=C.indexOf(y);C=r.value?oSe(C,k+1):C.slice(k+1);break}}tt(()=>{t2(C)})}}),p=T(()=>n.value===c(s));return $t(hI,{rovingFocusGroupItemRef:i,tabIndex:T(()=>c(p)?0:-1),handleMousedown:u,handleFocus:f,handleKeydown:v}),{id:s,handleKeydown:v,handleFocus:f,handleMousedown:u}}});function vSe(e,t,n,r,o,a){const l=Ct("el-roving-focus-collection-item");return P(),ue(l,{id:e.id,focusable:e.focusable,active:e.active},{default:re(()=>[de(e.$slots,"default")]),_:3},8,["id","focusable","active"])}var pSe=ze(fSe,[["render",vSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const _h=He({trigger:Df.trigger,effect:{...xr.effect,default:"light"},type:{type:ge(String)},placement:{type:ge(String),default:"bottom"},popperOptions:{type:ge(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:ge([Number,String]),default:0},maxHeight:{type:ge([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:ge(Object)},teleported:xr.teleported}),mI=He({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:On}}),hSe=He({onKeydown:{type:ge(Function)}}),mSe=[ut.down,ut.pageDown,ut.home],gI=[ut.up,ut.pageUp,ut.end],gSe=[...mSe,...gI],{ElCollection:bSe,ElCollectionItem:ySe,COLLECTION_INJECTION_KEY:_Se,COLLECTION_ITEM_INJECTION_KEY:wSe}=pI("Dropdown"),Pg=Symbol("elDropdown"),{ButtonGroup:CSe}=Fr,SSe=Z({name:"ElDropdown",components:{ElButton:Fr,ElButtonGroup:CSe,ElScrollbar:as,ElDropdownCollection:bSe,ElTooltip:ur,ElRovingFocusGroup:dSe,ElOnlyChild:H8,ElIcon:at,ArrowDown:Xs},props:_h,emits:["visible-change","click","command"],setup(e,{emit:t}){const n=vt(),r=Ie("dropdown"),{t:o}=rn(),a=D(),l=D(),s=D(null),i=D(null),u=D(null),f=D(null),v=D(!1),p=[ut.enter,ut.space,ut.down],h=T(()=>({maxHeight:or(e.maxHeight)})),b=T(()=>[r.m(C.value)]),g=wa().value,_=T(()=>e.id||g);be([a,Nn(e,"trigger")],([K,M],[j])=>{var N,U,W;const G=et(M)?M:[M];(N=j==null?void 0:j.$el)!=null&&N.removeEventListener&&j.$el.removeEventListener("pointerenter",$),(U=K==null?void 0:K.$el)!=null&&U.removeEventListener&&K.$el.removeEventListener("pointerenter",$),((W=K==null?void 0:K.$el)==null?void 0:W.addEventListener)&&G.includes("hover")&&K.$el.addEventListener("pointerenter",$)},{immediate:!0}),hn(()=>{var K,M;(M=(K=a.value)==null?void 0:K.$el)!=null&&M.removeEventListener&&a.value.$el.removeEventListener("pointerenter",$)});function y(){S()}function S(){var K;(K=s.value)==null||K.onClose()}function w(){var K;(K=s.value)==null||K.onOpen()}const C=Cr();function k(...K){t("command",...K)}function $(){var K,M;(M=(K=a.value)==null?void 0:K.$el)==null||M.focus()}function O(){}function x(){const K=c(i);K==null||K.focus(),f.value=null}function R(K){f.value=K}function V(K){v.value||(K.preventDefault(),K.stopImmediatePropagation())}function A(){t("visible-change",!0)}function I(K){(K==null?void 0:K.type)==="keydown"&&i.value.focus()}function B(){t("visible-change",!1)}return $t(Pg,{contentRef:i,role:T(()=>e.role),triggerId:_,isUsingKeyboard:v,onItemEnter:O,onItemLeave:x}),$t("elDropdown",{instance:n,dropdownSize:C,handleClick:y,commandHandler:k,trigger:Nn(e,"trigger"),hideOnClick:Nn(e,"hideOnClick")}),{t:o,ns:r,scrollbar:u,wrapStyle:h,dropdownTriggerKls:b,dropdownSize:C,triggerId:_,triggerKeys:p,currentTabId:f,handleCurrentTabIdChange:R,handlerMainButtonClick:K=>{t("click",K)},handleEntryFocus:V,handleClose:S,handleOpen:w,handleBeforeShowTooltip:A,handleShowTooltip:I,handleBeforeHideTooltip:B,onFocusAfterTrapped:K=>{var M,j;K.preventDefault(),(j=(M=i.value)==null?void 0:M.focus)==null||j.call(M,{preventScroll:!0})},popperRef:s,contentRef:i,triggeringElementRef:a,referenceElementRef:l}}});function kSe(e,t,n,r,o,a){var l;const s=Ct("el-dropdown-collection"),i=Ct("el-roving-focus-group"),u=Ct("el-scrollbar"),f=Ct("el-only-child"),v=Ct("el-tooltip"),p=Ct("el-button"),h=Ct("arrow-down"),b=Ct("el-icon"),g=Ct("el-button-group");return P(),H("div",{class:F([e.ns.b(),e.ns.is("disabled",e.disabled)])},[Q(v,{ref:"popperRef",role:e.role,effect:e.effect,"fallback-placements":["bottom","top"],"popper-options":e.popperOptions,"gpu-acceleration":!1,"hide-after":e.trigger==="hover"?e.hideTimeout:0,"manual-mode":!0,placement:e.placement,"popper-class":[e.ns.e("popper"),e.popperClass],"reference-element":(l=e.referenceElementRef)==null?void 0:l.$el,trigger:e.trigger,"trigger-keys":e.triggerKeys,"trigger-target-el":e.contentRef,"show-after":e.trigger==="hover"?e.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":e.triggeringElementRef,"virtual-triggering":e.splitButton,disabled:e.disabled,transition:`${e.ns.namespace.value}-zoom-in-top`,teleported:e.teleported,pure:"",persistent:"",onBeforeShow:e.handleBeforeShowTooltip,onShow:e.handleShowTooltip,onBeforeHide:e.handleBeforeHideTooltip},ql({content:re(()=>[Q(u,{ref:"scrollbar","wrap-style":e.wrapStyle,tag:"div","view-class":e.ns.e("list")},{default:re(()=>[Q(i,{loop:e.loop,"current-tab-id":e.currentTabId,orientation:"horizontal",onCurrentTabIdChange:e.handleCurrentTabIdChange,onEntryFocus:e.handleEntryFocus},{default:re(()=>[Q(s,null,{default:re(()=>[de(e.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[e.splitButton?void 0:{name:"default",fn:re(()=>[Q(f,{id:e.triggerId,ref:"triggeringElementRef",role:"button",tabindex:e.tabindex},{default:re(()=>[de(e.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),e.splitButton?(P(),ue(g,{key:0},{default:re(()=>[Q(p,Ft({ref:"referenceElementRef"},e.buttonProps,{size:e.dropdownSize,type:e.type,disabled:e.disabled,tabindex:e.tabindex,onClick:e.handlerMainButtonClick}),{default:re(()=>[de(e.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),Q(p,Ft({id:e.triggerId,ref:"triggeringElementRef"},e.buttonProps,{role:"button",size:e.dropdownSize,type:e.type,class:e.ns.e("caret-button"),disabled:e.disabled,tabindex:e.tabindex,"aria-label":e.t("el.dropdown.toggleDropdown")}),{default:re(()=>[Q(b,{class:F(e.ns.e("icon"))},{default:re(()=>[Q(h)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):se("v-if",!0)],2)}var $Se=ze(SSe,[["render",kSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const ESe=Z({name:"DropdownItemImpl",components:{ElIcon:at},props:mI,emits:["pointermove","pointerleave","click","clickimpl"],setup(e,{emit:t}){const n=Ie("dropdown"),{role:r}=Ge(Pg,void 0),{collectionItemRef:o}=Ge(wSe,void 0),{collectionItemRef:a}=Ge(eSe,void 0),{rovingFocusGroupItemRef:l,tabIndex:s,handleFocus:i,handleKeydown:u,handleMousedown:f}=Ge(hI,void 0),v=vg(o,a,l),p=T(()=>r.value==="menu"?"menuitem":r.value==="navigation"?"link":"button"),h=Yn(b=>{const{code:g}=b;if(g===ut.enter||g===ut.space)return b.preventDefault(),b.stopImmediatePropagation(),t("clickimpl",b),!0},u);return{ns:n,itemRef:v,dataset:{[vI]:""},role:p,tabIndex:s,handleFocus:i,handleKeydown:h,handleMousedown:f}}}),TSe=["aria-disabled","tabindex","role"];function PSe(e,t,n,r,o,a){const l=Ct("el-icon");return P(),H(Ue,null,[e.divided?(P(),H("li",Ft({key:0,role:"separator",class:e.ns.bem("menu","item","divided")},e.$attrs),null,16)):se("v-if",!0),q("li",Ft({ref:e.itemRef},{...e.dataset,...e.$attrs},{"aria-disabled":e.disabled,class:[e.ns.be("menu","item"),e.ns.is("disabled",e.disabled)],tabindex:e.tabIndex,role:e.role,onClick:t[0]||(t[0]=s=>e.$emit("clickimpl",s)),onFocus:t[1]||(t[1]=(...s)=>e.handleFocus&&e.handleFocus(...s)),onKeydown:t[2]||(t[2]=pt((...s)=>e.handleKeydown&&e.handleKeydown(...s),["self"])),onMousedown:t[3]||(t[3]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),onPointermove:t[4]||(t[4]=s=>e.$emit("pointermove",s)),onPointerleave:t[5]||(t[5]=s=>e.$emit("pointerleave",s))}),[e.icon?(P(),ue(l,{key:0},{default:re(()=>[(P(),ue(jt(e.icon)))]),_:1})):se("v-if",!0),de(e.$slots,"default")],16,TSe)],64)}var OSe=ze(ESe,[["render",PSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const bI=()=>{const e=Ge("elDropdown",{}),t=T(()=>e==null?void 0:e.dropdownSize);return{elDropdown:e,_elDropdownSize:t}},xSe=Z({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ySe,ElRovingFocusItem:pSe,ElDropdownItemImpl:OSe},inheritAttrs:!1,props:mI,emits:["pointermove","pointerleave","click"],setup(e,{emit:t,attrs:n}){const{elDropdown:r}=bI(),o=vt(),a=D(null),l=T(()=>{var h,b;return(b=(h=c(a))==null?void 0:h.textContent)!=null?b:""}),{onItemEnter:s,onItemLeave:i}=Ge(Pg,void 0),u=Yn(h=>(t("pointermove",h),h.defaultPrevented),$E(h=>{if(e.disabled){i(h);return}const b=h.currentTarget;b===document.activeElement||b.contains(document.activeElement)||(s(h),h.defaultPrevented||b==null||b.focus())})),f=Yn(h=>(t("pointerleave",h),h.defaultPrevented),$E(h=>{i(h)})),v=Yn(h=>{if(!e.disabled)return t("click",h),h.type!=="keydown"&&h.defaultPrevented},h=>{var b,g,_;if(e.disabled){h.stopImmediatePropagation();return}(b=r==null?void 0:r.hideOnClick)!=null&&b.value&&((g=r.handleClick)==null||g.call(r)),(_=r.commandHandler)==null||_.call(r,e.command,o,h)}),p=T(()=>({...e,...n}));return{handleClick:v,handlePointerMove:u,handlePointerLeave:f,textContent:l,propsAndAttrs:p}}});function ASe(e,t,n,r,o,a){var l;const s=Ct("el-dropdown-item-impl"),i=Ct("el-roving-focus-item"),u=Ct("el-dropdown-collection-item");return P(),ue(u,{disabled:e.disabled,"text-value":(l=e.textValue)!=null?l:e.textContent},{default:re(()=>[Q(i,{focusable:!e.disabled},{default:re(()=>[Q(s,Ft(e.propsAndAttrs,{onPointerleave:e.handlePointerLeave,onPointermove:e.handlePointerMove,onClickimpl:e.handleClick}),{default:re(()=>[de(e.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var yI=ze(xSe,[["render",ASe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const ISe=Z({name:"ElDropdownMenu",props:hSe,setup(e){const t=Ie("dropdown"),{_elDropdownSize:n}=bI(),r=n.value,{focusTrapRef:o,onKeydown:a}=Ge(Lw,void 0),{contentRef:l,role:s,triggerId:i}=Ge(Pg,void 0),{collectionRef:u,getItems:f}=Ge(_Se,void 0),{rovingFocusGroupRef:v,rovingFocusGroupRootStyle:p,tabIndex:h,onBlur:b,onFocus:g,onMousedown:_}=Ge(e2,void 0),{collectionRef:y}=Ge(Jw,void 0),S=T(()=>[t.b("menu"),t.bm("menu",r==null?void 0:r.value)]),w=vg(l,u,o,v,y),C=Yn($=>{var O;(O=e.onKeydown)==null||O.call(e,$)},$=>{const{currentTarget:O,code:x,target:R}=$;if(O.contains(R),ut.tab===x&&$.stopImmediatePropagation(),$.preventDefault(),R!==c(l)||!gSe.includes(x))return;const A=f().filter(I=>!I.disabled).map(I=>I.ref);gI.includes(x)&&A.reverse(),t2(A)});return{size:r,rovingFocusGroupRootStyle:p,tabIndex:h,dropdownKls:S,role:s,triggerId:i,dropdownListWrapperRef:w,handleKeydown:$=>{C($),a($)},onBlur:b,onFocus:g,onMousedown:_}}}),MSe=["role","aria-labelledby"];function NSe(e,t,n,r,o,a){return P(),H("ul",{ref:e.dropdownListWrapperRef,class:F(e.dropdownKls),style:lt(e.rovingFocusGroupRootStyle),tabindex:-1,role:e.role,"aria-labelledby":e.triggerId,onBlur:t[0]||(t[0]=(...l)=>e.onBlur&&e.onBlur(...l)),onFocus:t[1]||(t[1]=(...l)=>e.onFocus&&e.onFocus(...l)),onKeydown:t[2]||(t[2]=pt((...l)=>e.handleKeydown&&e.handleKeydown(...l),["self"])),onMousedown:t[3]||(t[3]=pt((...l)=>e.onMousedown&&e.onMousedown(...l),["self"]))},[de(e.$slots,"default")],46,MSe)}var _I=ze(ISe,[["render",NSe],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const n2=Rt($Se,{DropdownItem:yI,DropdownMenu:_I}),am=Xn(yI),lm=Xn(_I),RSe={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},FSe=["id"],LSe=["stop-color"],DSe=["stop-color"],BSe=["id"],VSe=["stop-color"],jSe=["stop-color"],zSe=["id"],HSe={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},KSe={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},WSe={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},USe=["fill"],qSe=["fill"],GSe={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},YSe=["fill"],XSe=["fill"],ZSe=["fill"],QSe=["fill"],JSe=["fill"],eke={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},tke=["fill","xlink:href"],nke=["fill","mask"],rke=["fill"],oke=Z({name:"ImgEmpty"}),ake=Z({...oke,setup(e){const t=Ie("empty"),n=wa();return(r,o)=>(P(),H("svg",RSe,[q("defs",null,[q("linearGradient",{id:`linearGradient-1-${c(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[q("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,LSe),q("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,DSe)],8,FSe),q("linearGradient",{id:`linearGradient-2-${c(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[q("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,VSe),q("stop",{"stop-color":`var(${c(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,jSe)],8,BSe),q("rect",{id:`path-3-${c(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,zSe)]),q("g",HSe,[q("g",KSe,[q("g",WSe,[q("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${c(t).cssVarBlockName("fill-color-3")})`},null,8,USe),q("polygon",{id:"Rectangle-Copy-14",fill:`var(${c(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,qSe),q("g",GSe,[q("polygon",{id:"Rectangle-Copy-10",fill:`var(${c(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,YSe),q("polygon",{id:"Rectangle-Copy-11",fill:`var(${c(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,XSe),q("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${c(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,ZSe),q("polygon",{id:"Rectangle-Copy-13",fill:`var(${c(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,QSe)]),q("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${c(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,JSe),q("g",eke,[q("use",{id:"Mask",fill:`var(${c(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${c(n)}`},null,8,tke),q("polygon",{id:"Rectangle-Copy",fill:`var(${c(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${c(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,nke)]),q("polygon",{id:"Rectangle-Copy-18",fill:`var(${c(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,rke)])])])]))}});var lke=ze(ake,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const ske=He({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),ike=["src"],uke={key:1},cke=Z({name:"ElEmpty"}),dke=Z({...cke,props:ske,setup(e){const t=e,{t:n}=rn(),r=Ie("empty"),o=T(()=>t.description||n("el.table.emptyText")),a=T(()=>({width:or(t.imageSize)}));return(l,s)=>(P(),H("div",{class:F(c(r).b())},[q("div",{class:F(c(r).e("image")),style:lt(c(a))},[l.image?(P(),H("img",{key:0,src:l.image,ondragstart:"return false"},null,8,ike)):de(l.$slots,"image",{key:1},()=>[Q(lke)])],6),q("div",{class:F(c(r).e("description"))},[l.$slots.description?de(l.$slots,"description",{key:0}):(P(),H("p",uke,Ae(c(o)),1))],2),l.$slots.default?(P(),H("div",{key:0,class:F(c(r).e("bottom"))},[de(l.$slots,"default")],2)):se("v-if",!0)],2))}});var fke=ze(dke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const r2=Rt(fke),vke=He({urlList:{type:ge(Array),default:()=>zn([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),pke={close:()=>!0,switch:e=>gt(e)},hke=["src"],mke=Z({name:"ElImageViewer"}),gke=Z({...mke,props:vke,emits:pke,setup(e,{expose:t,emit:n}){const r=e,o={CONTAIN:{name:"contain",icon:Da(uve)},ORIGINAL:{name:"original",icon:Da(Ove)}},{t:a}=rn(),l=Ie("image-viewer"),{nextZIndex:s}=Zc(),i=D(),u=D([]),f=aP(),v=D(!0),p=D(r.initialIndex),h=En(o.CONTAIN),b=D({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),g=T(()=>{const{urlList:M}=r;return M.length<=1}),_=T(()=>p.value===0),y=T(()=>p.value===r.urlList.length-1),S=T(()=>r.urlList[p.value]),w=T(()=>{const{scale:M,deg:j,offsetX:N,offsetY:U,enableTransition:W}=b.value;let G=N/M,ae=U/M;switch(j%360){case 90:case-270:[G,ae]=[ae,-G];break;case 180:case-180:[G,ae]=[-G,-ae];break;case 270:case-90:[G,ae]=[-ae,G];break}const me={transform:`scale(${M}) rotate(${j}deg) translate(${G}px, ${ae}px)`,transition:W?"transform .3s":""};return h.value.name===o.CONTAIN.name&&(me.maxWidth=me.maxHeight="100%"),me}),C=T(()=>gt(r.zIndex)?r.zIndex:s());function k(){O(),n("close")}function $(){const M=Vi(N=>{switch(N.code){case ut.esc:r.closeOnPressEscape&&k();break;case ut.space:I();break;case ut.left:z();break;case ut.up:K("zoomIn");break;case ut.right:Y();break;case ut.down:K("zoomOut");break}}),j=Vi(N=>{const U=N.deltaY||N.deltaX;K(U<0?"zoomIn":"zoomOut",{zoomRate:r.zoomRate,enableTransition:!1})});f.run(()=>{Kn(document,"keydown",M),Kn(document,"wheel",j)})}function O(){f.stop()}function x(){v.value=!1}function R(M){v.value=!1,M.target.alt=a("el.image.error")}function V(M){if(v.value||M.button!==0||!i.value)return;b.value.enableTransition=!1;const{offsetX:j,offsetY:N}=b.value,U=M.pageX,W=M.pageY,G=Vi(me=>{b.value={...b.value,offsetX:j+me.pageX-U,offsetY:N+me.pageY-W}}),ae=Kn(document,"mousemove",G);Kn(document,"mouseup",()=>{ae()}),M.preventDefault()}function A(){b.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function I(){if(v.value)return;const M=Af(o),j=Object.values(o),N=h.value.name,W=(j.findIndex(G=>G.name===N)+1)%M.length;h.value=o[M[W]],A()}function B(M){const j=r.urlList.length;p.value=(M+j)%j}function z(){_.value&&!r.infinite||B(p.value-1)}function Y(){y.value&&!r.infinite||B(p.value+1)}function K(M,j={}){if(v.value)return;const{zoomRate:N,rotateDeg:U,enableTransition:W}={zoomRate:r.zoomRate,rotateDeg:90,enableTransition:!0,...j};switch(M){case"zoomOut":b.value.scale>.2&&(b.value.scale=Number.parseFloat((b.value.scale/N).toFixed(3)));break;case"zoomIn":b.value.scale<7&&(b.value.scale=Number.parseFloat((b.value.scale*N).toFixed(3)));break;case"clockwise":b.value.deg+=U;break;case"anticlockwise":b.value.deg-=U;break}b.value.enableTransition=W}return be(S,()=>{tt(()=>{const M=u.value[0];M!=null&&M.complete||(v.value=!0)})}),be(p,M=>{A(),n("switch",M)}),bt(()=>{var M,j;$(),(j=(M=i.value)==null?void 0:M.focus)==null||j.call(M)}),t({setActiveItem:B}),(M,j)=>(P(),ue(Fs,{to:"body",disabled:!M.teleported},[Q(tr,{name:"viewer-fade",appear:""},{default:re(()=>[q("div",{ref_key:"wrapper",ref:i,tabindex:-1,class:F(c(l).e("wrapper")),style:lt({zIndex:c(C)})},[q("div",{class:F(c(l).e("mask")),onClick:j[0]||(j[0]=pt(N=>M.hideOnClickModal&&k(),["self"]))},null,2),se(" CLOSE "),q("span",{class:F([c(l).e("btn"),c(l).e("close")]),onClick:k},[Q(c(at),null,{default:re(()=>[Q(c(Ha))]),_:1})],2),se(" ARROW "),c(g)?se("v-if",!0):(P(),H(Ue,{key:0},[q("span",{class:F([c(l).e("btn"),c(l).e("prev"),c(l).is("disabled",!M.infinite&&c(_))]),onClick:z},[Q(c(at),null,{default:re(()=>[Q(c(zs))]),_:1})],2),q("span",{class:F([c(l).e("btn"),c(l).e("next"),c(l).is("disabled",!M.infinite&&c(y))]),onClick:Y},[Q(c(at),null,{default:re(()=>[Q(c(io))]),_:1})],2)],64)),se(" ACTIONS "),q("div",{class:F([c(l).e("btn"),c(l).e("actions")])},[q("div",{class:F(c(l).e("actions__inner"))},[Q(c(at),{onClick:j[1]||(j[1]=N=>K("zoomOut"))},{default:re(()=>[Q(c(Wve))]),_:1}),Q(c(at),{onClick:j[2]||(j[2]=N=>K("zoomIn"))},{default:re(()=>[Q(c(H6))]),_:1}),q("i",{class:F(c(l).e("actions__divider"))},null,2),Q(c(at),{onClick:I},{default:re(()=>[(P(),ue(jt(c(h).icon)))]),_:1}),q("i",{class:F(c(l).e("actions__divider"))},null,2),Q(c(at),{onClick:j[3]||(j[3]=N=>K("anticlockwise"))},{default:re(()=>[Q(c($ve))]),_:1}),Q(c(at),{onClick:j[4]||(j[4]=N=>K("clockwise"))},{default:re(()=>[Q(c(Tve))]),_:1})],2)],2),se(" CANVAS "),q("div",{class:F(c(l).e("canvas"))},[(P(!0),H(Ue,null,xt(M.urlList,(N,U)=>Ot((P(),H("img",{ref_for:!0,ref:W=>u.value[U]=W,key:N,src:N,style:lt(c(w)),class:F(c(l).e("img")),onLoad:x,onError:R,onMousedown:V},null,46,hke)),[[on,U===p.value]])),128))],2),de(M.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var bke=ze(gke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const wI=Rt(bke),yke=He({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:ge([String,Object])},previewSrcList:{type:ge(Array),default:()=>zn([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),_ke={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>gt(e),close:()=>!0,show:()=>!0},wke=["src","loading"],Cke={key:0},Ske=Z({name:"ElImage",inheritAttrs:!1}),kke=Z({...Ske,props:yke,emits:_ke,setup(e,{emit:t}){const n=e;let r="";const{t:o}=rn(),a=Ie("image"),l=Lc(),s=gw(),i=D(),u=D(!1),f=D(!0),v=D(!1),p=D(),h=D(),b=en&&"loading"in HTMLImageElement.prototype;let g,_;const y=T(()=>l.style),S=T(()=>{const{fit:M}=n;return en&&M?{objectFit:M}:{}}),w=T(()=>{const{previewSrcList:M}=n;return Array.isArray(M)&&M.length>0}),C=T(()=>{const{previewSrcList:M,initialIndex:j}=n;let N=j;return j>M.length-1&&(N=0),N}),k=T(()=>n.loading==="eager"?!1:!b&&n.loading==="lazy"||n.lazy),$=()=>{!en||(f.value=!0,u.value=!1,i.value=n.src)};function O(M){f.value=!1,u.value=!1,t("load",M)}function x(M){f.value=!1,u.value=!0,t("error",M)}function R(){Tle(p.value,h.value)&&($(),I())}const V=Zx(R,200,!0);async function A(){var M;if(!en)return;await tt();const{scrollContainer:j}=n;ba(j)?h.value=j:_t(j)&&j!==""?h.value=(M=document.querySelector(j))!=null?M:void 0:p.value&&(h.value=fw(p.value)),h.value&&(g=Kn(h,"scroll",V),setTimeout(()=>R(),100))}function I(){!en||!h.value||!V||(g==null||g(),h.value=void 0)}function B(M){if(!!M.ctrlKey){if(M.deltaY<0)return M.preventDefault(),!1;if(M.deltaY>0)return M.preventDefault(),!1}}function z(){!w.value||(_=Kn("wheel",B,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",v.value=!0,t("show"))}function Y(){_==null||_(),document.body.style.overflow=r,v.value=!1,t("close")}function K(M){t("switch",M)}return be(()=>n.src,()=>{k.value?(f.value=!0,u.value=!1,I(),A()):$()}),bt(()=>{k.value?A():$()}),(M,j)=>(P(),H("div",{ref_key:"container",ref:p,class:F([c(a).b(),M.$attrs.class]),style:lt(c(y))},[u.value?de(M.$slots,"error",{key:0},()=>[q("div",{class:F(c(a).e("error"))},Ae(c(o)("el.image.error")),3)]):(P(),H(Ue,{key:1},[i.value!==void 0?(P(),H("img",Ft({key:0},c(s),{src:i.value,loading:M.loading,style:c(S),class:[c(a).e("inner"),c(w)&&c(a).e("preview"),f.value&&c(a).is("loading")],onClick:z,onLoad:O,onError:x}),null,16,wke)):se("v-if",!0),f.value?(P(),H("div",{key:1,class:F(c(a).e("wrapper"))},[de(M.$slots,"placeholder",{},()=>[q("div",{class:F(c(a).e("placeholder"))},null,2)])],2)):se("v-if",!0)],64)),c(w)?(P(),H(Ue,{key:2},[v.value?(P(),ue(c(wI),{key:0,"z-index":M.zIndex,"initial-index":c(C),infinite:M.infinite,"zoom-rate":M.zoomRate,"url-list":M.previewSrcList,"hide-on-click-modal":M.hideOnClickModal,teleported:M.previewTeleported,"close-on-press-escape":M.closeOnPressEscape,onClose:Y,onSwitch:K},{default:re(()=>[M.$slots.viewer?(P(),H("div",Cke,[de(M.$slots,"viewer")])):se("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):se("v-if",!0)],64)):se("v-if",!0)],6))}});var $ke=ze(kke,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Eke=Rt($ke),Tke=He({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:qr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||gt(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),Pke={[Rn]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[uo]:e=>gt(e)||br(e),[Dt]:e=>gt(e)||br(e)},Oke=["aria-label","onKeydown"],xke=["aria-label","onKeydown"],Ake=Z({name:"ElInputNumber"}),Ike=Z({...Ake,props:Tke,emits:Pke,setup(e,{expose:t,emit:n}){const r=e,{t:o}=rn(),a=Ie("input-number"),l=D(),s=nn({currentValue:r.modelValue,userInput:null}),{formItem:i}=po(),u=T(()=>gt(r.modelValue)&&r.modelValue<=r.min),f=T(()=>gt(r.modelValue)&&r.modelValue>=r.max),v=T(()=>{const B=y(r.step);return Mr(r.precision)?Math.max(y(r.modelValue),B):(B>r.precision,r.precision)}),p=T(()=>r.controls&&r.controlsPosition==="right"),h=Cr(),b=Mo(),g=T(()=>{if(s.userInput!==null)return s.userInput;let B=s.currentValue;if(br(B))return"";if(gt(B)){if(Number.isNaN(B))return"";Mr(r.precision)||(B=B.toFixed(r.precision))}return B}),_=(B,z)=>{if(Mr(z)&&(z=v.value),z===0)return Math.round(B);let Y=String(B);const K=Y.indexOf(".");if(K===-1||!Y.replace(".","").split("")[K+z])return B;const N=Y.length;return Y.charAt(N-1)==="5"&&(Y=`${Y.slice(0,Math.max(0,N-1))}6`),Number.parseFloat(Number(Y).toFixed(z))},y=B=>{if(br(B))return 0;const z=B.toString(),Y=z.indexOf(".");let K=0;return Y!==-1&&(K=z.length-Y-1),K},S=(B,z=1)=>gt(B)?_(B+r.step*z):s.currentValue,w=()=>{if(r.readonly||b.value||f.value)return;const B=Number(g.value)||0,z=S(B);$(z),n(uo,s.currentValue)},C=()=>{if(r.readonly||b.value||u.value)return;const B=Number(g.value)||0,z=S(B,-1);$(z),n(uo,s.currentValue)},k=(B,z)=>{const{max:Y,min:K,step:M,precision:j,stepStrictly:N,valueOnClear:U}=r;Y f4e(e,n,t),getStopIndexForStartIndex:(e,t,n,r)=>{const{height:o,total:a,layout:l,width:s}=e,i=Kf(l)?s:o,u=zu(e,t,r),f=n+i;let v=u.offset+u.size,p=t;for(;p {const r=Bl(e,t,n,"column");return[r.size,r.offset]},getRowPosition:(e,t,n)=>{const r=Bl(e,t,n,"row");return[r.size,r.offset]},getColumnOffset:(e,t,n,r,o,a)=>R3(e,t,n,r,o,"column",a),getRowOffset:(e,t,n,r,o,a)=>R3(e,t,n,r,o,"row",a),getColumnStartIndexForOffset:(e,t,n)=>N3(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,r)=>{const o=Bl(e,t,r,"column"),a=n+e.width;let l=o.offset+o.size,s=t;for(;s \u5982\u679C\u5185\u7F6E\u7684\u539F\u4EF6\u65E0\u6CD5\u6EE1\u8DB3\u4F60\u7684\u9700\u6C42\uFF0C\u6211\u4EEC\u4E5F\u652F\u6301\u81EA\u5B9A\u4E49\u539F\u4EF6\u3002 \u547D\u540D\u89C4\u8303 \u7531\u4E0A\u53EF\u89C1\uFF0C\u539F\u4EF6\u6700\u6838\u5FC3\u7684\u662F \u4EE5\u6700\u7B80\u5355\u7684 \u5982\u679C\u60F3\u6DF1\u5165\u4E86\u89E3\u81EA\u5B9A\u4E49\u539F\u4EF6\u7684\u5F00\u53D1\u7EC6\u8282\uFF0C\u53EF\u4EE5\u53C2\u8003\u5185\u7F6E\u539F\u4EF6\u7684\u5B9E\u73B0\u3002 \u4F7F\u7528 \u5982\u679C\u4F7F\u7528 \u76F4\u63A5\u5C06 atomic \u5B9A\u4E49\u4F20\u5165\uFF0C \u4F8B\u5982 TIP \u5176\u4ED6\u539F\u4EF6\u7C7B\u4F3C\uFF1Atree-select, multi-select, cascader, cascader-lazy \u65B9\u5F0F 1\uFF1A \u76F4\u63A5\u4F20\u5165\u4E00\u4E2A\u5F02\u6B65\u51FD\u6570 \u8981\u70B9\uFF1A \u65B9\u5F0F 2\uFF1A \u624B\u52A8\u7EF4\u62A4 \u53EF\u4EE5\u81EA\u5DF1\u624B\u52A8\u8BF7\u6C42\u6570\u636E\uFF0C\u5E76\u901A\u8FC7 ref \u4FDD\u5B58\u8D77\u6765\u3002\u8FD9\u79CD\u65B9\u5F0F\u9002\u7528\u4E8E\u9700\u8981\u624B\u52A8\u63A7\u5236\u8BF7\u6C42\u65F6\u673A\u3001\u5237\u65B0\u65F6\u673A\u7684\u573A\u666F\u3002 \u793A\u4F8B\uFF1A\u914D\u5408 swrv \u4F7F\u7528\uFF1A \u6839\u636E\u8FC7\u5F80\u7684\u9879\u76EE\u7ECF\u9A8C\uFF0C\u6211\u4EEC\u7684\u7EC4\u4EF6\u5E93\u5185\u7F6E\u4E86\u8F83\u591A\u6700\u4E3A\u5E38\u7528\u7684\u7EC4\u4EF6, \u5982\u4E0B\u56FE\u6240\u793A\u3002 \u5982\u679C\u4F60\u6709\u9700\u6C42\uFF0C\u4E5F\u53EF\u4EE5\u63D0\u4EA4\u7ED9\u6211\u4EEC, \u6211\u4EEC\u4F1A\u6839\u636E\u901A\u7528\u6027\u8BC4\u4F30\uFF0C\u51B3\u5B9A\u662F\u5426\u8981\u5185\u7F6E\u5230\u7EC4\u4EF6\u5E93\u4E2D\u3002 WARNING \u6CE8\u610F\uFF1A\u539F\u4EF6\u57FA\u4E8E \u81EA\u5B9A\u4E49\u539F\u4EF6
\u539F\u4EF6\u534F\u8BAE
export interface Atomic<T = any, P extends AtomicCommonProps<T> = AtomicCommonProps<T>> {
+ /**
+ * \u540D\u79F0\uFF0C\u547D\u540D\u89C4\u8303\u9075\u5FAA kebab-case, \u9700\u8981\u907F\u514D\u548C\u5176\u4ED6\u7EC4\u4EF6\u51B2\u7A81
+ */
+ name: string;
+
+ /**
+ * \u63CF\u8FF0
+ */
+ description?: string;
+
+ /**
+ * \u539F\u4EF6\u4F5C\u8005
+ */
+ author?: string;
+
+ /**
+ * \u662F\u5426\u4E3A \u53EA\u9884\u89C8\u6A21\u5F0F\u3002\u53EF\u4EE5\u63D0\u793A\u7EC4\u4EF6\u5B9E\u73B0\u8005\uFF0C\u5728\u7F16\u8F91\u6A21\u5F0F\u4E0B\u9690\u85CF\u8BE5\u539F\u4EF6
+ */
+ previewOnly?: boolean;
+
+ /**
+ * \u662F\u5426\u4E3A \u53EA\u7F16\u8F91\u6A21\u5F0F\u3002\u53EF\u4EE5\u63D0\u793A\u7EC4\u4EF6\u5B9E\u73B0\u8005\uFF0C\u5728\u9884\u89C8\u6A21\u5F0F\u4E0B\u9690\u85CF\u8BE5\u539F\u4EF6
+ */
+ editOnly?: boolean;
+
+ /**
+ * \u7EC4\u4EF6\u5B9E\u73B0, \u5C31\u662F\u4E00\u4E2A\u6E32\u67D3\u51FD\u6570
+ */
+ component: (props: P) => any;
+
+ /**
+ * \u503C\u9A8C\u8BC1
+ * @param {T} value \u5F53\u524D\u503C
+ * @param {any} context \u4E0A\u4E0B\u6587\uFF0C\u53EF\u4EE5\u83B7\u53D6\u5230\u5176\u4ED6\u5B57\u6BB5\u7684\u503C
+ * \u9A8C\u8BC1\u5931\u8D25\u629B\u51FA\u5F02\u5E38
+ */
+ validate?: (value: any, props: P, context: any) => Promise<void>;
+
+ /**
+ * \u9A8C\u8BC1\u89E6\u53D1\u7684\u65F6\u673A
+ */
+ validateTrigger?: 'change' | 'blur';
+}
+
\u7EC4\u4EF6\u5B9E\u73B0
component
\u662F\u539F\u4EF6\u7684\u5B9E\u73B0\uFF0C\u8FD9\u662F\u8FD9\u662F\u4E00\u4E2A\u6E32\u67D3\u51FD\u6570\uFF0C\u63A5\u6536 props
\u5E76\u8FD4\u56DE VNodeChild
\u3002 \u4EE5\u4E0B props \u662F\u56FA\u5B9A\u7684:export interface AtomicCommonProps<T> {
+ /**
+ * \u6E32\u67D3\u6A21\u5F0F
+ */
+ mode?: 'editable' | 'preview';
+
+ /**
+ * \u573A\u666F\u503C
+ * \u573A\u666F\u503C\u7ED9\u539F\u4EF6\u63D0\u4F9B\u4E86\u989D\u5916\u7684\u4FE1\u606F\uFF0C\u4ECE\u800C\u53EF\u4EE5\u63D0\u4F9B\u66F4\u5408\u7406\u7684\u9ED8\u8BA4\u884C\u4E3A
+ */
+ scene?: 'table' | 'form';
+
+ /**
+ * \u662F\u5426\u5DF2\u7981\u7528
+ */
+ disabled?: boolean;
+
+ /**
+ * \u5B57\u6BB5\u503C
+ */
+ value?: T;
+
+ /**
+ * \u5B57\u6BB5\u53D8\u5316
+ */
+ onChange?: (value?: T) => void;
+
+ /**
+ * \u7C7B\u540D
+ */
+ class?: ClassValue;
+
+ /**
+ * \u6837\u5F0F
+ */
+ style?: StyleValue;
+
+ /**
+ * \u4E0A\u4E0B\u6587\u4FE1\u606F\uFF0C\u7531\u5177\u4F53\u7684\u5E94\u7528\u7EC4\u4EF6\u6307\u5B9A
+ *
+ * note: \u901A\u7528\u539F\u4EF6\u901A\u5E38\u4E0D\u4F1A\u76F4\u63A5\u8026\u5408\u5177\u4F53\u7684\u4E0A\u4E0B\u6587\u4FE1\u606F
+ */
+ context?: any;
+}
+
mode
\u4EE5\u53CA value/onChange
\u534F\u8BAE\u3002mode
\u51B3\u5B9A\u662F\u4EE5\u9884\u89C8\u6A21\u5F0F
\u5448\u73B0\u8FD8\u662F\u7F16\u8F91\u6A21\u5F0F
value/onChange
\u662F\u5178\u578B\u7684\u8868\u5355\u534F\u8BAE\u3002 \u7C7B\u4F3C\u4E8E Vue \u7684 v-model
\u539F\u4EF6\u5B9E\u73B0\u793A\u4F8B
switch
\u539F\u4EF6\u4E3A\u4F8B:import { ElSwitchProps, ElSwitch } from 'element-plus';
+
+import { defineAtomic, defineAtomicComponent, DefineAtomicProps, globalRegistry } from '@wakeadmin/components';
+
+/**
+ * \u5B9A\u4E49\u539F\u4EF6 props
+ */
+export type ASwitchProps = DefineAtomicProps<
+ // \u{1F534} \u539F\u4EF6\u7684\u503C\u7C7B\u578B\uFF0Cswitch \u5728\u539F\u4EF6\u652F\u6301 value \u4E3A string | number | boolean \u7C7B\u578B
+ string | number | boolean,
+ // \u{1F534} \u7EE7\u627F\u7684\u5C5E\u6027
+ ElSwitchProps,
+ // \u{1F534} \u62D3\u5C55\u7684\u7684\u5C5E\u6027
+ {
+ renderPreview?: (active: boolean) => any;
+ /**
+ * \u9ED8\u8BA4\u540C activeText
+ */
+ previewActiveText?: string;
+ /**
+ * \u9884\u89C8\u65F6 inactiveText
+ */
+ previewInactiveText?: string;
+ }
+>;
+
+// \u{1F534} \u6CE8\u518C\u5230\u5168\u5C40\u7684 AtomicProps \u4E2D
+// \u8FD9\u4E2A\u8BA9 FatTable\u3001FatForm \u5728\u4F7F\u7528\u65F6\u53EF\u4EE5\u4ECE valueType \u63A8\u65AD\u51FA valueProps \u7684\u7C7B\u578B
+declare global {
+ interface AtomicProps {
+ switch: ASwitchProps;
+ }
+}
+
+// \u{1F534} \u7EC4\u4EF6\u5B9E\u73B0, \u7C7B\u4F3C\u4E8E defineComponent
+export const ASwitchComponent = defineAtomicComponent(
+ (props: ASwitchProps) => {
+ // \u8FD9\u91CC\u53EF\u4EE5\u653E\u7F6E Composition API
+
+ // \u8FD4\u56DE JSX.Element
+ return () => {
+ const { value, mode, onChange, context, scene, renderPreview, ...other } = props;
+
+ const activeValue = other.activeValue ?? true;
+ const active = value === activeValue;
+ const activeText = other.previewActiveText ?? other.activeText ?? '\u5F00\u542F';
+ const inactiveText = other.previewInactiveText ?? other.inactiveText ?? '\u5173\u95ED';
+
+ // \u9884\u89C8\u6A21\u5F0F
+ if (mode === 'preview') {
+ return renderPreview ? renderPreview(active) : <span>{active ? activeText : inactiveText}</span>;
+ }
+
+ // \u7F16\u8F91\u6A21\u5F0F
+ return <ElSwitch {...other} modelValue={value} onUpdate:modelValue={onChange} />;
+ };
+ },
+ { name: 'ASwitch' }
+);
+
+// \u{1F534} \u6CE8\u518C
+globalRegistry.register('switch', {
+ name: 'switch',
+ component: ASwitchComponent,
+ description: '\u5F00\u5173',
+ author: 'ivan-lee',
+});
+
\u4F7F\u7528\u81EA\u5B9A\u4E49\u539F\u4EF6
\u81EA\u5B9A\u4E49\u539F\u4EF6
\u4E24\u79CD\u65B9\u5F0F:
`,37),e=[o];function c(t,r,y,D,F,C){return n(),a("div",null,e)}const E=s(p,[["render",c]]);export{i as __pageData,E as default};
diff --git a/assets/atomics_custom.md.9b8e44c2.lean.js b/assets/atomics_custom.md.9b8e44c2.lean.js
new file mode 100644
index 0000000..95e424a
--- /dev/null
+++ b/assets/atomics_custom.md.9b8e44c2.lean.js
@@ -0,0 +1 @@
+import{_ as s,o as n,c as a,m as l}from"./app.56f20909.js";const i=JSON.parse('{"title":"\u81EA\u5B9A\u4E49\u539F\u4EF6","description":"","frontmatter":{},"headers":[{"level":2,"title":"\u539F\u4EF6\u534F\u8BAE","slug":"\u539F\u4EF6\u534F\u8BAE","link":"#\u539F\u4EF6\u534F\u8BAE","children":[]},{"level":2,"title":"\u7EC4\u4EF6\u5B9E\u73B0","slug":"\u7EC4\u4EF6\u5B9E\u73B0","link":"#\u7EC4\u4EF6\u5B9E\u73B0","children":[]},{"level":2,"title":"\u539F\u4EF6\u5B9E\u73B0\u793A\u4F8B","slug":"\u539F\u4EF6\u5B9E\u73B0\u793A\u4F8B","link":"#\u539F\u4EF6\u5B9E\u73B0\u793A\u4F8B","children":[]},{"level":2,"title":"\u4F7F\u7528\u81EA\u5B9A\u4E49\u539F\u4EF6","slug":"\u4F7F\u7528\u81EA\u5B9A\u4E49\u539F\u4EF6","link":"#\u4F7F\u7528\u81EA\u5B9A\u4E49\u539F\u4EF6","children":[]}],"relativePath":"atomics/custom.md","lastUpdated":1719310312000}'),p={name:"atomics/custom.md"},o=l("",37),e=[o];function c(t,r,y,D,F,C){return n(),a("div",null,e)}const E=s(p,[["render",c]]);export{i as __pageData,E as default};
diff --git a/assets/atomics_faq.md.15a3344b.js b/assets/atomics_faq.md.15a3344b.js
new file mode 100644
index 0000000..a151cb2
--- /dev/null
+++ b/assets/atomics_faq.md.15a3344b.js
@@ -0,0 +1,98 @@
+import{n as G,r as k,q as Z,s as ss,t as ns,v as as,x as ls,y as os,z as es,A as ps,B as ts,C as rs,a as cs,o as Fs,c as ys,f as w,w as $,m as L,b as H,g as K}from"./app.56f20909.js";const Ds=G(({item:a,group:l})=>{const n=k(0),o=()=>(n.value++,Promise.resolve([{label:"\u9009\u98791",value:1},{label:"\u9009\u98792",value:2}]));return()=>({children:[a({prop:"option1",label:"\u9009\u98791",valueType:"select",initialValue:1,valueProps:{options:o}}),a({prop:"option2",label:"\u9009\u98791",valueType:"select",initialValue:2,valueProps:{options:o}}),l({label:"\u8C03\u7528\u6B21\u6570",children:[Z("span",{children:n.value})]})]})});var O=new WeakMap,Q=0;function is(a){if(!a.length)return"";for(var l="arg",n=0;nglobalRegistry.register
\u6CE8\u518C\u7684\u539F\u4EF6\u3002\u53EF\u4EE5\u901A\u8FC7\u5B57\u7B26\u4E32\u540D\u79F0\u4F7F\u7528, \u4F8B\u5982\uFF1A<FatFormItem value-type="switch" />
+
const switch = defineAtomic({
+ name: 'switch',
+ component: ASwitchComponent,
+ description: '\u5F00\u5173',
+ author: 'ivan-lee',
+})
+
+// \u4F7F\u7528
+<FatFormItem valueType={switch} />
+
0)&&!(e=o.next()).done;)s.push(e.value)}catch(y){t={error:y}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},vs=globalThis&&globalThis.__spreadArray||function(a,l,n){if(n||arguments.length===2)for(var o=0,e=l.length,s;oFAQ
1. select \u539F\u4EF6\u600E\u4E48\u652F\u6301\u5F02\u6B65\u52A0\u8F7D options
\u67E5\u770B\u4EE3\u7801
import { defineFatForm } from '@wakeadmin/components';
+import { ref } from 'vue';
+
+export default defineFatForm(({ item, group }) => {
+ const callTime = ref(0);
+
+ const getList = () => {
+ callTime.value++;
+
+ return Promise.resolve([
+ {
+ label: '\u9009\u98791',
+ value: 1,
+ },
+ {
+ label: '\u9009\u98792',
+ value: 2,
+ },
+ ]);
+ };
+
+ return () => ({
+ children: [
+ item({
+ prop: 'option1',
+ label: '\u9009\u98791',
+ valueType: 'select',
+ initialValue: 1,
+ valueProps: {
+ options: getList,
+ },
+ }),
+ item({
+ prop: 'option2',
+ label: '\u9009\u98791',
+ valueType: 'select',
+ initialValue: 2,
+ valueProps: {
+ options: getList,
+ },
+ }),
+ group({
+ label: '\u8C03\u7528\u6B21\u6570',
+ children: [<span>{callTime.value}</span>],
+ }),
+ ],
+ });
+});
+
\u67E5\u770B\u4EE3\u7801
import { defineFatForm } from '@wakeadmin/components';
+import { ref } from 'vue';
+import useSwrv from 'swrv';
+import { ElButton } from 'element-plus';
+
+export default defineFatForm(({ item, group }) => {
+ const callTime = ref(0);
+ let uuid = 0;
+ const { data, mutate: reload } = useSwrv('/your/api', () => {
+ callTime.value++;
+ return Promise.resolve([
+ {
+ label: \`\u9009\u98791 \${uuid++}\`,
+ value: 1,
+ },
+ {
+ label: \`\u9009\u98792 \${uuid++}\`,
+ value: 2,
+ },
+ ]);
+ });
+
+ return () => ({
+ children: [
+ item({
+ prop: 'option1',
+ label: '\u9009\u98791',
+ valueType: 'select',
+ initialValue: 1,
+ valueProps: {
+ options: data.value,
+ },
+ }),
+ item({
+ prop: 'option2',
+ label: '\u9009\u98791',
+ valueType: 'select',
+ initialValue: 2,
+ valueProps: {
+ options: data.value,
+ },
+ }),
+ group({
+ label: '\u5237\u65B0',
+ children: [<ElButton onClick={() => reload()}>reload: {callTime.value}</ElButton>],
+ }),
+ ],
+ });
+});
+
`,5),Is=JSON.parse('{"title":"FAQ","description":"","frontmatter":{},"headers":[{"level":2,"title":"1. select \u539F\u4EF6\u600E\u4E48\u652F\u6301\u5F02\u6B65\u52A0\u8F7D options","slug":"_1-select-\u539F\u4EF6\u600E\u4E48\u652F\u6301\u5F02\u6B65\u52A0\u8F7D-options","link":"#_1-select-\u539F\u4EF6\u600E\u4E48\u652F\u6301\u5F02\u6B65\u52A0\u8F7D-options","children":[]}],"relativePath":"atomics/faq.md","lastUpdated":1719310312000}'),Ss={name:"atomics/faq.md"},Os=Object.assign(Ss,{setup(a){return(l,n)=>{const o=cs("ClientOnly");return Fs(),ys("div",null,[Es,w(o,null,{default:$(()=>[H("div",Ts,[w(K(Ds))])]),_:1}),ws,w(o,null,{default:$(()=>[H("div",Vs,[w(K(_s))])]),_:1}),Rs])}}});export{Is as __pageData,Os as default};
diff --git a/assets/atomics_faq.md.15a3344b.lean.js b/assets/atomics_faq.md.15a3344b.lean.js
new file mode 100644
index 0000000..31234f6
--- /dev/null
+++ b/assets/atomics_faq.md.15a3344b.lean.js
@@ -0,0 +1 @@
+import{n as G,r as k,q as Z,s as ss,t as ns,v as as,x as ls,y as os,z as es,A as ps,B as ts,C as rs,a as cs,o as Fs,c as ys,f as w,w as $,m as L,b as H,g as K}from"./app.56f20909.js";const Ds=G(({item:a,group:l})=>{const n=k(0),o=()=>(n.value++,Promise.resolve([{label:"\u9009\u98791",value:1},{label:"\u9009\u98792",value:2}]));return()=>({children:[a({prop:"option1",label:"\u9009\u98791",valueType:"select",initialValue:1,valueProps:{options:o}}),a({prop:"option2",label:"\u9009\u98791",valueType:"select",initialValue:2,valueProps:{options:o}}),l({label:"\u8C03\u7528\u6B21\u6570",children:[Z("span",{children:n.value})]})]})});var O=new WeakMap,Q=0;function is(a){if(!a.length)return"";for(var l="arg",n=0;n0)&&!(e=o.next()).done;)s.push(e.value)}catch(y){t={error:y}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},vs=globalThis&&globalThis.__spreadArray||function(a,l,n){if(n||arguments.length===2)for(var o=0,e=l.length,s;o\u539F\u4EF6
element-ui
\u6216 element-plus
, \u67D0\u4E9B\u7EC4\u4EF6\u7684\u53C2\u6570\u5728\u4E24\u4E2A\u5E93\u4E2D\u6709\u4E9B\u533A\u522B\u3002 @wakeadmin/components
\u4E0D\u4F1A\u62B9\u5E73\u8FD9\u5757\u7684\u5DEE\u5F02\u793A\u4F8B
\u67E5\u770B\u4EE3\u7801