- Notifications
You must be signed in to change notification settings - Fork4
License
NotificationsYou must be signed in to change notification settings
yylgit/vue-viewer
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
npm install vue-viewer --save仓库地址: ssh://git@github.com:yylgit/vue-viewer.git
props: { src: { type: String }, alt: { type: String, default: '' }, value: { type: Boolean, default: false }}<template> <div> <viewer v-model="showImage" :src="imageSrc"> </viewer> <el-button @click="showImageClick">显示</el-button> </div></template><script type="text/babel"> import Viewer from '../dist/vue-viewer'; export default { data: function() { return { showImage: false, imageSrc: 'http://p0.meituan.net/qcs/4662a009da0eafd379f3172a524127e1120196.jpg' } }, components: { Viewer }, methods: { showImageClick () { this.showImage = true; } } }</script><style lang="scss" rel="stylesheet/scss" scoped> </style>About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
