-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat(ProFiled): custom valuetypemap should not cull any props #9149
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(ProFiled): custom valuetypemap should not cull any props #9149
Conversation
📝 WalkthroughWalkthrough本次变更在 Changes
Sequence Diagram(s)sequenceDiagram
participant ProFieldComponent
participant pickProProps
participant context
ProFieldComponent->>context: 获取 valueTypeMap
ProFieldComponent->>pickProProps: 传递 props, customValueType(由 valueType 是否在 valueTypeMap 决定)
pickProProps-->>ProFieldComponent: 返回过滤后的属性对象
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
packages/utils/src/pickProProps/index.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in ".eslintrc.js » /node_modules/.pnpm/@umijs[email protected][email protected]_ts-node@10.9.2_@swc+core@1.9.2_@swc+helpers@0.5.1__@typ_e7f3abddcfd9f2889fe00a0220b1cbbc/node_modules/@umijs/fabric/dist/eslint.js#overrides[0]". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. packages/field/src/index.tsxOops! Something went wrong! :( ESLint: 8.57.1 ESLint couldn't find the plugin "@typescript-eslint/eslint-plugin". (The package "@typescript-eslint/eslint-plugin" was not found when loaded as a Node module from the directory "".) It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:
The plugin "@typescript-eslint/eslint-plugin" was referenced from the config file in ".eslintrc.js » /node_modules/.pnpm/@umijs[email protected][email protected]_ts-node@10.9.2_@swc+core@1.9.2_@swc+helpers@0.5.1__@typ_e7f3abddcfd9f2889fe00a0220b1cbbc/node_modules/@umijs/fabric/dist/eslint.js#overrides[0]". If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team. 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)packages/field/src/index.tsx (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (3)
✨ Finishing Touches
🧪 Generate Unit Tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
@ant-design/pro-card
@ant-design/pro-components
@ant-design/pro-descriptions
@ant-design/pro-field
@ant-design/pro-form
@ant-design/pro-layout
@ant-design/pro-list
@ant-design/pro-provider
@ant-design/pro-skeleton
@ant-design/pro-table
@ant-design/pro-utils
commit: |
#9148
自定义的valueTypeMap不应该走ProList的props剔除逻辑,应该全部放开给开发者
Summary by CodeRabbit