mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
add sess.toast
This commit is contained in:
parent
85ab5ab062
commit
bd13e73cf6
2
frame.js
2
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
|
||||
|
@ -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")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user