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

opt upload

This commit is contained in:
shylinux 2020-03-28 21:49:15 +08:00
parent 6e9c854ef7
commit efb558e69e

View File

@ -22,14 +22,17 @@ Volcanos("onfigure", {help: "控件详情", list: [],
if (value == "关闭") {figure.stick = false; return}
var msg = can.Event(event);
msg._progress = show
begin = new Date();
can.page.Select(can, can._plugin.option, "input", function(item) {
item.name && item.value && msg.Option(item.name, item.value)
})
// 上传文件
begin = new Date();
msg._progress = show
msg.upload = action.upload.files[0];
can.run(event, ["action", "upload"], function(msg) {
can.user.toast("上传成功")
});
}, true);
})
}},
})