Skip to content

Commit

Permalink
fix(with-weapp): 装饰器参数为Component
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche authored and luckyadam committed Nov 19, 2018
1 parent 215b8c0 commit 495ca99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-with-weapp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function defineGetter (component: Component, key: string, getter: string) {
}

export function withWeapp (componentType: string) {
const isComponent = componentType === 'component'
const isComponent = componentType === 'Component'

return (ConnectComponent: ComponentClass) => class BaseComponent<_ = {}, S = {}> extends ConnectComponent {
constructor (props) {
Expand Down

0 comments on commit 495ca99

Please sign in to comment.