This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/mixins/ssr-bootable/index.js

28 lines
554 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
import Vue from 'vue';
/**
* SSRBootable
*
* @mixin
*
* Used in layout components (drawer, toolbar, content)
* to avoid an entry animation when using SSR
*/
export default Vue.extend({
name: 'ssr-bootable',
data: () => ({
isBooted: false
}),
mounted() {
// Use setAttribute instead of dataset
// because dataset does not work well
// with unit tests
window.requestAnimationFrame(() => {
this.$el.setAttribute('data-booted', 'true');
this.isBooted = true;
});
}
});
//# sourceMappingURL=index.js.map