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

Use Typescript for Card component #128

Merged
merged 2 commits into from
Nov 13, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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