From d4d88ac2be24db345956916d5e09e045d463da3d Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 9 Dec 2025 17:34:02 +0800 Subject: [PATCH] fix: optimize style --- .../app-charts/components/BarCharts.vue | 11 +++ ui/src/components/layout-container/index.vue | 5 ++ .../knowledge-inner/index.vue | 4 +- .../knowledge/index.vue | 6 +- ui/src/layout/layout-header/SystemHeader.vue | 5 +- ui/src/locales/lang/en-US/workflow.ts | 2 +- .../component/StatisticsCharts.vue | 15 +++- .../views/document/ImportWorkflowDocument.vue | 7 +- .../ExecutionDetailDrawer.vue | 2 +- .../ExecutionRecordDrawer.vue | 11 +-- ui/src/views/knowledge-workflow/index.vue | 4 +- .../component/FileUploadSettingDialog.vue | 78 ++++++++----------- 12 files changed, 76 insertions(+), 74 deletions(-) diff --git a/ui/src/components/app-charts/components/BarCharts.vue b/ui/src/components/app-charts/components/BarCharts.vue index 821c9f1a7..3e31ee442 100644 --- a/ui/src/components/app-charts/components/BarCharts.vue +++ b/ui/src/components/app-charts/components/BarCharts.vue @@ -94,6 +94,16 @@ function initChart() { }, }, }, + dataZoom: [ + { + type: 'inside', + show: props.option.dataZoom, + }, + { + type: 'slider', + show: props.option.dataZoom, + }, + ], series: series, } @@ -117,6 +127,7 @@ watch( ) onMounted(() => { + console.log(props.option.dataZoom) nextTick(() => { initChart() window.addEventListener('resize', changeChartSize) diff --git a/ui/src/components/layout-container/index.vue b/ui/src/components/layout-container/index.vue index 8a791b96e..71dab3038 100644 --- a/ui/src/components/layout-container/index.vue +++ b/ui/src/components/layout-container/index.vue @@ -3,6 +3,7 @@
@@ -48,6 +49,10 @@ const props = defineProps({ type: Number, default: 400, }, + showLeft: { + type: Boolean, + default: true, + }, }) const isCollapse = ref(false) diff --git a/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue b/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue index 53fbd36a3..9a8079734 100644 --- a/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue +++ b/ui/src/components/workflow-dropdown-menu/knowledge-inner/index.vue @@ -2,7 +2,7 @@
- +