vue-bigimage
v1.1.8
Published
A Vue component to bigimage
Readme
vue-bigimage
A Vue component to bigimage
Build Setup
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build
# build for production and view the bundle analyzer report
npm run build --report使用组件
通过npm install vue-bigimage -s 安装到相应的项目下,安装成功如下图所示:
<vue-bigimage :imgUrl="img"></vue-bigimage>需要用到该组件时可以这样引入
import vueBigimage from "vue-bigimage"
import "vue-bigimage/dist/vue-bigimage.min.css"
export default {
name: 'app',
components:{
vueBigimage
},data{ return:{ img:'' } } }
