Skip to content

Commit

Permalink
docs(common): update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mirari committed Jun 8, 2021
1 parent ada935b commit 8645164
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,13 @@ Get the element by selector and then use `el.$viewer` to get the `viewer` instan
</template>
<script>
import 'viewerjs/dist/viewer.css'
import VueViewer from 'v-viewer'
import Vue from 'vue'
Vue.use(VueViewer)
import { directive as viewer } from "v-viewer"
export default {
directives: {
viewer: viewer({
debug: true,
}),
},
data() {
return {
images: [
Expand Down Expand Up @@ -205,7 +208,7 @@ Use [scoped slot](https://vuejs.org/v2/guide/components.html#Scoped-Slots) to cu
</template>
<script>
import 'viewerjs/dist/viewer.css'
import Viewer from "v-viewer/src/component.vue"
import { component as Viewer } from "v-viewer"
export default {
components: {
Viewer
Expand Down

0 comments on commit 8645164

Please sign in to comment.