tyt-weapp/pages/index/index.vue
2025-12-18 18:18:57 +08:00

19 lines
364 B
Vue

<script setup>
import { ref } from 'vue';
const a = ref("hello world")
function change(){
a.value = "lsp"
}
</script>
<template>
{{ a }}
<button @click="change">测试</button>
<uni-badge text="1"></uni-badge>
<uni-badge text="2" type="success" @click="bindClick"></uni-badge>
<uni-badge text="3" type="primary" :inverted="true"></uni-badge>
</template>