mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-18 12:34:25 +08:00
docs(data-table): fix createData function (#6182)
This commit is contained in:
parent
76156b394c
commit
be47271f24
@ -102,7 +102,7 @@ function createCols() {
|
||||
}
|
||||
|
||||
function createData() {
|
||||
return (data = Array(50)
|
||||
return Array(50)
|
||||
.fill(null)
|
||||
.map((_, i) => {
|
||||
return {
|
||||
@ -113,7 +113,7 @@ function createData() {
|
||||
defend: `defend_${i}`,
|
||||
speed: `speed_${i}`
|
||||
}
|
||||
}))
|
||||
})
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
|
Loading…
Reference in New Issue
Block a user