UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.04 kB
import{defineComponent as p}from"vue";import{computed as s}from"vue";import{createElementVNode as c,normalizeClass as m,normalizeStyle as f,openBlock as d,createElementBlock as u}from"vue";var k=["fill"],y=function(t,e){return d(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:m(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[c("path",{d:"M15.116 5.876 21 3.523V20H3V4.323l6.117-2.447 6 4ZM5 5.676v6.557l3.88-2.327 6.088 2.03L19 10.321V6.477l-4.117 1.647-6-4.001L5 5.677Z"},null,-1)])],14,k)},B=p({name:"IconAreaChartFill",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,l=t,n="bp-icon",i=s(()=>[n,`${n}-icon-area-chart-fill`,{[`${n}-spin`]:e.spin}]),a=s(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:a,onClick:r=>l("click",r)}}});export{B as default};