Skip to content

Commit

Permalink
perf: columnsFilterContext增加submit和reset
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Aug 18, 2023
1 parent b65b62d commit fb8b030
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/fast-crud/src/d/columns-filter.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Ref } from "vue";
import { TableColumnsProps } from "/src/d/crud";

export type ColumnsFilterItem = {
key: string;
Expand All @@ -10,10 +11,12 @@ export type ColumnsFilterItem = {
};

export type ColumnsFilterContext = {
originalColumns: Ref;
currentColumns: Ref;
originalColumns: Ref<TableColumnsProps>;
currentColumns: Ref<ColumnsFilterItem[]>;
text: Ref;
active: Ref;
submit: () => void;
reset: () => void;
};

export const ColumnsFilterProvideKey = "ColumnsFilterContext";

0 comments on commit fb8b030

Please sign in to comment.