You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 line
674B

  1. 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.063c96f2.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};