mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-02 11:48:36 +08:00
fix: 修改关系图的问题
This commit is contained in:
parent
e090e669c4
commit
dad89b1c52
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -45,8 +45,8 @@
|
||||
</n-input-number>
|
||||
</SettingItem>
|
||||
</SettingItemBox>
|
||||
<SettingItemBox name="力引导" v-show="graphConfig.layout == 'force'">
|
||||
<SettingItem name="斥力因子">
|
||||
<SettingItemBox name="力引导" v-if="optionData.series[0].force && graphConfig.layout == 'force'">
|
||||
<SettingItem name="斥力因子" v-if="optionData.series[0].force.repulsion">
|
||||
<n-input-number
|
||||
v-model:value="optionData.series[0].force.repulsion"
|
||||
:min="0"
|
||||
@ -56,7 +56,7 @@
|
||||
>
|
||||
</n-input-number>
|
||||
</SettingItem>
|
||||
<SettingItem name="引力因子">
|
||||
<SettingItem name="引力因子" v-if="optionData.series[0].force.gravity">
|
||||
<n-input-number
|
||||
v-model:value="optionData.series[0].force.gravity"
|
||||
:min="0"
|
||||
|
Loading…
Reference in New Issue
Block a user