Skip to content

Commit

Permalink
feat(Column): added support for nested values of dataKey on Column (#268
Browse files Browse the repository at this point in the history
)
  • Loading branch information
simonguo authored Nov 18, 2021
1 parent 185f759 commit 50ec875
Show file tree
Hide file tree
Showing 7 changed files with 153 additions and 337 deletions.
146 changes: 0 additions & 146 deletions docs/data/data.json

This file was deleted.

15 changes: 9 additions & 6 deletions docs/data/fakeObjectDataListStore.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const faker = require('faker');

export function createFakeRowObjectData(index) {
return {
id: index,
avartar: faker.image.avatar(),
city: faker.address.city(),
email: faker.internet.email(),
firstName: faker.name.firstName(),
lastName: faker.name.lastName(),
suffix: faker.name.suffix(),
street: faker.address.streetName(),
zipCode: faker.address.zipCode(),
date: faker.date.past(),
bs: faker.company.bs(),
catchPhrase: faker.company.catchPhrase(),
companyName: faker.company.companyName(),
words: faker.lorem.words(),
sentence: faker.lorem.sentence()
sentence: faker.lorem.sentence(),
address: {
city: faker.address.city(),
street: faker.address.streetName(),
zipCode: faker.address.zipCode()
}
};
}

export default function fakeObjectDataListStore(size) {
var dataList = [];
for (var i = 0; i < size; i++) {
const dataList = [];
for (let i = 0; i < size; i++) {
dataList.push(createFakeRowObjectData(i + 1));
}
return dataList;
Expand Down
Loading

0 comments on commit 50ec875

Please sign in to comment.