UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.06 kB
import{defineComponent as m}from"vue";import{computed as r}from"vue";import{createElementVNode as c,normalizeClass as p,normalizeStyle as h,openBlock as d,createElementBlock as v}from"vue";var f=["fill"],u=function(t,e){return d(),v("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:p(t.cls),style:h(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[c("path",{d:"M8 8v12H3V8h5Zm6.5-4v16h-5V4h5ZM21 9v11h-5V9h5Zm-3 9h1v-1h-1v1Zm-6.5 0h1v-2h-1v2ZM5 18h1v-4H5v4Zm13-3h1v-4h-1v4Zm-6.5-1h1V6h-1v8ZM5 12h1v-2H5v2Z"},null,-1)])],14,f)},g=m({name:"IconStackedChartLine",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",i=r(()=>[o,`${o}-icon-stacked-chart-line`,{[`${o}-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=>n("click",s)}}});export{g as default};