在Vue的setup语法糖中如何引入封装的组件

50 阅读1分钟

<template> <组件名></组件名> <template/>

<script setup>
impport 组件名 from '组件路径'
<script>

与选项式API的区别是不用注册引入后直接用