2 lines
877 B
JavaScript
Raw Normal View History

2025-08-29 09:51:02 +08:00
"use strict";const o=require("../../common/vendor.js");if(!Array){o.resolveComponent("uni-icons")()}Math;const e=o.defineComponent({__name:"hs-button",props:["type","label","icon","size","openType","iconColor","buttonStyle"],emits:["click","onGetPhoneNumber"],setup(e,{emit:n}){const t=e,l=()=>{n("click")},i=o=>{var e;"getPhoneNumber:ok"===(null==(e=null==o?void 0:o.detail)?void 0:e.errMsg)&&n("onGetPhoneNumber",o)};return(e,n)=>o.e({a:null==t?void 0:t.icon},(null==t?void 0:t.icon)?{b:o.p({type:null==t?void 0:t.icon,size:"16",color:(null==t?void 0:t.iconColor)||"#0082fa"})}:{},{c:o.t((null==t?void 0:t.label)||"我是按钮"),d:o.s(t.buttonStyle),e:(null==t?void 0:t.openType)||"",f:o.n(`nchl_button ${null==t?void 0:t.type}_button ${(null==t?void 0:t.size)||"sm"}_size`),g:o.o(l),h:o.o(i)})}}),n=o._export_sfc(e,[["__scopeId","data-v-8d95c8ba"]]);wx.createComponent(n);