no message
This commit is contained in:
parent
263d0959b9
commit
533d2e5cac
@ -120,17 +120,11 @@ function defineStoreImplementation() {
|
|||||||
|
|
||||||
// 配置回调的方法
|
// 配置回调的方法
|
||||||
function setCallbacks(options: MindMapCallbacks) {
|
function setCallbacks(options: MindMapCallbacks) {
|
||||||
if (options.onDel) {
|
if (options.onDel) callbacks.del = options.onDel;
|
||||||
callbacks.del = options.onDel;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options.onAddChild) {
|
if (options.onAddChild) callbacks.addChild = options.onAddChild;
|
||||||
callbacks.addChild = options.onAddChild;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (options.onEdit) {
|
if (options.onEdit) callbacks.edit = options.onEdit;
|
||||||
callbacks.edit = options.onEdit;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 因为避免使用响应对象
|
// 因为避免使用响应对象
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user