acdr-ui/dist/build/mp-weixin/hooks/useColPickerData.js

2 lines
310 B
JavaScript

"use strict";const r=require("../common/vendor.js");exports.useColPickerData=function(){return{colPickerData:r.useCascaderAreaData(),findChildrenByCode:function r(e,n){if(!n)return e;for(const t of e){if(t.value===n)return t.children||null;if(t.children){const e=r(t.children,n);if(e)return e}}return null}}};