2025-12-15 18:19:04 +08:00

2 lines
907 B
JavaScript

"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("hs-button")()}Math;const t=e.defineComponent({__name:"hs-footer",props:["btnParimaryName","btnOtherName","btnOtherShow","back","loading","openType"],emits:["handleParmaryClick","handleOtherClick"],setup(t,{emit:n}){const a=t,o=()=>{n("handleParmaryClick")},l=()=>{n("handleOtherClick"),(null==a?void 0:a.back)&&e.index.navigateBack({delta:1})};return(t,n)=>e.e({a:!t.$slots.default},t.$slots.default?{}:e.e({b:null==a?void 0:a.btnOtherShow},(null==a?void 0:a.btnOtherShow)?{c:e.p({label:(null==a?void 0:a.btnOtherName)||"返回",type:"display",size:"md"}),d:e.o(l)}:{},{e:e.p({label:(null==a?void 0:a.btnParimaryName)||"提交",disabled:null==a?void 0:a.loading,type:"primary",openType:(null==a?void 0:a.openType)||"",size:"md"}),f:e.o(o)}))}}),n=e._export_sfc(t,[["__scopeId","data-v-8dc20923"]]);wx.createComponent(n);