birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.42 kB
JavaScript
import{defineComponent as p}from"vue";import{computed as i}from"vue";import{createElementVNode as m,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]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[m("path",{d:"m12 3.298 2.446-1.63 1.11 1.664L13 5.035v5.233l4.531-2.617.198-3.064 1.996.13-.19 2.932 2.635 1.303-.886 1.792-2.753-1.36L14.001 12l4.532 2.616 2.752-1.36.886 1.792-2.634 1.303.19 2.932-1.997.129-.197-3.064L13 13.732v5.233l2.554 1.703-1.109 1.664-2.445-1.63-2.446 1.63-1.109-1.664 2.555-1.703v-5.233l-4.532 2.616-.198 3.064-1.996-.128.19-2.933-2.635-1.303.887-1.793 2.752 1.361L10 12 5.469 9.383l-2.752 1.361-.887-1.793L4.465 7.65l-.19-2.933 1.997-.129.197 3.064 4.532 2.616V5.035L8.446 3.332l1.11-1.664L12 3.298Z"},null,-1)])],14,k)},v=p({name:"IconSnowflakeLine",render:y,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-snowflake-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{v as default};