vue-pure-admin/dist/static/js/animatecss-uGyfKsUK.js
2024-01-24 15:59:56 +08:00

2 lines
3.8 KiB
JavaScript

import{d as R,ak as C,r,a8 as $,V as O,c as k,w as l,b as s,e as c,f as i,i as d,k as b,l as j,E as v,al as T,af as w,B as A,F as E,m as N,R as X,M as F,a7 as Y,h as L,u as q}from"./index-GuFRd4Ob.js";const G=["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"],H={class:"w-[280px]"},J={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=C(_,"modelValue"),f=r(),a=r(G),p=$(a),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,a.value=p.value.filter(n=>n.includes(e))}const o=r({});function U(e){var n;o.value[e]=(n=o.value[e])!=null&&n.loading?Object.assign({},o.value[e],{loading:!1}):Object.assign({},o.value[e],{loading:!0})}function z(){o.value={}}return(e,n)=>{const x=s("el-empty"),M=s("el-scrollbar"),S=s("el-select");return c(),k(S,{clearable:"",filterable:"",placeholder:"请选择动画","popper-class":"pure-animate-popper","model-value":t.value,"filter-method":D,onClear:y},{empty:l(()=>[i("div",H,[d(M,{noresize:"",height:"212px","view-style":{overflow:"hidden"},class:"border-t border-[#e5e7eb]"},{default:l(()=>[i("ul",J,[(c(!0),b(E,null,j(a.value,(u,g)=>{var I;return c(),b("li",{key:g,class:v(m.value),style:T(h.value(u)),onMouseenter:w(V=>U(g),["prevent"]),onMouseleave:w(z,["prevent"]),onClick:V=>B(u)},[i("h4",{class:v([`animate__animated animate__${(I=o.value[g])!=null&&I.loading?u+" animate__infinite":""} `])},A(u),3)],46,K)}),128))]),N(d(x,{description:`${f.value} 动画不存在`,"image-size":60},null,8,["description"]),[[X,a.value.length===0]])]),_:1})])]),_:1},8,["model-value"])}}}),Q=F(P),W={class:"card-header"},Z={class:"font-medium"},te=R({name:"AnimateCss",__name:"animatecss",setup(_){const t=r("");return Y(t,()=>{}),(f,a)=>{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(q(Q),{modelValue:t.value,"onUpdate:modelValue":a[0]||(a[0]=h=>t.value=h),class:"!w-[200px]"},null,8,["modelValue"])]),_:1})}}});export{te as default};