birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.61 kB
JavaScript
import{defineComponent as c}from"vue";import{computed as i}from"vue";import{createElementVNode as m,normalizeClass as p,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:p(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[m("path",{d:"M15.488 3.33a4 4 0 0 1 4.899 2.83l2.459 9.175a4.5 4.5 0 1 1-8.842 1.372 6.997 6.997 0 0 1-4.01 0 4.5 4.5 0 1 1-8.84-1.372L3.61 6.16a4 4 0 0 1 7.86.87 5.047 5.047 0 0 1 1.055 0 4.003 4.003 0 0 1 2.962-3.699ZM6.146 14.085a2.5 2.5 0 1 0-1.294 4.83 2.5 2.5 0 0 0 1.294-4.83Zm14.69 1.525a2.5 2.5 0 1 0 .132.493l-.054-.25-.079-.243Zm-2.38-8.933a2 2 0 0 0-3.908.835l.043.2.022.103.32 2.029-1.974.313-.167-1.051a3.006 3.006 0 0 0-1.587 0l-.166 1.05-1.975-.312.257-1.626.064-.403.021-.103a2 2 0 1 0-3.863-1.035l-1.491 5.562a4.481 4.481 0 0 1 2.612-.086 4.487 4.487 0 0 1 2.743 2.12c.756.46 1.641.727 2.592.727.951 0 1.835-.268 2.591-.727a4.488 4.488 0 0 1 2.744-2.12 4.48 4.48 0 0 1 2.611.085l-1.49-5.561Z"},null,-1)])],14,k)},w=c({name:"IconBinocularsLine",render:y,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,n=t,l="bp-icon",r=i(()=>[l,`${l}-icon-binoculars-line`,{[`${l}-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};