Skip to content

Commit

Permalink
fix: hiText breakStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
linjinze999 committed Dec 9, 2024
1 parent 1ebe877 commit 90ef06b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/hippy_ui_react/src/components/HiText/PropsType.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ export interface HiTextProps extends TextProps {
/** 无障碍阅读文本 */
accessibilityLabel?: string;
/** 设置Android API 23及以上系统的文本折行策略。
* HiText.breakStrategy.simple:简单折行,每一行显示尽可能多的字符,直到这一行不能显示更多字符时才进行换行,这种策略下不会自动折断单词(当一行只有一个单词并且宽度显示不下的情况下才会折断);
* HiText.breakStrategy.high_quality:高质量折行,针对整段文本的折行进行布局优化,必要时会自动折断单词,比其他两种策略略微影响性能,通常比较适合只读文本;
* HiText.breakStrategy.balanced:平衡折行,尽可能保证一个段落的每一行的宽度相同,必要时会折断单词。
* simple:简单折行,每一行显示尽可能多的字符,直到这一行不能显示更多字符时才进行换行,这种策略下不会自动折断单词(当一行只有一个单词并且宽度显示不下的情况下才会折断);
* high_quality:高质量折行,针对整段文本的折行进行布局优化,必要时会自动折断单词,比其他两种策略略微影响性能,通常比较适合只读文本;
* balanced:平衡折行,尽可能保证一个段落的每一行的宽度相同,必要时会折断单词。
* */
breakStrategy?: string;
}

0 comments on commit 90ef06b

Please sign in to comment.