用途:el-cascader 是 Element Plus 提供的级联选择组件,用于展示并选择具有清晰层级结构的数据,适合地区/位置选择、分类层级、组织架构、多级导航等场景。
主要能力:通过 v-model 绑定值、options 传入选项数据、props 配置行为。支持多选(props.multiple)、任意层级选择(props.checkStrictly)、动态懒加载(props.lazy 与 lazyLoad)、搜索过滤(filterable)、可清空(clearable)、折叠标签(collapse-tags)、自定义分隔符(separator)以及 show-all-levels 控制是否显示全部层级。CascaderProps 还可配置 expandTrigger(click/hover)、emitPath、value/label/children 字段名。事件包括 change、expand-change、blur、focus。
使用方式:基础用法为 <el-cascader v-model="value" :options="options" />;多选时设置 props 为 { multiple: true };任意层级选择设置 { checkStrictly: true };动态加载设置 lazy: true 并提供 lazyLoad(node, resolve) 回调;搜索设置 filterable。
限制:资料未提供收费、价格、平台兼容性与性能上限等信息,暂未提供。