Comments (13)
The demand does exist. The API should be designed carefully. I need to think it for some time.
from naive-ui.
this may take a while
That's part of why I suggested providing a nicer way of using <router-link>
specifically 😉
from naive-ui.
ref https://www.naiveui.com/en-US/os-theme/components/menu#select
from naive-ui.
Would you consider updating the menus on the documentation site to use this? The current way of how it handles navigation means I can't middle-click the links to open them in new tabs, which is very frustrating.
from naive-ui.
I definitely appreciate the flexibility of this approach, but it would be nice to have a slightly nicer way of handling the common use case of a <router-link>
with route props. This will end up being very verbose for longer menus.
from naive-ui.
Would you consider updating the menus on the documentation site to use this? The current way of how it handles navigation means I can't middle-click the links to open them in new tabs, which is very frustrating.
And a new tab will be opened.
from naive-ui.
I definitely appreciate the flexibility of this approach, but it would be nice to have a slightly nicer way of handling the common use case of a
<router-link>
with route props. This will end up being very verbose for longer menus.
I can understand your concern. I'm not going to add props directly relevent to router-link
since it will make option verbose.
Instead I think it's possible to create a render-label
prop for menu if you want to create a longer menu will duplicate logic.
from naive-ui.
I meant the main navigation links on the docs site:
I can't middle click these, nor can I see where they will take me by hovering over them. This is because they are not regular links.
from naive-ui.
I meant the main navigation links on the docs site:
I can't middle click these, nor can I see where they will take me by hovering over them. This is because they are not regular links.
I got it. I'll try and this may take a while.
from naive-ui.
I'll develop it
from naive-ui.
this may take a while
That's part of why I suggested providing a nicer way of using
<router-link>
specifically 😉
Done
from naive-ui.
👍 I think this was a great solution, thank you!
from naive-ui.
这可能需要一段时间
这就是为什么我建议提供一种更好的方法来专门使用😉
<router-link>
做
Your solution solves my need. thank you
from naive-ui.
Related Issues (20)
- Select 组件 render-label 和 value-field 同时使用 HOT 2
- The n-date-picker
- 【n-select】可过滤时,展开下拉框后,再次点击输入框无法收回下拉框 HOT 3
- show-menu HOT 3
- 【n-select】能不能手动focus的时候,自动将下拉框打开 HOT 2
- 'pnpm lint' results in TypeError: Converting circular structure to JSON HOT 1
- 希望Code组件可以自定义起始行号
- 500 document is not defined when using n-popover in Nuxt3 HOT 3
- 导出excel乱码 HOT 2
- Select组件支持分页异步加载
- n-upload的照片墙功能
- 【Calendar】日历组件希望可以增加一个右上角切换月份的功能区插槽,或者合并到header插槽
- Tab 初始化时无法填值
- Upload 组件 data 属性为函数时,直接获取形参 file.name 返回 undefined HOT 3
- 支持 DataTable 不同列的 filter 结果取并
- [NDataTable] 在没有数据的情况下,不会有横向滚动条 HOT 2
- 上传组件除了图片类型,其他类型缩略图都不生效 HOT 1
- Drawer组件添加一个lazy属性,指定是否懒挂载 HOT 1
- 建议:n-upload组件添加一个重新上传回调方法
- 需求:为Cascader增加API:render-prefix和render-suffix HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from naive-ui.