mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
docs(motion): 添加 motion 插件文档
- 创建了 Motion 插件的 README.md 文件 - 添加了插件导出组件和类型的说明表格 - 提供了插件的基本使用示例代码 - 包含了 MotionOptions 和 MotionVariants 类型导入说明
This commit is contained in:
26
packages/effects/plugins/src/motion/README.md
Normal file
26
packages/effects/plugins/src/motion/README.md
Normal file
@@ -0,0 +1,26 @@
|
||||
# Motion Plugin
|
||||
|
||||
基于 @vueuse/motion 的动画插件。
|
||||
|
||||
## 导出
|
||||
|
||||
| 导出 | 类型 | 说明 |
|
||||
|------|------|------|
|
||||
| `Motion` | 组件 | 动画组件 |
|
||||
| `MotionGroup` | 组件 | 动画组组件 |
|
||||
| `MotionDirective` | 指令 | 动画指令 |
|
||||
| `MotionPlugin` | 插件 | Vue 插件 |
|
||||
|
||||
## 使用
|
||||
|
||||
```ts
|
||||
import { MotionPlugin, Motion, MotionDirective } from '@vben/plugins/motion';
|
||||
|
||||
app.use(MotionPlugin);
|
||||
```
|
||||
|
||||
## 类型
|
||||
|
||||
```ts
|
||||
import type { MotionOptions, MotionVariants } from '@vben/plugins/motion';
|
||||
```
|
||||
Reference in New Issue
Block a user