mirror of
https://github.com/directus/directus.git
synced 2026-01-28 06:08:01 -05:00
Merge pull request #291 from directus/v-detail-icon
change icon after opening detail
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user