2
0
mirror of https://github.com/frappe/books.git synced 2024-11-09 15:20:56 +00:00

fix(ui): transition on more quickedit panes

This commit is contained in:
18alantom 2023-01-05 10:53:59 +05:30
parent 2d54b9904b
commit 290772d924
5 changed files with 29 additions and 28 deletions

View File

@ -2,19 +2,16 @@ import { Fyo } from 'fyo';
import { DocValue, DocValueMap } from 'fyo/core/types';
import { Doc } from 'fyo/model/doc';
import {
Action,
CurrenciesMap,
DefaultMap,
FiltersMap,
FormulaMap,
HiddenMap,
HiddenMap
} from 'fyo/model/types';
import { DEFAULT_CURRENCY } from 'fyo/utils/consts';
import { ValidationError } from 'fyo/utils/errors';
import {
getExchangeRate,
getInvoiceActions,
getNumberSeries,
getExchangeRate, getNumberSeries
} from 'models/helpers';
import { InventorySettings } from 'models/inventory/InventorySettings';
import { StockTransfer } from 'models/inventory/StockTransfer';

View File

@ -69,6 +69,6 @@ export default {
.spacer-enter-active,
.spacer-leave-active {
transition: all 250ms ease-out;
transition: all 150ms ease-out;
}
</style>

View File

@ -86,6 +86,6 @@ export default {
.sidebar-enter-active,
.sidebar-leave-active {
transition: all 250ms ease-out;
transition: all 150ms ease-out;
}
</style>

View File

@ -265,27 +265,31 @@
</div>
</template>
<template #quickedit v-if="quickEditDoc || linked">
<QuickEditForm
v-if="quickEditDoc && !linked"
class="w-quick-edit"
:name="quickEditDoc.name"
:show-name="false"
:show-save="false"
:source-doc="quickEditDoc"
:source-fields="quickEditFields"
:schema-name="quickEditDoc.schemaName"
:white="true"
:route-back="false"
:load-on-close="false"
@close="toggleQuickEditDoc(null)"
/>
<template #quickedit>
<Transition name="quickedit">
<QuickEditForm
v-if="quickEditDoc && !linked"
class="w-quick-edit"
:name="quickEditDoc.name"
:show-name="false"
:show-save="false"
:source-doc="quickEditDoc"
:source-fields="quickEditFields"
:schema-name="quickEditDoc.schemaName"
:white="true"
:route-back="false"
:load-on-close="false"
@close="toggleQuickEditDoc(null)"
/>
</Transition>
<LinkedEntryWidget
v-if="linked && !quickEditDoc"
:linked="linked"
@close-widget="linked = null"
/>
<Transition name="quickedit">
<LinkedEntryWidget
v-if="linked && !quickEditDoc"
:linked="linked"
@close-widget="linked = null"
/>
</Transition>
</template>
</FormContainer>
</template>

View File

@ -166,5 +166,5 @@ input[type='number']::-webkit-inner-spin-button {
.quickedit-enter-active,
.quickedit-leave-active {
transition: all 250ms ease-out;
transition: all 150ms ease-out;
}