diff --git a/src/packages/components/Charts/Mores/Graph/config.ts b/src/packages/components/Charts/Mores/Graph/config.ts index 7ba6b00c..125d7469 100644 --- a/src/packages/components/Charts/Mores/Graph/config.ts +++ b/src/packages/components/Charts/Mores/Graph/config.ts @@ -15,8 +15,8 @@ export const GraphLayout = [ // 标签开关 export const LabelSwitch = [ - { label: '开启', value: true }, - { label: '关闭', value: false } + { label: '开启', value: 1 }, + { label: '关闭', value: 0 } ] // 标签位置 @@ -30,8 +30,8 @@ export const LabelPosition = [ // 图-迭代动画 export const LayoutAnimation = [ - { label: '开启', value: true }, - { label: '关闭', value: false } + { label: '开启', value: 1 }, + { label: '关闭', value: 0 } ] export const option = { @@ -55,7 +55,7 @@ export const option = { links: dataJson.links, categories: dataJson.categories, label: { - show: true, + show: 1, position: 'right', formatter: '{b}' }, @@ -70,7 +70,7 @@ export const option = { repulsion: 100, gravity: 0.1, edgeLength: 30, - layoutAnimation: true, + layoutAnimation: 1, friction: 0.6 } } diff --git a/src/packages/components/Charts/Mores/Graph/config.vue b/src/packages/components/Charts/Mores/Graph/config.vue index 81ce82f0..65e6e38d 100644 --- a/src/packages/components/Charts/Mores/Graph/config.vue +++ b/src/packages/components/Charts/Mores/Graph/config.vue @@ -45,8 +45,8 @@ - - + + - +