我看的別人的一個例子 這個為什么要通過prop傳一個方法呢 直接在組件中寫這個方法不行嗎?props: { todos: Array, deleteTodos: Function, selectAll: Function, } 查看完整描述