我对打字稿很陌生。我知道包装,但你如何生成格式良好的嵌套列表?
这是我目前正在使用的代码:
// Side menu with each li acting as a category
lib.subMenu.1 {
NO.allWrap=<li class="category">|</li>
// (...)
lib.subMenu {
2 < .1
// LI placed just underneath and wrapped inside a UL.
// Ideally the UL should be inside the LI described above.
2.wrap = <li><ul class="items">|</ul></li>