1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-26 01:04:06 +08:00

add sess.toast

This commit is contained in:
harveyshao 2021-06-29 11:13:11 +08:00
parent 85ab5ab062
commit bd13e73cf6
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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")]