0.2.8 • Published 5 years ago
vue-photo-preview-mobile v0.2.8
vue-photo-preview-mobile
使用vue cli3开发一个可以全局注册使用的vue组件,组件库可扩展
安装
$ npm install vue-photo-preview-mobile -S
使用
在 main.js
文件中引入插件并注册
import photoPreview from 'vue-photo-preview-mobile'
import 'vue-photo-preview-mobile/lib/vue-photo-preview-mobile.css'
Vue.use(photoPreview)
在项目中用使用 photoPreview
<template>
<photo-preview :msg ="msgTxt" />
</template>
<script>
export default {
data () {
return {
msgTxt: '你好'
}
}
}
</script>
注意:标签为 <photo-preview>
参数
参数 | 说明 | 类型 |
---|---|---|
msg | 传入信息值 | String |