这包含在文档的
Glossary部分中:
ui is a special class name used to distinguish parts of components
from components.
For example, a 07001 will
receive the class ui list because it has a corresponding definition,
however a list item, will receive just the class item.
The ui class name helps encapsulate CSS rules by making sure all
‘parts of a component’ are defined in context to a ‘whole’ component.
It also helps make scanning unknown code simpler. If you see ui you
know you are looking at a component.
菜单很好地证明了这一点(文档中的简化示例):
外部菜单是一个实际的UI组件,因此具有ui和菜单.但是,内部菜单实际上是另一个组件的一部分,即下拉列表,因此没有ui类.