1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shylinux 2020-08-10 14:30:14 +08:00
parent 18682957a3
commit 4fd058f1bb
2 changed files with 6 additions and 1 deletions

View File

@ -104,6 +104,10 @@ Volcanos("onengine", { _init: function(can, meta, list, cb, target) {
var action = storm && storm.action && storm.action[cmds[2]]
if (!storm) { break } if (cmds.length == 2) {
if (storm.index) {
if (Volcanos.meta.webpack == true) {
typeof cb == "function" && cb(msg)
return true
}
can.misc.Run(event, can, {names: pane._name}, [river.name, storm.name, "order"].concat(storm.index), cb)
return true
}

View File

@ -9,7 +9,8 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
can.Option("path") != "最近/" && can.onimport.page(can, can._msg.Table(), can.begin, can.limit)
},
page: function(can, list, begin, limit) { can._target.innerHTML = ""
for (var i = begin; i < begin+limit; i++) { list[i] && can.onimport.file(can, list[i].path) }
if (!list || list.length == 0) { return }
for (var i = begin; i < begin+limit; i++) { list && list[i] && can.onimport.file(can, list[i].path) }
can.Status("begin", begin), can.Status("limit", limit), can.Status("total", can._msg.Table().length)
},
file: function(can, path) { can.Status("文件", path)