diff --git a/gear-ui3/src/views/dashboard/grid/ChartLayoutPreview.vue b/gear-ui3/src/views/dashboard/grid/ChartLayoutPreview.vue
new file mode 100644
index 0000000..6a56a14
--- /dev/null
+++ b/gear-ui3/src/views/dashboard/grid/ChartLayoutPreview.vue
@@ -0,0 +1,212 @@
+
+
+
+
+
+ 布局预览(同比缩放:{{ scaleRatio * 100 }}%)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
高度:{{ chart.height }}px
+
布局:xs={{ chart.layout.xs }} / sm={{ chart.layout.sm }} / md={{ chart.layout.md }}
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/gear-ui3/src/views/dashboard/grid/setting.vue b/gear-ui3/src/views/dashboard/grid/setting.vue
index eb866e3..9c08c05 100644
--- a/gear-ui3/src/views/dashboard/grid/setting.vue
+++ b/gear-ui3/src/views/dashboard/grid/setting.vue
@@ -5,7 +5,6 @@
-
图表配置
-
+
@@ -140,60 +138,11 @@
-
-
-
-
- 布局预览(实时同步配置)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
高度:{{ chart.height }}px
-
布局:xs={{ chart.layout.xs }} / sm={{ chart.layout.sm }} / md={{ chart.layout.md }}
-
-
-
-
-
-
-
+
+
@@ -212,10 +161,10 @@ import { ref, onMounted, reactive } from 'vue';
import { useStorage } from '@vueuse/core';
import { useEventListener } from '@vueuse/core';
import { ElMessage, ElMessageBox, ElEmpty, ElRow, ElCol, ElCard } from 'element-plus';
-// 新增导入预览用图标
-import { Loading, Grid, Eye } from '@element-plus/icons-vue';
+// 引入独立预览组件
+import ChartLayoutPreview from './ChartLayoutPreview.vue';
-// 原有逻辑保持不变,仅新增预览相关变量(如有需要)
+// 原有逻辑保持不变(与原代码一致)
const props = defineProps({
storageKey: {
type: String,
@@ -259,7 +208,6 @@ const batchSettings = reactive({
layout: { xs: null, sm: null, md: null, lg: null, xl: null }
});
-// 原有方法(onMounted、calculateTableHeight、resetToSession等)保持不变
useEventListener('resize', () => {
windowWidth.value = window.innerWidth;
calculateTableHeight();
@@ -403,7 +351,7 @@ defineExpose({ resetToSession, applySettings });
\ No newline at end of file
diff --git a/gear-ui3/src/views/purchase/dashboard/index.vue b/gear-ui3/src/views/purchase/dashboard/index.vue
index a9187c1..efcd698 100644
--- a/gear-ui3/src/views/purchase/dashboard/index.vue
+++ b/gear-ui3/src/views/purchase/dashboard/index.vue
@@ -11,11 +11,6 @@
style="margin-bottom: 20px;"
/>
-
-