materio-d9/web/themes/custom/materiotheme/vuejs/plugins/prettyBytes.js

25 lines
470 B
JavaScript
Raw Permalink Normal View History

// plugins/prettyBytes.js
export default {
install: (app, options) => {
app.config.globalProperties.$prettyBytes = (value) => {
return value + 'Mb'
}
app.provide('prettyBytes', options)
// app.directive('my-directive', {
// mounted (el, binding, vnode, oldVnode) {
// // some logic ...
// }
// ...
// })
// app.mixin({
// created() {
// // some logic ...
// }
// ...
// })
}
}