Skip to content

yiyandaoren/taroWxParse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

组件说明

taro框架wxParse纯净封装组件,来源于项目实战,随下随用

使用方式如下:

  • 组件名称
DescRichText
  • 下载到src/components

  • 父组件引用示例:

import DescRichText from '../../components/DescRichText'
  • 在父组件View中引用 目录为(page/PARENT_COMPONENT.js)
<View>
  <DescRichText desc={detail}></DescRichText>
</View>
  • desc(详情描述) 数据获取
constructor(props) {
  super(props)
  this.state = {
    name: this.props.name,
    detail: '<div>我是div内容</div>'
  }
}
  • 修改子组件数据

    • 文件
    DescRichText.js
    • 修改内容
    componentDidUpdate(){}
  • 样式修改

    阁下可以在本组件的wxparse目录下找到样式文件,然后修改该文件的相关内容即可

  • pull request

    如果阁下已经 fork 并改进了组件,请提交至您的 git 项目,并提交 pull request

  • 问题反馈
    如果阁下遇到了一些小问题,亲直接提交至 issues , 我每天都会检查 gitHubissues

About

taro framework wxParse pure packaging components, derived from the actual project practice, ready to use

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published