sunmao-ui/examples/table/staticData.json
2021-11-24 15:02:01 +08:00

93 lines
2.2 KiB
JSON

{
"app": {
"version": "example/v1",
"metadata": {
"name": "table_component",
"description": "table component example"
},
"spec": {
"components": [
{
"id": "root",
"type": "chakra_ui/v1/root",
"properties": {},
"traits": []
},
{
"id": "table",
"type": "chakra_ui/v1/table",
"properties": {
"size": "lg",
"rowsPerPage": 5,
"data": [
{
"id": 1,
"name": "Hanson Deck",
"email": "hanson@deck.com",
"sales": 37
},
{
"id": 2,
"name": "Max Conversation",
"email": "Max@conversation.com",
"sales": 424
},
{
"id": 3,
"name": "Jason Response",
"email": "jason@response.com",
"sales": 55
},
{
"id": 4,
"name": "Sue Shei",
"email": "sueshei@example.com",
"sales": 550
},
{
"id": 5,
"name": "Eric Widget",
"email": "eric@widget.org",
"sales": 243
}
],
"columns": [
{
"key": "id",
"title": "ID",
"type": "text"
},
{
"key": "name",
"title": "Name",
"type": "text"
},
{
"key": "email",
"title": "Email",
"type": "text"
},
{
"key": "sales",
"title": "Sales",
"type": "text"
}
]
},
"traits": [
{
"type": "core/v1/slot",
"properties": {
"container": {
"id": "root",
"slot": "root"
}
}
}
]
}
]
}
}
}