Appearance
Slide Fade
基本用法
展开
Props
| 参数名 | 参数类型 | 类型简介 | 示例 | 默认值 |
|---|---|---|---|---|
| from | Direction | 元素从哪里出现 | #基本用法 | 'top' |
| to | Direction | 元素从哪里离开 | #基本用法 | 'top' |
| offset | Number | 位移距离 | #基本用法 | 8 |
| onBeforeEnter | Function | 进入前执行的事件 | #基本用法 | () => {} |
| onEnter | Function | 元素显示后触发的事件 | #基本用法 | () => {} |
| onLeave | Function | 元素离开触发的事件 | #基本用法 | () => {} |
Types
ts
export type Direction = 'top' | 'left' | 'right' | 'bottom';