birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.36 kB
JavaScript
import{defineComponent as c}from"vue";import{computed as r}from"vue";import{createElementVNode as m,normalizeClass as p,normalizeStyle as d,openBlock as h,createElementBlock as f}from"vue";var u=["fill"],k=function(t,e){return h(),f("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:p(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[m("path",{d:"m2 22 5.291-1.176A9.956 9.956 0 0 0 12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12c0 1.703.425 3.306 1.176 4.709L2 22Zm6.234-2.94-.653-.349-2.947.655.655-2.947-.35-.653A7.955 7.955 0 0 1 4 12a8 8 0 1 1 8 8 7.955 7.955 0 0 1-3.766-.94ZM15.45 7H13.44l-.175 2h-2.008l.175-2H9.426L9.25 9H7v2h2.076L8.9 13H7v2h1.726l-.175 2h2.008l.175-2h2.007l-.175 2h2.008l.175-2H17v-2h-2.076l.175-2H17V9h-1.726l.175-2Zm-4.366 4h2.008l-.175 2h-2.008l.175-2Z"},null,-1)])],14,u)},z=c({name:"IconChatThreadLine",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",i=r(()=>[n,`${n}-icon-chat-thread-line`,{[`${n}-spin`]:e.spin}]),a=r(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:a,onClick:s=>l("click",s)}}});export{z as default};