UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.17 kB
import{defineComponent as m}from"vue";import{computed as r}from"vue";import{createElementVNode as p,normalizeClass as c,normalizeStyle as f,openBlock as d,createElementBlock as u}from"vue";var h=["fill"],k=function(t,e){return d(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:c(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o))},[...e[1]||(e[1]=[p("path",{d:"M6 21.5A3.5 3.5 0 1 1 9.355 17H15v-2h2V9.242L14.757 7H9V9H3V3h6v2h5.757L18 1.756 22.243 6 19 9.241V15L21 15v6h-6v-2H9.355A3.502 3.502 0 0 1 6 21.5Zm0-5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3Zm13 .5h-2v2h2v-2ZM18 4.586 16.586 6 18 7.414 19.414 6 18 4.586ZM7 5H5v2h2V5Z"},null,-1)])],14,h)},g=m({name:"IconFlowChart",render:k,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,o=t,n="bp-icon",i=r(()=>[n,`${n}-icon-flow-chart`,{[`${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=>o("click",s)}}});export{g as default};