项目原始demo,不改动
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Deze repo is gearchiveerd. U kunt bestanden bekijken en het klonen, maar niet pushen of problemen/pull-requests openen.
 
 
 
 

28 regels
554 B

  1. import Vue from 'vue';
  2. /**
  3. * SSRBootable
  4. *
  5. * @mixin
  6. *
  7. * Used in layout components (drawer, toolbar, content)
  8. * to avoid an entry animation when using SSR
  9. */
  10. export default Vue.extend({
  11. name: 'ssr-bootable',
  12. data: () => ({
  13. isBooted: false
  14. }),
  15. mounted() {
  16. // Use setAttribute instead of dataset
  17. // because dataset does not work well
  18. // with unit tests
  19. window.requestAnimationFrame(() => {
  20. this.$el.setAttribute('data-booted', 'true');
  21. this.isBooted = true;
  22. });
  23. }
  24. });
  25. //# sourceMappingURL=index.js.map