birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.87 kB
JavaScript
import{defineComponent as m}from"vue";import{computed as i}from"vue";import{createElementVNode as p,normalizeClass as c,normalizeStyle as d,openBlock as f,createElementBlock as u}from"vue";var k=["fill"],y=function(t,e){return f(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:c(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[p("path",{d:"m13.716 1.947 3.735 1.434-.717 1.867-.934-.359-.746 1.945a6.03 6.03 0 0 1 1.945 1.846l1.902-.847-.406-.914 1.827-.813 1.627 3.654-1.827.813-.407-.913-1.902.847a6.012 6.012 0 0 1 .07 2.68l1.944.746.358-.933 1.867.716-1.433 3.735-1.867-.717.357-.933-1.944-.747A6.03 6.03 0 0 1 15.32 17l.848 1.903.914-.407.813 1.827-3.654 1.627-.813-1.827.913-.407-.847-1.902a6.012 6.012 0 0 1-2.68.07l-.747 1.944.934.358-.717 1.867L6.55 20.62l.717-1.867.932.358.748-1.944A6.03 6.03 0 0 1 7 15.319l-1.903.848.407.914-1.827.813L2.05 14.24l1.827-.813.406.914 1.903-.848a6.01 6.01 0 0 1-.07-2.68l-1.945-.746-.358.933-1.867-.716 1.434-3.735 1.867.717-.36.933 1.946.747A6.031 6.031 0 0 1 8.68 7l-.848-1.903-.913.407-.814-1.827L9.76 2.051l.813 1.827-.914.407.848 1.902a6.01 6.01 0 0 1 2.68-.07l.745-1.945L13 3.815l.716-1.868ZM12 8a4 4 0 1 0 0 8 4 4 0 0 0 0-8Zm-.5 4.866a1 1 0 1 1-1 1.732 1 1 0 0 1 1-1.732ZM14 11a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm-2.134-1.232a1 1 0 1 1-1.732 1 1 1 0 0 1 1.732-1Z"},null,-1)])],14,k)},B=m({name:"IconVirusLine",render:y,props:{size:{type:String,default:"18px"},fill:{type:String,default:"#595959"},spin:{type:Boolean,default:!1},rotate:{type:Number}},emits:["click"],setup(o,{emit:t}){let e=o,l=t,n="bp-icon",r=i(()=>[n,`${n}-icon-virus-line`,{[`${n}-spin`]:e.spin}]),a=i(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:a,onClick:s=>l("click",s)}}});export{B as default};