From c980584158f8c2862c155ad689ff41ee4165eab5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com>
Date: Mon, 9 Dec 2024 18:44:24 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?=
=?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=BA=90=E6=A0=87=E8=AF=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/common/div-content/index.vue | 14 +++++++++++++-
.../model-custom/model-custom-content.vue | 5 +++++
.../model-custom/model-custom-setting.vue | 17 ++++++++++++++++-
src/styles/common.scss | 9 +++++++++
src/views/layout/components/main/index.vue | 12 +++++++++++-
src/views/layout/components/settings/index.vue | 2 +-
6 files changed, 55 insertions(+), 4 deletions(-)
diff --git a/src/components/common/div-content/index.vue b/src/components/common/div-content/index.vue
index 6b01a1b9..2ae70e2c 100644
--- a/src/components/common/div-content/index.vue
+++ b/src/components/common/div-content/index.vue
@@ -17,7 +17,12 @@
-
{{ item.name }}
+
+
+ {{ item.name }}
+
{{ item.mark_name }}
+
+
@@ -117,6 +122,8 @@
diff --git a/src/styles/common.scss b/src/styles/common.scss
index 0bcb69af..dae767d5 100644
--- a/src/styles/common.scss
+++ b/src/styles/common.scss
@@ -312,4 +312,13 @@
.dot-item {
margin: 0 0.3rem;
}
+}
+.mark-name-style {
+ background: #D8D8D8 linear-gradient(107deg, #FC6F31 0%, #E22C08 100%);
+ font-size: 1rem;
+ line-height: 1.2rem;
+ padding: 0.2rem 0.4rem;
+ color: #fff;
+ white-space: nowrap;
+ border-radius: 0.8rem 0 0.8rem 0;
}
\ No newline at end of file
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index fc7c9ded..08bef743 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -34,7 +34,10 @@
- {{ item.name }}
+
+ {{ item.name }}
+ {{ item.mark_name }}
+
@@ -270,6 +273,7 @@ const draggable_click = (item: componentsData) => {
// 添加tabs组件
tabs_data.value.push({
name: item.name,
+ mark_name: '',
show_tabs: '1',
is_enable: '1',
src: '',
@@ -298,6 +302,7 @@ watchEffect(() => {
const clone_item_com_data = (item: commonComponentData) => {
return {
name: item.name,
+ mark_name: '',
show_tabs: '1',
is_enable: '1',
src: item.src,
@@ -576,4 +581,9 @@ const footer_nav_event = () => {
align-items: stretch;
flex: 1;
}
+.plug-drawer-mark-name {
+ position: absolute;
+ top: -1.3rem;
+ left: -0.6rem;
+}
diff --git a/src/views/layout/components/settings/index.vue b/src/views/layout/components/settings/index.vue
index 8105a184..20bd881d 100644
--- a/src/views/layout/components/settings/index.vue
+++ b/src/views/layout/components/settings/index.vue
@@ -76,7 +76,7 @@
-
+