优化 children 逻辑