Skip to content

Commit

Permalink
perf: 修改row-key默认支持type类型
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Apr 16, 2021
1 parent f865377 commit 8fa65a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/crud-table/src/CrudTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default defineComponent({
default: 'data.list',
},
rowKey: {
type: Function,
type: [Function, String],
default: (row) => row.id,
},
readOnly: {
Expand Down

0 comments on commit 8fa65a0

Please sign in to comment.