1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-27 17:48:28 +08:00
This commit is contained in:
shaoying 2021-01-05 20:02:03 +08:00
parent 9b9f068924
commit e83c6acc82

View File

@ -88,7 +88,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
}, can.ui.display) }, can.ui.display)
can.page.Appends(can, can.ui.profile, [{th: ["key", "value"]}]) can.page.Appends(can, can.ui.profile, [{th: ["key", "value"]}])
can.core.Item(task, function(key, value) { can.page.Append(can, can.ui.profile, [{td: [key, value], can.core.Item(task, function(key, value) { can.page.Append(can, can.ui.profile, [{td: [key, key == "pod"? ('<a href="'+can.user.Share(can, {pod: value})+'" target="_blank">'+value+'</a>'): value],
onclick: function(event) { if (event.target.type == "button") { var name = event.target.name onclick: function(event) { if (event.target.type == "button") { var name = event.target.name
var cb = can.onaction[name]; if (typeof cb == "function") { return cb(event, can, name) } var cb = can.onaction[name]; if (typeof cb == "function") { return cb(event, can, name) }