基本用法

<template>
  <div>
    <ui-button @click="success" type="success">success</ui-button>
    <ui-button @click="warning" type="warning">warning</ui-button>
  </div>
</template>

<script>
export default {
  methods:{
    success(){
      this.$Message({
        content:'success',
        type:'success',
        duration:1000
      })
    },
    warning(){
      this.$Message({
        content:'error',
        type:'error',
        duration:1000
      })
    }
  }
}
</script>

<style>

</style>

success warning

props

content

content:String | Function(render函数)

duration

duration:ms