morghulis 1.0.14 → 1.0.15
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/package.json +1 -1
- package/types/index.d.ts +19 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
@@ -50,7 +50,23 @@ export declare function createMorghulis(options?: MorOption): {
|
|
50
50
|
};
|
51
51
|
|
52
52
|
// 导出MDialog组件
|
53
|
-
export declare const MDialog: typeof import('../src/components/dialog/MDialog.vue')['default']
|
53
|
+
export declare const MDialog: typeof import('../src/components/dialog/MDialog.vue')['default'] & {
|
54
|
+
new (): {
|
55
|
+
$props: MorDialogProps & {
|
56
|
+
modelValue?: boolean;
|
57
|
+
};
|
58
|
+
$slots: {
|
59
|
+
default: (props: { data: any }) => any;
|
60
|
+
title: (props: { data: any }) => any;
|
61
|
+
'sub-title': (props: { data: any }) => any;
|
62
|
+
header: (props: { data: any }) => any;
|
63
|
+
footer: (props: { data: any }) => any;
|
64
|
+
};
|
65
|
+
$emit: (event: 'update:modelValue' | 'close' | 'update:title' | 'update:subTitle', value: any) => void;
|
66
|
+
open: (data?: any, config?: { title: string, subTitle: string }) => void;
|
67
|
+
close: () => void;
|
68
|
+
};
|
69
|
+
};
|
54
70
|
|
55
71
|
// 声明全局组件类型
|
56
72
|
declare module '@vue/runtime-core' {
|
@@ -69,6 +85,8 @@ declare module '@vue/runtime-core' {
|
|
69
85
|
footer: (props: { data: any }) => any;
|
70
86
|
};
|
71
87
|
$emit: (event: 'update:modelValue' | 'close' | 'update:title' | 'update:subTitle', value: any) => void;
|
88
|
+
open: (data?: any, config?: { title: string, subTitle: string }) => void;
|
89
|
+
close: () => void;
|
72
90
|
};
|
73
91
|
};
|
74
92
|
|