From a241b66efcc41e973290a6722fb7a4d79b833ea1 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 09:54:32 +0800
Subject: [PATCH] feat(bi): 为图表配置接口添加名称字段

---
 src/utils/index.ts |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/src/utils/index.ts b/src/utils/index.ts
index 0a4c03c..f1778e7 100644
--- a/src/utils/index.ts
+++ b/src/utils/index.ts
@@ -1,5 +1,6 @@
 import type { Recordable } from '@vben/types';
 
+export * from './import-result';
 export * from './rangePickerProps';
 export * from './routerHelper';
 
@@ -30,3 +31,18 @@
   });
   return index;
 };
+
+/**
+ * 鍘绘帀琛ㄦ牸鍒楃殑鍥哄畾锛坒ixed锛夐厤缃�
+ *
+ * 鐢ㄤ簬銆屾煡鐪嬪鎵规槑缁� / 璇︽儏銆嶇瓑鍙鍦烘櫙锛氭鏃惰〃鏍煎鍣ㄨ緝绐勶紝
+ * 鍥哄畾鍒椾細鎸ゅ崰鍙瀹藉害锛屾妸浜у搧鍚嶇О銆佸崟浣嶃�佸娉ㄧ瓑鍒楅伄浣忋��
+ *
+ * @param columns 鍘熷琛ㄦ牸鍒楅厤缃�
+ */
+export function withoutFixedColumns<T>(columns?: null | T[]): T[] {
+  return (columns ?? []).map((column) => {
+    const { fixed: _fixed, ...rest } = column as Recordable<any>;
+    return rest as unknown as T;
+  });
+}

--
Gitblit v1.9.3