mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 09:27:19 +08:00
2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{d as R,aX as M,r,U as T,J as O,c as k,w as l,b as s,g as c,h as i,j as d,n as v,z as j,a4 as b,ai as $,am as w,t as X,F as A,l as N,v as E,T as F,X as Y,i as L,u as J}from"./index-ZArbnzJx.js";const q=["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"],G={class:"w-[280px]"},H={class:"flex flex-wrap justify-around mb-1"},K=["onMouseenter","onClick"],P=R({name:"ReAnimateSelector",__name:"index",props:{modelValue:{type:String},modelModifiers:{}},emits:["update:modelValue"],setup(_){const t=M(_,"modelValue"),f=r(),o=r(q),p=T(o),m=O(()=>["mt-1","flex","border","w-[130px]","h-[100px]","items-center","cursor-pointer","transition-all","justify-center","border-[#e5e7eb]","hover:text-primary","hover:duration-[700ms]"]),h=O(()=>e=>t.value===e?{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}:"");function B(e){t.value=e}function y(){t.value=""}function D(e){f.value=e,o.value=p.value.filter(n=>n.includes(e))}const a=r({});function U(e){var n;a.value[e]=(n=a.value[e])!=null&&n.loading?Object.assign({},a.value[e],{loading:!1}):Object.assign({},a.value[e],{loading:!0})}function z(){a.value={}}return(e,n)=>{const x=s("el-empty"),C=s("el-scrollbar"),S=s("el-select");return c(),k(S,{class:"!w-[200px]","model-value":t.value,placeholder:"请选择动画",clearable:"",filterable:"","filter-method":D,onClear:y},{empty:l(()=>[i("div",G,[d(C,{noresize:"",height:"212px","view-style":{overflow:"hidden"},class:"border-t border-[#e5e7eb]"},{default:l(()=>[i("ul",H,[(c(!0),v(A,null,j(o.value,(u,g)=>{var I;return c(),v("li",{key:g,class:b(m.value),style:$(h.value(u)),onMouseenter:w(V=>U(g),["prevent"]),onMouseleave:w(z,["prevent"]),onClick:V=>B(u)},[i("h4",{class:b([`animate__animated animate__${(I=a.value[g])!=null&&I.loading?u+" animate__infinite":""} `])},X(u),3)],46,K)}),128))]),N(d(x,{description:`${f.value} 动画不存在`,"image-size":60},null,8,["description"]),[[E,o.value.length===0]])]),_:1})])]),_:1},8,["model-value"])}}}),Q=F(P),W={class:"card-header"},Z={class:"font-medium"},te=R({name:"AnimateCss",__name:"index",setup(_){const t=r("");return Y(t,()=>{}),(f,o)=>{const p=s("el-link"),m=s("el-card");return c(),k(m,{shadow:"never"},{header:l(()=>[i("div",W,[i("span",Z,[d(p,{href:"https://animate.style/",target:"_blank",style:{margin:"0 4px 5px","font-size":"16px"}},{default:l(()=>[L(" animate.css ")]),_:1}),L(" 选择器组件 ")])])]),default:l(()=>[d(J(Q),{modelValue:t.value,"onUpdate:modelValue":o[0]||(o[0]=h=>t.value=h)},null,8,["modelValue"])]),_:1})}}});export{te as default};
|