From 4c320346c3937fb262c3fcc81b20b9a86108943f Mon Sep 17 00:00:00 2001 From: Jin Mao Date: Wed, 25 Mar 2026 13:27:10 +0800 Subject: [PATCH] =?UTF-8?q?docs(motion):=20=E6=B7=BB=E5=8A=A0=20motion=20?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 创建了 Motion 插件的 README.md 文件 - 添加了插件导出组件和类型的说明表格 - 提供了插件的基本使用示例代码 - 包含了 MotionOptions 和 MotionVariants 类型导入说明 --- packages/effects/plugins/src/motion/README.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 packages/effects/plugins/src/motion/README.md diff --git a/packages/effects/plugins/src/motion/README.md b/packages/effects/plugins/src/motion/README.md new file mode 100644 index 000000000..7067b379f --- /dev/null +++ b/packages/effects/plugins/src/motion/README.md @@ -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'; +``` \ No newline at end of file