UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.32 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:"M13 4h-2v5a1 1 0 0 1-1 1H5v10h14V10h2v11.008a.993.993 0 0 1-.993.992H3.993A1 1 0 0 1 3 20.993V8l6-5.997V2h4v2ZM5.83 8H9V4.83L5.83 8ZM19.47.33a.507.507 0 0 0-.94 0l-.254.61a4.366 4.366 0 0 1-2.25 2.327l-.718.32a.53.53 0 0 0 0 .962l.76.338a4.364 4.364 0 0 1 2.22 2.25l.245.566c.18.415.753.415.934 0l.247-.565a4.363 4.363 0 0 1 2.219-2.251l.76-.338a.53.53 0 0 0 0-.963l-.718-.32A4.367 4.367 0 0 1 19.724.942L19.47.329Z"},null,-1)])],14,k)},z=p({name:"IconFileAiLine",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",r=s(()=>[n,`${n}-icon-file-ai-line`,{[`${n}-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=>l("click",i)}}});export{z as default};