Merge pull request #154 from icjs-cc/patch-2

fix: 自定义crud打包报错Return type of exported function has or is using name…
This commit is contained in:
COOL 2025-07-21 11:44:32 +08:00 committed by GitHub
commit 0a09a661b9
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") || {}));