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

2 lines
310 B
JavaScript
Raw Normal View History

2024-09-19 07:20:14 +08:00
"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}}};