diff --git a/frame.js b/frame.js index 7358567a..0bc42b54 100644 --- a/frame.js +++ b/frame.js @@ -981,7 +981,7 @@ Volcanos("onkeypop", {help: "键盘交互", list: [], _init: function(can, targe var his = target._history || [] his.push(target.value) - can.misc.Log("input", target, his) + // can.misc.Log("input", target, his) target.setSelectionRange(0, -1) target._current = his.length target._history = his diff --git a/plugin/table.js b/plugin/table.js index 5fcc9f69..43d16712 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -5,7 +5,12 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg, can.onmotion.story.auto(can, target) }, - _process: function(can, msg) { return can.core.CallFunc([can.onimport, msg.Option("_process")], [can, msg]) }, + _process: function(can, msg) { + if (msg.Option("sess.toast")) { + can.user.toast(can, msg.Option("sess.toast")) + } + return can.core.CallFunc([can.onimport, msg.Option("_process")], [can, msg]) + }, _control: function(can, msg) { var cb = can.onimport[msg.Option("_control")]