birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 2.08 kB
JavaScript
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 C=["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.887 1.362a1.75 1.75 0 0 0-1.774 0L3.363 5.92A1.75 1.75 0 0 0 2.5 7.429v9.142c0 .62.328 1.194.863 1.508l2.623 1.543C7.319 20.407 9 19.445 9 17.9V7.747H7v10.152l-2.5-1.471V7.572L12 3.16l7.5 4.412v8.856L12 20.84l-1.768-1.04-1.014 1.723 1.895 1.115a1.75 1.75 0 0 0 1.774 0l7.75-4.559a1.75 1.75 0 0 0 .863-1.508V7.429a1.75 1.75 0 0 0-.863-1.508l-7.75-4.56ZM14 7.5c-1.363 0-2.329.351-2.95.97a2.488 2.488 0 0 0-.737 1.761c0 .555.157 1.058.482 1.474.313.4.725.649 1.12.81.72.297 1.62.394 2.344.471l.087.01c.831.09 1.454.167 1.88.345.193.08.272.154.305.197.021.028.062.09.062.26 0 .264-.09.434-.373.595-.347.197-.96.347-1.883.347-.915 0-1.553-.17-1.918-.422-.283-.196-.492-.497-.437-1.15l-1.993-.167c-.108 1.289.359 2.316 1.292 2.962.851.59 1.97.777 3.056.777 1.077 0 2.092-.165 2.873-.61.846-.48 1.383-1.282 1.383-2.332 0-.557-.155-1.061-.477-1.48-.31-.404-.722-.656-1.118-.822-.728-.305-1.64-.403-2.368-.481l-.07-.008c-.833-.09-1.456-.165-1.885-.341-.194-.08-.273-.152-.303-.192-.02-.024-.059-.08-.059-.243 0-.077.023-.219.15-.345.122-.122.499-.386 1.537-.386.99 0 1.567.105 1.897.3.215.128.448.363.48 1.133l1.998-.08c-.05-1.246-.506-2.208-1.458-2.772C16.08 7.583 15.01 7.5 14 7.5Z"},null,-1)])],14,C)},w=c({name:"IconNodejsLine",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-nodejs-line`,{[`${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{w as default};