Skip to content

Commit

Permalink
Merge pull request #3598 from illacloud/beta
Browse files Browse the repository at this point in the history
fix: data grid trigger event handler
  • Loading branch information
Wangtaofeng authored Dec 21, 2023
2 parents 897c218 + acec02b commit 27d9395
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"author": "ILLA Cloud <[email protected]>",
"license": "Apache-2.0",
"version": "4.1.3",
"version": "4.1.4",
"scripts": {
"dev": "vite --strictPort --force",
"build-cloud": "NODE_OPTIONS=--max-old-space-size=12288 vite build --mode cloud",
Expand Down
8 changes: 7 additions & 1 deletion apps/builder/src/widgetLibrary/DataGridWidget/columnDeal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,16 @@ export function getColumnFromType(
"click",
`columns[${params.api.getColumnIndex(
params.field,
false,
)}].events`,
{},
(path) => {
return formatDataGridColumnEvent(
path,
`columns[${params.api.getColumnIndex(params.field)}].`,
`columns[${params.api.getColumnIndex(
params.field,
false,
)}].`,
)
},
)
Expand Down Expand Up @@ -176,13 +180,15 @@ export function getColumnFromType(
"click",
`columns[${params.api.getColumnIndex(
params.field,
false,
)}].buttonGroup[${buttonIndex}].events`,
{},
(path) => {
return formatDataGridColumnEvent(
path,
`columns[${params.api.getColumnIndex(
params.field,
false,
)}].buttonGroup[${buttonIndex}].`,
)
},
Expand Down

0 comments on commit 27d9395

Please sign in to comment.