birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.52 kB
JavaScript
import{defineComponent as c}from"vue";import{computed as i}from"vue";import{createElementVNode as m,normalizeClass as p,normalizeStyle as d,openBlock as f,createElementBlock as u}from"vue";var g=["fill"],k=function(t,e){return f(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:p(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[m("path",{d:"m3.929 4.929 1.414 1.414A7.975 7.975 0 0 0 3 12c0 2.21.895 4.21 2.343 5.657L3.93 19.07A9.969 9.969 0 0 1 1 12.001a9.969 9.969 0 0 1 2.929-7.072Zm16.142 0A9.968 9.968 0 0 1 23 12a9.968 9.968 0 0 1-2.929 7.071l-1.414-1.414A7.975 7.975 0 0 0 21 12a7.975 7.975 0 0 0-2.342-5.656L20.07 4.93ZM13 5v6h3l-5 8v-6H8l5-8ZM6.757 7.757l1.415 1.415A3.987 3.987 0 0 0 7 12c0 1.105.448 2.105 1.172 2.829l-1.415 1.414A5.981 5.981 0 0 1 5 12c0-1.657.672-3.157 1.757-4.243Zm10.487.001A5.981 5.981 0 0 1 19 12a5.981 5.981 0 0 1-1.757 4.243l-1.415-1.414A3.987 3.987 0 0 0 17 12a3.987 3.987 0 0 0-1.17-2.827l1.414-1.415Z"},null,-1)])],14,g)},z=c({name:"IconWirelessChargingLine",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,n=t,l="bp-icon",r=i(()=>[l,`${l}-icon-wireless-charging-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=>n("click",s)}}});export{z as default};