瀏覽代碼

修复legand和series重叠

kagg886 1 月之前
父節點
當前提交
52c688142e
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 0 1
      src/components/markdown/plugins/impl/VueCharts.vue
  2. 3 0
      src/components/markdown/plugins/struct-data.ts

+ 0 - 1
src/components/markdown/plugins/impl/VueCharts.vue

@@ -40,7 +40,6 @@ const setOption = () => {
 			left: '3%',
 			right: '4%',
 			bottom: '3%',
-			top: '3%',
 			containLabel: true,
 		},
 		tooltip: {

+ 3 - 0
src/components/markdown/plugins/struct-data.ts

@@ -50,6 +50,9 @@ const StructDataPlugin = defineMarkdownPlugin({
 	renderer: (node: { attribs: Record<string, string> }) => {
 		return h(VueStructData, {
 			uuid: decodeURIComponent(node.attribs.uuid || ''),
+			style: {
+				'height': '400px'
+			}
 		})
 	},
 })