From dc52acde898e42ebd2a72aec33517b15b1795f51 Mon Sep 17 00:00:00 2001 From: shylinux Date: Sun, 29 Mar 2020 09:42:50 +0800 Subject: [PATCH] add city --- plugin/input/city.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 plugin/input/city.js 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() + }}, +}) +