UNPKG

birdpaper-icon

Version:

基于 Remix icon 生成的 Vue3 图标组件库

2 lines (1 loc) 1.37 kB
import{defineComponent as c}from"vue";import{computed as i}from"vue";import{createElementVNode as m,normalizeClass as p,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:p(t.cls),style:f(t.innerStyle),fill:t.fill,onClick:e[0]||(e[0]=(...l)=>t.onClick&&t.onClick(...l))},[...e[1]||(e[1]=[m("path",{d:"m13.414 10.586.48.486.464.485.46.492c3.458 3.764 5.472 7.218 4.607 8.083-.4.4-1.356.184-2.64-.507a9.006 9.006 0 0 1-10.403-.592l2.98-2.98a2 2 0 1 0-1.45-1.569l.035.155-2.979 2.98a9.007 9.007 0 0 1-.592-10.405c-.692-1.283-.908-2.238-.508-2.639.977-.976 5.25 1.715 9.546 6.01Zm6.364-6.364a2 2 0 0 1-.165 2.976 9.015 9.015 0 0 1 .608 8.47c-1.189-1.954-3.07-4.173-5.393-6.496l-.537-.532c-2.128-2.078-4.156-3.764-5.958-4.86a9.015 9.015 0 0 1 8.471.607 2 2 0 0 1 2.974-.165Z"},null,-1)])],14,k)},w=c({name:"IconBellFill",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,l=t,n="bp-icon",r=i(()=>[n,`${n}-icon-bell-fill`,{[`${n}-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=>l("click",s)}}});export{w as default};