-
-
Notifications
You must be signed in to change notification settings - Fork 52.3k
feat: modal method rtl #24682
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: modal method rtl #24682
Conversation
components/modal/ConfirmDialog.tsx
Outdated
@@ -50,9 +51,12 @@ const ConfirmDialog = (props: ConfirmDialogProps) => { | |||
const transitionName = props.transitionName || 'zoom'; | |||
const maskTransitionName = props.maskTransitionName || 'fade'; | |||
|
|||
const { direction } = React.useContext(ConfigContext); |
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.
help help help
这个地方获 不到 direction
啊
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.
参考 Modal or Notification 的 hooks 用法,需要有个上下文环境才行。
Codecov Report
@@ Coverage Diff @@
## master #24682 +/- ##
=======================================
Coverage 99.21% 99.21%
=======================================
Files 365 365
Lines 7276 7277 +1
Branches 2033 1981 -52
=======================================
+ Hits 7219 7220 +1
Misses 57 57
Continue to review full report at Codecov.
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4803e3a:
|
赶得上这班车吗? |
赶不上,没必要赶。 |
/rebase |
rebase 不好用了? |
可能有冲突,不成功会没反应。 |
手动rebase |
木有冲突啊,手动很顺。 |
那小弟就不知道为啥了 |
PTAL |
* fix: modal rtl * fix: use hooks * Update components/modal/index.zh-CN.md
[中文版模板 / Chinese template]
🤔 This is a ...
🔗 Related issue link
#24566
💡 Background and solution
📝 Changelog
Modal.method()
RTL supports only use hooks.Modal.method()
RTL 模式支持,仅限 hooks 用法。☑️ Self Check before Merge