mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 14:04:47 +08:00
Demo:修复双击节点图片预览图片不显示的问题;修复节点图片弹窗中图片不显示的问题
This commit is contained in:
@@ -72,7 +72,7 @@ export default {
|
|||||||
this.reset()
|
this.reset()
|
||||||
if (this.activeNodes.length > 0) {
|
if (this.activeNodes.length > 0) {
|
||||||
let firstNode = this.activeNodes[0]
|
let firstNode = this.activeNodes[0]
|
||||||
let img = firstNode.getData('image') || ''
|
let img = firstNode.getImageUrl() || ''
|
||||||
if (img) {
|
if (img) {
|
||||||
if (/^https?:\/\//.test(img)) {
|
if (/^https?:\/\//.test(img)) {
|
||||||
this.imgUrl = img
|
this.imgUrl = img
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ export default {
|
|||||||
onNodeTmgDblclick(node, e) {
|
onNodeTmgDblclick(node, e) {
|
||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
this.images = [node.nodeData.data.image]
|
this.images = [node.getImageUrl()]
|
||||||
this.$viewerApi({
|
this.$viewerApi({
|
||||||
images: this.images
|
images: this.images
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user