mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 16:58:06 +08:00
add input.position
This commit is contained in:
parent
dc52acde89
commit
e03f4144d5
@ -9,7 +9,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
input.type = "select", input.list = item.values.map(function(value) {
|
input.type = "select", input.list = item.values.map(function(value) {
|
||||||
return {type: "option", value: value, inner: 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
|
break
|
||||||
case "textarea":
|
case "textarea":
|
||||||
input.type = "textarea"
|
input.type = "textarea"
|
||||||
@ -17,7 +17,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
case "password":
|
case "password":
|
||||||
// no break
|
// no break
|
||||||
case "text":
|
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.value = value || item.value || "";
|
||||||
item.autocomplete = "off";
|
item.autocomplete = "off";
|
||||||
break
|
break
|
||||||
|
@ -35,7 +35,7 @@ Volcanos("onimport", {help: "导入数据", list: [],
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
var str = URL.createObjectURL(new Blob([msg._xhr.response], {type: "image/png"}));
|
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
|
break
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
2
proto.js
2
proto.js
@ -161,7 +161,7 @@ function Volcanos(name, can, libs, cb, msg) { // 封装模块
|
|||||||
for (var i = 0; i < arguments.length; i++) {msg.result.push(arguments[i])}
|
for (var i = 0; i < arguments.length; i++) {msg.result.push(arguments[i])}
|
||||||
return msg;
|
return msg;
|
||||||
}),
|
}),
|
||||||
Copy: function(res) {
|
Copy: function(res) {if (!res) {return msg}
|
||||||
res.result && (msg.result = res.result)
|
res.result && (msg.result = res.result)
|
||||||
res.append && (msg.append = res.append) && res.append.forEach(function(item) {
|
res.append && (msg.append = res.append) && res.append.forEach(function(item) {
|
||||||
res[item] && (msg[item] = res[item])
|
res[item] && (msg[item] = res[item])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user