Skip to content

Releases: asasugar/HPRichText

v3.0.6

09 Jan 10:09
Compare
Choose a tag to compare

Bug Fixes

v3.0.5

06 Jan 07:28
Compare
Choose a tag to compare

Bug Fixes

  • 🐛
    处理html文本时移除trimHtml方法保留文本源 (#90)
    (f5d9264)

  • 🐛
    修复点击事件失效问题 (#88)
    (2d423d9)

v3.0.4

04 Nov 02:10
Compare
Choose a tag to compare

Bug Fixes

  • 🐛
    修复html非法使用style script标签渲染问题 (#77)
    (e0a66b7)

Features

v3.0.3

23 Oct 03:50
Compare
Choose a tag to compare

Bug Fixes

  • 🐛
    兼容内联图片展示 (#68)
    (25bd470)

  • 🐛
    优化正则修复px2Any方法将文本也转化的问题
    (68bb9ed)

Features

  • 🎸
    html字符串img支持本地resource资源链接 (#67)
    (dfe71ff)

v3.0.2

20 Sep 09:57
Compare
Choose a tag to compare

Bug Fixes

  • 🐛
    更多标签继承baseFontSize等基础样式属性
    (d9f01df)

v3.0.1

20 Sep 09:11
Compare
Choose a tag to compare

Refactor

v3.0.0

18 Sep 07:58
Compare
Choose a tag to compare

Features

  • 🎸
    升级 @ComponentV2装饰器 组件 #60(be583b6)

ComponentV2 API升级,需要使用请升级v3.0.0版本(对V1版本向下兼容)

  1. 参数变更 {richTextOption: {content: ''}, needScroll: true, onLinkPress: ()=>{}} => richTextModel: {richTextOption: {content: ''}, needScroll: true, onLinkPress: ()=>{}}

  2. 用法参考,Example可参照:V2用法示例

  import { HPRichTextV2, RichTextOptionModelV2 } from '@ohasasugar/hp-richtext';
  @Entry
  @Component
  struct Index {
    optionModel: RichTextOptionModelV2 = new RichTextOptionModelV2();
    aboutToAppear() {
      this.optionModel.richTextOption = {
        content: '我是 ComponentV2 的 HPRichText 组件',
        imageProp: {
          webp: true,
        }
      }
    }
    build() {
      Column() {
        HPRichTextV2({
          richTextModel: this.optionModel
        })
      }
    }
  }

v2.2.6

14 Sep 11:07
Compare
Choose a tag to compare

Features

  • 🎸
    更新 API12 SDK重新编译发包 (3f90518)

v2.2.5

14 Sep 08:30
Compare
Choose a tag to compare

Features

  • 🎸
    新增 ObservedHPRichText
    组件支持动态生成richTextOption参数 (0d35d86)

v2.2.4

11 Sep 11:26
Compare
Choose a tag to compare

Features

  • 🎸
    img跟video标签增加点击事件支持&回调参数调整 (740e5bf)
  • 🎸
    baseFontSize、baseFontColor属性支持Resource类型暴露css中utils方法 (655fee6)

Bug Fixes

  • 🐛
    修复嵌套text导致的渲染异常问题 (#55) (bc83328)

  • 🐛
    修复嵌套子节点样式丢失问题 (#52) (429222e)