diff --git a/plugin/input.js b/plugin/input.js index 03bbb907..c197c084 100644 --- a/plugin/input.js +++ b/plugin/input.js @@ -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 diff --git a/plugin/table.js b/plugin/table.js index 23712fee..bb062090 100644 --- a/plugin/table.js +++ b/plugin/table.js @@ -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: diff --git a/proto.js b/proto.js index ad8df2ca..42defe97 100644 --- a/proto.js +++ b/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])} 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])