Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(taro-components): fix richText component (#2131)
主要修改了两个地方: 1. RichText这个组件,nodes的type如果不是text的话,children这个属性在微信小程序的doc里是可选的,所以item.children就可能为undefined,所以加个默认值空数组。 2. 对于有些node类型,例如image,它的attrs不仅仅限于class和style,还有src、width、height等。由于情况比较多,所以这块建议直接把这些属性拿过来,统统赋给props
- Loading branch information