-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Open
Description
After pull latest changes in main, and merge to my branch.
In webstorm, eslint give error :
Vue: Type instantiation is excessively deep and possibly infinite.
The code:
const [Grid, gridApi] = useVbenVxeGrid({
formOptions: {
fieldMappingTime: [['createTime', ['startTime', 'endTime']]],
schema: useGridFormSchema(),
submitOnChange: true,
},
gridOptions: {
columns: useColumns(onActionClick, onStatusChange),
height: 'auto',
keepSource: true,
proxyConfig: {
ajax: {
query: async (params: PageParams, formValues) =>
await doPageQuery(getRoleList, params, formValues),
},
},
rowConfig: {
keyField: 'id',
},
toolbarConfig: {
custom: true,
export: false,
refresh: true,
search: true,
zoom: true,
},
sortConfig: {
remote: true, // 远程排序
trigger: 'default', // 点击表头触发
orders: ['asc', 'desc', null], // 排序顺序
},
// 启用远程模式
remote: {
sort: true, // 远程排序
},
// 排序变化事件
onSortChange() {
gridApi.query();
},
} as VxeTableGridOptions<SystemRoleApi.SystemRole>,
});
Metadata
Metadata
Assignees
Labels
No labels