Skip to content

Fix/miniapp components issue 949#1091

Open
jinliangqi-qi wants to merge 12 commits intoTencent-TDS:mainfrom
jinliangqi-qi:fix/miniapp-components-issue-949
Open

Fix/miniapp components issue 949#1091
jinliangqi-qi wants to merge 12 commits intoTencent-TDS:mainfrom
jinliangqi-qi:fix/miniapp-components-issue-949

Conversation

@jinliangqi-qi
Copy link

fix: Fix miniapp components issues (#949) & support TextArea

qijinliang and others added 12 commits February 5, 2026 08:49
- 新增 MiniRouterModule,使用 wx.navigateTo API 替代 window.open
- 修改页面名称优先级:URL参数 page_name > renderParams.pageName
- 支持页面返回功能,navigateTo 失败时降级使用 reLaunch
…encent-TDS#949)

- Change maxLength attribute to lowercase 'maxlength' to match WeChat mini program spec
- Map web input types to mini program supported types (number, text, etc.)
…TDS#949)

- Add resizeWidthFix() and resizeHeightFix() API to IImageAttr
- Implement widthFix/heightFix mode in ImageView
- Support widthFix/heightFix mode in KRImageView for web
- Support widthFix/heightFix mode in MiniImageElement for mini program
…encent-TDS#949)

- Add hasRefreshChild detection in setMovableViewScrollEvent TOUCH_BEGIN handler
- Only enable pull-to-refresh when refresh child node is detected
…t-TDS#949)

- Add two-pass calculation for placeholder offsetTop
- First pass: record line index for each placeholder during span processing
- Second pass: calculate vertical center offset after line sizes are finalized
- Similar to Android: lineMid - phHeight/2
…t-TDS#949)

The getPlaceholderSpanRect method in KRRichTextView was only using DOM offsets,
which return zero in miniapp environment. This fix prioritizes using the
richTextSpanList calculated position data (offsetLeft/offsetTop) for miniapp,
while maintaining DOM fallback for H5 platforms.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@tencent-adm
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants