2020-08-27 17:18:57 +08:00

548 B

layout
templateLayout
<template>
    <Wb-button @click="click1">显示内容</Wb-button>
    <Wb-button @click="click2">显示标题和内容</Wb-button>
</template>
<script>
export default {
    methods: {
        click1 () {
            this.$Message("我是提示").then(function (index) {
                console.log(index)
            })
        },
        click2 () {
            this.$Message("标题", "我是提示").then(function (index) {
                console.log(index)
            })
        },
    }
}
</script>