1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
This commit is contained in:
shaoying 2019-12-10 01:48:20 +08:00
parent 7d4a0efa09
commit b105c70ed0
2 changed files with 10 additions and 2 deletions

View File

@ -340,6 +340,10 @@ var page = Page({
Show: function() {var pane = field.Pane
if (river && storm && field.Pane.Load(river+"."+storm, output)) {return}
return can.Page(can, "chat", ["Action"], function(page) {
page.Action.Show(river, storm)
}, document.body)
var msg = pane.Event(event, {}, {name: pane.Zone("show", river, storm)})
msg.Option("you", you)
output.innerHTML = "", pane.Appends([river, storm], "plugin", ["name", "help"], "name", true, null, function() {
@ -355,7 +359,7 @@ var page = Page({
river: function(value, old) {temp = value},
storm: function(value, old) {
river && storm && field.Pane.Save(river+"."+storm, output)
;(river = page.river.Pane.which.get(), storm = value) && field.Pane.Show()
;(river = page.river.Pane.which.get(), storm = value) && field.Pane.Show(river, storm)
},
source: function(value, old) {input = value},
target: function(value, old) {share = value},

View File

@ -690,7 +690,7 @@ function Pane(page, field) {
line.group == "docker" ||
line.group == "story" ||
line.group == "favor"
) && can.Plugin(can, ui.item.Meta, function(event, cmds, cbs) {
) && can.Plugin(can.action||can, ui.item.Meta, "state", function(event, cmds, cbs) {
var msg = ctx.Event(event)
kit.Selector(action, "input", function(item, index) {
item.value && msg.Option(item.name, item.value)
@ -1718,3 +1718,7 @@ function Output(plugin, type, msg, cb, target, option) {
return plugin.Outputs[type] = target, target.Output = output
}
var Config = {main: "chat",
list: ["toast", "carte"],
}