Nested Lists

嵌套列表

The Draft framework provides support for nested lists, as demonstrated in the Facebook Notes editor. There, you can use Tab and Shift+Tab to add or remove depth to a list item.

Draft 框架提供了嵌套列表的支持,如同 Facebook 笔记编辑器显示的那样。这里,你可以使用 TabShift + Tab 来增加或移除列表项的深度。

The RichUtils module provides a handy onTab method that manages this behavior, and should be sufficient for most nested list needs. You can use the onTab prop on your Editor to make use of this utility.

RichUtils 模块提供了一个方便的 onTab 方法管理这些行为,并且足够应对多数嵌套列表的需要。你可以在你的 Editor 上使用 onTab 属性来使用这个功能。

By default, styling is applied to list items to set appropriate spacing and list style behavior, via DraftStyleDefault.css.

默认情况下,样式通过 DraftStyleDefault.css 被应用到列表项上,来设置适当的空格和列表样式行为。

Note that there is currently no support for handling depth for blocks of any type except 'ordered-list-item' and 'unordered-list-item'.

注意,除了 “ordered-list-item”“unordered-list-item” 之外,目前没有任何其他类型的 block 深度处理的支持。

results matching ""

    No results matching ""