fix: 自定义crud打包报错Return type of exported function has or is using name 'TableHeader' from external

This commit is contained in:
陈剑术 2025-06-18 16:35:45 +08:00 committed by GitHub
parent c496af0566
commit 66b36ac39f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,11 +2,12 @@ import { inject, reactive, ref } from "vue";
import { useConfig } from "../../../hooks";
import { getValue, mergeConfig } from "../../../utils";
import { ElTable } from "element-plus";
import type { TableInstance } from "element-plus";
export function useTable(props: any) {
const { style } = useConfig();
const Table = ref<InstanceType<typeof ElTable>>();
const Table = ref<TableInstance>();
// 配置
const config = reactive<ClTable.Config>(mergeConfig(props, inject("useTable__options") || {}));