mirror of
https://shylinux.com/x/volcanos
synced 2025-04-26 01:04:06 +08:00
opt some
This commit is contained in:
parent
6b328172e8
commit
62d3f8a901
@ -144,7 +144,7 @@ Volcanos("core", {help: "数据结构",
|
||||
case "string": list.push(v); break
|
||||
case "object": list.push(arguments.callee.apply(this, v)); break
|
||||
case "function": list.push(v()); break
|
||||
default: list.push(v+"")
|
||||
default: v && list.push(v+"")
|
||||
}
|
||||
}
|
||||
return list.join(".")
|
||||
|
@ -30,7 +30,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
},
|
||||
_state: function(can, msg, target) {
|
||||
can.core.List(can.Conf("state")||["time", "username"], function(item) {
|
||||
can.page.Append(can, target, [{view: ["state "+item, "div", (can.Conf(item)||"").slice(0, 8)], onclick: function(event) {
|
||||
can.page.Append(can, target, [{view: ["state "+item, "div", (can.Conf(item)||"").slice(0, 10)], onclick: function(event) {
|
||||
can.core.CallFunc([can.onaction, item], [event, can, item])
|
||||
}, _init: function(target) {
|
||||
item == "time" && can.onimport._time(can, target)
|
||||
|
@ -248,7 +248,7 @@ Volcanos("ondetail", {help: "菜单交互", list: ["共享群组", "添加用户
|
||||
{_input: "text", name: "template", value: "@key"},
|
||||
], function(event, button, data, list, args) {
|
||||
can.run(event, ["action", "start"].concat(args), function(msg) {
|
||||
can.user.open(can.user.MergeURL(can, {pod: msg.Option("name")}))
|
||||
can.user.open(can.user.MergeURL(can, {pod: can.core.Keys(can.user.Search(can, "pod"), msg.Option("name"))}))
|
||||
can.user.toast(can, can.user.MergeURL(can, {pod: msg.Option("name")}))
|
||||
})
|
||||
})
|
||||
|
@ -33,7 +33,7 @@ Volcanos("onimport", {help: "导入数据", list: [], _init: function(can, msg,
|
||||
}, can.ui.content, can.core.List((msg.Option("sort")||"ctx,cmd,type,name,text").split(","), function(item) {
|
||||
return fields.indexOf(item)
|
||||
}))
|
||||
can.page.Modify(can, can.ui.display, {style: {width: table.offsetWidth}})
|
||||
table && can.page.Modify(can, can.ui.display, {style: {width: table.offsetWidth}})
|
||||
},
|
||||
_word: function(can, msg, cmds, fields) {
|
||||
msg = can.request({}, {word: cmds, fields: fields.join(","), sort: msg.Option("sort"), index: msg.Option("index")})
|
||||
|
Loading…
x
Reference in New Issue
Block a user