From 817c62a880b7cd84353787541ffddfeadf44314d Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 9 Nov 2022 09:08:30 +0800 Subject: [PATCH] udpate icon --- .../components/LeftContentOrder.vue | 8 +- .../3DOverview/components/TechyContainer.vue | 226 +++++++++++++++++- src/views/3DOverview/index.vue | 20 +- 3 files changed, 237 insertions(+), 17 deletions(-) diff --git a/src/views/3DOverview/components/LeftContentOrder.vue b/src/views/3DOverview/components/LeftContentOrder.vue index 444c686..adf6bfb 100644 --- a/src/views/3DOverview/components/LeftContentOrder.vue +++ b/src/views/3DOverview/components/LeftContentOrder.vue @@ -24,14 +24,14 @@ :resizable="true" align="center" /> - - + +
- + {{ title }}
@@ -45,18 +45,238 @@ const defaultIcon = ` ` +const menuIcon = ` + 菜单 + + + + + + + + + + + + + + + + + + +` + +const lightHatIcon = ` + hatplus + + + + + + + + + + + + + + + + + + + +` + +// 折角的菜单图标 +const zhejiaoMenuListIcon = ` + 编组 + + + + + + + + + + + + + + + + +` + +// 走势分析图标 +const trendAnalysisIcon = ` + 编组 + + + + + + + + + + + + + + + + + + + + + + + +` + +// 菜单放大镜图标 +const menuAnalysisIcon = ` + 编组 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +` + +// 电脑警告图标 +const alertWarningIcon = ` + 编组 + + + + + + + + + + + + + + + + + + + + + +` + +// 电脑警告菜单图标 +const alertMenuIcon = ` + 编组 + + + + + + + + + + + + + + + + + +` + +// 菱形叠加 +const stackIcon = ` + 物料信息 + + + + + + + + +` + export default { name: 'TechyContainer', props: { title: { type: String, default: '默认标题' }, - icon: { type: String, default: defaultIcon }, + icon: { type: String, default: 'defaultIcon' }, showCorner: { type: Boolean, default: true } }, + computed: { + computeIcon() { + return this[this.icon] || this['defaultIcon'] + } + }, data() { - return {} + return { + defaultIcon, + menuIcon, + lightHatIcon, + zhejiaoMenuListIcon, + trendAnalysisIcon, + menuAnalysisIcon, + alertWarningIcon, + alertMenuIcon, + stackIcon + } }, mounted() {} } diff --git a/src/views/3DOverview/index.vue b/src/views/3DOverview/index.vue index 02c283e..ad0adb8 100644 --- a/src/views/3DOverview/index.vue +++ b/src/views/3DOverview/index.vue @@ -3,16 +3,16 @@ -
+
- + - +
@@ -41,15 +41,15 @@
- + - + - +
@@ -58,22 +58,22 @@
- +
- +
- +
- +