12345 |
- <<<<<<<< HEAD:dist/assets/index-legacy-8c8474f3.js
- System.register(["./index-legacy-5f8741ef.js","./Picker-legacy-94493745.js","./index-legacy-ce9ea9ba.js"],(function(e,t){"use strict";var l,n,c,o,a,i,s,u,r,m,d,v,h,f,g;return{setters:[e=>{l=e.c,n=e.aj,c=e.al,o=e.b,a=e.ai,i=e.d,s=e.r,u=e.e,r=e.w,m=e.a3,d=e.a,v=e.h,h=e.k},e=>{f=e.p},e=>{g=e.P}],execute:function(){const t="000000",p=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],y=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],b=(e="",l=t,n=void 0)=>({text:e,value:l,children:n});function j({areaList:e,columnsNum:l,columnsPlaceholder:n}){const{city_list:c={},county_list:o={},province_list:a={}}=e,i=+l>1,s=+l>2,u=new Map;Object.keys(a).forEach((e=>{u.set(e.slice(0,2),b(a[e],e,(()=>{if(i)return n.length?[b(n[0],t,s?[]:void 0)]:[]})()))}));const r=new Map;if(i){const e=()=>{if(s)return n.length?[b(n[1])]:[]};Object.keys(c).forEach((t=>{const l=b(c[t],t,e());r.set(t.slice(0,4),l);const n=u.get(t.slice(0,2));n&&n.children.push(l)}))}s&&Object.keys(o).forEach((e=>{const t=r.get(e.slice(0,4));t&&t.children.push(b(o[e],e))}));const m=Array.from(u.values());if(n.length){const e=s?[b(n[2])]:void 0,l=i?[b(n[1],t,e)]:void 0;m.unshift(b(n[0],t,l))}return m}const[O,V]=l("area"),x=n({},c(f,y),{modelValue:String,columnsNum:o(3),columnsPlaceholder:a(),areaList:{type:Object,default:()=>({})}});var k=i({name:O,props:x,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:t,slots:l}){const n=s([]),o=s(),a=u((()=>j(e))),i=(...e)=>t("change",...e),h=(...e)=>t("cancel",...e),f=(...e)=>t("confirm",...e);return r(n,(l=>{const n=l.length?l[l.length-1]:"";n&&n!==e.modelValue&&t("update:modelValue",n)}),{deep:!0}),r((()=>e.modelValue),(t=>{t?t!==(n.value.length?n.value[n.value.length-1]:"")&&(n.value=[`${t.slice(0,2)}0000`,`${t.slice(0,4)}00`,t].slice(0,+e.columnsNum)):n.value=[]}),{immediate:!0}),m({confirm:()=>{var e;return null==(e=o.value)?void 0:e.confirm()},getSelectedOptions:()=>{var e;return(null==(e=o.value)?void 0:e.getSelectedOptions())||[]}}),()=>d(g,v({ref:o,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:V(),columns:a.value,onChange:i,onCancel:h,onConfirm:f},c(e,y)),c(l,p))}});e("A",h(k))}}}));
- ========
- System.register(["./index-legacy-23bc5b47.js","./Picker-legacy-02d45d3f.js","./index-legacy-f3aba2e3.js"],(function(e,t){"use strict";var l,n,c,o,a,i,s,u,r,m,d,v,h,f,g;return{setters:[e=>{l=e.c,n=e.aj,c=e.al,o=e.b,a=e.ai,i=e.d,s=e.r,u=e.e,r=e.w,m=e.a3,d=e.a,v=e.h,h=e.k},e=>{f=e.p},e=>{g=e.P}],execute:function(){const t="000000",p=["title","cancel","confirm","toolbar","columns-top","columns-bottom"],y=["title","loading","readonly","optionHeight","swipeDuration","visibleOptionNum","cancelButtonText","confirmButtonText"],b=(e="",l=t,n=void 0)=>({text:e,value:l,children:n});function j({areaList:e,columnsNum:l,columnsPlaceholder:n}){const{city_list:c={},county_list:o={},province_list:a={}}=e,i=+l>1,s=+l>2,u=new Map;Object.keys(a).forEach((e=>{u.set(e.slice(0,2),b(a[e],e,(()=>{if(i)return n.length?[b(n[0],t,s?[]:void 0)]:[]})()))}));const r=new Map;if(i){const e=()=>{if(s)return n.length?[b(n[1])]:[]};Object.keys(c).forEach((t=>{const l=b(c[t],t,e());r.set(t.slice(0,4),l);const n=u.get(t.slice(0,2));n&&n.children.push(l)}))}s&&Object.keys(o).forEach((e=>{const t=r.get(e.slice(0,4));t&&t.children.push(b(o[e],e))}));const m=Array.from(u.values());if(n.length){const e=s?[b(n[2])]:void 0,l=i?[b(n[1],t,e)]:void 0;m.unshift(b(n[0],t,l))}return m}const[O,V]=l("area"),x=n({},c(f,y),{modelValue:String,columnsNum:o(3),columnsPlaceholder:a(),areaList:{type:Object,default:()=>({})}});var k=i({name:O,props:x,emits:["change","confirm","cancel","update:modelValue"],setup(e,{emit:t,slots:l}){const n=s([]),o=s(),a=u((()=>j(e))),i=(...e)=>t("change",...e),h=(...e)=>t("cancel",...e),f=(...e)=>t("confirm",...e);return r(n,(l=>{const n=l.length?l[l.length-1]:"";n&&n!==e.modelValue&&t("update:modelValue",n)}),{deep:!0}),r((()=>e.modelValue),(t=>{t?t!==(n.value.length?n.value[n.value.length-1]:"")&&(n.value=[`${t.slice(0,2)}0000`,`${t.slice(0,4)}00`,t].slice(0,+e.columnsNum)):n.value=[]}),{immediate:!0}),m({confirm:()=>{var e;return null==(e=o.value)?void 0:e.confirm()},getSelectedOptions:()=>{var e;return(null==(e=o.value)?void 0:e.getSelectedOptions())||[]}}),()=>d(g,v({ref:o,modelValue:n.value,"onUpdate:modelValue":e=>n.value=e,class:V(),columns:a.value,onChange:i,onCancel:h,onConfirm:f},c(e,y)),c(l,p))}});e("A",h(k))}}}));
- >>>>>>>> iteration-20250327-light:dist/assets/index-legacy-53906c35.js
|