|
@@ -96,7 +96,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
</Poptip>
|
|
</Poptip>
|
|
|
<Tooltip content="节点居中">
|
|
<Tooltip content="节点居中">
|
|
|
- <Button icon="iconfont iconfont icon-juzhong" @click="()=>{this.graph.centerContent(); this.graph.cleanSelection()}"></Button>
|
|
|
|
|
|
|
+ <Button icon="md-contract" @click="()=>{this.graph.centerContent(); this.graph.cleanSelection()}"></Button>
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
<Tooltip content="适应窗口">
|
|
<Tooltip content="适应窗口">
|
|
|
<Button icon="md-expand" @click="()=>{this.graph.zoomToFit(); this.graph.cleanSelection()}"></Button>
|
|
<Button icon="md-expand" @click="()=>{this.graph.zoomToFit(); this.graph.cleanSelection()}"></Button>
|
|
@@ -104,6 +104,9 @@
|
|
|
<Tooltip content="原始比例">
|
|
<Tooltip content="原始比例">
|
|
|
<Button icon="iconfont iconfont icon-one2one" @click="()=>{this.graph.zoomToFit({ maxScale: 1 }); this.graph.cleanSelection()}"></Button>
|
|
<Button icon="iconfont iconfont icon-one2one" @click="()=>{this.graph.zoomToFit({ maxScale: 1 }); this.graph.cleanSelection()}"></Button>
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
|
|
|
+ <Tooltip content="显示/隐藏小地图">
|
|
|
|
|
+ <Button icon="md-locate" @click="()=>{this.showMiniMap=!this.showMiniMap}"></Button>
|
|
|
|
|
+ </Tooltip>
|
|
|
<Tooltip content="导出PNG">
|
|
<Tooltip content="导出PNG">
|
|
|
<Button icon="md-images" @click="()=>{this.graph.exportPNG('',{padding:50})}"></Button>
|
|
<Button icon="md-images" @click="()=>{this.graph.exportPNG('',{padding:50})}"></Button>
|
|
|
</Tooltip>
|
|
</Tooltip>
|
|
@@ -138,9 +141,9 @@
|
|
|
></InputNumber>
|
|
></InputNumber>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 小地图 -->
|
|
<!-- 小地图 -->
|
|
|
- <div id="miniMap" ref="miniMap" class="miniMap"/>
|
|
|
|
|
- <!-- 弹窗组件 -->
|
|
|
|
|
- <transition-group name="fade">
|
|
|
|
|
|
|
+ <transition name="fade">
|
|
|
|
|
+ <div id="miniMap" ref="miniMap" class="miniMap" v-show="showMiniMap"/>
|
|
|
|
|
+ </transition>
|
|
|
<!-- 节点弹窗 -->
|
|
<!-- 节点弹窗 -->
|
|
|
<NodeModal key="node" v-if="process.nodeModal.display"
|
|
<NodeModal key="node" v-if="process.nodeModal.display"
|
|
|
:dataKindList="dataKindList"
|
|
:dataKindList="dataKindList"
|
|
@@ -153,7 +156,6 @@
|
|
|
<EdgeModal key="edge" v-if="process.edgeModal.display"
|
|
<EdgeModal key="edge" v-if="process.edgeModal.display"
|
|
|
:dictionaryDataList="dictionaryDataList"
|
|
:dictionaryDataList="dictionaryDataList"
|
|
|
:productGradeList="productGradeList.filter(it=>![$config.gradeKindType.decrease,$config.gradeKindType.inferior].includes(it.gradeKind))"/>
|
|
:productGradeList="productGradeList.filter(it=>![$config.gradeKindType.decrease,$config.gradeKindType.inferior].includes(it.gradeKind))"/>
|
|
|
- </transition-group>
|
|
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
@@ -180,6 +182,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ showMiniMap:true,
|
|
|
scaleValue: 1,
|
|
scaleValue: 1,
|
|
|
scaleMax: 3,
|
|
scaleMax: 3,
|
|
|
scaleMin: 0.5,
|
|
scaleMin: 0.5,
|
|
@@ -720,6 +723,16 @@ export default {
|
|
|
bottom: 100px;
|
|
bottom: 100px;
|
|
|
right: 30px
|
|
right: 30px
|
|
|
}
|
|
}
|
|
|
|
|
+.fade-enter,.fade-leave-to {
|
|
|
|
|
+ opacity: 0;
|
|
|
|
|
+}
|
|
|
|
|
+.fade-enter-to,.fade-leave {
|
|
|
|
|
+ opacity: 1;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+.fade-enter-active,.fade-leave-active {
|
|
|
|
|
+ transition: all .2s;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
</style>
|
|
</style>
|
|
|
|
|
|