一、背景说明
![](https://img.haomeiwen.com/i27493437/fd3bdfa816ae283d.png)
![](https://img.haomeiwen.com/i27493437/02be3fd87eacde3a.png)
name属性就是Options API的选项
<script setup>
import { defineOptions } from "vue";
defineOptions({
name: "组件名",
});
</script>
name属性就是Options API的选项
<script setup>
import { defineOptions } from "vue";
defineOptions({
name: "组件名",
});
</script>
本文标题:Vue3.3新特性-defineOptions(Vue3学习12
本文链接:https://www.haomeiwen.com/subject/crmjwdtx.html
网友评论