1.0.1 • Published 4 years ago
zhenhunfan-practice-toast v1.0.1
练习代码,一个自定义组件,toast提示信息
例子:
<template>
<div id="app">
<button @click="btnClick">按钮</button>
</div>
</template>
<script>
export default {
name: "app",
methods: {
btnClick() {
this.$toast.show("哈哈哈");
},
},
};
</script>