Vue 3 中的 trigger 函数是用来触发一个自定义事件的。它可以在一个 Vue 组件内部使用,也可以在组件外部使用。 使用方式: this.$emit('customEventName', eventData)