Skip to content

Commit

Permalink
fix: 修复dict ts报错
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Oct 26, 2023
1 parent 51f03b2 commit 6cf2f44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/fast-crud/src/d/crud.ts
Expand Up @@ -5,7 +5,7 @@ import { CrudExpose, DoRemoveContext } from "../d/expose";
import { RuleItem } from "async-validator";
import { UiSlot, UiSlotRet } from "@fast-crud/ui-interface";
import { ExportProps } from "../lib/fs-export";
import { Dict, GetContextFn } from "../use";
import { DictOptions, GetContextFn } from "../use";

// export type FsRefValue<T> = T | Ref<T> | ComputedRef<T>;
// export type FsComputeValue<T> = FsRefValue<T> | ComputeValue<T> | AsyncComputeValue<T>;
Expand Down Expand Up @@ -1316,7 +1316,7 @@ export type ColumnCompositionProps = {
/**
* dict,会复制到各个component中去
*/
dict?: Dict;
dict?: DictOptions;

/**
* 多级表头
Expand Down
2 changes: 1 addition & 1 deletion packages/fast-crud/src/use/use-dict-define.ts
Expand Up @@ -34,7 +34,7 @@ export type DictGetData<T> = (context?: any) => Promise<T[]>;
/**
* Dict参数
*/
export interface DictOptions<T> {
export interface DictOptions<T = any> {
/**
* dict请求url
*/
Expand Down

0 comments on commit 6cf2f44

Please sign in to comment.