mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
fix item.figure
This commit is contained in:
parent
53c5740b54
commit
46e38158a6
@ -4,7 +4,6 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
item.action = item.action || item.value || "";
|
item.action = item.action || item.value || "";
|
||||||
item.figure = item.figure || item.value || "";
|
item.figure = item.figure || item.value || "";
|
||||||
item.cb = item.cb || 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")
|
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") {
|
switch (item.type = item.type || item._type || item._input || "text") {
|
||||||
@ -35,6 +34,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
break
|
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() {
|
item.figure && item.figure.indexOf("@") == 0 && (item.figure = item.figure.slice(1)) && can.require(["plugin/input/"+item.figure], function() {
|
||||||
target.type != "button" && (target.value = "")
|
target.type != "button" && (target.value = "")
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user