A exercise implement of react component.
需求
-
点击清空:清空所有选项(所有选项都变成 unchecked)
-
点击部门左侧 checkbox:toggle 所有子目录下 checkbox 以及部门的 checkbox
-
点击单个岗位 checkbox:toggle 点击的 checkbox
设计
-
SideBar Compoenent
- A container include sub components and title, a button toggle all checkbox.
-
DropDownList
- A container of the ListHeader and ListItem.
-
ListHeader
- A component include the class of the item, a main toggle in left of caption, and a counter in right of hole list. And a dropdown-button can expand hole list.
-
ListItem
- Component of the specify item, the toggle in left, counter in right.