UNPKG

vuetify

Version:

Vue.js 2 Semantic Component Framework

34 lines (30 loc) 644 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * SSRBootable * * @mixin * * Used in layout components (drawer, toolbar, content) * to avoid an entry animation when using SSR */ exports.default = { name: 'ssr-bootable', data: function data() { return { isBooted: false }; }, mounted: function mounted() { var _this = this; // Use setAttribute instead of dataset // because dataset does not work well // with unit tests window.requestAnimationFrame(function () { _this.$el.setAttribute('data-booted', true); _this.isBooted = true; }); } };