Giter VIP home page Giter VIP logo

Comments (13)

07akioni avatar 07akioni commented on May 16, 2024 2

The demand does exist. The API should be designed carefully. I need to think it for some time.

from naive-ui.

djmattyg007 avatar djmattyg007 commented on May 16, 2024 1

this may take a while

That's part of why I suggested providing a nicer way of using <router-link> specifically 😉

from naive-ui.

07akioni avatar 07akioni commented on May 16, 2024

ref https://www.naiveui.com/en-US/os-theme/components/menu#select

from naive-ui.

djmattyg007 avatar djmattyg007 commented on May 16, 2024

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.

djmattyg007 avatar djmattyg007 commented on May 16, 2024

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.

07akioni avatar 07akioni commented on May 16, 2024

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.

You can click
image

And a new tab will be opened.

image

from naive-ui.

07akioni avatar 07akioni commented on May 16, 2024

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.

djmattyg007 avatar djmattyg007 commented on May 16, 2024

I meant the main navigation links on the docs site:

image

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.

07akioni avatar 07akioni commented on May 16, 2024

I meant the main navigation links on the docs site:

image

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.

XieZongChen avatar XieZongChen commented on May 16, 2024

I'll develop it

from naive-ui.

07akioni avatar 07akioni commented on May 16, 2024

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.

djmattyg007 avatar djmattyg007 commented on May 16, 2024

👍 I think this was a great solution, thank you!

from naive-ui.

 avatar commented on May 16, 2024

这可能需要一段时间

这就是为什么我建议提供一种更好的方法来专门使用😉<router-link>

Your solution solves my need. thank you

from naive-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.