"use strict"; const common_vendor = require("../common/vendor.js"); const _sfc_main = { props: { gradual: { type: String, default: () => { return ""; } }, size: { type: String, default: () => { return "default"; } }, btnText: { type: String, default: () => { return "按钮"; } }, mode: { type: String, default: () => { return "circle"; } }, type: { type: String, default: () => { return "default"; } }, openType: { type: String, default: () => { return ""; } }, formType: { type: String, default: () => { return ""; } }, icon: { type: String, default: () => { return ""; } }, width: { default: () => { return "auto"; } }, height: { default: () => { return "auto"; } }, fontSize: { default: () => { return "16"; } }, color: { default: () => { return ""; } }, loading: { default: () => { return false; } }, customBgColor: { default: () => { return ""; } } }, methods: { handleClick() { if (!this.loading) { this.$emit("clickBtn"); } }, getphonenumber(e) { this.$emit("clickTel", e); } } }; const __injectCSSVars__ = () => { common_vendor.useCssVars((_ctx) => ({ "11c067fc": _ctx.gradual, "0a79b8d2": _ctx.customBgColor })); }; const __setup__ = _sfc_main.setup; _sfc_main.setup = __setup__ ? (props, ctx) => { __injectCSSVars__(); return __setup__(props, ctx); } : __injectCSSVars__; if (!Array) { const _easycom_u_loading2 = common_vendor.resolveComponent("u-loading"); _easycom_u_loading2(); } const _easycom_u_loading = () => "../uni_modules/vk-uview-ui/components/u-loading/u-loading.js"; if (!Math) { _easycom_u_loading(); } function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { return common_vendor.e({ a: $props.loading }, $props.loading ? { b: common_vendor.p({ mode: "flower" }) } : {}, { c: $props.icon }, $props.icon ? { d: common_vendor.n($props.icon) } : {}, { e: common_vendor.t($props.btnText), f: common_vendor.n("g_fs_" + $props.fontSize), g: common_vendor.n("bocai_btn_size_" + $props.size), h: common_vendor.n("bocai_btn_mode_" + $props.mode), i: common_vendor.n("bocai_btn_type_" + $props.type), j: common_vendor.n("g_w_" + $props.width), k: common_vendor.n("g_h_" + $props.height), l: common_vendor.n($props.customBgColor ? "customBgColor" : ""), m: $props.height - 2 + "px", n: $props.color ? $props.color : "", o: common_vendor.o((...args) => $options.handleClick && $options.handleClick(...args)), p: $props.formType, q: $props.openType, r: common_vendor.o((...args) => $options.getphonenumber && $options.getphonenumber(...args)), s: common_vendor.s(_ctx.__cssVars()) }); } const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-8b5691fc"]]); wx.createComponent(Component); //# sourceMappingURL=../../.sourcemap/mp-weixin/components/button.js.map