Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Version 0.10.1

Latest
Compare
Choose a tag to compare
@mhayes mhayes released this 26 May 14:54
· 38 commits to master since this release
  • Brings back CSS extraction. This was causing issues with SSR apps since document was not defined. #13

The biggest change here is that you'll need to include the CSS file when using this component, i.e.

<template>
  <TwentyTwenty
    before="//placehold.it/600x200/E8117F/FFFFFF"
    after="//placehold.it/600x200/CCCCCC/FFFFFF" />
</template>

<script>
// NEW: Include the CSS file
import 'vue-twentytwenty/dist/vue-twentytwenty.css';
import TwentyTwenty from 'vue-twentytwenty';

export default {
  components: {
    TwentyTwenty
  }
};
</script>