UNPKG

nutui-uniapp

Version:

京东风格的轻量级移动端 Uniapp、Vue3 组件库(支持小程序开发)

19 lines (13 loc) 710 B
import type { defaultAnimations } from './use-transition' export type TransitionName = keyof typeof defaultAnimations export interface NutAnimation { enter: string leave: string } export const nutAnimationName = ['fade', 'fade-up', 'fade-down', 'fade-left', 'fade-right', 'slide-up', 'slide-down', 'slide-left', 'slide-right', 'zoom', 'none'] as const export type NutAnimationName = (typeof nutAnimationName)[number] export const nutAnimationtimingFunction = ['linear', 'ease', 'ease-in', 'ease-in-out', 'ease-out', 'step-start', 'step-end'] as const export type NutAnimationtimingFunction = (typeof nutAnimationtimingFunction)[number] export interface NutAnimations { [key: string]: NutAnimation }