birdpaper-icon
Version:
基于 Remix icon 生成的 Vue3 图标组件库
2 lines (1 loc) • 2.28 kB
JavaScript
import{defineComponent as a}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 k=["fill"],y=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]=(...o)=>t.onClick&&t.onClick(...o))},[...e[1]||(e[1]=[m("path",{d:"M17.173 14H14.5v1.375c.55-.222 1.153-.49 1.812-.81l-.082-.238.942-.327Zm.828-.287.12-.042c.641 1.851 1.034 3.012 1.185 3.5l-1.912.59c-.073-.24-.216-.672-.427-1.293-6.081 2.884-8.671 2.054-9.008-1.908l1.993-.169c.1 1.165.344 1.621.897 1.752.393.093.94.063 1.652-.104v-2.04h-3.5v-2h.513l-1.167-1.39c1.043-.875 1.858-1.829 2.449-2.863-.519.135-1.038.28-1.552.435A13.954 13.954 0 0 1 7.49 10.29l-1.4-1.428c1.273-1.248 2.333-2.91 3.176-4.994l1.854.75c-.153.378-.313.745-.48 1.1 3.702-.935 7.275-1.316 9.138-.68 1.223.419 1.919 1.392 2.188 2.585.17.756.313 2.689.313 5.122 0 2.808-.056 3.772-.34 4.623-.298.89-.697 1.418-1.408 1.984-.657.523-1.553.763-2.645.823-.673.037-1.368.002-2.095-.08-.119-.013-.234-.027-.354-.042l-.242-.033.264-1.982.237.032.319.038c.625.07 1.216.1 1.762.07.714-.04 1.245-.181 1.508-.39.426-.34.591-.558.756-1.054.186-.555.238-1.448.238-3.989 0-2.298-.134-4.101-.265-4.682-.13-.577-.41-.97-.883-1.132-1.207-.412-3.801-.194-6.652.416l.615.263c-.13.302-.273.599-.43.89h5.337v2h-3.5V12h3.5v1.713Zm-5.5-3.213h-1.208A13.678 13.678 0 0 1 9.799 12h2.702v-1.5Zm-10.038-.438L3.54 8.376c1.062.68 2.935 2.428 3.338 3.162 1.239 2.26.198 4.176-3.122 7.997l-1.51-1.311c2.687-3.094 3.5-4.59 2.878-5.725-.214-.39-1.857-1.923-2.661-2.437ZM5.14 7.583c-1.048 0-1.882-.762-1.886-1.693 0-.94.838-1.701 1.886-1.701 1.04 0 1.883.758 1.883 1.701 0 .935-.843 1.693-1.883 1.693Z"},null,-1)])],14,k)},z=a({name:"IconTaobaoLine",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,o=t,l="bp-icon",r=i(()=>[l,`${l}-icon-taobao-line`,{[`${l}-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=>o("click",s)}}});export{z as default};