1.0.0 • Published 6 years ago

@flyer2311/vue-sm-update-tip v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

updateTip

a plugin used in old version, tells users that they need to update their hybrid APP

Download

npm install @flyer2311/vue-sm-updateTip --save

Function

  1. support update title and content by yourself
  2. support update color and fontsize
  3. lock width and height
  4. provide anther api for show the plugin

Environment

  1. VUE(install CLI)
  2. better-scroll

Basic instructions

请看./example/example.vue的例子

Inner construction

this.flyerUpdateTip.init({
  show: true,
  title: {
    text: '123',
    color: '#000',
    fontSize: '20px'
  },
  content: {
    text: [1, 2, 3],
    color: '#000',
    fontSize: '18px'
  }
})
this.flyerUpdateTip.show()
this.flyerUpdateTip.hide()