Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
zmtzawqlp committed Dec 12, 2024
1 parent 3b54df3 commit ea3a2d0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 21 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- [InlineSpan](#inlinespan)
- [TextSpan](#textspan)
- [PlaceholderSpan](#placeholderspan)
- [PlaceholderSpan](#placeholderspan-1)
- [WidgetSpan](#widgetspan)
- [OverflowWidget](#overflowwidget)
- [SpecialTextSpanBuilder](#specialtextspanbuilder)
- [SpecialText](#specialtext)
Expand Down Expand Up @@ -156,7 +156,7 @@ export interface PlaceholderSpanOptions extends InlineSpanOptions {
}
```

#### PlaceholderSpan
#### WidgetSpan


继承于 `PlaceholderSpan` ,用于显示显示组件。
Expand Down
7 changes: 5 additions & 2 deletions entry/src/main/ets/pages/CustomTextOverflowDemo.ets
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,13 @@ export struct CustomTextOverflowDemo {
maxLines: maxLines,
},
})
}.alignItems(HorizontalAlign.Start).border({
}
.alignItems(HorizontalAlign.Start)
.border({
color: Color.Gray,
width: 1,
}).padding(10)
})
.padding(10)
.margin({
top: 20,
})
Expand Down
2 changes: 1 addition & 1 deletion entry/src/main/ets/text/regexp/HighlightText.ets
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ export class HighlightText extends extended_text.RegExpSpecialText {
keepVisible: true,
});
}
}
}
4 changes: 2 additions & 2 deletions extended_text/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
- [InlineSpan](#inlinespan)
- [TextSpan](#textspan)
- [PlaceholderSpan](#placeholderspan)
- [PlaceholderSpan](#placeholderspan-1)
- [WidgetSpan](#widgetspan)
- [OverflowWidget](#overflowwidget)
- [SpecialTextSpanBuilder](#specialtextspanbuilder)
- [SpecialText](#specialtext)
Expand Down Expand Up @@ -156,7 +156,7 @@ export interface PlaceholderSpanOptions extends InlineSpanOptions {
}
```

#### PlaceholderSpan
#### WidgetSpan


继承于 `PlaceholderSpan` ,用于显示显示组件。
Expand Down
14 changes: 0 additions & 14 deletions extended_text/src/main/ets/components/Text.ets
Original file line number Diff line number Diff line change
Expand Up @@ -121,20 +121,6 @@ class _RenderNode extends RenderNode {
}
}
this.paragraph.paint(context.canvas, 0, 0);
// let xxx = new drawing.Brush();
// xxx.setColor({
// alpha: 50,
// red: 255,
// green: 0,
// blue: 0,
// },)
// context.canvas.attachBrush(xxx)
// context.canvas.drawRect({
// top: 0,
// left: 0,
// right: context.size.width,
// bottom: context.size.height,
// })

if (this.overflowClipRects.length != 0) {
context.canvas.restore();
Expand Down

0 comments on commit ea3a2d0

Please sign in to comment.