feat: 自定义列 保存在localStorage

This commit is contained in:
dap 2024-10-10 09:13:50 +08:00
parent 521ba6af9c
commit e6374a6a06
20 changed files with 24 additions and 0 deletions

View File

@ -52,6 +52,11 @@ setupVbenVxeTable({
round: true,
// 表格尺寸
size: 'medium',
customConfig: {
// 表格右上角自定义列配置 是否保存到localStorage
// 必须存在id参数才能使用
storage: false,
},
},
});

View File

@ -61,6 +61,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'monitor-logininfo-index',
};
const checked = ref(false);

View File

@ -42,6 +42,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'monitor-online-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({ formOptions, gridOptions });

View File

@ -90,6 +90,7 @@ const gridOptions: VxeGridProps<OperationLog> = {
round: true,
align: 'center',
showOverflow: true,
id: 'monitor-operlog-index',
};
const checked = ref(false);

View File

@ -63,6 +63,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-client-index',
};
const checked = ref(false);

View File

@ -73,6 +73,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-config-index',
};
const checked = ref(false);

View File

@ -72,6 +72,7 @@ const gridOptions: VxeGridProps = {
rowField: 'deptId',
transform: false,
},
id: 'system-dept-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({

View File

@ -82,6 +82,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-dict-data-index',
};
const checked = ref(false);

View File

@ -87,6 +87,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-dict-type-index',
};
const checked = ref(false);

View File

@ -69,6 +69,7 @@ const gridOptions: VxeGridProps = {
rowField: 'menuId',
transform: false,
},
id: 'system-menu-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({

View File

@ -69,6 +69,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-notice-index',
};
const checked = ref(false);

View File

@ -72,6 +72,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-oss-config-index',
};
const checked = ref(false);

View File

@ -92,6 +92,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-oss-index',
};
const checked = ref(false);

View File

@ -86,6 +86,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-post-index',
};
const checked = ref(false);

View File

@ -62,6 +62,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-role-assign-index',
};
const checked = ref(false);

View File

@ -92,6 +92,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-role-index',
};
const checked = ref(false);

View File

@ -81,6 +81,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-tenant-index',
};
const checked = ref(false);

View File

@ -78,6 +78,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-tenant-package-index',
};
const checked = ref(false);

View File

@ -124,6 +124,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'system-user-index',
};
const checked = ref(false);
const [BasicTable, tableApi] = useVbenVxeGrid({

View File

@ -74,6 +74,7 @@ const gridOptions: VxeGridProps = {
round: true,
align: 'center',
showOverflow: true,
id: 'tool-gen-index',
};
const checked = ref(false);