当前位置: 首页 > news >正文

给工厂做英文外贸网站wordpress安全吗

给工厂做英文外贸网站,wordpress安全吗,商务平台搭建,vs网站开发实现功能: 1 实现4x3宫格布局, 2 自定义设置跨行,跨列自动隐藏对应列,比如setAreaSpanAndUpdateVisibility(2, 3, 2); 表示设置区域2,跨3行,跨2列,然后区域3,6,7,10&am…

实现功能:
1 实现4x3宫格布局,
2 自定义设置跨行,跨列自动隐藏对应列,比如setAreaSpanAndUpdateVisibility(2, 3, 2); 表示设置区域2,跨3行,跨2列,然后区域3,6,7,10,11自动隐藏
3 内容自动剧中

1 效果图

在这里插入图片描述

代码

<template><div class="visual-root big-data-bg-qjg-v1"><div class="top-bar">数据可视化大屏 - 顶部区域</div><div class="grid-area"><template v-for="(item, _idx) in gridItems" :key="item.id"><div class="grid-cell" v-if="item.visible" :style="getGridStyle(item)"><div class="cell-title"><div class="title-bg"></div><span>{{ item.id }}-{{ item.title }}</span></div><divclass="cell-content" :style="getContentSpanStyle(item)"><div v-if="item.component === 'ChartCell'"><ChartCell></ChartCell></div><div v-else-if="item.component === 'TableCell'"><TableCell></TableCell></div><div v-else-if="item.component === 'TextCell'"><TextCell></TextCell></div></div></div></template></div><!-- <button class="test-btn" @click="testSpan">测试区域122</button> --></div>
</template><script setup lang="ts">
import GridCell from "./components/GridCell.vue.vue";
import ChartCell from "./components/ChartCell.vue";
import TableCell from "./components/TableCell.vue";
import TextCell from "./components/TextCell.vue";
import { onMounted, ref } from "vue";const gridItems = ref([{id: 1,title: "区域1",color: "#4fdcff",visible: true,row: 1,col: 1,rowspan: 1,colspan: 1,component: "ChartCell",},{id: 2,title: "区域2",color: "#ffe066",visible: true,row: 1,col: 2,rowspan: 1,colspan: 1,component: "TableCell",},{id: 3,title: "区域3",color: "#ff8c66",visible: true,row: 1,col: 3,rowspan: 1,colspan: 1,component: "TextCell",},{id: 4,title: "区域4",color: "#6fff8f",visible: true,row: 1,col: 4,rowspan: 1,colspan: 1,component: "TextCell",},{id: 5,title: "区域5",color: "#a066ff",visible: true,row: 2,col: 1,rowspan: 1,colspan: 1,component: "TextCell",},{id: 6,title: "区域6",color: "#ff66c4",visible: true,row: 2,col: 2,rowspan: 1,colspan: 1,component: "TextCell",},{id: 7,title: "区域7",color: "#66e0ff",visible: true,row: 2,col: 3,rowspan: 1,colspan: 1,component: "TextCell",},{id: 8,title: "区域8",color: "#ffb366",visible: true,row: 2,col: 4,rowspan: 1,colspan: 1,component: "TextCell",},{id: 9,title: "区域9",color: "#b3ff66",visible: true,row: 3,col: 1,rowspan: 1,colspan: 1,component: "TextCell",},{id: 10,title: "区域10",color: "#ff6666",visible: true,row: 3,col: 2,rowspan: 1,colspan: 1,component: "TextCell",},{id: 11,title: "区域11",color: "#66ffb3",visible: true,row: 3,col: 3,rowspan: 1,colspan: 1,component: "TextCell",},{id: 12,title: "区域12",color: "#668cff",visible: true,row: 3,col: 4,rowspan: 1,colspan: 1,component: "TextCell",},
]);function setAreaSpanAndUpdateVisibility(areaId: number,rowspan: number,colspan: number,
) {const area = gridItems.value.find((item) => item.id === areaId);if (!area) return;area.rowspan = rowspan;area.colspan = colspan;// gridItems.value.forEach(item => { item.visible = true })for (let r = 0; r < rowspan; r++) {for (let c = 0; c < colspan; c++) {if (r === 0 && c === 0) continue;const coverRow = area.row + r;const coverCol = area.col + c;const coveredItem = gridItems.value.find((item) => item.row === coverRow && item.col === coverCol,);if (coveredItem) coveredItem.visible = false;}}
}function getGridStyle(item: any) {return {gridRow: `${item.row} / span ${item.rowspan || 1}`,gridColumn: `${item.col} / span ${item.colspan || 1}`,background: item.color,};
}
function getContentSpanStyle(item: any) {return;const style: any = {};if (item.rowspan > 1)style.height = `calc(100% * ${item.rowspan} + ${(item.rowspan - 1) * 18}px)`;if (item.colspan > 1)style.width = `calc(100% * ${item.colspan} + ${(item.colspan - 1) * 18}px)`;return style;
}onMounted(() => {setAreaSpanAndUpdateVisibility(2, 3, 2);
});
</script><style scoped>
.visual-root {width: 100vw;height: 100vh;min-width: 800px;min-height: 600px;background: linear-gradient(120deg, rgba(10, 26, 42, 0.8) 60%, rgba(24, 60, 90, 0.8) 100%), url('@/assets/imgs/background.jpg');background-size: cover;background-position: center;background-repeat: no-repeat;overflow: hidden;font-family: "Microsoft YaHei", Arial, sans-serif;color: #fff;display: flex;flex-direction: column;
}
.top-bar {width: 100%;height: 100px;background: linear-gradient(90deg, #1e2a3a 60%, #223c5a 100%);color: #4fdcff;font-size: 36px;font-weight: bold;letter-spacing: 8px;text-align: center;line-height: 100px;box-shadow: 0 2px 12px #0008;z-index: 10;flex-shrink: 0;
}
.grid-area {flex: 1;width: 100%;display: grid;grid-template-columns: repeat(4, 1fr);grid-template-rows: repeat(3, 1fr);gap: 18px;padding: 28px 32px 32px 32px;box-sizing: border-box;align-items: stretch;justify-items: stretch;
}
.grid-cell {border-radius: 18px;box-shadow: 0 0 18px #0004;display: flex;flex-direction: column;min-width: 0;min-height: 0;overflow: hidden;position: relative;transition: box-shadow 0.2s;background: var(--cell-color, #4fdcff);
}
.grid-cell:hover {box-shadow:0 0 32px #fff8,0 2px 12px #0008;z-index: 2;
}
.cell-title {position: relative;font-size: 22px;font-weight: bold;padding: 0;color: #fff;text-shadow: 0 0 8px #000a;height: 48px;display: flex;align-items: center;z-index: 1;
}
.cell-title .title-bg {position: absolute;left: 0;top: 0;right: 0;bottom: 0;z-index: 0;background:url("https://img.alicdn.com/imgextra/i2/O1CN01Qw6QwB1wQw6QwB1wQw6QwB1wQw.png")no-repeat center/cover,linear-gradient(90deg, #0008 0%, #fff2 100%);opacity: 0.18;border-bottom: 2px solid #fff2;border-radius: 0 0 16px 16px;
}
.cell-title span {position: relative;z-index: 1;padding: 0 18px;line-height: 48px;
}
.cell-content {flex: 1;padding: 18px;overflow: auto;font-size: 18px;color: #fff;background: rgba(0, 0, 0, 0.04);transition: width 0.3s, height 0.3s;display: flex;align-items: center;justify-content: center;
}
.cell-content-hide {display: none;
}
</style>
http://www.dtcms.com/a/456424.html

相关文章:

  • 王建设个人网站南昌seo排名扣费
  • 延边网站建设上海企业信用信息公示系统官网
  • 公司域名不变网站做变动北京给公司做网站多少钱
  • discuz建网站网站开发的三个流程
  • 做彩票网站合法吗建筑网红化
  • wordpress换背景seo网站代码优化
  • 找哪些公司做网站什么网站权重快
  • 顺德顺的网站建设域名流量查询工具
  • 弹幕网站开发难么网站免费网站app
  • 福建省建设工程继续教育网站wordpress图片七牛存储
  • 网站建设php文件html文件wordpress 修改链接
  • 微网站定制品牌宣传文案范文
  • 英迈思网站做不下去可以退款吗潍坊做网站建设的公司
  • 在线做炫图网站网站建设300
  • 潍坊企业网站建设外贸营销网站怎么建设
  • 怎样注册电商网站山东东方路桥建设总公司官方网站
  • 制作网站的代码wordpress4.9.6漏洞
  • 隆回网站建设制作网站关闭模板
  • 北京网站设计首选 新鸿儒举报网站建设公司
  • 前端网站论文小说百度风云榜
  • 建站系统破解虚拟主机部署网站
  • 网站seo和sem是什么意思三门峡网站开发
  • 多模室内设计网站域名如何购买
  • 免费一站式网站建设C语言也能干大事网站开发pdf
  • 兴义市住房城乡建设局网站html网站正在建设源码
  • 网站设计和策划的步骤是什么北京seo
  • 怎么用dw英文版做网站宁波网站制作公司
  • 个人免费发布信息胶州网站优化
  • 网站开发年收入做网站要学什么东西
  • 沈阳手机端建站模板阿里云网站301重定向怎么做