vue3 可视化数据大屏 项目开发中,会遇到各种各样的头部,今天整理的是中国联通运营数据平台头部组件。
如果您需要设计属于自己的数据可视化大屏或开发数据可视化大屏 请联系我们微信:17331886870
效果截图
帧动画效果
通过ae实现从两侧到中间的扫光动画,使用帧动画生成。帧动画虽然增加了效果同时也增加了文件大小。
帧动画文件大小
帧动画图片文件数量74
帧动画图片文件总大小6.6M
组件内容
背景加标题描述以及日期
加帧动画效果实例
图片大小
1920 * 80
组件代码
/**
* @Author: 858834013@qq.com
* @Name: pageTop
* @Date: 2023年06月23日19:05:11
* @Desc:
*/
<template>
<div class="pageTop">
<div class="pageTopLeft">
<span>数据更新时间:{{ date }}{{ time }}</span>
</div>
<div class="pageTopCenter">
<div class="title">
<span>{{ title }}</span>
</div>
</div>
<div class="pageTopRight">
<span>多云转晴 8-13℃</span>
<span>admin,欢迎进入</span>
<span><img src="./assets/icon_logout.png" alt=""> 退出</span>
</div>
<sequence fileName="topbg23/topbg_" fileLength="74" IntervalTime="50"></sequence>
</div>
</template>
<script>
import dayjs from "dayjs";
import sequence from "@/components/sequence.vue";
export default {
name: "pageTop",
components: {sequence},
data() {
return {
date: dayjs().format("YYYY年MM月DD日"),
time: dayjs().format("HH:mm:ss"),
}
},
props: {
title: {
type: String,
default() {
return '重要目标预警与智能分析系统';
}
}
},
mounted() {
},
methods: {}
}
</script>
<style lang="scss" scoped>
.pageTop {
width: 100%;
//background: url("./assets/topbg.png") center top no-repeat;
//background-size: 1828px 80px;
height: 80px;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
position: relative;
.title {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
position: relative;
z-index: 1;
span {
font-size: 40px;
font-family: PangMenZhengDao;
font-weight: normal;
color: #FEFEFE;
background: linear-gradient(0deg, #FFFFFF 0%, #CFA1FF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
.pageTopLeft {
width: 30%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
margin-top: 20px;
position: relative;
z-index: 1;
span {
font-size: 12px;
font-family: MicrosoftYaHei;
font-weight: 400;
color: #DDBBFF;
margin-left: 30px;
}
}
.pageTopRight {
width: 30%;
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
margin-top: 20px;
position: relative;
z-index: 1;
span {
font-size: 12px;
font-family: MicrosoftYaHei;
font-weight: 400;
color: #DDBBFF;
margin-right: 30px;
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
}
img{
width: 18px;
height: 19px;
margin-right: 5px;
}
}
}
</style>
更多数据可视化大屏顶部组件
源文件下载
文件包括头部效果代码 vue3 vite js nodejs 14
ae扫光动画源文件