From 3db88f1d3a49715241196c21ef3faf7e80ca5904 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 16 Apr 2024 11:43:38 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=BD=91=E5=85=83=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E5=8E=BB=E9=99=A4=E6=96=91=E9=A9=AC=E7=BA=B9?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ne/neLicense/index.vue | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/src/views/ne/neLicense/index.vue b/src/views/ne/neLicense/index.vue index d99486e0..c28d701b 100644 --- a/src/views/ne/neLicense/index.vue +++ b/src/views/ne/neLicense/index.vue @@ -72,8 +72,6 @@ type TabeStateType = { loading: boolean; /**紧凑型 */ size: SizeType; - /**斑马纹 */ - striped: boolean; /**搜索栏 */ seached: boolean; /**记录数据 */ @@ -84,7 +82,6 @@ type TabeStateType = { let tableState: TabeStateType = reactive({ loading: false, size: 'middle', - striped: false, seached: false, data: [], }); @@ -190,11 +187,6 @@ function fnTableSize({ key }: MenuInfo) { tableState.size = key as SizeType; } -/**表格斑马纹 */ -function fnTableStriped(_record: unknown, index: number): any { - return tableState.striped && index % 2 === 1 ? 'table-striped' : undefined; -} - /**查询列表, pageNum初始页数 */ function fnGetList(pageNum?: number) { if (tableState.loading) return; @@ -268,19 +260,19 @@ const modalStateFrom = Form.useForm( neType: [ { required: true, - message: "Please input NE Type", + message: 'Please input NE Type', }, ], neId: [ { required: true, - message: "Please input NE ID", + message: 'Please input NE ID', }, ], licensePath: [ { required: true, - message: "Please upload file", + message: 'Please upload file', }, ], }) @@ -552,15 +544,6 @@ onMounted(() => { size="small" /> - - - - @@ -602,7 +585,6 @@ onMounted(() => { :loading="tableState.loading" :data-source="tableState.data" :size="tableState.size" - :row-class-name="fnTableStriped" :pagination="tablePagination" :scroll="{ y: 'calc(100vh - 480px)' }" @resizeColumn="(w:number, col:any) => (col.width = w)" @@ -758,8 +740,4 @@ onMounted(() => { .table :deep(.ant-pagination) { padding: 0 24px; } - -.table :deep(.table-striped) td { - background-color: #fafafa; -}