mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2024-11-01 14:10:27 +08:00
优化
This commit is contained in:
parent
a2337924bb
commit
48735c2a2f
6
packages/crud/index.d.ts
vendored
6
packages/crud/index.d.ts
vendored
@ -703,7 +703,11 @@ declare namespace ClContextMenu {
|
|||||||
}
|
}
|
||||||
|
|
||||||
interface Ref {
|
interface Ref {
|
||||||
open(event: Event, options: Options): { close: () => void };
|
open(event: Event, options: Options): Exposed;
|
||||||
|
close(): void;
|
||||||
|
}
|
||||||
|
|
||||||
|
interface Exposed {
|
||||||
close(): void;
|
close(): void;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@cool-vue/crud",
|
"name": "@cool-vue/crud",
|
||||||
"version": "7.1.18",
|
"version": "7.1.19",
|
||||||
"private": false,
|
"private": false,
|
||||||
"main": "./dist/index.umd.min.js",
|
"main": "./dist/index.umd.min.js",
|
||||||
"typings": "types/index.d.ts",
|
"typings": "types/index.d.ts",
|
||||||
|
@ -267,7 +267,7 @@ export const ContextMenu = {
|
|||||||
|
|
||||||
render(vm, event.target.ownerDocument.createElement("div"));
|
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;
|
event: ClContextMenu.Event;
|
||||||
}, {}>;
|
}, {}>;
|
||||||
export declare const ContextMenu: {
|
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;
|
export default ClContextMenu;
|
||||||
|
Loading…
Reference in New Issue
Block a user