-
Notifications
You must be signed in to change notification settings - Fork 328
[WIP]fix(dialog-select): dialog-select set-selection render checkbox error #3703
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export interface IGridEvent { | ||
selectAll: Function | ||
} | ||
|
||
export interface IGridColumn { | ||
field: string | ||
title: string | ||
} | ||
|
||
export interface IGridConfig { | ||
columns: IGridColumn[] | ||
data: any[] | ||
border: boolean | ||
event: IGridEvent | ||
treeConfig: any | ||
Comment on lines
+10
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm property name Ensure this matches component API to avoid mismatch with consumers. 🏁 Script executed: #!/bin/bash
# Look for grid config objects to confirm key naming conventions
rg -nP --type=ts -C2 '\bevents?\s*:' Length of output: 96763 Align property name: change IGridConfig.event → events IGridConfig declares 🤖 Prompt for AI Agents
|
||
selectConfig: any | ||
} | ||
|
||
export type IGriOp = Partial<IGridConfig> |
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.
💡 Verification agent
🧩 Analysis chain
Avoid
Function
type; use a concrete handler signature (or unknown args) and make it optional.Improves type-safety and DX.
If
selectAll
is(checked: boolean) => void
, confirm and we’ll lock that in.🏁 Script executed:
Length of output: 12394
Use explicit optional handler type for IGridEvent.selectAll
selectAll is invoked as selectAll({ selection, checked, $table }, event) (see packages/renderless/src/dialog-select/index.ts) — replace Function with a concrete optional signature.
📝 Committable suggestion
🤖 Prompt for AI Agents