Refactor #4231 - For PickList

pull/4239/head
mertsincan 2023-08-02 15:02:28 +03:00
parent 004e9856ec
commit 49ffd85e77
2 changed files with 6 additions and 2 deletions

View File

@ -200,6 +200,10 @@ export interface PickListPassThroughOptions {
* @see {@link BaseComponent.ComponentHooks} * @see {@link BaseComponent.ComponentHooks}
*/ */
hooks?: ComponentHooks; hooks?: ComponentHooks;
/**
* Used to control Vue Transition API.
*/
transition?: any;
} }
/** /**

View File

@ -50,7 +50,7 @@
@focus="onListFocus($event, 'sourceList')" @focus="onListFocus($event, 'sourceList')"
@blur="onListBlur($event, 'sourceList')" @blur="onListBlur($event, 'sourceList')"
@keydown="onItemKeyDown($event, 'sourceList')" @keydown="onItemKeyDown($event, 'sourceList')"
v-bind="{ ...sourceListProps, ...ptm('sourceList') }" v-bind="{ ...sourceListProps, ...ptm('sourceList'), ...ptm('transition') }"
> >
<template v-for="(item, i) of sourceList" :key="getItemKey(item, i)"> <template v-for="(item, i) of sourceList" :key="getItemKey(item, i)">
<li <li
@ -122,7 +122,7 @@
@focus="onListFocus($event, 'targetList')" @focus="onListFocus($event, 'targetList')"
@blur="onListBlur($event, 'targetList')" @blur="onListBlur($event, 'targetList')"
@keydown="onItemKeyDown($event, 'targetList')" @keydown="onItemKeyDown($event, 'targetList')"
v-bind="{ ...targetListProps, ...ptm('targetList') }" v-bind="{ ...targetListProps, ...ptm('targetList'), ...ptm('transition') }"
> >
<template v-for="(item, i) of targetList" :key="getItemKey(item, i)"> <template v-for="(item, i) of targetList" :key="getItemKey(item, i)">
<li <li