How to configure vue-preview?

https://github.com/LS1231/vue.
has a configuration after the package is introduced on the official website, but this sentence
Vue.use (preview, {})
does not explain how preview came into being, resulting in an error. How to use this?


the official website can configure other pages to be used directly in main.js.


I think he wrote it wrong. I think it should be the name of the quoted package. My name is VuePreview . The name of the package is whatever you define, and the name is written there, ok.
I have also seen another way to write page tags, not using < vue-preview > is a direct img tag, and then there is a click event called $preview.open () . Here I always report wrong, and it is useless to change my name.

Menu