no message
Former-commit-id: b92f9e868330959cc6bbe4077384c468fbd2a695 Former-commit-id: 230d13822ebb3408c908967d2fac35f5a3ed0b07 Former-commit-id: ee34ffb35b16cd0b2b5c501095d4d4c1c06e9a8d
This commit is contained in:
37
src/pages/demo/plugins/export/data/index.js
Normal file
37
src/pages/demo/plugins/export/data/index.js
Normal file
@@ -0,0 +1,37 @@
|
||||
import Mock from 'mockjs'
|
||||
|
||||
const mockData = Mock.mock({
|
||||
'data|3-6': [{
|
||||
'id|+1': 1,
|
||||
'name': '@CNAME',
|
||||
'creatDate': '@DATE',
|
||||
'address': '@CITY',
|
||||
'zip': '@ZIP'
|
||||
}]
|
||||
})
|
||||
|
||||
export default {
|
||||
data: mockData.data,
|
||||
columns: [
|
||||
{
|
||||
label: 'ID',
|
||||
prop: 'id'
|
||||
},
|
||||
{
|
||||
label: '名称',
|
||||
prop: 'name'
|
||||
},
|
||||
{
|
||||
label: '创建日期',
|
||||
prop: 'creatDate'
|
||||
},
|
||||
{
|
||||
label: '地址',
|
||||
prop: 'address'
|
||||
},
|
||||
{
|
||||
label: '邮编',
|
||||
prop: 'zip'
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user