UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.21 kB
import{defineComponent as p}from"vue";import{computed as i}from"vue";import{createElementVNode as c,normalizeClass as m,normalizeStyle as f,openBlock as d,createElementBlock as u}from"vue";var y=["fill"],k=function(t,e){return d(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:m(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o))},[...e[1]||(e[1]=[c("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 8c-2.485 0-4.5 1.79-4.5 4s2.015 4 4.5 4 4.5-1.79 4.5-4-2.015-4-4.5-4Z"},null,-1)])],14,y)},B=p({name:"IconTyphoonFill",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,o=t,n="bp-icon",r=i(()=>[n,`${n}-icon-typhoon-fill`,{[`${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=>o("click",s)}}});export{B as default};