UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.17 kB
import{defineComponent as a}from"vue";import{computed as i}from"vue";import{createElementVNode as c,normalizeClass as p,normalizeStyle as v,openBlock as h,createElementBlock as f}from"vue";var d=["fill"],u=function(t,e){return h(),f("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:p(t.cls),style:v(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...o)=>t.onClick&&t.onClick(...o))},[...e[1]||(e[1]=[c("path",{d:"M20 3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h16ZM7 15v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2Zm-6-2v2h2v-2H9Zm4 0v2h2v-2h-2Zm-6-2v2h2v-2H7Zm4 0v2h2v-2h-2Zm4 0v2h2v-2h-2ZM9 9v2h2V9H9Zm4 0v2h2V9h-2ZM7 7v2h2V7H7Zm4 0v2h2V7h-2Zm4 0v2h2V7h-2Z"},null,-1)])],14,d)},V=a({name:"IconMosaicFill",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,o=t,n="bp-icon",r=i(()=>[n,`${n}-icon-mosaic-fill`,{[`${n}-spin`]:e.spin}]),m=i(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:m,onClick:s=>o("click",s)}}});export{V as default};