-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.d.ts
More file actions
55 lines (49 loc) · 1.33 KB
/
index.d.ts
File metadata and controls
55 lines (49 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import Vue, { Component, PluginObject } from "vue";
// Augment Vue types
declare module "vue/types/vue" {
interface openRightModalOptions {
data?: object
fetch?: boolean;
onMutate?: (obj: object) => any;
onSelect?: (row: object, index: number) => any;
openTab?: string;
path?: string;
}
interface Vue {
/**
* @param component If providing string, make sure a component is set
* in the componentMap prop for that key
*/
$openRightModal: (component: Component | string, props?: openRightModalOptions) => void;
/**
* @param component If providing string, make sure a component is set
* in the componentMap prop for that key
*/
$closeOpenRightModal: (component: Component | string, props?: openRightModalOptions) => void;
$closeRightModal: () => void;
}
}
export const AppLayout: Vue;
export const ContentLayout: Vue;
export const DefaultInput: Vue;
export const MenuItems: Vue;
export const RightModal: Vue;
/**
* **Installs the components:**
* - ElaAppLayout
* - ElaContentLayout
* - ElaDefaultInput
* - ElaMenuItems
* - ElaRightModal
* - ElaFilterItem
* - ElaFieldset
* - ElaSchemaForm
* - ModalLink
*
* **And adds theses functions to the Vue.prototype:**
* - $openRightModal
* - $closeRightModal
* - $closeOpenRightModal
*/
declare const elAdmin: PluginObject<undefined>;
export default elAdmin;