change icon after opening detail

This commit is contained in:
Nitwel
2020-09-14 13:54:44 +02:00
parent acf466cdec
commit 2cb9e7df1e

View File

@@ -2,7 +2,7 @@
<div class="v-detail" :class="{ _active }">
<v-divider @click.native="_active = !_active">
<slot name="title">{{ label }}</slot>
<v-icon name="unfold_more" small />
<v-icon :name="_active ? 'unfold_less' : 'unfold_more'" small />
</v-divider>
<transition-expand>
<div v-if="_active">
@@ -29,8 +29,8 @@ export default defineComponent({
},
label: {
type: String,
default: i18n.t('toggle')
}
default: i18n.t('toggle'),
},
},
setup(props, { emit }) {