mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
20 lines
377 B
TypeScript
20 lines
377 B
TypeScript
import Mock from 'mockjs'
|
|
|
|
/**
|
|
*
|
|
* @param option 自定义配置
|
|
*
|
|
* 基础表格数据
|
|
*/
|
|
export function tableMock(option?: object) {
|
|
return {
|
|
...option,
|
|
id: Mock.Random.guid(),
|
|
address: Mock.Random.county(true),
|
|
email: Mock.Random.email(),
|
|
name: Mock.Random.cname(),
|
|
age: Mock.Random.integer(18, 60),
|
|
createDate: Mock.Random.date(),
|
|
}
|
|
}
|