chore: 改为全局参数配置 去除局部参数

This commit is contained in:
dap 2025-01-13 17:08:00 +08:00
parent 21dd7bd6c0
commit a9cae15d98
29 changed files with 14 additions and 42 deletions

View File

@ -43,7 +43,7 @@ setupVbenVxeTable({
// 鼠标移入行显示 hover 样式
isHover: true,
// 点击行高亮
isCurrent: true,
isCurrent: false,
},
columnConfig: {
// 可拖拽列宽

View File

@ -107,7 +107,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
isCurrent: false,
keyField: 'id',
},

View File

@ -23,7 +23,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'tokenId',
},
};

View File

@ -1,14 +1,17 @@
<script setup lang="ts">
import type { VbenFormProps } from '@vben/common-ui';
import type { Recordable } from '@vben/types';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { nextTick } from 'vue';
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { Page, useVbenModal } from '@vben/common-ui';
import { getPopupContainer, listToTree } from '@vben/utils';
import { Popconfirm, Space } from 'ant-design-vue';
import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import { treeList, treeRemove } from './api';
import { columns, querySchema } from './data';
@ -51,7 +54,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'id',
},

View File

@ -69,7 +69,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'infoId',
},
id: 'monitor-logininfo-index',

View File

@ -51,7 +51,6 @@ const gridOptions: VxeGridProps = {
gt: 0,
},
rowConfig: {
isHover: true,
keyField: 'tokenId',
},
id: 'monitor-online-index',

View File

@ -74,7 +74,6 @@ const gridOptions: VxeGridProps<OperationLog> = {
},
},
rowConfig: {
isHover: true,
keyField: 'operId',
},
sortConfig: {

View File

@ -60,7 +60,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'id',
},
id: 'system-client-index',

View File

@ -63,7 +63,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'configId',
},
id: 'system-config-index',

View File

@ -62,7 +62,6 @@ const gridOptions: VxeGridProps = {
gt: 0,
},
rowConfig: {
isHover: true,
keyField: 'deptId',
},
treeConfig: {

View File

@ -67,7 +67,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'dictCode',
},
id: 'system-dict-data-index',

View File

@ -60,7 +60,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'dictId',
},
id: 'system-dict-type-index',

View File

@ -51,7 +51,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'menuId',
},
/**

View File

@ -51,7 +51,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'noticeId',
},
id: 'system-notice-index',

View File

@ -57,7 +57,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'ossConfigId',
},
id: 'system-oss-config-index',

View File

@ -83,7 +83,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'ossId',
height: 65,
},

View File

@ -72,7 +72,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'postId',
},
id: 'system-post-index',

View File

@ -61,7 +61,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'userId',
},
id: 'system-role-assign-index',

View File

@ -56,7 +56,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'userId',
},
};

View File

@ -79,7 +79,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'roleId',
},
id: 'system-role-index',

View File

@ -65,7 +65,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'id',
},
id: 'system-tenant-index',

View File

@ -61,7 +61,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'packageId',
},
id: 'system-tenant-package-index',

View File

@ -114,7 +114,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'userId',
height: 48,
},

View File

@ -26,7 +26,6 @@ const gridOptions: VxeGridProps = {
editConfig: { trigger: 'click', mode: 'cell', showStatus: true },
editRules: validRules,
rowConfig: {
isHover: true,
keyField: 'id',
isCurrent: true, //
},

View File

@ -71,7 +71,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'tableId',
},
id: 'tool-gen-index',

View File

@ -85,7 +85,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'tableId',
},
toolbarConfig: {

View File

@ -145,7 +145,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'userId',
},
toolbarConfig: {
@ -217,7 +216,6 @@ const rightGridOptions: VxeGridProps = {
enabled: false,
},
rowConfig: {
isHover: true,
keyField: 'userId',
},
toolbarConfig: {

View File

@ -94,7 +94,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'id',
height: 100,
},

View File

@ -1,22 +1,20 @@
<script setup lang="ts">
import type { RadioChangeEvent } from 'ant-design-vue';
import type { VbenFormProps } from '@vben/common-ui';
import type { Recordable } from '@vben/types';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { ref } from 'vue';
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { Page, useVbenModal } from '@vben/common-ui';
import { $t } from '@vben/locales';
import { getVxePopupContainer } from '@vben/utils';
import {
Modal,
Popconfirm,
type RadioChangeEvent,
RadioGroup,
Space,
} from 'ant-design-vue';
import { Modal, Popconfirm, RadioGroup, Space } from 'ant-design-vue';
import { useVbenVxeGrid, type VxeGridProps } from '#/adapter/vxe-table';
import { vxeCheckboxChecked } from '#/adapter/vxe-table';
import { useVbenVxeGrid, vxeCheckboxChecked } from '#/adapter/vxe-table';
import {
deleteByInstanceIds,
pageByFinish,
@ -106,7 +104,6 @@ const gridOptions: VxeGridProps = {
},
},
rowConfig: {
isHover: true,
keyField: 'id',
height: 66,
},