-
+
+
-
-
+
+
+
+ 自定义组件
+
+
+ 页面结构
+
+
-
+
-
-
- 组件库
-
-
-
-
-
- 自定义组件
-
-
- 自定义组件
-
-
-
- 页面结构
-
- 页面结构
-
+
\ No newline at end of file
--
Gitee
From 8118d3716a773e328968b3a12f8394fe52efa4c1 Mon Sep 17 00:00:00 2001
From: yanghi <191894349@qq.com>
Date: Wed, 10 Aug 2022 22:46:42 +0800
Subject: [PATCH 2/2] update
---
src/components/DrawingBroad.vue | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/src/components/DrawingBroad.vue b/src/components/DrawingBroad.vue
index a80b2dc..47af5e5 100644
--- a/src/components/DrawingBroad.vue
+++ b/src/components/DrawingBroad.vue
@@ -3,13 +3,14 @@
import draggable from 'vuedraggable';
import { storeToRefs } from "pinia";
import { userMainStore } from "@/store/index"; // 引入
-import { computed ,ref} from '@vue/reactivity';
+import { computed, ref } from '@vue/reactivity';
+import Grid from './Grid.vue';
const mainStore = userMainStore();
const { tList, tree } = storeToRefs(mainStore); // 解构并使数据动态化
-const containerStyle = computed(()=> ({
- width: tree.value.container.width+'px',
- height: tree.value.mode == "PC" ? '100%':tree.value.container.height+'px',
- 'marginTop':tree.value.mode == "PC" ? '':50+'px'
+const containerStyle = computed(() => ({
+ width: tree.value.container.width + 'px',
+ height: tree.value.mode == "PC" ? '100%' : tree.value.container.height + 'px',
+ 'marginTop': tree.value.mode == "PC" ? '' : 50 + 'px'
}))
@@ -33,6 +34,7 @@ const containerStyle = computed(()=> ({
height: 100%;
margin: auto;
overflow: auto;
+ position: relative;
&::-webkit-scrollbar {
width: 8px;
--
Gitee