@Input() 和 @Output() 为子组件提供了一种与父组件通信的方式。@Input() 允许父组件更新子组件中的数据。相反,@Output() 允许子组件向父组件发送数据。
@Input()
@Output()