1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 08:48:06 +08:00
This commit is contained in:
shaoying 2020-09-17 23:24:06 +08:00
parent 6452d55375
commit 03bf261bb4
2 changed files with 9 additions and 3 deletions

View File

@ -31,7 +31,6 @@
"bookmarks", "bookmarks",
"notifications", "notifications",
"contextMenus", "contextMenus",
"*://localhost/*", "http://localhost:9020/*"
"*://localhost:9020/*"
] ]
} }

View File

@ -10,7 +10,14 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
if (value.path.startsWith("/local")) { return } if (value.path.startsWith("/local")) { return }
value.path.endsWith("/")? can.path.Push(value): can.list.push(value) value.path.endsWith("/")? can.path.Push(value): can.list.push(value)
}) })
can.onappend.table(can, can.ui.project, "table", can.path) can.onappend.table(can, can.ui.project, "table", can.path, function(value, key, index, line, array) {
return {type: "td", inner: value, click: function(event) {
// can.Option(key, value) && can.run(event)
can.sup.onaction.change(event, can.sup, key, value, function(msg) {
can.run(event)
})
}}
})
can.page.Modify(can, can._action, {style: {display: "none"}}) can.page.Modify(can, can._action, {style: {display: "none"}})
typeof cb == "function" && cb() typeof cb == "function" && cb()