var a=Object.defineProperty;var s=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var l=(t,o,e)=>o in t?a(t,o,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[o]=e,i=(t,o)=>{for(var e in o||(o={}))u.call(o,e)&&l(t,e,o[e]);if(s)for(var e of s(o))c.call(o,e)&&l(t,e,o[e]);return t};import{_ as d}from"./uv-button.DwAMxj01.js";import{_ as b,c as m,w as h,aZ as p,C as y,E as f,o as g,J as _}from"./index-CZJgrp0v.js";import{t as x}from"./themeMixins.C76yI6bA.js";/* empty css                                                                     */const T={mixins:[x],options:{styleIsolation:"shared"},props:{loadingText:{type:String,default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},customStyle:{type:Object,default:()=>({})},buttonType:{type:String,default:"primary"}},data(){return{}},computed:{commonStyle(){let t={height:"88rpx","font-size":"30rpx","line-height":"88rpx","border-style":"none","border-radius":"16rpx"},o=this.getButtonTypeStyle();return this.disabled&&(t.opacity=this.themeConfigGetter[`--hubei-${this.buttonType}-button-disabled-opacity`]),i(i({},t),o)}},methods:{click(t){console.log("--------button"),this.$emit("customClick",t),this.$emit("click",t)},getButtonTypeStyle(){let t={background:this.themeConfigGetter[`--hubei-${this.buttonType}-button-bg-color`],color:this.themeConfigGetter[`--hubei-${this.buttonType}-button-font-color`]};return this.themeConfigGetter[`--hubei-${this.buttonType}-button-border-color`]&&(t.border=`1rpx solid ${this.themeConfigGetter[`--hubei-${this.buttonType}-button-border-color`]}`),t}}};function C(t,o,e,S,k,n){const r=y(f("uv-button"),d);return g(),m(r,p({customStyle:i(i({},n.commonStyle),e.customStyle),disabled:e.disabled,loading:e.loading,loadingText:e.loadingText,onClick:n.click},t.$attrs,{throttleTime:300}),{default:h(()=>[_(t.$slots,"default",{},void 0,!0)]),_:3},16,["customStyle","disabled","loading","loadingText","onClick"])}const O=b(T,[["render",C],["__scopeId","data-v-c9b23c85"]]);export{O as _};
