UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.38 kB
import{defineComponent as p}from"vue";import{computed as s}from"vue";import{createElementVNode as c,normalizeClass as m,normalizeStyle as d,openBlock as f,createElementBlock as u}from"vue";var k=["fill"],y=function(t,e){return f(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:m(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[c("path",{d:"M18.531 3.015A2.75 2.75 0 0 1 21 5.75v12.5l-.015.281A2.75 2.75 0 0 1 18.25 21H5.75A2.75 2.75 0 0 1 3 18.25V5.75a2.75 2.75 0 0 1 2.469-2.735L5.75 3h12.5l.281.015ZM5.75 5a.75.75 0 0 0-.75.75v12.5c0 .414.336.75.75.75h12.5a.75.75 0 0 0 .75-.75V5.75a.75.75 0 0 0-.75-.75H5.75Zm5.013 12.268H5.809L13.24 6.739h4.954l-7.431 10.529Zm7.119 0h-6.194l.873-1.239a.732.732 0 0 1 .6-.312h4.72v1.55ZM12.314 6.739l-.865 1.233a.733.733 0 0 1-.6.312H6.122v-1.55c.012.006 6.185.005 6.194.005Z"},null,-1)])],14,k)},g=p({name:"IconZhipuAiLine",render:y,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",r=s(()=>[o,`${o}-icon-zhipu-ai-line`,{[`${o}-spin`]:e.spin}]),a=s(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:a,onClick:i=>n("click",i)}}});export{g as default};