naive-ui-x 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +117 -0
- package/dist/js/naive-ui.esm.js +8215 -8236
- package/dist/js/naive-ui.js +242 -242
- package/package.json +7 -4
- package/dist/types/components/n-view-provider/n-view-provider.vue.d.ts +0 -58
- package/dist/types/components/n-view-provider/utils.d.ts +0 -10
- package/dist/types/lib/esm.d.ts +0 -3
- package/dist/types/lib/index.d.ts +0 -3
- package/dist/types/utils/NaiveComponents.d.ts +0 -97
- package/dist/types/utils/ViewEvent.d.ts +0 -79
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { ComputedRef } from 'vue';
|
|
4
|
+
import { DefineComponent } from 'vue';
|
|
5
|
+
import { GlobalThemeOverrides } from 'naive-ui';
|
|
6
|
+
import { PublicProps } from 'vue';
|
|
7
|
+
|
|
8
|
+
declare const __VLS_component: DefineComponent<NRichEditorModalProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
init: (event: {
|
|
10
|
+
mode: ComputedRef<"window" | "iframe">;
|
|
11
|
+
view: ViewEvent;
|
|
12
|
+
theme_name: ComputedRef<string | "light" | "dark">;
|
|
13
|
+
theme_style: ComputedRef<object>;
|
|
14
|
+
theme_overrides: ComputedRef<GlobalThemeOverrides>;
|
|
15
|
+
}) => any;
|
|
16
|
+
theme: (event: {
|
|
17
|
+
mode: ComputedRef<"window" | "iframe">;
|
|
18
|
+
view: ViewEvent;
|
|
19
|
+
theme_name: ComputedRef<string | "light" | "dark">;
|
|
20
|
+
theme_style: ComputedRef<object>;
|
|
21
|
+
theme_overrides: ComputedRef<GlobalThemeOverrides>;
|
|
22
|
+
}) => any;
|
|
23
|
+
}, string, PublicProps, Readonly<NRichEditorModalProps> & Readonly<{
|
|
24
|
+
onInit?: (event: {
|
|
25
|
+
mode: ComputedRef<"window" | "iframe">;
|
|
26
|
+
view: ViewEvent;
|
|
27
|
+
theme_name: ComputedRef<string | "light" | "dark">;
|
|
28
|
+
theme_style: ComputedRef<object>;
|
|
29
|
+
theme_overrides: ComputedRef<GlobalThemeOverrides>;
|
|
30
|
+
}) => any;
|
|
31
|
+
onTheme?: (event: {
|
|
32
|
+
mode: ComputedRef<"window" | "iframe">;
|
|
33
|
+
view: ViewEvent;
|
|
34
|
+
theme_name: ComputedRef<string | "light" | "dark">;
|
|
35
|
+
theme_style: ComputedRef<object>;
|
|
36
|
+
theme_overrides: ComputedRef<GlobalThemeOverrides>;
|
|
37
|
+
}) => any;
|
|
38
|
+
}>, {
|
|
39
|
+
locale: any;
|
|
40
|
+
dateLocale: any;
|
|
41
|
+
breakpoints: {
|
|
42
|
+
[p: string]: number;
|
|
43
|
+
};
|
|
44
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
45
|
+
|
|
46
|
+
declare function __VLS_template(): {
|
|
47
|
+
attrs: Partial<{}>;
|
|
48
|
+
slots: {
|
|
49
|
+
default?(_: {}): any;
|
|
50
|
+
};
|
|
51
|
+
refs: {};
|
|
52
|
+
rootEl: any;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
56
|
+
|
|
57
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
58
|
+
new (): {
|
|
59
|
+
$slots: S;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export declare function deepClone(obj: any): any;
|
|
64
|
+
|
|
65
|
+
export declare function deepMerge(target: any, source: any): any;
|
|
66
|
+
|
|
67
|
+
export declare function getRequestBaseURL(path?: any, query?: any): Promise<any>;
|
|
68
|
+
|
|
69
|
+
export declare function message(options: any): void;
|
|
70
|
+
|
|
71
|
+
export declare function notification(options: any): void;
|
|
72
|
+
|
|
73
|
+
declare interface NRichEditorModalProps {
|
|
74
|
+
locale?: any;
|
|
75
|
+
dateLocale?: any;
|
|
76
|
+
breakpoints?: {
|
|
77
|
+
[p: string]: number;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export declare const NViewProvider: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
|
+
|
|
83
|
+
export declare function useOnline(interval?: number, timeout?: number): {
|
|
84
|
+
status: ComputedRef<boolean>;
|
|
85
|
+
stop: () => void;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare function useViewEvent(): ViewEvent;
|
|
89
|
+
|
|
90
|
+
declare type ViewEvent = {
|
|
91
|
+
on: (event: any, callback: any, once?: boolean) => {
|
|
92
|
+
event: any;
|
|
93
|
+
callback: any;
|
|
94
|
+
once: boolean;
|
|
95
|
+
};
|
|
96
|
+
ononce: (event: any, callback: any) => {
|
|
97
|
+
event: any;
|
|
98
|
+
callback: any;
|
|
99
|
+
once: boolean;
|
|
100
|
+
};
|
|
101
|
+
onclose: (callback: any) => Function;
|
|
102
|
+
off: (listener: any) => boolean;
|
|
103
|
+
emit: (event: any, data?: any) => boolean;
|
|
104
|
+
register: (name: string, callback: any) => {
|
|
105
|
+
event: any;
|
|
106
|
+
callback: any;
|
|
107
|
+
once: boolean;
|
|
108
|
+
};
|
|
109
|
+
call: (event: string, data?: any, timeout?: number, interval?: number) => Promise<any>;
|
|
110
|
+
close: (delay?: number) => void;
|
|
111
|
+
destroy: () => void;
|
|
112
|
+
getWindow: () => Window;
|
|
113
|
+
getMode: () => string | 'iframe' | 'window';
|
|
114
|
+
getParent: () => Window;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export { }
|