"use strict";const e=require("../../common/vendor.js");if(!Array){e.resolveComponent("uni-icons")()}Math;const l=e.defineComponent({__name:"hs-radio-cell-picker",props:["Enums","title","pickerIndex","value","borderTop","required","tip","key","des","padding","valueModel","disabled"],emits:["change","update:valueModel"],setup(l,{emit:t}){const o=l,d=e.ref(""),u=e.ref([]),n=e=>{let l=u.value[null==e?void 0:e.detail.value];d.value=null==l?void 0:l.text,t("update:valueModel",null==l?void 0:l.value),t("change",l)},a=()=>{let e=Object.entries(null==o?void 0:o.Enums).map(([e,l])=>({text:l.text,value:l.value,type:(null==l?void 0:l.type)||""}));u.value=e};return e.watch(()=>null==o?void 0:o.Enums,()=>{a()}),e.onMounted(()=>{a()}),(t,a)=>e.e({a:e.t((null==o?void 0:o.title)||"标题"),b:l.required},(l.required,{}),{c:e.t(d.value||"请选择"),d:e.p({type:"right",size:"15",color:"#999"}),e:e.n(d.value?"valueStyle":"valueStyle placeholderStyle"),f:o.borderTop?"1rpx solid #eee":"",g:(null==o?void 0:o.padding)||"10rpx 0",h:u.value,i:(null==o?void 0:o.key)||"text",j:e.o(n),k:null==o?void 0:o.disabled})}}),t=e._export_sfc(l,[["__scopeId","data-v-23753bda"]]);wx.createComponent(t);
