18034727885
2026-08-25 d081165686e520cc06cb87f928ed70d32401c138
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<template>
    <view>
        <button @click="showUTSToast">点击按钮会在底部显示一条toast</button>
    </view>
</template>
 
<script>
    import {
        showToast
    } from "@/uni_modules/uts-toast"
    export default {
        data() {
            return {
                title: 'Hello'
            }
        },
        onLoad() {
 
        },
        methods: {
            showUTSToast() {
                showToast({
                    message: "这是一条显示在底部的toast"
                })
            }
        }
    }
</script>
 
<style>
</style>