From 5030cfe0990c0c5e0b3e6921c5afc0318cfae8f8 Mon Sep 17 00:00:00 2001
From: MTrun <1262327911@qq.com>
Date: Tue, 11 Jan 2022 20:56:19 +0800
Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E6=96=B0=E5=A2=9E=E5=9B=BE?=
=?UTF-8?q?=E8=A1=A8=E7=BB=84=E4=BB=B6=E7=9A=84=E5=88=87=E6=8D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 1 +
pnpm-lock.yaml | 8 ++
src/plugins/icon.ts | 28 ++++-
src/styles/common/mixins/mixins.scss | 4 +-
src/styles/common/var.scss | 3 +-
.../chart/components/ContentBox/index.vue | 4 +
.../components/ChartCommon/index.ts | 3 +
.../components/ChartCommon/index.vue | 9 ++
.../components/TableCommon/index.ts | 3 +
.../components/TableCommon/index.vue | 9 ++
.../components/TextCommon/index.ts | 3 +
.../components/TextCommon/index.vue | 9 ++
.../chart/components/ContentCharts/index.vue | 111 ++++++++++++++++--
.../chart/components/ContentLayers/index.vue | 1 +
.../chart/components/HeaderLeftBtn/index.vue | 27 +++--
15 files changed, 192 insertions(+), 31 deletions(-)
create mode 100644 src/views/chart/components/ContentCharts/components/ChartCommon/index.ts
create mode 100644 src/views/chart/components/ContentCharts/components/ChartCommon/index.vue
create mode 100644 src/views/chart/components/ContentCharts/components/TableCommon/index.ts
create mode 100644 src/views/chart/components/ContentCharts/components/TableCommon/index.vue
create mode 100644 src/views/chart/components/ContentCharts/components/TextCommon/index.ts
create mode 100644 src/views/chart/components/ContentCharts/components/TextCommon/index.vue
diff --git a/package.json b/package.json
index d15c5830..055edbbd 100644
--- a/package.json
+++ b/package.json
@@ -7,6 +7,7 @@
"lint": "eslint \"{src}/**/*.{vue,ts,tsx}\" --fix --ext"
},
"dependencies": {
+ "@vicons/carbon": "^0.11.0",
"axios": "^0.23.0",
"crypto-ts": "^1.0.2",
"mockjs": "^1.1.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 2a016fcb..fd4d102a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -4,6 +4,7 @@ specifiers:
'@types/node': ^16.11.1
'@typescript-eslint/eslint-plugin': ^5.6.0
'@typescript-eslint/parser': ^5.6.0
+ '@vicons/carbon': ^0.11.0
'@vicons/ionicons5': ~0.11.0
'@vitejs/plugin-vue': ^1.9.3
'@vitejs/plugin-vue-jsx': ^1.2.0
@@ -36,6 +37,7 @@ specifiers:
vue-tsc: ^0.28.7
dependencies:
+ '@vicons/carbon': r2.cnpmjs.org/@vicons/carbon/0.11.0
axios: rg.cnpmjs.org/axios/0.23.0
crypto-ts: r2.cnpmjs.org/crypto-ts/1.0.2
mockjs: rg.cnpmjs.org/mockjs/1.1.0
@@ -134,6 +136,12 @@ packages:
version: 14.14.45
dev: false
+ r2.cnpmjs.org/@vicons/carbon/0.11.0:
+ resolution: {integrity: sha512-+Wkl8wOP1GR7jS+OKcsJ58NnZr4i+BZhbpLRtgpZQui1zFpYjoWinwvYKLjGKJ/oiR10Q237cBDjGwmMSzXqTg==, registry: http://r.cnpmjs.org/, tarball: https://r2.cnpmjs.org/@vicons/carbon/-/carbon-0.11.0.tgz}
+ name: '@vicons/carbon'
+ version: 0.11.0
+ dev: false
+
r2.cnpmjs.org/ansi-regex/5.0.1:
resolution: {integrity: sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==, registry: http://r.cnpmjs.org/, tarball: https://r2.cnpmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz}
name: ansi-regex
diff --git a/src/plugins/icon.ts b/src/plugins/icon.ts
index 12c21cd2..c7e5d6e9 100644
--- a/src/plugins/icon.ts
+++ b/src/plugins/icon.ts
@@ -37,10 +37,16 @@ import {
ChevronBackOutline as ChevronBackOutlineIcon,
Flash as FlashIcon,
SettingsSharp as SettingsSharpIcon,
- Home as HomeIcon
+ Home as HomeIcon,
+ Card as CardIcon
} from '@vicons/ionicons5'
-// ionicons5 在这里
+import {
+ TableSplit as TableSplitIcon,
+ Roadmap as RoadmapIcon,
+ SpellCheck as SpellCheckIcon
+} from '@vicons/carbon'
+
const ionicons5 = {
// 帮助
HelpOutlineIcon,
@@ -53,7 +59,7 @@ const ionicons5 = {
// 退出
LogOutOutlineIcon,
// 锁
- LockClosedOutlineIcon,
+ LockClosedOutlineIcon,
// 人
PersonIcon,
// 人2
@@ -119,11 +125,23 @@ const ionicons5 = {
// 设置(齿轮)
SettingsSharpIcon,
// 回退
- HomeIcon
+ HomeIcon,
+ // 控件(卡片)
+ CardIcon
+}
+
+const carbon = {
+ // 信息
+ SpellCheckIcon,
+ // 图表
+ RoadmapIcon,
+ // 表格
+ TableSplitIcon
}
// https://www.xicons.org/#/ 还有很多
export const icon = {
- ionicons5
+ ionicons5,
+ carbon
}
diff --git a/src/styles/common/mixins/mixins.scss b/src/styles/common/mixins/mixins.scss
index 887beeb5..abc145e5 100644
--- a/src/styles/common/mixins/mixins.scss
+++ b/src/styles/common/mixins/mixins.scss
@@ -52,14 +52,12 @@
}
}
-//获取边框颜色
+//设置边框颜色
@mixin filter-border-color($target) {
@include themeify {
border-color: themed($target);
}
}
-
-//获取边框颜色
@mixin hover-border-color($target) {
@include themeify {
border: 1px solid themed($target);
diff --git a/src/styles/common/var.scss b/src/styles/common/var.scss
index 5bc7f8cf..95dfe8a0 100644
--- a/src/styles/common/var.scss
+++ b/src/styles/common/var.scss
@@ -17,7 +17,7 @@ $--color-light-bg-2: #f2f3f5;
$--color-light-bg-3: #e5e6eb;
$--color-light-bg-4: #c9cdd4;
$--color-light-bg-5: #bebebe;
-$--color-dark-border: #efeff5;
+$--color-light-border: #efeff5;
// 黑色
$--color-dark-black: #000;
@@ -42,6 +42,5 @@ $--filter-color-login-light: rgba(240, 240, 240, 0.8);
// 边框
$--border-radius-base: 8px;
-$--border-bottom-style: 1px solid $--color-dark-border;
// 阴影
$--border-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
diff --git a/src/views/chart/components/ContentBox/index.vue b/src/views/chart/components/ContentBox/index.vue
index 4dab72ca..849a3f6b 100644
--- a/src/views/chart/components/ContentBox/index.vue
+++ b/src/views/chart/components/ContentBox/index.vue
@@ -119,6 +119,10 @@ $topHeight: 36px;
margin-top: 2px;
}
}
+ .top {
+ border-bottom: 1px solid;
+ @include filter-border-color('background-color1');
+ }
.content {
height: calc(100vh - #{$--header-height} - #{$topHeight});
overflow: hidden;
diff --git a/src/views/chart/components/ContentCharts/components/ChartCommon/index.ts b/src/views/chart/components/ContentCharts/components/ChartCommon/index.ts
new file mode 100644
index 00000000..31fa457e
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/ChartCommon/index.ts
@@ -0,0 +1,3 @@
+import ChartCommon from './index.vue'
+
+export { ChartCommon }
\ No newline at end of file
diff --git a/src/views/chart/components/ContentCharts/components/ChartCommon/index.vue b/src/views/chart/components/ContentCharts/components/ChartCommon/index.vue
new file mode 100644
index 00000000..36ee7eba
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/ChartCommon/index.vue
@@ -0,0 +1,9 @@
+
+
+ 我是图表咯
+
+
+
+
+
+
diff --git a/src/views/chart/components/ContentCharts/components/TableCommon/index.ts b/src/views/chart/components/ContentCharts/components/TableCommon/index.ts
new file mode 100644
index 00000000..a717f771
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/TableCommon/index.ts
@@ -0,0 +1,3 @@
+import TableCommon from './index.vue'
+
+export { TableCommon }
diff --git a/src/views/chart/components/ContentCharts/components/TableCommon/index.vue b/src/views/chart/components/ContentCharts/components/TableCommon/index.vue
new file mode 100644
index 00000000..caa4a8c3
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/TableCommon/index.vue
@@ -0,0 +1,9 @@
+
+
+ 我是表格咯
+
+
+
+
+
+
diff --git a/src/views/chart/components/ContentCharts/components/TextCommon/index.ts b/src/views/chart/components/ContentCharts/components/TextCommon/index.ts
new file mode 100644
index 00000000..1e94511e
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/TextCommon/index.ts
@@ -0,0 +1,3 @@
+import TextCommon from './index.vue'
+
+export { TextCommon }
diff --git a/src/views/chart/components/ContentCharts/components/TextCommon/index.vue b/src/views/chart/components/ContentCharts/components/TextCommon/index.vue
new file mode 100644
index 00000000..23687bd9
--- /dev/null
+++ b/src/views/chart/components/ContentCharts/components/TextCommon/index.vue
@@ -0,0 +1,9 @@
+
+
+ 我是信息咯
+
+
+
+
+
+
diff --git a/src/views/chart/components/ContentCharts/index.vue b/src/views/chart/components/ContentCharts/index.vue
index 402b53bb..993cc044 100644
--- a/src/views/chart/components/ContentCharts/index.vue
+++ b/src/views/chart/components/ContentCharts/index.vue
@@ -2,35 +2,126 @@
-
+
+
+
diff --git a/src/views/chart/components/ContentLayers/index.vue b/src/views/chart/components/ContentLayers/index.vue
index 71b745f2..bce9aff1 100644
--- a/src/views/chart/components/ContentLayers/index.vue
+++ b/src/views/chart/components/ContentLayers/index.vue
@@ -3,6 +3,7 @@
class="go-content-layers"
:class="{ scoped: !chartLayoutStore.getLayers }"
title="图层"
+ :depth="2"
@back="backHandle"
>
diff --git a/src/views/chart/components/HeaderLeftBtn/index.vue b/src/views/chart/components/HeaderLeftBtn/index.vue
index 1065a158..3887a99d 100644
--- a/src/views/chart/components/HeaderLeftBtn/index.vue
+++ b/src/views/chart/components/HeaderLeftBtn/index.vue
@@ -1,12 +1,19 @@