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 icssoa
parent 96d5acd3ba
commit c35c33ed48

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") || {}));