@94ai-plus/nf-virtual-select
v1.0.0
Published
Vue 3 nf-virtual-select component for Common UI Plus
Maintainers
Readme
@94ai-plus/nf-virtual-select
HomePage
Vue 3 / Element Plus nf-virtual-select 组件,支持 Chalk/OEM 主题及 8 种语言。
npm install @94ai-plus/nf-virtual-select vue element-plusimport NfVirtualSelect from '@94ai-plus/nf-virtual-select'
import '@94ai-plus/nf-virtual-select/style'
app.use(NfVirtualSelect)API、可编辑示例和迁移差异见 组件文档。默认使用 Vue 3 v-model;兼容旧 value / update:value / input 数据接口(规则/条件使用原 rules / conditions 接口)。
虚拟列表默认行高为 34px,与 nf-lazy-select 一致,可通过 estimateSize 自定义行高。输入框聚焦时保留选择器外层提示,不额外显示内层轮廓。
选择器和内联搜索框的单行高度统一为 28px;多选标签换行时选择器自动增高。
支持直接配置属性/事件,也可使用 itemOptions 和 itemOptions.events 集中配置。事件名兼容短横线与驼峰写法(如 visible-change / visibleChange);clearable 显式传值优先于 itemOptions.clearable。完整示例覆盖省份选择、事件回调与关键词高亮。
全局默认配置
通过总包的 NfConfigProvider 的 nfVirtualSelect 配置项设置默认属性。支持响应式更新和嵌套继承,优先级为组件显式属性 → 最近一层配置 → 外层配置 → 组件原有默认值。undefined 继续继承,false、0 和空字符串保留;按属性合并,数组、对象和函数整体替换,不深度合并。初始化选项仍按组件原有生命周期生效,事件、插槽和原生 attributes 在组件上设置,必填业务数据仍需显式提供。详见全局配置文档。
Contributors
感谢每一位参与项目建设的贡献者!
以上为随本版本发布的贡献者统计快照,统计日期与分支见图中说明;仅统计 Git 非合并提交,头像使用姓名首字母,不是 GitLab 个人照片。
License
本项目采用 MIT License 开源许可。
Copyright (c) 2026-present Jiahe Zou, 94 Intelligent Technology Co., Ltd.
