mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 06:02:38 +08:00
优化
This commit is contained in:
parent
a2337924bb
commit
48735c2a2f
10
packages/crud/index.d.ts
vendored
10
packages/crud/index.d.ts
vendored
@ -40,8 +40,8 @@ declare type obj = {
|
||||
declare type DeepPartial<T> = T extends Function
|
||||
? T
|
||||
: T extends object
|
||||
? { [P in keyof T]?: DeepPartial<T[P]> }
|
||||
: T;
|
||||
? { [P in keyof T]?: DeepPartial<T[P]> }
|
||||
: T;
|
||||
|
||||
// 合并
|
||||
declare type Merge<A, B> = Omit<A, keyof B> & B;
|
||||
@ -703,7 +703,11 @@ declare namespace ClContextMenu {
|
||||
}
|
||||
|
||||
interface Ref {
|
||||
open(event: Event, options: Options): { close: () => void };
|
||||
open(event: Event, options: Options): Exposed;
|
||||
close(): void;
|
||||
}
|
||||
|
||||
interface Exposed {
|
||||
close(): void;
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@cool-vue/crud",
|
||||
"version": "7.1.18",
|
||||
"version": "7.1.19",
|
||||
"private": false,
|
||||
"main": "./dist/index.umd.min.js",
|
||||
"typings": "types/index.d.ts",
|
||||
|
@ -267,7 +267,7 @@ export const ContextMenu = {
|
||||
|
||||
render(vm, event.target.ownerDocument.createElement("div"));
|
||||
|
||||
return vm.component?.exposed;
|
||||
return vm.component?.exposed as ClContextMenu.Exposed;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -26,6 +26,6 @@ declare const ClContextMenu: import("vue").DefineComponent<{
|
||||
event: ClContextMenu.Event;
|
||||
}, {}>;
|
||||
export declare const ContextMenu: {
|
||||
open(event: ClContextMenu.Event, options: ClContextMenu.Options): Record<string, any> | null | undefined;
|
||||
open(event: ClContextMenu.Event, options: ClContextMenu.Options): ClContextMenu.Exposed;
|
||||
};
|
||||
export default ClContextMenu;
|
||||
|
Loading…
Reference in New Issue
Block a user