Skip to content
Permalink
Browse files

fix(taro-swan/taro-tt): 百度和头条 properties 的 value 值设置成对应 defaultProps …

…的值,避免 null 值覆盖 initData 值
  • Loading branch information...
Chen-jj committed Jan 21, 2019
1 parent ef2309b commit 1c79db3c4519dc2528a487644312402b546b47e5
Showing with 2 additions and 2 deletions.
  1. +1 −1 packages/taro-swan/src/create-component.js
  2. +1 −1 packages/taro-tt/src/create-component.js
@@ -17,7 +17,7 @@ function bindProperties (weappComponentConf, ComponentClass) {
if (defaultProps.hasOwnProperty(key)) {
weappComponentConf.properties[key] = {
type: null,
value: null
value: defaultProps[key]
}
}
}
@@ -17,7 +17,7 @@ function bindProperties (weappComponentConf, ComponentClass) {
if (defaultProps.hasOwnProperty(key)) {
weappComponentConf.properties[key] = {
type: null,
value: null
value: defaultProps[key]
}
}
}

0 comments on commit 1c79db3

Please sign in to comment.
You can’t perform that action at this time.