morghulis 1.0.44 → 1.0.46
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 +30 -7
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
import type { App } from 'vue';
|
2
|
-
import type
|
1
|
+
import type { App, DefineComponent } from 'vue';
|
2
|
+
import type * as ElementPlus from 'element-plus';
|
3
|
+
|
4
|
+
// 导出Element Plus的所有类型
|
5
|
+
export * from 'element-plus';
|
3
6
|
|
4
7
|
/**
|
5
|
-
*
|
8
|
+
* 核心配置选项
|
6
9
|
*/
|
7
10
|
export interface MOptions {
|
8
11
|
/**
|
@@ -266,10 +269,30 @@ export function createMorghulis(options?: MOptions): {
|
|
266
269
|
install: (Vue: App) => void;
|
267
270
|
};
|
268
271
|
|
272
|
+
/**
|
273
|
+
* MDialog组件类型
|
274
|
+
*/
|
275
|
+
export interface MDialogInstance {
|
276
|
+
/**
|
277
|
+
* 打开对话框
|
278
|
+
* @param data 传递给对话框的数据
|
279
|
+
* @param config 对话框配置
|
280
|
+
*/
|
281
|
+
open: (data?: any, config?: MDialogConfig) => void;
|
282
|
+
|
283
|
+
/**
|
284
|
+
* 关闭对话框
|
285
|
+
*/
|
286
|
+
close: () => void;
|
287
|
+
}
|
288
|
+
|
269
289
|
/**
|
270
290
|
* 对话框组件
|
271
291
|
*/
|
272
|
-
export const MDialog: DefineComponent<MDialogProps, {}, any
|
292
|
+
export const MDialog: DefineComponent<MDialogProps, {}, any, {}, {}, {}, {}, {
|
293
|
+
open: (data?: any, config?: MDialogConfig) => void;
|
294
|
+
close: () => void;
|
295
|
+
}>;
|
273
296
|
|
274
297
|
/**
|
275
298
|
* 对话框头部组件
|
@@ -278,7 +301,7 @@ export const MDialogHeader: DefineComponent<{
|
|
278
301
|
title: string,
|
279
302
|
subtitle: string,
|
280
303
|
config: MDialogConfig
|
281
|
-
}
|
304
|
+
}>;
|
282
305
|
|
283
|
-
// 导出Element Plus
|
284
|
-
export
|
306
|
+
// 导出Element Plus组件
|
307
|
+
export const ElementPlusComponents: typeof ElementPlus;
|