1
0
mirror of https://shylinux.com/x/volcanos synced 2025-04-25 16:58:06 +08:00

fix item.figure

This commit is contained in:
shylinux 2020-04-13 22:32:53 +08:00
parent 53c5740b54
commit 46e38158a6

View File

@ -4,7 +4,6 @@ Volcanos("onimport", {help: "导入数据", list: [],
item.action = item.action || item.value || "";
item.figure = item.figure || item.value || "";
item.cb = item.cb || item.value || "";
if (item.value == "auto") {item.value = ""}
item.name && item.name.indexOf("@") == 0 && (item.name = item.name.slice(1)) && (item.position = item.position || "opts")
switch (item.type = item.type || item._type || item._input || "text") {
@ -35,6 +34,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
break
}
if (item.value == "auto") {item.value = ""}
item.figure && item.figure.indexOf("@") == 0 && (item.figure = item.figure.slice(1)) && can.require(["plugin/input/"+item.figure], function() {
target.type != "button" && (target.value = "")
})