mirror of
https://shylinux.com/x/volcanos
synced 2025-04-25 08:48:06 +08:00
opt upload
This commit is contained in:
parent
6e9c854ef7
commit
efb558e69e
@ -22,14 +22,17 @@ Volcanos("onfigure", {help: "控件详情", list: [],
|
|||||||
if (value == "关闭") {figure.stick = false; return}
|
if (value == "关闭") {figure.stick = false; return}
|
||||||
|
|
||||||
var msg = can.Event(event);
|
var msg = can.Event(event);
|
||||||
msg._progress = show
|
can.page.Select(can, can._plugin.option, "input", function(item) {
|
||||||
begin = new Date();
|
item.name && item.value && msg.Option(item.name, item.value)
|
||||||
|
})
|
||||||
|
|
||||||
// 上传文件
|
// 上传文件
|
||||||
|
begin = new Date();
|
||||||
|
msg._progress = show
|
||||||
msg.upload = action.upload.files[0];
|
msg.upload = action.upload.files[0];
|
||||||
can.run(event, ["action", "upload"], function(msg) {
|
can.run(event, ["action", "upload"], function(msg) {
|
||||||
can.user.toast("上传成功")
|
can.user.toast("上传成功")
|
||||||
});
|
}, true);
|
||||||
})
|
})
|
||||||
}},
|
}},
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user