msg
This commit is contained in:
@@ -75,6 +75,9 @@
|
|||||||
{target: 'showAll', text: '展开全部节点'},
|
{target: 'showAll', text: '展开全部节点'},
|
||||||
{target: 'hideAll', text: '收起全部节点'}
|
{target: 'hideAll', text: '收起全部节点'}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
view: {
|
||||||
|
engine: 'svg' // 思维导图各节点之间线条的绘制引擎
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-5
@@ -1508,13 +1508,11 @@
|
|||||||
auto_height_node_before_update: function (node) {
|
auto_height_node_before_update: function (node) {
|
||||||
const topic = node.topic
|
const topic = node.topic
|
||||||
if (!!topic) {
|
if (!!topic) {
|
||||||
const length = topic.length
|
const lines = topic.split('\n').length
|
||||||
const lines = length / 40
|
|
||||||
|
|
||||||
const view_data = node._data.view;
|
const view_data = node._data.view;
|
||||||
const element = view_data.element;
|
const element = view_data.element;
|
||||||
|
const height = (lines * 12 + 20)
|
||||||
element.style.height = '100px'
|
element.style.height = `${height}px`
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -2419,6 +2417,7 @@
|
|||||||
this.e_panel.appendChild(this.e_nodes);
|
this.e_panel.appendChild(this.e_nodes);
|
||||||
|
|
||||||
this.e_editor.className = 'jsmind-editor';
|
this.e_editor.className = 'jsmind-editor';
|
||||||
|
this.e_editor.style.fontSize = '11px';
|
||||||
// this.e_editor.type = 'text';
|
// this.e_editor.type = 'text';
|
||||||
|
|
||||||
this.actualZoom = 1;
|
this.actualZoom = 1;
|
||||||
@@ -2552,6 +2551,7 @@
|
|||||||
$t(d_e, '-');
|
$t(d_e, '-');
|
||||||
d_e.setAttribute('nodeid', node.id);
|
d_e.setAttribute('nodeid', node.id);
|
||||||
d_e.style.visibility = 'hidden';
|
d_e.style.visibility = 'hidden';
|
||||||
|
d.style.minWidth = '70px'
|
||||||
parent_node.appendChild(d_e);
|
parent_node.appendChild(d_e);
|
||||||
view_data.expander = d_e;
|
view_data.expander = d_e;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -206,13 +206,13 @@
|
|||||||
defaultFn.call(_this, this.selected_node)
|
defaultFn.call(_this, this.selected_node)
|
||||||
if (!_this._get_mid_opts()) {
|
if (!_this._get_mid_opts()) {
|
||||||
cb(this.selected_node, _noop)
|
cb(this.selected_node, _noop)
|
||||||
fn.call(j, Jm.util.uuid.newid(), this.menuOpts.newNodeText || '请输入节点名称')
|
fn.call(j, Jm.util.uuid.newid(), this.menuOpts.newNodeText || '请输入名称')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
cb(this.selected_node, _this._mid_stage_next(function () {
|
cb(this.selected_node, _this._mid_stage_next(function () {
|
||||||
var retArgs = [this.selected_node]
|
var retArgs = [this.selected_node]
|
||||||
var argus = Array.prototype.slice.call(arguments[0], 0)
|
var argus = Array.prototype.slice.call(arguments[0], 0)
|
||||||
argus[1] = this.menuOpts.newNodeText || '请输入节点名称'
|
argus[1] = this.menuOpts.newNodeText || '请输入名称'
|
||||||
if (argus[0]) {
|
if (argus[0]) {
|
||||||
retArgs = argus
|
retArgs = argus
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user