v-object-fit directive
javascript
import Vue from 'vue';
import vObjectFit from 'v-object-fit';
Vue.directive('object-fit', vObjectFit);
`
`html
`
Options
By default object-fit will be cover, if you want to use other options, you can do it like this:
`html
``