-
-
Notifications
You must be signed in to change notification settings - Fork 231
Support stretch porp #82
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
Conversation
const { stretch, getRootDomNode, visible } = this.props; | ||
const { stretchChecked, targetHeight, targetWidth } = this.state; | ||
|
||
if (!stretch || !visible) { |
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.
README.md
Outdated
<td>stretch</td> | ||
<td>string</td> | ||
<td></td> | ||
<td>Let popup div stretch with trigger element. enums of 'w', 'h'</td> |
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.
还是不要用缩写吧
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.
align 里面也是缩写,觉得一个缩写一个不缩写很怪异:
points: ['cr', 'cl']
src/Popup.js
Outdated
if (!$ele) return; | ||
|
||
const height = $ele.clientHeight; | ||
const width = $ele.clientWidth; |
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.
要用 getBoundingClientRect
吧
这个没发布? |
还没, |
Add stretch support. Will update
rc-tree-select
&rc-select
for this props.