birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 1.49 kB
JavaScript
import{defineComponent as c}from"vue";import{computed as r}from"vue";import{createElementVNode as p,normalizeClass as m,normalizeStyle as d,openBlock as f,createElementBlock as u}from"vue";var k=["fill"],y=function(t,e){return f(),u("svg",{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",class:m(t.cls),style:d(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...n)=>t.onClick&&t.onClick(...n))},[...e[1]||(e[1]=[p("path",{d:"M9.5.5A2.5 2.5 0 0 1 12 3v3.803a2.976 2.976 0 0 1 1.803-.062l5 1.389A3 3 0 0 1 21 11.02v4.481a7.5 7.5 0 0 1-7.5 7.5c-2.458 0-4.329-.693-5.817-1.999-1.45-1.273-2.458-3.064-3.35-5.1-.929-2.126-1.444-3.421-1.724-4.178-.356-.964.137-2.311 1.477-2.405l.248-.01a4.011 4.011 0 0 1 2.666.95V3A2.5 2.5 0 0 1 9.5.5Zm0 2A.5.5 0 0 0 9 3v11h-.995l-.986.197c-.348-1.74-1.334-2.746-2.422-2.872.285.745.765 1.938 1.569 3.775.859 1.962 1.725 3.422 2.838 4.399 1.074.943 2.455 1.502 4.496 1.502 3.037 0 5.5-2.463 5.5-5.5v-4.48a1 1 0 0 0-.733-.964l-5-1.389A1 1 0 0 0 12 9.631V11h-2V3a.5.5 0 0 0-.5-.5Z"},null,-1)])],14,k)},h=c({name:"IconCursorHand",render:y,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",i=r(()=>[o,`${o}-icon-cursor-hand`,{[`${o}-spin`]:e.spin}]),a=r(()=>({width:e.size,height:e.size,transform:e.rotate?`rotate(${e.rotate}deg)`:void 0}));return{cls:i,innerStyle:a,onClick:s=>n("click",s)}}});export{h as default};