style: 网元授权信息去除斑马纹样式

This commit is contained in:
TsMask
2024-04-16 11:43:38 +08:00
parent f291bb0907
commit 3db88f1d3a

View File

@@ -72,8 +72,6 @@ type TabeStateType = {
loading: boolean; loading: boolean;
/**紧凑型 */ /**紧凑型 */
size: SizeType; size: SizeType;
/**斑马纹 */
striped: boolean;
/**搜索栏 */ /**搜索栏 */
seached: boolean; seached: boolean;
/**记录数据 */ /**记录数据 */
@@ -84,7 +82,6 @@ type TabeStateType = {
let tableState: TabeStateType = reactive({ let tableState: TabeStateType = reactive({
loading: false, loading: false,
size: 'middle', size: 'middle',
striped: false,
seached: false, seached: false,
data: [], data: [],
}); });
@@ -190,11 +187,6 @@ function fnTableSize({ key }: MenuInfo) {
tableState.size = key as SizeType; tableState.size = key as SizeType;
} }
/**表格斑马纹 */
function fnTableStriped(_record: unknown, index: number): any {
return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined;
}
/**查询列表, pageNum初始页数 */ /**查询列表, pageNum初始页数 */
function fnGetList(pageNum?: number) { function fnGetList(pageNum?: number) {
if (tableState.loading) return; if (tableState.loading) return;
@@ -268,19 +260,19 @@ const modalStateFrom = Form.useForm(
neType: [ neType: [
{ {
required: true, required: true,
message: "Please input NE Type", message: 'Please input NE Type',
}, },
], ],
neId: [ neId: [
{ {
required: true, required: true,
message: "Please input NE ID", message: 'Please input NE ID',
}, },
], ],
licensePath: [ licensePath: [
{ {
required: true, required: true,
message: "Please upload file", message: 'Please upload file',
}, },
], ],
}) })
@@ -552,15 +544,6 @@ onMounted(() => {
size="small" size="small"
/> />
</a-tooltip> </a-tooltip>
<a-tooltip>
<template #title>{{ t('common.zebra') }}</template>
<a-switch
v-model:checked="tableState.striped"
:checked-children="t('common.switch.show')"
:un-checked-children="t('common.switch.hide')"
size="small"
/>
</a-tooltip>
<a-tooltip> <a-tooltip>
<template #title>{{ t('common.reloadText') }}</template> <template #title>{{ t('common.reloadText') }}</template>
<a-button type="text" @click.prevent="fnGetList()"> <a-button type="text" @click.prevent="fnGetList()">
@@ -602,7 +585,6 @@ onMounted(() => {
:loading="tableState.loading" :loading="tableState.loading"
:data-source="tableState.data" :data-source="tableState.data"
:size="tableState.size" :size="tableState.size"
:row-class-name="fnTableStriped"
:pagination="tablePagination" :pagination="tablePagination"
:scroll="{ y: 'calc(100vh - 480px)' }" :scroll="{ y: 'calc(100vh - 480px)' }"
@resizeColumn="(w:number, col:any) => (col.width = w)" @resizeColumn="(w:number, col:any) => (col.width = w)"
@@ -758,8 +740,4 @@ onMounted(() => {
.table :deep(.ant-pagination) { .table :deep(.ant-pagination) {
padding: 0 24px; padding: 0 24px;
} }
.table :deep(.table-striped) td {
background-color: #fafafa;
}
</style> </style>