image preview

This commit is contained in:
cookfront
2017-03-15 20:56:37 +08:00
parent bf710d1261
commit 0bf7852f0b
8 changed files with 68 additions and 50 deletions
+2 -2
View File
@@ -12,13 +12,13 @@ const initInstance = () => {
});
};
var ImagePreviewBox = image => {
var ImagePreviewBox = images => {
if (!instance) {
initInstance();
}
if (!instance.value) {
instance.image = image;
instance.images = images;
document.body.appendChild(instance.$el);