birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.27 kB
JavaScript
import{defineComponent as m}from"vue";import{computed as s}from"vue";import{createElementVNode as p,normalizeClass as c,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:c(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[p("path",{d:"M20.556 3.444a4 4 0 0 1 0 5.657l-8.2 8.2a4 4 0 0 1-2.386 1.147l-3.38.374-2.297 2.3a1 1 0 1 1-1.414-1.415l2.298-2.299.375-3.377A4 4 0 0 1 6.7 11.644l8.2-8.2a4 4 0 0 1 5.658 0Zm-9.192 9.192L9.95 14.05l2.121 2.122 1.414-1.415-2.12-2.12Zm2.829-2.828-1.415 1.414 2.122 2.121 1.414-1.414-2.121-2.121Zm2.828-2.829-1.414 1.414 2.121 2.122L19.142 9.1l-2.121-2.122Z"},null,-1)])],14,k)},B=m({name:"IconThermometerFill",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,l=t,o="bp-icon",i=s(()=>[o,`${o}-icon-thermometer-fill`,{[`${o}-spin`]:e.spin}]),a=s(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:a,onClick:r=>l("click",r)}}});export{B as default};