-
Notifications
You must be signed in to change notification settings - Fork 13
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: table support resize column width #533
Conversation
🦋 Changeset detectedLatest commit: 6b036ca The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Need more discussion about the necessary of this feature.
e9c66f5
to
02593b3
Compare
53e74ec
to
e41e310
Compare
e41e310
to
e30c12e
Compare
e30c12e
to
51a3266
Compare
f3017e6
to
19f56c9
Compare
19f56c9
to
068f7ca
Compare
不要总是用 amend + force push,每次 push 都要重新 review 完整的 PR?应该分 commit 更方便 review ,也能保留修改历史 |
0fc75e3
to
787e639
Compare
787e639
to
6ce37cd
Compare
6ce37cd
to
ce26bce
Compare
src/utils/styles-render.ts
Outdated
cleanup(): void { | ||
if (this.styleSheet) { | ||
const i = document.adoptedStyleSheets.indexOf(this.styleSheet); | ||
document.adoptedStyleSheets.splice(i, 1); |
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.
这个提过,用 filter 吧,i 万一 是 -1 怎么办?
); | ||
} | ||
if (width.endsWith('px')) { | ||
return parseInt(width.slice(0, -2)); |
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.
return parseInt(width.slice(0, -2)); | |
return Number.parseFloat(width.slice(0, -2)); |
怎么感觉被恢复成最开始的代码了?所有 review 后的变更都没了。。。
if (width.endsWith('px')) { | ||
return parseInt(width.slice(0, -2)); | ||
} | ||
return parseInt(width); |
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.
return parseInt(width); | |
return Number.parseFloat(width); |
ce26bce
to
b67106f
Compare
this.renderer2.setStyle( | ||
markLine, | ||
'left', | ||
offset - markLineWidth + 'px', |
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.
handlePixel
b67106f
to
6b036ca
Compare
close #541