diff --git a/plugin/input/city.js b/plugin/input/city.js new file mode 100644 index 00000000..0201fccf --- /dev/null +++ b/plugin/input/city.js @@ -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() + }}, +}) +