2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 01:14:03 +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 { DocValue, DocValueMap } from 'fyo/core/types';
import { Doc } from 'fyo/model/doc'; import { Doc } from 'fyo/model/doc';
import { import {
Action,
CurrenciesMap, CurrenciesMap,
DefaultMap, DefaultMap,
FiltersMap, FiltersMap,
FormulaMap, FormulaMap,
HiddenMap, HiddenMap
} from 'fyo/model/types'; } from 'fyo/model/types';
import { DEFAULT_CURRENCY } from 'fyo/utils/consts'; import { DEFAULT_CURRENCY } from 'fyo/utils/consts';
import { ValidationError } from 'fyo/utils/errors'; import { ValidationError } from 'fyo/utils/errors';
import { import {
getExchangeRate, getExchangeRate, getNumberSeries
getInvoiceActions,
getNumberSeries,
} from 'models/helpers'; } from 'models/helpers';
import { InventorySettings } from 'models/inventory/InventorySettings'; import { InventorySettings } from 'models/inventory/InventorySettings';
import { StockTransfer } from 'models/inventory/StockTransfer'; import { StockTransfer } from 'models/inventory/StockTransfer';

View File

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

View File

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

View File

@ -265,7 +265,8 @@
</div> </div>
</template> </template>
<template #quickedit v-if="quickEditDoc || linked"> <template #quickedit>
<Transition name="quickedit">
<QuickEditForm <QuickEditForm
v-if="quickEditDoc && !linked" v-if="quickEditDoc && !linked"
class="w-quick-edit" class="w-quick-edit"
@ -280,12 +281,15 @@
:load-on-close="false" :load-on-close="false"
@close="toggleQuickEditDoc(null)" @close="toggleQuickEditDoc(null)"
/> />
</Transition>
<Transition name="quickedit">
<LinkedEntryWidget <LinkedEntryWidget
v-if="linked && !quickEditDoc" v-if="linked && !quickEditDoc"
:linked="linked" :linked="linked"
@close-widget="linked = null" @close-widget="linked = null"
/> />
</Transition>
</template> </template>
</FormContainer> </FormContainer>
</template> </template>

View File

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