一、背景说明
image.png image.pngname属性就是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
网友评论