vue-picture

1.2.0 • Public • Published

vue-picture

vue 仿百度百科全屏图片浏览组件

使用组件

安装npm包

npm install vue-picture --save

引用vue-picture插件

import vue-picture from 'vue-picture'

在组件中使用

<vue-picture :imgSource="[]"></vue-picture>
 
数据格式
imgSource: [
  {
    src: '/static/img/...',
    select: true,
  },
  ...
  {
    src: '/static/img/...',
    select: false,
  },
]
 
默认数组中第一组数据选中

For detailed explanation on how things work, checkout the guide and docs for vue-loader.

Readme

Keywords

Package Sidebar

Install

npm i vue-picture

Weekly Downloads

7

Version

1.2.0

License

MIT

Unpacked Size

31.5 kB

Total Files

9

Last publish

Collaborators

  • fushizhang