Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSelect默认情况下下拉菜单中不显示选项 #3146

Closed
ubxtrol opened this issue Jun 21, 2022 · 3 comments
Closed

NSelect默认情况下下拉菜单中不显示选项 #3146

ubxtrol opened this issue Jun 21, 2022 · 3 comments

Comments

@ubxtrol
Copy link

ubxtrol commented Jun 21, 2022

TuSimple/naive-ui version (版本)

2.30.5

Vue version (Vue 版本)

3.2.37

Browser and its version (浏览器及其版本)

Edge(101.0.1210.39)

System and its version (系统及其版本)

Windows 10 1909 18363.778

Node version (Node 版本)

14.19.1

Reappearance link (重现链接)

https://github.com/ubxtrol/nselect-issue

Reappearance steps (重现步骤)

在重现连接的仓库代码根目录执行
pnpm install (或者npm,yarn)
pnpm run dev

Expected results (期望的结果)

NSelect下拉菜单正确显示选项

Actual results (实际的结果)

默认情况下NSelect组件virtual-scroll属性为true,此时我本地将显示一个空白的下拉菜单,没有选项;当设置:virtual-scroll="false"后可以正确显示,但是NDataTable自带的分页组件中的pageSizes选择器无法设置virtual-scroll且一直显示空白的下拉菜单

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Jun 21, 2022
@ubxtrol
Copy link
Author

ubxtrol commented Jun 21, 2022

QQ截图20220621091059
QQ截图20220621091133
QQ截图20220621091148

@07akioni
Copy link
Collaborator

找到原因了,是因为你的项目彻底关掉了 options api,针对这个问题下一版我会去掉所有 naive 中关联的 options api

@07akioni 07akioni removed the untriaged need to sort label Jun 21, 2022
@ubxtrol
Copy link
Author

ubxtrol commented Jun 21, 2022

@07akioni 谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants