Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Use Typescript for Card component (#128)
Browse files Browse the repository at this point in the history
* Use Typescript for Card component

* Update Card.vue
  • Loading branch information
Mysterious-Dev authored Nov 13, 2023
1 parent 39e1a80 commit 67f77d0
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions lib/components/base/Card.vue
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
<script setup>
<script setup lang="ts">
import { Button, DropdownIcon } from '@'
import { reactive } from 'vue'
const props = defineProps({
collapsible: {
type: Boolean,
default: false,
},
defaultCollapsed: {
type: Boolean,
default: false,
},
noAutoBody: {
type: Boolean,
default: false,
},
})
const props = withDefaults(
defineProps<{
collapsible: boolean
defaultCollapsed: boolean
noAutoBody: boolean
}>(),
{
collapsible: false,
defaultCollapsed: false,
noAutoBody: false,
}
)
const state = reactive({
collapsed: props.defaultCollapsed,
Expand Down

0 comments on commit 67f77d0

Please sign in to comment.