# Image-light 图片预览

# 示例


# 代码

<vu-button @click="image" color="error">查看大图</vu-button>

<script>
export default {
  methods: {
    image(){
      //$imageLight为全局方法,可通过this直接调用
      //参数为图片的资源地址
      this.$imageLight("/vuli/2.jpg")
    }
  }
}
</script>

# 单独引用

import { imageLight } from 'vuli';

imageLight("/2.jpg")