Browse Source

master

hanyuqing
hanyuqing 4 months ago
parent
commit
140fa6c715
  1. 7
      vue/src/system/GraphDemo.vue

7
vue/src/system/GraphDemo.vue

@ -203,7 +203,7 @@ export default {
label: this.nodeShowLabel, label: this.nodeShowLabel,
labelFontSize: this.nodeFontSize, labelFontSize: this.nodeFontSize,
labelFontFamily: this.nodeFontFamily, labelFontFamily: this.nodeFontFamily,
labelFontColor: this.nodeFontColor, labelFill: this.nodeFontColor,
} }
})) }))
@ -302,7 +302,6 @@ export default {
style: { style: {
labelText: (d) => d.data.name, labelText: (d) => d.data.name,
labelPlacement: 'center', labelPlacement: 'center',
labelWordWrap: true, labelWordWrap: true,
labelMaxWidth: '150%', labelMaxWidth: '150%',
labelMaxLines: 3, labelMaxLines: 3,
@ -371,7 +370,7 @@ export default {
label: this.nodeShowLabel, label: this.nodeShowLabel,
labelFontSize: this.nodeFontSize, labelFontSize: this.nodeFontSize,
labelFontFamily: this.nodeFontFamily, labelFontFamily: this.nodeFontFamily,
labelFontColor: this.nodeFontColor, labelFill: this.nodeFontColor,
} }
})) }))
const updatedData = { const updatedData = {
@ -405,6 +404,7 @@ export default {
} }
this.defaultData = updatedData this.defaultData = updatedData
this.updateGraph(updatedData) this.updateGraph(updatedData)
}, },
clearAllStates() { clearAllStates() {
@ -538,7 +538,6 @@ export default {
button { button {
width: 45%; width: 45%;
padding: 10px; padding: 10px;
//margin: 10px 0;
background: #007bff; background: #007bff;
color: white; color: white;
border: none; border: none;

Loading…
Cancel
Save