var d=(n,c,r)=>new Promise((t,o)=>{var l=e=>{try{s(r.next(e))}catch(i){o(i)}},a=e=>{try{s(r.throw(e))}catch(i){o(i)}},s=e=>e.done?t(e.value):Promise.resolve(e.value).then(l,a);s((r=r.apply(n,c)).next())});import{r as u,S as f}from"./index.2f2d2ba5.js";function C({defTreeProps:n,defCascaderProps:c}={}){const r=u([]),t=Object.assign({label:"regionName",value:"regionCode",isLeaf:a=>a.regionCode?!a.hasChild:!1},n),o=(a,s)=>d(this,null,function*(){if(a.isLeaf)return s([]);const e=yield f({parentCode:a.data.regionCode});s(e.data)});return{cascaderProps:Object.assign({label:"name",value:t.value,checkStrictly:!0},c),defaultExpandedKeys:r,treeProps:t,load:o}}export{C as u};
