# Select 选择器
拓展了<el-select>
备选项滚动事件、扩展菜单。
# 备选项懒加载
备选项懒加载展示用法。
复制代码
# 扩展按钮
扩展按钮展示用法。
复制代码
# 扩展菜单
扩展菜单展示用法。
复制代码
# API
只展示说明新增 api,支持原组件全部 api。
# Select Attributes
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
extend-position | 扩展菜单位置 | top | bottom | bottom |
extend-text-left | 扩展菜单左侧文字 | string | - |
extend-text-right | 扩展菜单右侧文字 | string | - |
space-to-bottom | 备选项滚动触底事件触发时距离底部的距离 | number | 0 |
# Select Events
事件名称 | 说明 | 回调参数 |
---|---|---|
extend-left-click | 扩展菜单左侧文字点击事件回调 | () => void |
extend-right-click | 扩展菜单右侧文字点击事件回调 | () => void |
popup-scroll | 备选项列表滚动事件回调 | (e) => void |
popup-scroll-to-bottom | 备选项列表滚动触底事件回调(可与 spaceToBottom 搭配使用) | () => void |
# Select Slots
name | 说明 |
---|---|
extend | 扩展菜单的内容 |