docs(data-table): fix createData function (#6182)

This commit is contained in:
jahnli 2024-07-28 22:46:00 +08:00 committed by GitHub
parent 76156b394c
commit be47271f24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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({