当前位置:网站首页>动态组件-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>边栏推荐
- FreeRTOS--stack experiment
- 手撸架构,MongDB 面试50问
- How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?
- Js scratchable latex style draw plug-in
- FreeRTOS--Priority Experiment
- 手撸架构,网络 面试36问
- 新特性解读 | MySQL 8.0 GIPK 不可见主键
- 不错的射击类js小游戏源码
- Openlayers Quick Start Tutorial
- 定了!2022世界VR产业大会将继续在南昌召开
猜你喜欢

数据湖(三):Hudi概念术语

php - the first of three solid foundations

Object.entries()

ssm access database data error

Intouch System Platform IDE-1

干测试这些年,去过阿里也去过小公司,给年轻测试员们一个忠告...

unique in numpy & pandas

How to set up wireless PPI communication between Weiluntong touch screen and S7-200smart?

svg气球升起爆炸js特效

消除气泡解救蘑菇h5小游戏源码
随机推荐
SQL Server如何建表
SQL Server 2014 installation tutorial (nanny-level graphic tutorial)
After Effects 教程,如何在 After Effects 中对蒙版进行动画绘制?
设置代理服务器(谷歌+IE)「建议收藏」
Seneor曝光基础知识
SuperSlide系列之轮播图
package.json与package-lock.json
SQL Server 数据库之生成与执行 SQL 脚本
js true 3d histogram plugin
Openlayers 快速上手教程
Taurus.MVC V3.0.3 微服务开源框架发布:让.NET 架构在大并发的演进过程更简单。
测试开发之路,我在大厂做测试这四年的感悟
消除气泡解救蘑菇h5小游戏源码
手撸架构,Mysql 面试126问
Software component analysis: 5 major capabilities to protect software supply chain security
js cool dashboard plugin
A powerful js pop-up alert plugin
pytorch模型转tensorflow模型
To eliminate air bubbles to save the mushroom h5 small game source code
js真3d柱状图插件