-
-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
Style tree content to full width #14858
Conversation
Codecov Report
@@ Coverage Diff @@
## feature #14858 +/- ##
===========================================
+ Coverage 92.79% 92.81% +0.01%
===========================================
Files 236 236
Lines 6231 6231
Branches 1855 1868 +13
===========================================
+ Hits 5782 5783 +1
+ Misses 446 445 -1
Partials 3 3
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## feature #14858 +/- ##
===========================================
- Coverage 93.63% 93.04% -0.59%
===========================================
Files 249 247 -2
Lines 6675 6603 -72
Branches 1926 1943 +17
===========================================
- Hits 6250 6144 -106
- Misses 424 456 +32
- Partials 1 3 +2
Continue to review full report at Codecov.
|
Deploy preview for ant-design ready! Built with commit ed6163e |
I like it, we can add |
According to the discussion, it seems to me the todo list is as follow:
I am not pretty sure about it. Could anyone give a bright routine of achieving this full-width tree content proposal? |
|
@kimochg Can we make this implementation? <Tree blockNode /> |
0a0e741
to
5c2582c
Compare
5c2582c
to
e34d2af
Compare
@afc163 done |
pls help to update doc. |
@zombieJ docs updated. plz check, thanks. |
components/tree/index.zh-CN.md
Outdated
@@ -16,6 +16,7 @@ subtitle: 树形控件 | |||
| 参数 | 说明 | 类型 | 默认值 | | |||
| --- | --- | --- | --- | | |||
| autoExpandParent | 是否自动展开父节点 | boolean | true | | |||
| blockNode | 是否树节点填充剩余空间 | boolean | false | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
节点占据一行。
Feature branch updated. Pls merge ~ |
First of all, thank you for your contribution! 😄
New feature please send pull request to feature branch, and rest to master branch.
Pull request will be merged after one of collaborators approve.
Please makes sure that these form are filled before submitting your pull request, thank you!
[中文版模板 / Chinese template]
This is a ...
What's the background?
It's not elegant to control tree content width by calculating. Like the Tree draggable demo https://ant.design/components/tree/#components-tree-demo-draggable
API Realization (Optional if not new feature)
What's the effect? (Optional if not new feature)
Changelog description (Optional if not new feature)
make tree content full width. You can preview the style works on codesandbox
Self Check before Merge
Additional Plan? (Optional if not new feature)