当前位置:网站首页>动态组件-component
动态组件-component
2022-08-02 12:49:00 【给我来个鸡腿】
效果

代码结构

代码
app.vue
<template>
<div id="nav">
<h1>动态组件</h1>
<component :is="news"></component>
</div>
</template>
<script setup>
// import NewsImage from './components/NewsImage.vue'
import NewsText from './components/NewsText.vue'
// import NewsVideo from './components/NewsVideo.vue'
import { ref } from '@vue/reactivity'
const news = ref(NewsText)
</script>
<style>
</style>边栏推荐
- To eliminate air bubbles to save the mushroom h5 small game source code
- 30行代码实现无服务器实时健康码识别--操作手册
- LeetCode_377_组合总和Ⅳ
- FreeRTOS--Priority Experiment
- How to turn off hardware acceleration [easy to understand]
- simulink PID自动整定
- ESP8266模块使用完整教程「建议收藏」
- np.nan, np.isnan, None, pd.isnull, pd.isna 整理与小结
- A powerful js pop-up alert plugin
- 7种最常用数据分析思维,解决95%的分析难题
猜你喜欢

Seneor Exposure Basics

Data Lake (3): Hudi Concept Terminology

To eliminate air bubbles to save the mushroom h5 small game source code

FreeRTOS实验--删除任务

js炫酷仪表盘插件
![PHP+MYSQL [Student Information Management System] (Minimalist Edition)](/img/86/d5d39eef0600acabbf3ac16c255c18.png)
PHP+MYSQL [Student Information Management System] (Minimalist Edition)

pig4cloud服务架构使用

Four seasons of trees realized by svg

SQL Server如何建表

Openlayers Quick Start Tutorial
随机推荐
SQL Server 2014 installation tutorial (nanny-level graphic tutorial)
php字符串的截取方式
手撸架构,Mysql 面试126问
WPF——自定义日历
Basic protocol explanation
FreeRTOS创建任务--动态创建、静态创建
svg实现的树木四季变化
pig4cloud服务架构使用
【The 6th Strong Net Cup CTF-Wp】
js stopwatch countdown plugin
A powerful js pop-up alert plugin
PHP+MYSQL [Student Information Management System] (Minimalist Edition)
Seneor曝光基础知识
unique in numpy & pandas
FreeRTOS--stack experiment
simulink PID自动整定
Pod调度策略:亲和性、污点与污点容忍
MD5详解(校验文件完整性)
The 7 most commonly used data analysis thinking, solve 95% of the analysis problems
svg balloon rises explosion js special effect