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

add input.position

This commit is contained in:
shylinux 2020-03-29 12:00:45 +08:00
parent dc52acde89
commit e03f4144d5
3 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
input.type = "select", input.list = item.values.map(function(value) {
return {type: "option", value: value, inner: value};
})
item.className || can.page.ClassList.add(can, item, "args");
item.className || can.page.ClassList.add(can, item, item.position||"args");
break
case "textarea":
input.type = "textarea"
@ -17,7 +17,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
case "password":
// no break
case "text":
item.className || can.page.ClassList.add(can, item, "args");
item.className || can.page.ClassList.add(can, item, item.position||"args");
item.value = value || item.value || "";
item.autocomplete = "off";
break

View File

@ -35,7 +35,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
break
}
var str = URL.createObjectURL(new Blob([msg._xhr.response], {type: "image/png"}));
msg.result && can.page.Append(can, output, [{img: [str]}])
can.page.Append(can, output, [{img: [str]}])
break
default:

View File

@ -161,7 +161,7 @@ function Volcanos(name, can, libs, cb, msg) { // 封装模块
for (var i = 0; i < arguments.length; i++) {msg.result.push(arguments[i])}
return msg;
}),
Copy: function(res) {
Copy: function(res) {if (!res) {return msg}
res.result && (msg.result = res.result)
res.append && (msg.append = res.append) && res.append.forEach(function(item) {
res[item] && (msg[item] = res[item])