mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-21 00:03:27 +09:00
first
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
---
|
||||
state:
|
||||
flipped: false
|
||||
---
|
||||
|
||||
### VCreditCard
|
||||
|
||||
Vuero ships with the `<VCreditCard />` component, a custom credit card
|
||||
previewer. Check the code for more details.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const flipped = ref(null)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField>
|
||||
<VControl>
|
||||
<VCreditCard
|
||||
color="grey"
|
||||
:flipped="flipped"
|
||||
@flip="flipped = !flipped"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField class="credit-card">
|
||||
<VControl>
|
||||
<VCreditCard
|
||||
color="grey"
|
||||
:flipped="frontmatter.state.flipped"
|
||||
@flip="frontmatter.state.flipped = !frontmatter.state.flipped"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user