views/mdc/assets/js/components/images.js
import {VBaseComponent} from './base-component';
import {hookupComponents} from './base-component';
import {eventHandlerMixin} from './mixins/event-handler';
export function initImages(e) {
console.debug('\tImages');
hookupComponents(e, '.v-image', VImage);
}
export class VImage extends eventHandlerMixin(VBaseComponent) {
constructor(element) {
super(element);
}
preview(result, acceptsMimeTypes, file) {
this.element.src = result;
}
}