mirror of
https://shylinux.com/x/ContextOS
synced 2025-04-25 08:48:06 +08:00
add input.imports.auto
This commit is contained in:
parent
2a0278790f
commit
d5f056f797
@ -178,7 +178,7 @@ var Index = &ctx.Context{Name: "ssh", Help: "集群中心",
|
||||
"componet_type": "private", "componet_ctx": "ssh", "componet_cmd": "_route",
|
||||
"componet_args": []interface{}{"$$", "context", "$$", "context"}, "inputs": []interface{}{
|
||||
map[string]interface{}{"type": "text", "name": "pod", "imports": "plugin_pod"},
|
||||
map[string]interface{}{"type": "text", "name": "ctx", "value": "nfs"},
|
||||
map[string]interface{}{"type": "text", "name": "ctx", "value": "nfs", "imports": "plugin_ctx"},
|
||||
map[string]interface{}{"type": "button", "value": "模块"},
|
||||
},
|
||||
"exports": []interface{}{"ctx", "names"},
|
||||
|
@ -598,6 +598,7 @@ var page = Page({
|
||||
|
||||
page.onlayout(null, page.conf.layout)
|
||||
kit.isMobile && page.action.Action["最宽"]()
|
||||
page.action.Action["最大"]()
|
||||
ctx.Search("layout") && page.action.Action[ctx.Search("layout")]()
|
||||
|
||||
page.footer.Order({"text": "", "ip": "", ".": "", ":":""}, ["ip", "text", ":", "."])
|
||||
|
@ -500,7 +500,8 @@ function Plugin(field, tool, args, plugin) {
|
||||
page.input = ui[name]
|
||||
index == 0 && ui[name] && ui[name].focus && ui[name].focus()
|
||||
item.imports && page.Sync(item.imports).change(function(value, old) {
|
||||
ui[name].value = value
|
||||
ui[name].value = value;
|
||||
(index == total-1 || (index == total-2 && ui[name].parentNode.nextSibling.childNodes[1].type == "button")) && option.Runs(event)
|
||||
})
|
||||
return ui[name]
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user