From 3500a34fc17827eef64ca0b7e4b2a3121b24ab5b Mon Sep 17 00:00:00 2001
From: zs <zhousong@weben-smart.com>
Date: 周二, 29 4月 2025 17:33:29 +0800
Subject: [PATCH] 去掉生成的代码
---
HIAWms/web/src/components/Table/Table.tsx | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 44 insertions(+), 0 deletions(-)
diff --git a/HIAWms/web/src/components/Table/Table.tsx b/HIAWms/web/src/components/Table/Table.tsx
new file mode 100644
index 0000000..16707b0
--- /dev/null
+++ b/HIAWms/web/src/components/Table/Table.tsx
@@ -0,0 +1,44 @@
+// @ts-nocheck
+import { defineComponent, useAttrs, ref, SetupContext, PropType } from 'vue'
+import BaseTable from './index.vue'
+import type { TablePropsItemType } from './index.d'
+// 娉ㄩ噴鏃堕棿2024-10-09
+// 璇ヨ〃鏍兼槸浠庡涓皬椤圭洰杩佺Щ鏀归�犺�屾潵锛岀粡鍘嗚繃澶氶噸鏀归�狅紝浠g爜姣旇緝涔憋紝濡傛灉闇�瑕侀噸鏋勶紝璇峰熀浜巆omponents/BaseTable/BaseTable.tsx缁х画閲嶆瀯銆�
+// 鍙﹀鏈湴vxe-table鍜岀嚎涓妚xe-table鐗堟湰涓嶄竴鑷达紝鏈夊彲鑳芥湁宸紓鎬э紝姣斿watch鏁版嵁涓嶆墽琛岀瓑銆傛敞鎰忛伩鍧戙��
+export default defineComponent<TablePropsItemType>({
+ props: BaseTable.props,
+ // emits: BaseTable.emits,
+ setup(props, ctx: SetupContext) {
+ // const emits: any = BaseTable.emits
+ // const eventMap: Record<string, any> = {}
+ const tableRef = ref()
+
+ // emits.forEach((eventName: string) => {
+ // const onEventName = `on${eventName
+ // .slice(0, 1)
+ // .toUpperCase()}${eventName.slice(1)}`
+ // eventMap[onEventName] = (...args: any) => ctx.emit(eventName, ...args)
+ // })
+
+ /**
+ * 鏆撮湶鏂规硶
+ * @param exposeMap
+ */
+ const onUpdatedExpose = (exposeMap: Record<string, () => void>) => {
+ ctx.expose(exposeMap)
+ }
+
+ return () => {
+ return (
+ <BaseTable
+ ref={tableRef}
+ {...props}
+ {...ctx.attrs}
+ // {...eventMap}
+ v-slots={{ ...ctx.slots }}
+ onUpdate={onUpdatedExpose}
+ />
+ )
+ }
+ },
+})
--
Gitblit v1.9.3