![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue3.0
newbie (⊙o⊙)
这个作者很懒,什么都没留下…
展开
-
vue3 Teleport基础用法
Teleportmodal.vue<template> <div class="hello"> <button @click="modal=true">弹出窗口</button> <teleport to="body"> //传送的就是modal 这个div块 <div v-if="modal" class="modal"> <div> 这里是模态框原创 2021-05-04 17:38:58 · 390 阅读 · 0 评论 -
vue3.0中vue-router路由的创建及使用
下载vue-router,一定要注意版本!npm install vue-router@/next --savesrc目录下创建router文件夹,router文件夹下创建index.jsvue3.0下需要引入createRouter, createWebHistory 模块去创建路由createWebHistory 使用history模式import { createRouter, createWebHistory } from 'vue-router'import Home fr..原创 2021-09-02 09:59:50 · 4999 阅读 · 0 评论