Code Monkey home page Code Monkey logo

Comments (3)

Sight-wcg avatar Sight-wcg commented on June 7, 2024 4

related to #1761 @Sight-wcg 有待晨星评估下内部添加 lay-id 之前,是否有必要判断元素已经存在该属性,或提供一个选项用于自定义属性名,默认值 lay-id,用户可设置 false 禁用该功能。我个人比较倾向于后者。

以组件名做命名空间如何,例如 'lay-dropdown-id', 这样不同组件使用时不会冲突,也不需要新加选项自定义。

  • lay 为 layui 使用的命名空间
  • dropdown 为组件命名空间
  • id 为组件实例的 id/index

需要将所有类似的组件做统一修改,tab 的 'lay-id' 用来标识 tab-title, 保持原样不用处理

from layui.

sentsim avatar sentsim commented on June 7, 2024

related to #1761
@Sight-wcg 有待晨星评估下内部添加 lay-id 之前,是否有必要判断元素已经存在该属性,或提供一个选项用于自定义属性名,默认值 lay-id,用户可设置 false 禁用该功能。我个人比较倾向于后者。

from layui.

sentsim avatar sentsim commented on June 7, 2024

同意 👍,这样更省事。

from layui.

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.