-
Notifications
You must be signed in to change notification settings - Fork 360
feat: 支持用 props 代替 slot children 的写法 #3968
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
Open
LeonardoSya
wants to merge
252
commits into
develop
Choose a base branch
from
feat/slot-children-to-props
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+20,239
−35
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
custom action
* feat: 拆组件 * feat: url * feat: agent智能体
Co-authored-by: Copilot <[email protected]>
Collaborator
Author
|
这个提交依赖 tdesign webc 的这个 pr:TDesignOteam/tdesign-web-components#322 |
4e16e89 to
2f238d3
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🤔 这个 PR 的性质是?
💡 需求背景和解决方案
支持通过 Props 或 插槽(slot) 两种方式来实现输入框的自定义(原先仅支持slot),如:
Props 写法:直接将 React 元素作为 props 传递
插槽写法:通过
slot属性指定插入位置,兼容 Web Components 原生写法☑️ 请求合并前的自查清单