Skip to content

Commit

Permalink
Refactor #4231 - For PickList
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 2, 2023
1 parent 004e985 commit 49ffd85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/lib/picklist/PickList.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ export interface PickListPassThroughOptions {
* @see {@link BaseComponent.ComponentHooks}
*/
hooks?: ComponentHooks;
/**
* Used to control Vue Transition API.
*/
transition?: any;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions components/lib/picklist/PickList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
@focus="onListFocus($event, 'sourceList')"
@blur="onListBlur($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)">
<li
Expand Down Expand Up @@ -122,7 +122,7 @@
@focus="onListFocus($event, 'targetList')"
@blur="onListBlur($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)">
<li
Expand Down

0 comments on commit 49ffd85

Please sign in to comment.