封装一个InputBox子组件,用于数据的加减 // 1. 和vue2一样,先通过props接收数据 const props = defineProps(['modelValue']); // 2. 和vue2一样,也是要使用emit来触发父组件的事件 const emits = defineEmits(['update:modelValue']); const ChangeNum = (num) => { emits('update:modelValue', p...