Skip to content

Commit

Permalink
fix(weapp): 大小写问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed May 29, 2018
1 parent 337169b commit a55efb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-weapp/src/create-page.js
Expand Up @@ -80,7 +80,7 @@ function initPage (weappPageConf, page, options) {
const comPath = `${component.$path}$$${name}`
let _props = (component.$props || {})[name] || {}
let props = typeof _props === 'function' ? _props.call(component) : _props
props = transformPropsForComponent(props, _class.defaultProps, _class.PropTypes)
props = transformPropsForComponent(props, _class.defaultProps, _class.propTypes)
const child = new _class(props)
component.$$components[name] = child

Expand Down Expand Up @@ -240,7 +240,7 @@ function transformPropsForComponent (props, defaultProps, propTypes) {
}

function createPage (PageClass, options) {
const pageProps = transformPropsForComponent({}, PageClass.defaultProps, PageClass.PropTypes)
const pageProps = transformPropsForComponent({}, PageClass.defaultProps, PageClass.propTypes)
const page = new PageClass(pageProps)
page.$isComponent = false
page.path = options.path
Expand Down

0 comments on commit a55efb7

Please sign in to comment.