Filtering a WebGIS Layer Tree for Cascader Component Compatibility
When working with a shared layer tree in a WebGIS application, you may need to remove empty directories so the tree can be used directly with a UI component like Element's Cascader. The goal is to produce a new array where only folders containing at least one layer are kept, and each layer node has its children set to null.
The original tree da ...
Posted on Wed, 23 Sep 2026 16:32:12 +0000 by mpharo
Extracting Display Labels from Element UI Cascader Component
Element UI's el-cascader cmoponent returns selected value by default. To retrieve the corresponding display label text, use the getCheckedNodes() instance method.
For region selection with three hierarchical levels (province → city → district), the cascader is configured with lazy loading to fetch options dynamically:
<el-cascader
v-model= ...
Posted on Wed, 09 Sep 2026 16:31:18 +0000 by feddie1984
Leaf-Only Multi-Selection for Cascader Components in Element UI
Building upon Element UI 2.15.14, this customization introduces a specialized multi-selection mode that restricts selection to terminal nodes only. This enhancement is particularly useful for hierarchical data structures where intermediate nodes serve purely as containers.
Installation
Install the extended package via npm:
npm install @corp/ele ...
Posted on Fri, 08 May 2026 00:44:45 +0000 by mayanktalwar1988