1,父组件的class样式会和子组件跟节点上的class样式合并

2,$attrs接收,在子组件中未在props里面定义的属性名的值

3,

4,禁止子组件继承class


With Vue ^3.3, you can now use defineOptions() directly:
import {defineOptions} from 'vue'
<script setup>
defineOptions({
name: 'CustomName',
inheritAttrs: false,
customOptions: {},
})
</script>