birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.46 kB
JavaScript
import{defineComponent as p}from"vue";import{computed as i}from"vue";import{createElementVNode as m,normalizeClass as a,normalizeStyle as h,openBlock as d,createElementBlock as f}from"vue";var u=["fill"],k=function(t,e){return d(),f("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:a(t.cls),style:h(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[m("path",{d:"m10.15 5.55-1.717 8.834h2l.858-4.417h1.5c.553 0 .915.44.81.982l-.668 3.435h2l.668-3.435c.316-1.627-.771-2.945-2.428-2.945h-1.5l.477-2.454h-2ZM2.173 8.004h3.75c1.795 0 2.972 1.428 2.63 3.19-.343 1.762-2.075 3.19-3.87 3.19h-1.75l-.477 2.455h-2l1.717-8.835Zm1.141 4.417h1.75c.69 0 1.357-.55 1.489-1.227.131-.678-.321-1.227-1.012-1.227h-1.75l-.477 2.454Zm13.859-4.417h3.75c1.795 0 2.972 1.428 2.63 3.19-.343 1.762-2.076 3.19-3.87 3.19h-1.75l-.477 2.455h-2l1.717-8.835Zm1.141 4.417h1.75c.69 0 1.357-.55 1.489-1.227.131-.678-.321-1.227-1.012-1.227h-1.75l-.477 2.454Z"},null,-1)])],14,u)},w=p({name:"IconPhpLine",render:k,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=i(()=>[n,`${n}-icon-php-line`,{[`${n}-spin`]:e.spin}]),c=i(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:r,innerStyle:c,onClick:s=>l("click",s)}}});export{w as default};