UNPKG

birdpaper-icon

Version:

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

2 lines (1 loc) 2.03 kB
import{defineComponent as c}from"vue";import{computed as i}from"vue";import{createElementVNode as m,normalizeClass as p,normalizeStyle as u,openBlock as d,createElementBlock as f}from"vue";var y=["fill"],k=function(t,e){return d(),f("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:p(t.cls),style:u(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[m("path",{d:"M11.505 3.043a.917.917 0 0 1 .795-.46c1.547 0 3.09.05 4.637.154 2.51.171 3.7 1.59 4.18 2.43.596.092 1.388.088 1.571.807.14.552-.217.833-.554 1.148-.483.45-1.133 1.176-.954 1.888.055.222.159.437.316.765l.002.003c.318.667.684 1.51.742 3.115.156 4.34-3.596 6.896-7.252 7.08-2.41 1.815-6.345 3.025-12.557 1.957a1.328 1.328 0 0 1-.945-.709 1.245 1.245 0 0 1-.12-.735c.039-.275.165-.511.33-.7 3.228-3.675 6.635-7.246 9.654-11.098.526-.67.96-1.28 1.15-1.648.309-.919-.009-1.444-.625-2.463-.282-.467-.69-.978-.37-1.534Zm1.989 5.843c.874.005 1.85.249 2.885.875 2.124 1.288 2.334 3.996 1.625 6.157a7.62 7.62 0 0 1-.836 1.727c1.936-.797 3.319-2.484 3.24-4.686-.047-1.28-.317-1.871-.564-2.389l-.03-.06c-.132-.277-.31-.647-.412-1.054-.271-1.08.175-2.04.614-2.678a.917.917 0 0 1-.387-.493v-.001a2.578 2.578 0 0 0-.58-.817c-.407-.393-1.094-.823-2.236-.901a65.3 65.3 0 0 0-2.89-.13c.452.878.758 1.94.289 3.267-.151.426-.46.82-.718 1.183Zm-.832 1.945c-.719.202-1.214.63-1.378.815-2.717 3.057-5.881 6.689-7.576 8.627 5.45.747 8.601-.49 10.378-1.922 1.295-1.043 1.925-2.24 2.176-3.004.434-1.323.537-3.187-.834-4.018-1.153-.699-2.088-.69-2.766-.498Z"},null,-1)])],14,y)},B=c({name:"IconYuqueLine",render:k,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=i(()=>[o,`${o}-icon-yuque-line`,{[`${o}-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=>n("click",s)}}});export{B as default};