1.0.5 • Published 3 years ago

vue-wallpaper v1.0.5

Weekly downloads
14
License
MIT
Repository
github
Last release
3 years ago

vue-wallpaper 每日壁纸

安装

# install dependencies
npm install vue-wallpaper

引入

// main.js
import wallpaper from 'vue-wallpaper'
Vue.use(wallpaper)

vue-cli 解决跨域 (如果项目运行中修改配置文件,则需要重新运行项目才能生效)

// config/index.js
module.exports = {
  dev: {
    proxyTable: {
      '/api': {
        target: 'http://www.bing.com',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }
}

使用

<vue-wallpaper></vue-wallpaper>

<!-- Prop d 使用 d 天前的数据 -->
<vue-wallpaper :d="1"></vue-wallpaper>

<!-- Prop z 墙纸 z-index 层级 -->
<vue-wallpaper :d="1" :z="2"></vue-wallpaper>
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago