UNPKG

birdpaper-icon

Version:

基于 Remix icon 生成的 Vue3 图标组件库

2 lines (1 loc) 1.36 kB
import{defineComponent as a}from"vue";import{computed as i}from"vue";import{createElementVNode as p,normalizeClass as m,normalizeStyle as d,openBlock as f,createElementBlock as u}from"vue";var y=["fill"],k=function(t,e){return f(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:m(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[p("path",{d:"m17.654 1.7-2.782 2.533a9.137 9.137 0 0 1 3.49 1.973c3.512 3.2 3.512 8.388 0 11.588-2.592 2.36-6.598 3.862-12.016 4.506l2.782-2.533a9.138 9.138 0 0 1-3.49-1.973c-3.512-3.2-3.533-8.369 0-11.588C8.23 3.846 12.237 2.344 17.655 1.7ZM12 6c-3.866 0-7 2.686-7 6s3.134 6 7 6 7-2.686 7-6-3.134-6-7-6Zm0 2.3c2.21 0 4 1.657 4 3.7s-1.79 3.7-4 3.7-4-1.656-4-3.7c0-2.043 1.79-3.7 4-3.7Zm0 2c-1.138 0-2 .797-2 1.7 0 .903.862 1.7 2 1.7s2-.797 2-1.7c0-.902-.862-1.7-2-1.7Z"},null,-1)])],14,y)},B=a({name:"IconTyphoonLine",render:k,props:{size:{type:String,default:"18px"},fill:{type:String,default:"#595959"},spin:{type:Boolean,default:!1},rotate:{type:Number}},emits:["click"],setup(l,{emit:t}){let e=l,n=t,o="bp-icon",r=i(()=>[o,`${o}-icon-typhoon-line`,{[`${o}-spin`]:e.spin}]),c=i(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:c,onClick:s=>n("click",s)}}});export{B as default};