Added fade transition to library dialog
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<template lang="html">
|
<template lang="html">
|
||||||
<dialog-base :key="_id">
|
<dialog-base>
|
||||||
<template #replace-toolbar="{flat}">
|
<template #replace-toolbar="{flat}">
|
||||||
<property-toolbar
|
<property-toolbar
|
||||||
:model="model"
|
:model="model"
|
||||||
@@ -13,24 +13,28 @@
|
|||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="model">
|
<template v-if="model">
|
||||||
<component
|
<v-fade-transition
|
||||||
:is="model.type + 'Form'"
|
mode="out-in"
|
||||||
v-if="editing"
|
>
|
||||||
class="library-node-form"
|
<component
|
||||||
:model="model"
|
:is="model.type + 'Form'"
|
||||||
@change="change"
|
v-if="editing"
|
||||||
@push="push"
|
class="library-node-form"
|
||||||
@pull="pull"
|
:model="model"
|
||||||
/>
|
@change="change"
|
||||||
<component
|
@push="push"
|
||||||
:is="model.type + 'Viewer'"
|
@pull="pull"
|
||||||
v-else-if="!editing && $options.components[model.type + 'Viewer']"
|
/>
|
||||||
class="creature-property-viewer"
|
<component
|
||||||
:model="model"
|
:is="model.type + 'Viewer'"
|
||||||
/>
|
v-else-if="!editing && $options.components[model.type + 'Viewer']"
|
||||||
<p v-else>
|
class="creature-property-viewer"
|
||||||
This property can't be viewed yet.
|
:model="model"
|
||||||
</p>
|
/>
|
||||||
|
<p v-else>
|
||||||
|
This property can't be viewed yet.
|
||||||
|
</p>
|
||||||
|
</v-fade-transition>
|
||||||
</template>
|
</template>
|
||||||
<div
|
<div
|
||||||
v-if="!embedded"
|
v-if="!embedded"
|
||||||
|
|||||||
Reference in New Issue
Block a user