|
1 |
- {"version":3,"sources":["../../src/mixins/ssr-bootable.ts"],"names":[],"mappings":"AAAA,OAAO,GAAP,MAAgB,KAAhB;AAEA;;;;;;;;AAQA,eAAe,IAAI,MAAJ,CAAW;AACxB,UAAM,cADkB;AAGxB,UAAM;AAAA,eAAO;AACX,sBAAU;AADC,SAAP;AAAA,KAHkB;AAOxB,WAPwB,qBAOjB;AAAA;;AACL;AACA;AACA;AACA,eAAO,qBAAP,CAA6B,YAAK;AAChC,kBAAK,GAAL,CAAS,YAAT,CAAsB,aAAtB,EAAqC,MAArC;AACA,kBAAK,QAAL,GAAgB,IAAhB;AACD,SAHD;AAID;AAfuB,CAAX,CAAf","sourcesContent":["import Vue from 'vue'\n\n/**\n * SSRBootable\n *\n * @mixin\n *\n * Used in layout components (drawer, toolbar, content)\n * to avoid an entry animation when using SSR\n */\nexport default Vue.extend({\n name: 'ssr-bootable',\n\n data: () => ({\n isBooted: false\n }),\n\n mounted () {\n // Use setAttribute instead of dataset\n // because dataset does not work well\n // with unit tests\n window.requestAnimationFrame(() => {\n this.$el.setAttribute('data-booted', 'true')\n this.isBooted = true\n })\n }\n})\n"],"sourceRoot":""}
|