Skip to content

Commit

Permalink
pref: 2.2.10 Compatibility if parameter e is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
peng-xiao-shuai committed Oct 8, 2024
1 parent 8882ed1 commit 4197177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "el-plus-powerful-table-ts",
"version": "2.2.9",
"version": "2.2.10",
"private": false,
"keywords": [
"element-plus",
Expand Down Expand Up @@ -55,7 +55,6 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
"el-plus-powerful-table-ts": "^2.2.2",
"element-plus": "^2.3.14",
"vue": "^3.3.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/powerful-table/src/powerful-table-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export const isProperty = <T, R>(e: T, property?: R | ((e: T) => R)) => {
(pet) => typeof (<R>pet) != 'function'
)
? property
: property!(e)
: property!(e || ({ row: {}, index: undefined, props: {} } as T))
}

// 附属组件自定义事件抛出
Expand Down

0 comments on commit 4197177

Please sign in to comment.