217 Star 14.8K Fork 663

卓源软件/JeeSite Vue3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.gitee
.vscode
bin
build
packages
public
src
api
assets
components
design
directives
enums
hooks
layouts
locales
logics
router
settings
componentSetting.ts
designSetting.ts
encryptionSetting.ts
localeSetting.ts
projectSetting.ts
siteSetting.ts
store
utils
views
App.vue
main.ts
types
.editorconfig
.env
.env.development
.env.production
.env.tomcat
.gitignore
.npmrc
.prettierignore
.prettierrc.mjs
.stylelintignore
LICENSE
README.md
eslint.config.mjs
index.html
package.json
pnpm-lock.yaml
stylelint.config.mjs
terms.md
tsconfig.json
uno.config.ts
vite.config.ts
克隆/下载
componentSetting.ts 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
// Used to configure the general configuration of some components without modifying the components
import type { SorterResult } from '../components/Table';
export default {
// basic-table setting
table: {
// Form interface request general configuration
// support xxx.xxx.xxx
fetchSetting: {
// The field name of the current page passed to the background
pageField: 'pageNo',
// The number field name of each page displayed in the background
sizeField: 'pageSize',
// Field name of the form data returned by the interface
listField: 'list',
// Total number of tables returned by the interface field name
totalField: 'count',
},
// Number of pages that can be selected
pageSizeOptions: ['10', '20', '50', '80', '100'],
// Default display quantity on one page
defaultPageSize: 20,
// Default Size
defaultSize: 'middle',
// Custom general sort function
defaultSortFn: (sortInfo: SorterResult) => {
const { order, columnKey } = sortInfo;
if (order && columnKey) {
return {
orderBy: columnKey + ' ' + order.replace('end', ''),
};
}
},
// Custom general filter function
defaultFilterFn: (data: Partial<Recordable<string[]>>) => {
return data;
},
},
// scrollbar setting
scrollbar: {
// Whether to use native scroll bar
// After opening, the menu, modal, drawer will change the pop-up scroll bar to native
native: false,
},
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/thinkgem/jeesite-vue.git
git@gitee.com:thinkgem/jeesite-vue.git
thinkgem
jeesite-vue
JeeSite Vue3
next

搜索帮助