# Toast

<div>
    <g-button @click="$toast('点击弹出提示')">上方弹出</g-button>
    <g-button @click="$toast('点击弹出提示', {position:'middle'})">中间弹出</g-button>
    <g-button @click="$toast('点击弹出提示', {position:'bottom'})">下方弹出</g-button>
</div>
<div>
    <g-button @click="onClickButton">上方弹出</g-button>
</div>
<div>
    <g-button @click="onClickButton">上方弹出</g-button>
</div>

# Attributes

参数 说明 类型 可选值 默认值
message 文本 String
autoClose 是否自动关闭,可设置关闭时间 Number/false 2000
position 设置弹出位置 String top / bottom / middle top
closeButton 设置按钮的文本和事件 Object