Skip to content

[+] 支持逐列表自定义删除文案 - #1742

Open
dvd233 wants to merge 1 commit into
alibaba:masterfrom
dvd233:codex/form-render-list-delete-text
Open

dvd233 wants to merge 1 commit into
alibaba:masterfrom
dvd233:codex/form-render-list-delete-text

Conversation

@dvd233

@dvd233 dvd233 commented Oct 10, 2026

Copy link
Copy Markdown

Lists in the same form may need different deletion labels. props.deleteBtnProps.children is currently overwritten by the locale default, so these labels cannot be configured independently.

Read the optional children value in FieldList and retain the current locale text when it is missing or empty. Only the label is configurable; icon mode, tab close icons, deletion restrictions and the existing confirmation/onRemove flow retain their behavior. Document the supported string-only option.

Validation:

  • Tested with React 18.3.1, AntD 5.29.3 and FormRender source 2.5.7-beta.1. This adds per-list configuration; it does not claim to reproduce or fix a React 19 regression from the reporter's environment.
  • 14 real FormRender tests cover all five text-based list widgets, independent labels, locale fallbacks, icon mode, restrictions and cancellation/confirmation. The same tests against the unchanged FieldList produced 10 failures and 4 passes; all 14 pass with this change. The new file uses the repository's existing happy-dom dependency because jsdom 19 fails while resolving current AntD table/popup styles.
  • Local Chromium checks passed in 16 scenarios, including actual removal in Card, Drawer and Virtual lists.
  • The full Vitest run passes the new test file. Baseline and this change share three suite-load errors (stale form-render-core imports) and 11 failing legacy tests (seven matchMedia-dependent and four isObj tests). The affected package's father-build also fails on both versions while loading gulp-less (less version 4.1.3 is not currently supported), before compiling source.

Closes #1712

@vercel

vercel Bot commented Oct 10, 2026

Copy link
Copy Markdown

@dvd233 is attempting to deploy a commit to the Faberon Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

React19 FormRender 表单的删除按钮 除了隐藏 是否可以自定义文字

1 participant