提交 47c29e0b 编写于 作者: C Catouse

* fix error in flowchart.

上级 b8e6205c
/*!
* ZUI: 流程图 - v1.9.1 - 2019-07-25
* ZUI: 流程图 - v1.9.1 - 2019-07-26
* http://zui.sexy
* GitHub: https://github.com/easysoft/zui.git
* Copyright (c) 2019 cnezsoft.com; Licensed MIT
......@@ -223,7 +223,7 @@
}, {
label: that.lang.delete,
onClick: function() {
if (!options.deleteConfirm || confirm(that.lang.confirmToDelete.format(ele.text || ele.id))) {
if (!that.options.deleteConfirm || confirm(that.lang.confirmToDelete.format(ele.text || ele.id))) {
that.delete(ele.id);
}
}
......@@ -312,7 +312,7 @@
position.left = Math.floor(fromBounds.centerLeft - (size.width / 2));
position.top = fromBounds.bottom + options.vertSpace;
} else if (direction === 'right') {
position.left = fromBounds.left + options.horzSpace + size.width;
position.left = fromBounds.right + options.horzSpace;
position.top = Math.floor(fromBounds.centerTop - (size.height / 2));
}
} else if (parents.length) {
......
......@@ -216,7 +216,7 @@
}, {
label: that.lang.delete,
onClick: function() {
if (!options.deleteConfirm || confirm(that.lang.confirmToDelete.format(ele.text || ele.id))) {
if (!that.options.deleteConfirm || confirm(that.lang.confirmToDelete.format(ele.text || ele.id))) {
that.delete(ele.id);
}
}
......@@ -305,7 +305,7 @@
position.left = Math.floor(fromBounds.centerLeft - (size.width / 2));
position.top = fromBounds.bottom + options.vertSpace;
} else if (direction === 'right') {
position.left = fromBounds.left + options.horzSpace + size.width;
position.left = fromBounds.right + options.horzSpace;
position.top = Math.floor(fromBounds.centerTop - (size.height / 2));
}
} else if (parents.length) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册