mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-13 14:12:50 +00:00
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:
commit
0a09a661b9
@ -2,11 +2,12 @@ import { inject, reactive, ref } from "vue";
|
|||||||
import { useConfig } from "../../../hooks";
|
import { useConfig } from "../../../hooks";
|
||||||
import { getValue, mergeConfig } from "../../../utils";
|
import { getValue, mergeConfig } from "../../../utils";
|
||||||
import { ElTable } from "element-plus";
|
import { ElTable } from "element-plus";
|
||||||
|
import type { TableInstance } from "element-plus";
|
||||||
|
|
||||||
export function useTable(props: any) {
|
export function useTable(props: any) {
|
||||||
const { style } = useConfig();
|
const { style } = useConfig();
|
||||||
|
|
||||||
const Table = ref<InstanceType<typeof ElTable>>();
|
const Table = ref<TableInstance>();
|
||||||
|
|
||||||
// 配置
|
// 配置
|
||||||
const config = reactive<ClTable.Config>(mergeConfig(props, inject("useTable__options") || {}));
|
const config = reactive<ClTable.Config>(mergeConfig(props, inject("useTable__options") || {}));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user