UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.39 kB
import{defineComponent as c}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 k=["fill"],y=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:"M11.592 9.873c-.3 0-.595.074-.888.221a1.85 1.85 0 0 0-.724.663c-.192.294-.287.645-.287 1.053v4.401H7.554V7.912H9.64v1.194h.039c.279-.383.63-.698 1.053-.946a2.83 2.83 0 0 1 1.457-.372c.19 0 .372.015.542.046.17.032.297.065.38.102l-.86 2.053a.85.85 0 0 0-.271-.081 2.081 2.081 0 0 0-.388-.036l.001.001ZM22 12a10 10 0 1 1-20 0 10 10 0 0 1 20 0Zm-2 0a7.966 7.966 0 0 0-1.846-5.104L14.2 16.21h-2.172L16.592 5.46A7.947 7.947 0 0 0 12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8Z"},null,-1)])],14,k)},w=c({name:"IconSubredditLine",render:y,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-subreddit-line`,{[`${o}-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=>n("click",s)}}});export{w as default};