From 80c382c722fa574ea8b8aa5b050694889ac429f1 Mon Sep 17 00:00:00 2001 From: zealotchen Date: Fri, 24 Nov 2023 17:43:04 +0800 Subject: [PATCH] feat(vue): update vue3 & vue animation doc --- docs/hippy-vue/external-components.md | 8 ++++---- docs/hippy-vue/vue3.md | 8 ++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/docs/hippy-vue/external-components.md b/docs/hippy-vue/external-components.md index 8a8e4d34700..5c1b50a91cc 100644 --- a/docs/hippy-vue/external-components.md +++ b/docs/hippy-vue/external-components.md @@ -124,7 +124,7 @@ export default { ### start -`() => void` 手动触发动画开始(`playing`属性置为`true`也会自动触发`start`函数调用) +`() => void` 手动触发动画开始(`playing`属性置为`true`也会自动触发`start`函数调用, 首次触发动画) ### pause @@ -134,11 +134,11 @@ export default { `() => void` 手动触发动画继续(`playing`属性置为`false`后再置为`true`会自动触发`resume`函数调用) -### create +### create -`() => void` 手动触发动画创建 +`() => void` 手动触发动画创建(首次创建动画,或在 destroy 后重新创建动画调用) -### reset +### reset `() => void` 重置开始标记 diff --git a/docs/hippy-vue/vue3.md b/docs/hippy-vue/vue3.md index 3661a3b91d0..7be51d03f51 100644 --- a/docs/hippy-vue/vue3.md +++ b/docs/hippy-vue/vue3.md @@ -20,6 +20,14 @@ @hippy/vue-next 支持的能力与 @hippy/vue 基本一致。因此关于 Hippy-Vue 的组件、模块、样式等就不做额外声明了,可以直接参考 [Hippy-Vue](hippy-vue/introduction) 中的相关内容,本文档仅对差异部分进行说明: +demo 参考:https://github.com/Tencent/Hippy/tree/master/examples/hippy-vue-next-demo + +```javascript + "@hippy/vue-next": "v2.17-latest", + "@hippy/vue-router-next-history": "latest", +``` + + ## 初始化 ```javascript