3737 <span v-show =" showDetails" >关闭详情</span >
3838 </v-tooltip >
3939 </v-card >
40- <!-- <v-toolbar dense>
41- <v-toolbar-title>Toolbars</v-toolbar-title>
42- <v-spacer></v-spacer>
43- <v-tooltip bottom>
44- <template v-slot:activator="{ on }">
45- <v-btn icon v-on="on" :disabled="buttonDisabled" @click="addNode">
46- <v-icon>mdi-playlist-plus</v-icon>
47- </v-btn>
48- </template>
49- <span>新增节点</span>
50- </v-tooltip>
51- <v-tooltip bottom>
52- <template v-slot:activator="{ on }">
53- <v-btn icon v-on="on" :disabled="buttonDisabled" @click="deleteNode">
54- <v-icon>mdi-delete-outline</v-icon>
55- </v-btn>
56- </template>
57- <span>删除节点</span>
58- </v-tooltip>
59- <v-tooltip bottom>
60- <template v-slot:activator="{ on }">
61- <v-btn icon v-on="on" :disabled="buttonDisabled" @click="editNode">
62- <v-icon>mdi-square-edit-outline</v-icon>
63- </v-btn>
64- </template>
65- <span>编辑节点</span>
66- </v-tooltip>
67- <v-tooltip bottom>
68- <template v-slot:activator="{ on }">
69- <v-btn icon v-on="on" @click="showDetails = !showDetails">
70- <v-icon v-show="showDetails">mdi-eye-outline</v-icon>
71- <v-icon v-show="!showDetails">mdi-eye-off-outline</v-icon>
72- </v-btn>
73- </template>
74- <span v-show="!showDetails">显示详情</span>
75- <span v-show="showDetails">关闭详情</span>
76- </v-tooltip>
77- </v-toolbar> -->
7840 <svg class =" d3-tree width-100-percent" >
7941 <g class =" container" />
8042 </svg >
8143 <v-card v-show =" showDetails" class =" drawer-container" >
8244 <div class =" text-align-left margin-top-10" >
83- 节点ID: & nbsp ; {{ nodeId }} & nbsp ;& nbsp ;& nbsp ;& nbsp ; 节点名称: & nbsp ;
84- {{ nodeName }}
45+ < span class = " span-title " >Selected Node</ span >< span class = " span-id-margin " >nodeId: {{ nodeId }}</ span >
46+ < span >nodeName: {{ nodeName }}</ span >
8547 </div >
8648 <div >
87- <v-text-field label =" 新增(编辑)节点名称 " outlined maxlength =" 50" dense v-model =" newNodeName" class =" text-height" ></v-text-field >
49+ <v-text-field label =" Insert/Edit Node " outlined maxlength =" 50" dense v-model =" newNodeName" class =" text-height" ></v-text-field >
8850 </div >
8951 </v-card >
9052 <v-dialog v-model =" dialog" max-width =" 400" >
@@ -108,9 +70,9 @@ export default {
10870 name: ' TreeVIII' ,
10971 data () {
11072 return {
111- showDetails: false ,
112- nodeId: ' 1 ' ,
113- nodeName: ' flare ' ,
73+ showDetails: true ,
74+ nodeId: ' ' ,
75+ nodeName: ' ' ,
11476 zoom: null ,
11577 index: 0 ,
11678 duration: 750 ,
@@ -559,7 +521,7 @@ export default {
559521}
560522
561523.drawer-container {
562- width : 400 px ;
524+ width : 480 px ;
563525 position : fixed ;
564526 top : 130px !important ;
565527 right : 14px !important ;
@@ -576,4 +538,13 @@ export default {
576538 height : 48px ;
577539 margin-top : 20px ;
578540}
541+
542+ .span-title {
543+ font-weight : 600 ;
544+ margin-right : 20px ;
545+ }
546+
547+ .span-id-margin {
548+ margin-right : 20px ;
549+ }
579550 </style >
0 commit comments