iview/examples/routers/message.vue
梁灏 21dad188c1 prevent dispatch form event
when component import an Input, prevent dispatch event from Input to
Form
2017-03-13 18:58:31 +08:00

22 lines
685 B
Vue

<template>
<div>
<i-button @click.native="success">显示成功提示</i-button>
<i-button @click.native="warning">显示警告提示</i-button>
<i-button @click.native="error">显示错误提示</i-button>
</div>
</template>
<script>
export default {
methods: {
success () {
this.$Message.success('这是一条成功的提示');
},
warning () {
this.$Message.warning('这是一条警告的提示');
},
error () {
this.$Message.error('对方不想说话,并且向你抛出了一个异常');
}
}
}
</script>