mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:43:32 +09:00
61 lines
1.2 KiB
Markdown
61 lines
1.2 KiB
Markdown
---
|
|
state:
|
|
clicked: 0
|
|
---
|
|
|
|
### VButton
|
|
|
|
Vuero provides a `<VButton />` component if you don't want to use the
|
|
simple Html button. VButtons can be made bold and rounded
|
|
by using the `bold` and `rounded` props on the component.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
const clicked = ref(0)
|
|
</script>
|
|
|
|
<template>
|
|
<VButtons>
|
|
<VButton @click="clicked++">
|
|
clicked: {{ clicked }}
|
|
</VButton>
|
|
<VButton bold @click="clicked++">
|
|
clicked: {{ clicked }}
|
|
</VButton>
|
|
<VButton rounded @click="clicked++">
|
|
clicked: {{ clicked }}
|
|
</VButton>
|
|
<VButton
|
|
bold
|
|
rounded
|
|
@click="clicked++"
|
|
>
|
|
clicked: {{ clicked }}
|
|
</VButton>
|
|
</VButtons>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<VButtons>
|
|
<VButton @click="frontmatter.state.clicked++">
|
|
clicked: {{ frontmatter.state.clicked }}
|
|
</VButton>
|
|
<VButton bold @click="frontmatter.state.clicked++">
|
|
clicked: {{ frontmatter.state.clicked }}
|
|
</VButton>
|
|
<VButton rounded @click="frontmatter.state.clicked++">
|
|
clicked: {{ frontmatter.state.clicked }}
|
|
</VButton>
|
|
<VButton bold rounded @click="frontmatter.state.clicked++">
|
|
clicked: {{ frontmatter.state.clicked }}
|
|
</VButton>
|
|
</VButtons>
|
|
|
|
<!--/example-->
|