Git Product home page Git Product logo

Comments (2)

errorrik avatar errorrik commented on July 22, 2024

原先的设计里,是通过样式控制的。每一级都有prefix-leveln的classname,根上是prefix-root。看这里:http://www.errorrik.com/er/src/test/esui/treeview.html。
个人觉得保持数据一致性比较重要,又支持Array又支持Object,容易晕。

现在的新方案,请灰大酌情考虑

from esui.

otakustay avatar otakustay commented on July 22, 2024

这是个好办法,已在 5fc249d 中添加了这些逻辑,现在树的根是一个<div>而非<ul>,原来的<ul>只有一个<li>没意义。

树根有以下样式:ui-tree-rootui-tree-root-expandedui-tree-root-collapsed

原来的ui-tree-root改为ui-tree-sub-root

标准我稍后更新,还请 @DDDBear 帮忙看下CSS样式还对不对

from esui.

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.