vue-ibox

1.0.2 • Public • Published

vue-ibox

how to use

npm install vue-ibox
import IBox from 'vue-ibox'
import 'vue-ibox/dist/ibox.css'
Vue.component('IBox',IBox)
<i-box :img="src" link="https://www.baidu.com" @close="close"></i-box>

TIP UMD library gobal variable name is window.Ibox

props

img

imgSrc

link

A href link url

label

Set your language label

// default
{
    reset: "重置",
    link: "跳转",
    large: "放大",
    small: "缩小",
    close: "关闭"
}

event

close

When user click close btn you should reset img variable

close() {
    this.img = ''
}

Readme

Keywords

none

Package Sidebar

Install

npm i vue-ibox

Weekly Downloads

1

Version

1.0.2

License

none

Unpacked Size

280 kB

Total Files

16

Last publish

Collaborators

  • miyogurt