From 0b8442613f6ddfd99eaa03d5e8b55bbca41f4b15 Mon Sep 17 00:00:00 2001 From: wisonic-s Date: Wed, 3 Jul 2024 14:40:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=9B=BE=E8=A1=A8):=20=E8=A7=86?= =?UTF-8?q?=E5=9B=BE=E8=AF=A6=E6=83=85=E8=A1=A8=E6=A0=BC=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=BB=9A=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visualization/UserViewEnlarge.vue | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue index 0271c7d905..31aeb2d579 100644 --- a/core/core-frontend/src/components/visualization/UserViewEnlarge.vue +++ b/core/core-frontend/src/components/visualization/UserViewEnlarge.vue @@ -142,12 +142,13 @@ const { dvInfo, editMode } = storeToRefs(dvMainStore) const exportLoading = ref(false) const sourceViewType = ref() const activeName = ref('left') -const DETAIL_TABLE_ATTR: DeepPartial = { +const DETAIL_CHART_ATTR: DeepPartial = { render: 'antv', type: 'table-info', customAttr: { basicStyle: { - tableColumnMode: 'dialog' + tableColumnMode: 'dialog', + tablePageMode: 'pull' }, tableHeader: { tableHeaderBgColor: '#F8F8F9', @@ -161,6 +162,18 @@ const DETAIL_TABLE_ATTR: DeepPartial = { tooltip: { show: false } + }, + senior: { + scrollCfg: { + open: false + } + } +} +const DETAIL_TABLE_ATTR: DeepPartial = { + senior: { + scrollCfg: { + open: false + } } } @@ -226,6 +239,8 @@ const dialogInit = (canvasStyle, view, item, opt) => { canvasStyleData.value = canvasStyle if (opt === 'details') { if (!viewInfo.value.type?.includes('table')) { + assign(viewInfo.value, DETAIL_CHART_ATTR) + } else { assign(viewInfo.value, DETAIL_TABLE_ATTR) } dataDetailsOpt()