feat: 完成基本功能
This commit is contained in:
36
src/main/resources/static/components/helper.js
Normal file
36
src/main/resources/static/components/helper.js
Normal file
@@ -0,0 +1,36 @@
|
||||
function crudCommonOptions() {
|
||||
return {
|
||||
affixHeader: false,
|
||||
stopAutoRefreshWhenModalIsOpen: true,
|
||||
resizable: false,
|
||||
syncLocation: false,
|
||||
silentPolling: true,
|
||||
}
|
||||
}
|
||||
|
||||
function horizontalFormOptions() {
|
||||
return {
|
||||
mode: 'horizontal',
|
||||
canAccessSuperData: false,
|
||||
horizontal: {
|
||||
left: 1,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
function formInputClearable() {
|
||||
return {
|
||||
clearable: true,
|
||||
clearValueOnEmpty: true,
|
||||
}
|
||||
}
|
||||
|
||||
function paginationOption() {
|
||||
return {
|
||||
type: 'pagination',
|
||||
mode: 'normal',
|
||||
layout: 'total,perPage,pager',
|
||||
maxButtons: 5,
|
||||
showPageInput: false,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user