1
0
forked from x/volcanos
This commit is contained in:
shaoying 2020-09-21 20:20:45 +08:00
parent 4e54a5c650
commit be77957388
2 changed files with 5 additions and 3 deletions

View File

@ -34,7 +34,7 @@ Volcanos("onaction", {help: "控件交互", list: [],
var feature = can.sup.Conf("feature")
var input = feature && feature[name]; if (input) {
return can.sup.onaction.input(event, can.sup, name, function(msg) {
can.run({})
// can.run({})
})
}

View File

@ -10,13 +10,15 @@ Volcanos("onaction", {help: "交互操作", list: [], _init: function(can, msg,
key && value && args.push(key, value)
})
can.run(event, args, function(msg) {
var sub = can._outputs && can._outputs[can._outputs.length-1]
sub.run(event, args, function(msg) {
typeof cb == "function" && cb(msg)
})
return true
}): can.run(event, ["action", name], function(msg) {
typeof cb == "function" && cb(msg)
}, true)
})
},
change: function(event, can, name, value, cb) {
can.page.Select(can, can._option, "input.args", function(input) { if (input.name == name) { var data = input.dataset || {}