UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 1.22 kB
import{defineComponent as p}from"vue";import{computed as i}from"vue";import{createElementVNode as c,normalizeClass as m,normalizeStyle as d,openBlock as u,createElementBlock as f}from"vue";var k=["fill"],y=function(t,e){return u(),f("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]=(...o)=>t.onClick&&t.onClick(...o))},[...e[1]||(e[1]=[c("path",{d:"M1 14.5a6.496 6.496 0 0 1 3.064-5.519 8.001 8.001 0 0 1 15.872 0 6.5 6.5 0 0 1-2.936 12L7 21c-3.356-.274-6-3.078-6-6.5Zm15.848 4.487a4.5 4.5 0 0 0 2.03-8.309l-.807-.503-.12-.942a6.001 6.001 0 0 0-11.903 0l-.12.942-.805.503a4.5 4.5 0 0 0 2.029 8.309l.173.013h9.35l.173-.013ZM13 13v4h-2v-4H8l4-5 4 5h-3Z"},null,-1)])],14,k)},v=p({name:"IconUploadCloudLine",render:y,props:{size:{type:String,default:"18px"},fill:{type:String,default:"#595959"},spin:{type:Boolean,default:!1},rotate:{type:Number}},emits:["click"],setup(n,{emit:t}){let e=n,o=t,l="bp-icon",r=i(()=>[l,`${l}-icon-upload-cloud-line`,{[`${l}-spin`]:e.spin}]),a=i(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:a,onClick:s=>o("click",s)}}});export{v as default};