mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-12 05:32:48 +00:00
fix: 自定义crud打包报错Return type of exported function has or is using name 'TableHeader' from external
This commit is contained in:
parent
c496af0566
commit
66b36ac39f
@ -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") || {}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user