mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2026-02-13 17:30:27 +08:00
2 lines
3.3 KiB
JavaScript
2 lines
3.3 KiB
JavaScript
import{d as C,aN as M,ai as x,a as s,b as u,e as j,w as m,g as r,f as h,j as g,F as V,k as T,p as O,q as $,s as I,t as A,A as N,$ as X,aO as E,l as c,v as b,W as F}from"./index-LDZGYJqY.js";const Y=["bounce","flash","pulse","rubberBand","shakeX","headShake","swing","tada","wobble","jello","heartBeat","backInDown","backInLeft","backInRight","backInUp","backOutDown","backOutLeft","backOutRight","backOutUp","bounceIn","bounceInDown","bounceInLeft","bounceInRight","bounceInUp","bounceOut","bounceOutDown","bounceOutLeft","bounceOutRight","bounceOutUp","fadeIn","fadeInDown","fadeInDownBig","fadeInLeft","fadeInLeftBig","fadeInRight","fadeInRightBig","fadeInUp","fadeInUpBig","fadeInTopLeft","fadeInTopRight","fadeInBottomLeft","fadeInBottomRight","fadeOut","fadeOutDown","fadeOutDownBig","fadeOutLeft","fadeOutLeftBig","fadeOutRight","fadeOutRightBig","fadeOutUp","fadeOutUpBig","fadeOutTopLeft","fadeOutTopRight","fadeOutBottomRight","fadeOutBottomLeft","flip","flipInX","flipInY","flipOutX","flipOutY","lightSpeedInRight","lightSpeedInLeft","lightSpeedOutRight","lightSpeedOutLeft","rotateIn","rotateInDownLeft","rotateInDownRight","rotateInUpLeft","rotateInUpRight","rotateOut","rotateOutDownLeft","rotateOutDownRight","rotateOutUpLeft","rotateOutUpRight","hinge","jackInTheBox","rollIn","rollOut","zoomIn","zoomInDown","zoomInLeft","zoomInRight","zoomInUp","zoomOut","zoomOutDown","zoomOutLeft","zoomOutRight","zoomOutUp","slideInDown","slideInLeft","slideInRight","slideInUp","slideOutDown","slideOutLeft","slideOutRight","slideOutUp"],q={class:"w-[280px]"},P={class:"flex flex-wrap justify-around mb-1!"},W=["onMouseenter","onClick"],G=C({name:"ReAnimateSelector",__name:"index",props:E({placeholder:{type:String,default:"请选择动画"}},{modelValue:{type:String},modelModifiers:{}}),emits:["update:modelValue"],setup(d){const a=M(d,"modelValue"),f=c(),n=c(Y),v=x(n),w=b(()=>["mt-1","flex","border","w-[130px]","h-[100px]","items-center","cursor-pointer","transition-all","justify-center","border-[#e5e7eb]","hover:text-primary","hover:duration-[700ms]"]),_=b(()=>e=>a.value===e?{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}:"");function L(e){a.value=e}function R(){a.value=""}function B(e){f.value=e,n.value=v.value.filter(o=>o.includes(e))}const t=c({});function k(e){var o;t.value[e]=(o=t.value[e])!=null&&o.loading?Object.assign({},t.value[e],{loading:!1}):Object.assign({},t.value[e],{loading:!0})}function D(){t.value={}}return(e,o)=>{const y=s("el-empty"),U=s("el-scrollbar"),z=s("el-select");return u(),j(z,{clearable:"",filterable:"",placeholder:d.placeholder,"popper-class":"pure-animate-popper","model-value":a.value,"filter-method":B,onClear:R},{empty:m(()=>[r("div",q,[h(U,{noresize:"",height:"212px","view-style":{overflow:"hidden"},class:"border-t border-[#e5e7eb]"},{default:m(()=>[r("ul",P,[(u(!0),g(V,null,T(n.value,(l,i)=>{var p;return u(),g("li",{key:i,class:I(w.value),style:$(_.value(l)),onMouseenter:O(S=>k(i),["prevent"]),onMouseleave:O(D,["prevent"]),onClick:S=>L(l)},[r("h4",{class:I([`animate__animated animate__${(p=t.value[i])!=null&&p.loading?l+" animate__infinite":""} `])},A(l),3)],46,W)}),128))]),N(h(y,{description:`${f.value} 动画不存在`,"image-size":60},null,8,["description"]),[[X,n.value.length===0]])]),_:1})])]),_:1},8,["placeholder","model-value"])}}}),J=F(G);export{J as R};
|