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() {
|
function createData() {
|
||||||
return (data = Array(50)
|
return Array(50)
|
||||||
.fill(null)
|
.fill(null)
|
||||||
.map((_, i) => {
|
.map((_, i) => {
|
||||||
return {
|
return {
|
||||||
@ -113,7 +113,7 @@ function createData() {
|
|||||||
defend: `defend_${i}`,
|
defend: `defend_${i}`,
|
||||||
speed: `speed_${i}`
|
speed: `speed_${i}`
|
||||||
}
|
}
|
||||||
}))
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
Loading…
Reference in New Issue
Block a user