Skip to content

Commit

Permalink
feat: 优化了代码
Browse files Browse the repository at this point in the history
  • Loading branch information
eveningwater committed Apr 11, 2024
1 parent 0613942 commit f644279
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion vue/77/src/components/table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ declare namespace ElementTable {
}[keyof Base]
>;

export type eventKey = NonNullable<eventKeyVal[keyof eventKeyVal]>;
export type EventKey = NonNullable<EventKeyVal[keyof EventKeyVal]>;

export type CamelEventKey<T extends string> = {
[key in T]: key extends `on${infer stringA}-${infer stringB}`
Expand Down
2 changes: 1 addition & 1 deletion vue/77/src/components/tableProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export type ElTableColumnProps = InstanceType<typeof ElTableColumn>["$props"] &
UserElTableColumnProps;

export type OmitTableProp = Required<
Omit<ElTableProps, "data" | "class" | ElementTable.eventKey>
Omit<ElTableProps, "data" | "class" | ElementTable.EventKey>
>;

export type KeyConstructor<Base extends object> = {
Expand Down

0 comments on commit f644279

Please sign in to comment.