UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.11 kB
import{defineComponent as v}from"vue";import{computed as r}from"vue";import{createElementVNode as h,normalizeClass as a,normalizeStyle as p,openBlock as c,createElementBlock as d}from"vue";var f=["fill"],u=function(t,e){return c(),d("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:a(t.cls),style:p(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[h("path",{d:"M16 17v-1h-3v-3h3v2h2v2h-1v2h-2v2h-2v-3h2v-1h1Zm5 4h-4v-2h2v-2h2v4ZM3 3h8v8H3V3Zm2 2v4h4V5H5Zm8-2h8v8h-8V3Zm2 2v4h4V5h-4ZM3 13h8v8H3v-8Zm2 2v4h4v-4H5Zm13-2h3v2h-3v-2ZM6 6h2v2H6V6Zm0 10h2v2H6v-2ZM16 6h2v2h-2V6Z"},null,-1)])],14,f)},V=v({name:"IconQrCodeLine",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-qr-code-line`,{[`${o}-spin`]:e.spin}]),m=r(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:m,onClick:s=>n("click",s)}}});export{V as default};