birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.09 kB
JavaScript
import{defineComponent as p}from"vue";import{computed as s}from"vue";import{createElementVNode as m,normalizeClass as c,normalizeStyle as h,openBlock as v,createElementBlock as d}from"vue";var f=["fill"],u=function(t,e){return v(),d("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:c(t.cls),style:h(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[m("path",{d:"M20 11h-1V7h1V4h2v3h1v4h-1v7a3 3 0 1 1-6 0v-4h-2v5h1v2H2v-2h1V4a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v8h2a2 2 0 0 1 2 2v4a1 1 0 1 0 2 0v-7Zm-8 8V5H5v14h7Zm-3-8h3l-4 6v-4H5l4-6v4Z"},null,-1)])],14,f)},z=p({name:"IconChargingPile2Line",render:u,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=s(()=>[o,`${o}-icon-charging-pile2line`,{[`${o}-spin`]:e.spin}]),a=s(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:a,onClick:i=>n("click",i)}}});export{z as default};