mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-17 14:43:42 +08:00
v2.0
This commit is contained in:
31
web/src/settings/componentSetting.ts
Normal file
31
web/src/settings/componentSetting.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
export default {
|
||||
table: {
|
||||
apiSetting: {
|
||||
// 当前页的字段名
|
||||
pageField: 'page',
|
||||
// 每页数量字段名
|
||||
sizeField: 'pageSize',
|
||||
// 接口返回的数据字段名
|
||||
listField: 'list',
|
||||
// 接口返回总页数字段名
|
||||
totalField: 'pageCount',
|
||||
},
|
||||
//默认分页数量
|
||||
defaultPageSize: 10,
|
||||
//可切换每页数量集合
|
||||
pageSizes: [10, 20, 30, 40, 50],
|
||||
},
|
||||
upload: {
|
||||
//考虑接口规范不同
|
||||
apiSetting: {
|
||||
// 集合字段名
|
||||
infoField: 'data',
|
||||
// 图片地址字段名
|
||||
imgField: 'fileUrl',
|
||||
},
|
||||
//最大上传图片大小
|
||||
maxSize: 10,
|
||||
//图片上传类型
|
||||
fileType: ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'image/svg+xml'],
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user