getSelectedChildCount method

int getSelectedChildCount()

返回最后一层级【选中状态】 Item 的 个数

Implementation

int getSelectedChildCount() {
  if (PhoenixTools.isEmpty(children)) return isSelected ? 1 : 0;

  int count = 0;
  for (PickerEntity entity in children) {
    if (!entity.isUnLimit()) {
      count += entity.getSelectedChildCount();
    }
  }
  return count;
}