2
0
mirror of https://github.com/frappe/books.git synced 2024-11-14 09:24:04 +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,27 +265,31 @@
</div> </div>
</template> </template>
<template #quickedit v-if="quickEditDoc || linked"> <template #quickedit>
<QuickEditForm <Transition name="quickedit">
v-if="quickEditDoc && !linked" <QuickEditForm
class="w-quick-edit" v-if="quickEditDoc && !linked"
:name="quickEditDoc.name" class="w-quick-edit"
:show-name="false" :name="quickEditDoc.name"
:show-save="false" :show-name="false"
:source-doc="quickEditDoc" :show-save="false"
:source-fields="quickEditFields" :source-doc="quickEditDoc"
:schema-name="quickEditDoc.schemaName" :source-fields="quickEditFields"
:white="true" :schema-name="quickEditDoc.schemaName"
:route-back="false" :white="true"
:load-on-close="false" :route-back="false"
@close="toggleQuickEditDoc(null)" :load-on-close="false"
/> @close="toggleQuickEditDoc(null)"
/>
</Transition>
<LinkedEntryWidget <Transition name="quickedit">
v-if="linked && !quickEditDoc" <LinkedEntryWidget
:linked="linked" v-if="linked && !quickEditDoc"
@close-widget="linked = null" :linked="linked"
/> @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;
} }