(function(o,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],i):(o=typeof globalThis<"u"?globalThis:o||self,i(o.index={},o.Vue))})(this,function(o,i){"use strict";const m={type:{type:String,default:"primary"},size:{type:String,default:"default"},disabled:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},nativeType:{type:String,default:"button"}},$="",s="g";function l(e,t,u){let n=e;return t&&(n+=`__${t}`),u&&(n+=`--${u}`),n}function p(e,t=!1){const u=t?`.${s}-${e}`:`${s}-${e}`;return{b:()=>l(u),e:a=>a?l(u,a):"",m:a=>a?l(u,"",a):"",em:(a,y)=>a&&y?l(u,a,y):""}}const b="G",c=i.defineComponent({name:`${b}Button`,props:m,emits:["click"],setup(e,{slots:t,emit:u}){const n=p("button"),f=i.computed(()=>({[n.b()]:!0,[n.m(e.type)]:!!e.type,[n.m(`plain-${e.type}`)]:!!e.plain,[n.m(e.size)]:!!e.size,[n.m("round")]:e.round,[n.m("circle")]:e.circle})),d=r=>{u("click",r)};return()=>i.createVNode("button",{class:f.value,type:e.nativeType,autofocus:e.autofocus,disabled:e.disabled,onClick:d},[t.icon&&t.icon(),t.default&&t.default()])}});c.install=function(e,t){e.component(t||c.name,c)};const B={title:"Button 按钮",category:"通用",status:"100%",install(e){e.component(c.name,c)}};o.Button=c,o.default=B,Object.defineProperties(o,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
