Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 新增Form.List.usePrefixName #47309

Closed
wants to merge 1 commit into from

Conversation

lemonied
Copy link
Contributor

@lemonied lemonied commented Feb 2, 2024

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

场景:在某些复杂的大表单场景中,表单代码通常要拆分成好几个组件,在有多个Form.List嵌套的后代组件中,想要拿到完整的namePath并不容易,需要层层传递props;

目的:希望可以在所有的后代元素中,使用hook就可以拿到prefixName;

📝 Changelog

Language Changelog
🇺🇸 English Add new hook: Form.List.usePrefixName
🇨🇳 Chinese 新增hook:Form.List.usePrefixName

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

Copy link

stackblitz bot commented Feb 2, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Prepare preview

Copy link
Contributor

github-actions bot commented Feb 2, 2024

Visual-Regression Diff Building...

Copy link

codesandbox-ci bot commented Feb 2, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit bc30120:

Sandbox Source
antd reproduction template (forked) Configuration

@lemonied lemonied closed this Feb 2, 2024
@lemonied lemonied deleted the usePrefixName branch February 2, 2024 07:19
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.

None yet

1 participant