first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
14
node_modules/@vuepic/vue-datepicker/src/VueDatePicker/components/composables/transition.ts
generated
vendored
Normal file
14
node_modules/@vuepic/vue-datepicker/src/VueDatePicker/components/composables/transition.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { computed } from 'vue';
|
||||
|
||||
import type { Transition } from '@/interfaces';
|
||||
|
||||
export const useTransitions = (transitions: Transition | boolean) => {
|
||||
const transitionName = computed(() => (isOpen: boolean): string => {
|
||||
if (transitions && typeof transitions !== 'boolean') {
|
||||
return isOpen ? transitions.open : transitions.close;
|
||||
}
|
||||
return '';
|
||||
});
|
||||
|
||||
return { transitionName, showTransition: !!transitions };
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue