mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
add city
This commit is contained in:
parent
efb558e69e
commit
dc52acde89
13
plugin/input/city.js
Normal file
13
plugin/input/city.js
Normal file
@ -0,0 +1,13 @@
|
||||
Volcanos("onfigure", {help: "控件详情", list: [],
|
||||
city: {click: function(event, can, value, cmd, target, figure) {
|
||||
function run() {figure.output.innerHTML = ""
|
||||
can.Run(event, ["action", "input", can.item.name, target.value], function(msg) {
|
||||
can.page.AppendTable(can, figure.output, msg, msg.append, function(event, value, key, index, tr, td) {
|
||||
target.value = value; msg.Option("_refresh") && run()
|
||||
})
|
||||
}, true)
|
||||
}
|
||||
run()
|
||||
}},
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user