Skip to content

Commit

Permalink
Update documents
Browse files Browse the repository at this point in the history
  • Loading branch information
kieuminhcanh committed Dec 7, 2024
1 parent 31eae90 commit 8621b01
Show file tree
Hide file tree
Showing 20 changed files with 753 additions and 191 deletions.
2 changes: 1 addition & 1 deletion app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineAppConfig({
},
main: {
padded: true,
fluid: true
fluid: false
},
header: {
logo: false,
Expand Down
39 changes: 39 additions & 0 deletions components/Test.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<VCard title="Component title">
<VCardText>Component text</VCardText>
<VCardText>Hello: {{ msg }}</VCardText>

<VCardActions>
<VSpacer />
<VBtn
text="Cancel"
@click="onClose"
/>
<VBtn
color="primary"
text="Submit"
@click="onSubmit"
/>
</VCardActions>
</VCard>
</template>

<script lang="ts" setup>
defineProps({
msg: String,
})
const emit = defineEmits(['submit', 'cancel'])
function onSubmit() {
emit('submit', 'hello')
}
function onClose() {
console.log('Cancel on component')
emit('cancel')
}
</script>

<style lang="scss"></style>
Loading

0 comments on commit 8621b01

Please sign in to comment.