-
Notifications
You must be signed in to change notification settings - Fork 324
fix(dialog-select): [dialog-select] fixed an issue where grid data could not be loaded when initially visible was set to true #2862
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
fix(dialog-select): [dialog-select] fixed an issue where grid data could not be loaded when initially visible was set to true #2862
Conversation
…d when initially visible was set to true
WalkthroughThis change modifies the watch function in the dialog-select component. The call to api.queryGridData() is now wrapped in a nextTick callback to ensure the DOM is updated before execution. Additionally, the watcher is configured with { immediate: true } so that it triggers right away upon component initialization. Changes
Sequence Diagram(s)sequenceDiagram
participant C as Component
participant N as nextTick
participant A as API
C->>C: Detect change on props.visible
alt When visible is true and store not initialized
C->>N: Call nextTick(callback)
N->>C: After DOM update
C->>A: Call api.queryGridData()
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
[e2e-test-warn] The title of the Pull request should look like "fix(vue-renderless): [action-menu, alert] fix xxx bug". Please make sure you've read our contributing guide |
…d when initially visible was set to true
PR
修复问题单: dialog-select组件, 初始就将visible设置为true时, 表格数据不加载的问题
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information
Summary by CodeRabbit