add story for column.filterValue

This commit is contained in:
AllenFang
2017-12-16 17:16:00 +08:00
parent ad98cfe1a8
commit 51ef91b066
3 changed files with 84 additions and 1 deletions

View File

@@ -20,4 +20,12 @@ export const productsGenerator = (quantity = 5, callback) => {
);
};
export const jobsGenerator = (quantity = 5) =>
Array.from({ length: quantity }, (value, index) => ({
id: index,
name: `Job name ${index}`,
owner: Math.floor(Math.random() * 3),
type: Math.floor(Math.random() * 5)
}));
export const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));