morghulis 1.0.44 → 1.0.47
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 +43 -10
- package/dist/index.js +5689 -5685
- package/dist/index.js.map +1 -1
- package/install-deps.cjs +85 -0
- package/package.json +9 -4
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
|
/**
|
@@ -268,17 +271,47 @@ export function createMorghulis(options?: MOptions): {
|
|
268
271
|
|
269
272
|
/**
|
270
273
|
* 对话框组件
|
274
|
+
* 支持的属性和方法完整列表
|
271
275
|
*/
|
272
|
-
export const MDialog: DefineComponent<
|
276
|
+
export const MDialog: DefineComponent<{
|
277
|
+
/** 对话框标题 */
|
278
|
+
title?: string;
|
279
|
+
/** 对话框副标题 */
|
280
|
+
subtitle?: string;
|
281
|
+
/** 对话框宽度 */
|
282
|
+
width?: string | number;
|
283
|
+
/** 对话框距顶部距离 */
|
284
|
+
top?: string;
|
285
|
+
/** 确认回调函数 */
|
286
|
+
confirm?: (data: any, done: () => void) => void;
|
287
|
+
/** 取消回调函数 */
|
288
|
+
cancel?: (data: any, done: () => void) => void;
|
289
|
+
/** 自定义类名 */
|
290
|
+
class?: string | object | string[];
|
291
|
+
/** 是否显示关闭按钮 */
|
292
|
+
'close-on-click-modal'?: boolean;
|
293
|
+
/** 是否显示遮罩层 */
|
294
|
+
modal?: boolean;
|
295
|
+
/** 是否可拖拽 */
|
296
|
+
draggable?: boolean;
|
297
|
+
}, {}, any, {}, {}, {}, {}, {
|
298
|
+
/** 打开对话框 */
|
299
|
+
open: (data?: any, config?: MDialogConfig) => void;
|
300
|
+
/** 关闭对话框 */
|
301
|
+
close: () => void;
|
302
|
+
}>;
|
273
303
|
|
274
304
|
/**
|
275
305
|
* 对话框头部组件
|
276
306
|
*/
|
277
307
|
export const MDialogHeader: DefineComponent<{
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
308
|
+
/** 标题 */
|
309
|
+
title: string;
|
310
|
+
/** 副标题 */
|
311
|
+
subtitle: string;
|
312
|
+
/** 配置选项 */
|
313
|
+
config: MDialogConfig;
|
314
|
+
}>;
|
282
315
|
|
283
|
-
// 导出Element Plus
|
284
|
-
export
|
316
|
+
// 导出Element Plus组件
|
317
|
+
export const ElementPlusComponents: typeof ElementPlus;
|