Skip to content

Select

基于element-plus的Select组件二次封装。扩充以下功能:

  • 设置service,自动获取全量数据
  • 设置viewMode,用于详情页等回显模式
基础用法
显示代码

使用方法

API

继承自element-plus的Select组件,以下为差异的API

参数说明类型默认值
service获取全量数据的service() => Promise<any[]>-
viewMode是否为详情页等回显模式booleanfalse

事件

事件说明类型
change选中值发生变化时的回调函数(selectedValue: Id[] | Array<Id[]>, selectedOptions: any[]) => void