From dce1035f2eabe7a5575040d6a0b9bc20aa72a6c4 Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 30 Aug 2023 19:06:40 +0800 Subject: [PATCH] feat: implement a breadcrumb component as navigation (#313) --- src/layout/components/NavBar.vue | 213 ++++++++++++++++-- src/store/modules/app.ts | 5 - src/store/modules/selectors.ts | 22 +- src/styles/reset.scss | 4 + src/types/app.d.ts | 2 + src/types/components.d.ts | 2 + src/types/profile.d.ts | 4 +- src/utils/arrayAlgorithm.ts | 31 +++ src/views/Alarm.vue | 4 - src/views/Event.vue | 5 - src/views/Layer.vue | 3 - src/views/Settings.vue | 1 - src/views/components/ConditionTags.vue | 6 +- src/views/dashboard/Edit.vue | 9 +- src/views/dashboard/List.vue | 3 - src/views/dashboard/New.vue | 3 - src/views/dashboard/data.ts | 1 + src/views/dashboard/graphs/InstanceList.vue | 4 + .../network-profiling/components/Tasks.vue | 8 +- 19 files changed, 267 insertions(+), 63 deletions(-) create mode 100644 src/utils/arrayAlgorithm.ts diff --git a/src/layout/components/NavBar.vue b/src/layout/components/NavBar.vue index 26a0285e..c2b188dd 100644 --- a/src/layout/components/NavBar.vue +++ b/src/layout/components/NavBar.vue @@ -14,7 +14,26 @@ See the License for the specific language governing permissions and limitations under the License. --> diff --git a/src/views/dashboard/related/network-profiling/components/Tasks.vue b/src/views/dashboard/related/network-profiling/components/Tasks.vue index 598350cc..a873a636 100644 --- a/src/views/dashboard/related/network-profiling/components/Tasks.vue +++ b/src/views/dashboard/related/network-profiling/components/Tasks.vue @@ -216,7 +216,7 @@ limitations under the License. --> width: 330px; height: calc(100% - 10px); overflow: auto; - border-right: 1px solid rgba(0, 0, 0, 0.1); + border-right: 1px solid rgb(0 0 0 / 10%); } .item span { @@ -225,7 +225,7 @@ limitations under the License. --> .profile-td { padding: 10px 5px 10px 10px; - border-bottom: 1px solid rgba(0, 0, 0, 0.07); + border-bottom: 1px solid rgb(0 0 0 / 7%); &.selected { background-color: #ededed; @@ -253,13 +253,13 @@ limitations under the License. --> .profile-tr { &:hover { - background-color: rgba(0, 0, 0, 0.04); + background-color: rgb(0 0 0 / 4%); } } .profile-t-tool { padding: 10px 5px 10px 10px; - border-bottom: 1px solid rgba(0, 0, 0, 0.07); + border-bottom: 1px solid rgb(0 0 0 / 7%); background: #f3f4f9; width: 100%; }