Code Monkey home page Code Monkey logo

Comments (6)

warmthsea avatar warmthsea commented on July 23, 2024 3

image
建议直接手动解决

from element-plus.

btea avatar btea commented on July 23, 2024

This is normal behavior. In fact, a tag does not support disabled. If you need this effect, please handle it yourself as @warmthsea suggested.

from element-plus.

chenxch avatar chenxch commented on July 23, 2024

是否可以考虑是在a标签的时候使用pointer-events在实现禁用功能

from element-plus.

wangdaodao avatar wangdaodao commented on July 23, 2024

是否可以考虑是在a标签的时候使用pointer-events在实现禁用功能

pointer-events也不是最佳实践,用户可以通过控制面板去掉样式。这块假如是a标签,是可以预先知道的,手动解决就行。

from element-plus.

chenxch avatar chenxch commented on July 23, 2024

是否可以考虑是在a标签的时候使用pointer-events在实现禁用功能

pointer-events也不是最佳实践,用户可以通过控制面板去掉样式。这块假如是a标签,是可以预先知道的,手动解决就行。

是的,这只是hack的一个方案想法,对于大部分用户来说,普遍认为就只要设置了disabled点击事件不要触发。我相信这种场景来问问题的用户肯定不在少数,或许可以在文档中说明,disabled在tag=a时候无效。

from element-plus.

136323000 avatar 136323000 commented on July 23, 2024

图像 建议直接手动解决

成功解决了我的问题 感谢

from element-plus.

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.