UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.34 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 S=["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]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[p("path",{d:"M12 2a9.95 9.95 0 0 1 5.41 1.59l-5.383 12.62H14.2l4.816-11.334A9.968 9.968 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2Zm.188 5.788a2.83 2.83 0 0 0-1.457.372 3.436 3.436 0 0 0-1.053.945h-.04V7.912H7.556v8.299h2.138v-4.4c0-.408.095-.76.287-1.054a1.85 1.85 0 0 1 .724-.662 1.95 1.95 0 0 1 .888-.222h-.001c.13-.001.26.011.388.035.094.012.186.04.271.081l.86-2.053a1.833 1.833 0 0 0-.38-.101 3.022 3.022 0 0 0-.543-.047Z"},null,-1)])],14,S)},v=c({name:"IconSubredditFill",render:k,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-subreddit-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=>l("click",s)}}});export{v as default};