vue3 可视化数据大屏 项目开发中,会遇到各种各样的头部,今天整理的是 vue3 可视化数据大屏蓝色头部组件 - 智慧国企运营管理系统。
如果您需要设计属于自己的数据可视化大屏或开发数据可视化大屏 请联系我们微信:17331886870
效果截图
帧动画效果
通过ae实现从两侧到中间的扫光动画,使用帧动画生成。帧动画虽然增加了效果同时也增加了文件大小。
帧动画文件大小
帧动画图片文件数量74
帧动画图片文件总大小1.5M
组件内容
背景加标题
加帧动画效果实例
图片大小
1920 * 96
组件代码
/**
* @Author: 858834013@qq.com
* @Name: pageTop
* @Date: 2023年06月04日
* @Desc:
*/
<template>
<div class="pageTop wow fadeInDown">
<div class="left">
<span class="date">{{ date }}</span>
<span class="week">{{ week }}</span>
<span class="time">{{ time }}</span>
</div>
<div class="title">
<span>{{ title }}</span>
</div>
<div class="right">
<div class="weather">
<img src="assetscon_address.png" alt="">
<span>北京</span>
</div>
<div class="weather">
<img src="assetscon_weather.png" alt="">
<span>多云 13-15℃</span>
</div>
</div>
<sequence fileName="topbg27/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 '智慧国企运营管理系统';
}
}
},
computed: {
week() {
var datas = dayjs().day()
var week = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六']
return week[datas]
}
},
mounted() {
var that = this;
setInterval(function () {
that.time = dayjs().format("HH:mm:ss");
}, 1000);
},
methods: {}
}
</script>
<style lang="scss" scoped>
.pageTop {
width: 100%;
//background: url("./assets/topbg.png") center top no-repeat;
//background-size: 1871px 96px;
height: 96px;
display: flex;
justify-content: center;
align-items: flex-start;
flex-wrap: nowrap;
position: relative;
flex-direction: row;
align-content: flex-start;
.left {
width: calc(30% - 100px);
margin-left: 100px;
position: relative;
height: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
.date {
font-size: 20px;
font-family: ds-digitalnormal;
font-weight: normal;
color: #899CFF;
margin-right: 20px;
}
.week {
font-size: 20px;
font-family: FZQKBYSJW;
font-weight: normal;
color: #8396F6;
margin-right: 20px;
}
.time {
font-size: 30px;
font-family: ds-digitalnormal;
font-weight: bold;
color: #899CFF;
}
}
.right {
width: calc(30% - 120px);
margin-right: 120px;
position: relative;
height: 100%;
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
.weather {
display: flex;
justify-content: flex-end;
align-items: center;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
img {
margin-left: 15px;
margin-right: 15px;
}
span {
font-size: 20px;
font-weight: normal;
color: #899CFF;
}
}
}
.title {
display: flex;
width: 40%;
justify-content: center;
align-items: flex-start;
flex-wrap: nowrap;
flex-direction: row;
align-content: flex-start;
position: relative;
height: 100%;
span {
font-family: PangMenZhengDao;
font-size: 48px;
font-weight: normal;
color: #1A46F7;
background: linear-gradient(0deg, #657EFF 0%, #BBDBFF 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
}
}
</style>
更多数据可视化大屏顶部组件
源文件下载
文件包括头部效果代码 vue3 vite js nodejs 14
ae扫光动画源文件