Skip to content

Commit

Permalink
fix(noticebar): 修复 animationData 类型签名问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Apr 28, 2020
1 parent 8d5baea commit b792ac5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion packages/taro-ui/src/components/noticebar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export default class AtNoticebar extends React.Component<
this.state = {
show: true,
animElemId,
animationData: [{}],
animationData: {
actions: [{}]
},
dura: 15,
isWEAPP: Taro.getEnv() === Taro.ENV_TYPE.WEAPP,
isALIPAY: Taro.getEnv() === Taro.ENV_TYPE.ALIPAY,
Expand Down
6 changes: 4 additions & 2 deletions packages/taro-ui/types/noticebar.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { MouseEvent, ComponentClass } from 'react'
import { ComponentClass } from 'react'
import { CommonEvent } from '@tarojs/components/types/common'

import AtComponent from './base'
Expand Down Expand Up @@ -51,7 +51,9 @@ export interface AtNoticeBarProps extends AtComponent {
export interface AtNoticeBarState {
show: boolean
animElemId: string
animationData: object[]
animationData: {
actions: object[]
}
dura: number
isWEAPP: boolean
isALIPAY: boolean
Expand Down

0 comments on commit b792ac5

Please sign in to comment.