Skip to content

Commit

Permalink
fix(taro-h5): API createAnimation 挂载到 Taro 对象上
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Jan 21, 2019
1 parent c4fc12d commit ef2309b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/native-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2423,7 +2423,7 @@ const animation = Taro.createAnimation({
| API | 微信小程序 | H5 | ReactNative |
| :-: | :-: | :-: | :-: |
| Taro.createAnimation | ✔️ | | |
| Taro.createAnimation | ✔️ | ✔️ | |

### 位置

Expand Down
2 changes: 1 addition & 1 deletion packages/taro-h5/src/api/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@

#### 动画

☑️ wx.createAnimation
wx.createAnimation

#### 位置

Expand Down
4 changes: 3 additions & 1 deletion packages/taro-h5/src/native-api.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { onAndSyncApis, noPromiseApis, otherApis, initPxTransform } from '@tarojs/taro'
import { createSelectorQuery } from './api/createSelectorQuery'
import request from './api/request'
import webSocket from './api/webSocket'
import createAnimation from './api/createAnimation'
import * as storage from './api/storage'
import * as interactive from './api/interactive'
import webSocket from './api/webSocket'
import * as tabBar from './api/tabBar'
import * as system from './api/system'
import * as others from './api/others'
Expand Down Expand Up @@ -33,6 +34,7 @@ export default function initNativeApi (taro) {
processApis(taro)
taro.request = request
taro.createSelectorQuery = createSelectorQuery
taro.createAnimation = createAnimation
taro.initPxTransform = initPxTransform.bind(taro)
taro.pxTransform = pxTransform.bind(taro)
taro.requirePlugin = function () {
Expand Down

0 comments on commit ef2309b

Please sign in to comment.