0.0.2 • Published 2 years ago

@cabber/water-mark-vue v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

#@cabber/water-mark-vue


Vue版用户水印

Get Started

$ npm i @cabber/water-mark-vue

vue2.6+ 版本中使用, main.js中添加以下代码

import Vue from 'vue'
import WaterMark from '@cabber/water-mark-vue'


Vue.use(WaterMark)

Usage


...
mounted () {
    this.$nextTick(() => {
      const account = Cookies.get('ch_op_name') // 账号
      const name = Cookies.get('ch_user_name') // 用户姓名
      this.$appendWaterMark(this.$el, `${account} ${decodeURIComponent(name)}`)
      this.addNavTag(this.$route)
    })
 },
...

ScreenShot


Api


待添加

License


Licensed under the MIT License

Keyword


Vue, waterMark