We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d7df48 commit 4494b77Copy full SHA for 4494b77
src/components/rightSidePanel/layout/PropertiesAccordionItem.vue
@@ -1,21 +1,7 @@
1
<script lang="ts" setup>
2
-import { watch } from 'vue'
3
-
4
import { cn } from '@/utils/tailwindUtil'
5
6
-const { label, defaultCollapse } = defineProps<{
7
- label?: string
8
- defaultCollapse?: boolean
9
-}>()
10
const isCollapse = defineModel<boolean>('collapse', { default: false })
11
12
-if (defaultCollapse) {
13
- isCollapse.value = true
14
-}
15
-watch(
16
- () => defaultCollapse,
17
- (value) => (isCollapse.value = value)
18
-)
19
</script>
20
21
<template>
@@ -28,9 +14,7 @@ watch(
28
@click="isCollapse = !isCollapse"
29
>
30
<span class="text-sm font-semibold line-clamp-2">
31
- <slot name="label">
32
- {{ label ?? '' }}
33
- </slot>
+ <slot name="label" />
34
</span>
35
36
<i
0 commit comments