<template>
    <div>
        <div>
            <a-button @click="success">
                Success
            </a-button>
            <a-button @click="error">
                Error
            </a-button>
            <a-button @click="warning">
                Warning
            </a-button>
        </div>
    </div>
</template>
<script>
export default {
    methods: {
        success() {
            this.$message.success('This is a success message');
        },
        error() {
            this.$message.error('This is an error message');
        },
        warning() {
            this.$message.warning('This is a warning message');
        },
    },
};
</script>
