[@vue/compiler-sfc] `defineProps()` in <script setup> cannot reference locally
declared variables because it will be hoisted outside of the setup() function.
If your component options require initialization in the module scope,
use a separate normal <script> to export the options instead.
解决方法是新开一个script标签,把defineProps放在setup中
SFC = Single File Component(单文件组件)
参考文章
https://stackoverflow.com/questions/69951687/vue-3-defineprops-are-referencing-locally-declared-variables
https://www.cnblogs.com/optre/p/17295649.html