From 0ef28a929442776442aef8b272c65504ebb5492c Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 九月 2025 09:32:57 +0800
Subject: [PATCH] 部署修改
---
src/components/Table/EtableModify.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/components/Table/EtableModify.vue b/src/components/Table/EtableModify.vue
index b42e487..5c6d032 100644
--- a/src/components/Table/EtableModify.vue
+++ b/src/components/Table/EtableModify.vue
@@ -28,11 +28,9 @@
type="index"
width="60"
align="center"
- /> <template v-for="col in columns" :key="col.prop">
- <el-table-column
- v-bind="col"
- align="center"
- >
+ />
+ <template v-for="col in columns" :key="col.prop">
+ <el-table-column v-bind="col" align="center">
<template #default="scope">
<template v-if="col.slot">
<slot
@@ -41,7 +39,8 @@
:column="scope.column"
:index="scope.$index"
></slot>
- </template> <template v-else>
+ </template>
+ <template v-else>
<div
class="cell-edit"
@dblclick="handleCellEdit(scope.row, col.prop)"
@@ -53,7 +52,12 @@
class="cell-text"
>
{{
- formatCellValue(scope.row, scope.column, scope.row[col.prop], col)
+ formatCellValue(
+ scope.row,
+ scope.column,
+ scope.row[col.prop],
+ col
+ )
}}
</span>
<!-- 缂栬緫鐘舵�侊細浣跨敤鍘熷鍊硷紝涓嶇粡杩囨牸寮忓寲 -->
@@ -201,7 +205,7 @@
// 鏍煎紡鍖栧崟鍏冩牸鍊�
const formatCellValue = (row, column, cellValue, col) => {
// 濡傛灉鍒楁湁鑷畾涔夋牸寮忓寲鍣紝浣跨敤鑷畾涔夋牸寮忓寲鍣�
- if (col.formatter && typeof col.formatter === 'function') {
+ if (col.formatter && typeof col.formatter === "function") {
return col.formatter(row, column, cellValue);
}
// 鍚﹀垯浣跨敤榛樿鏍煎紡鍖栧櫒
--
Gitblit v1.9.3