Files
vxe-table/examples/mock/api/user/list.json
xuliangzhan aea0252e90 更新文档
2020-06-08 19:55:14 +08:00

41 lines
2.1 KiB
JSON

{
"!return|array(300-700)": {
"id|number": "{{ $index+1 }}",
"name": "{{ random.repeat(['name', 'test'],1) }}_{{ $index }}",
"nickname": "{{ random.repeat(['昵称', '名字'],1) }}_{{ $index }}",
"password": "{{ random.repeat('abcdefgABCDEFG',6,12) }}",
"checked": false,
"sex|random(1)": ["", "0", "1"],
"sexList|random(1)": [[], ["1"], ["0"], ["0", "1"]],
"role|random(1)": ["前端", "后端", "测试", "设计", "项目经理"],
"region|random(1)": [[42, 67, 72], [1, 2, 7], [21, 22, 23]],
"email": "{{ random.repeat('abcdefg',5,20) }}@{{ random.repeat(['qq','163'],1) }}.{{ random.repeat(['com','net'],1) }}",
"age|number": "{{ random.num(18,30) }}",
"rate|number": "{{ random.num(0,5) }}",
"slider|number": "{{ random.num(0,100) }}",
"color": "rgb({{ random.num(0,255) }}, {{ random.num(0,255) }}, 0)",
"flag|boolean": "{{ random.num(0,1) }}",
"state|random(1)": ["", "value:Washington", "value:Delaware", "", "", "value:Indiana", "value:Iowa", "value:Kentucky", ""],
"phone": "136{{ random.num(10000000,99999999) }}",
"describe": "{{ random.repeat('用户信息',2,6) }}",
"describe2": "{{ random.repeat('用户信息',4,10) }}",
"describe3": "{{ random.repeat('用户信息',6,20) }}",
"seq|number": "{{ $index }}",
"status": "{{ random.num(1,4) }}",
"type": "{{ random.num(1,3) }}",
"date": "{{ random.date('2019-01-01 00:00:00','2019-02-20 23:59:59', 'yyyy-MM-ddTHH:mm:ss.000+0800') }}",
"date1": null,
"date2": "{{ random.date('2019-01-01','2019-02-20', 'yyyy-MM-dd') }}",
"date5": "09:00",
"date6": "09:00:00",
"html1": "<a><span style=\"color:green;\">放弃</span>是<span style=\"font-size:24px;\">最好</span>的</><span style=\"color:red;\">选择</span>_{{ $index }}</a>",
"createTime|number": "{{ random.time('2019-01-01 00:00:00','2019-02-20 23:59:59', 'yyyy-MM-dd HH:mm:ss') }}",
"updateTime|number": "{{ random.time('2019-01-01 00:00:00','2019-02-20 23:59:59', 'yyyy-MM-dd HH:mm:ss') }}",
"attr1": null,
"attr2": null,
"attr3": null,
"attr4": null,
"attr5": null,
"attr6": null
}
}