@paperlust/quick-preview
v1.4.5
Published
Quick Preview is a component vue for multi project.
Readme
Quick Preview
Quick Preview is a component vue for multi project.
Installation
Use the package manager nodejs to install Quick Preview.
npm install @paperlust/quick-previewUsage
import package
import VPreview from '@paperlust/quick-preview';import style from package
import '@paperlust/quick-preview/dist/style.css';Example:
import store from './store';
import VPreview from '@paperlust/quick-preview';
Vue.use(VPreview, store);add on your component vue
<v-preview :item="item" :configurations="configurations" />Event
| Name | Description |
| -------- | -------------------- |
| closed | Event Callback Close |
| next | Event Callback next |
| prev | Event Callback prev |
| open | Event Callback open |
Props
| Name | Type | Default | Description |
| ---------------- | ------ | ------- | ---------------------------------- |
| item | Object | {} | Object data item for quick preview |
| configurations | Object | {} | Options for quick preview |
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
