morghulis 1.0.46 → 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 CHANGED
@@ -269,28 +269,35 @@ export function createMorghulis(options?: MOptions): {
269
269
  install: (Vue: App) => void;
270
270
  };
271
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
-
289
272
  /**
290
273
  * 对话框组件
274
+ * 支持的属性和方法完整列表
291
275
  */
292
- export const MDialog: DefineComponent<MDialogProps, {}, any, {}, {}, {}, {}, {
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
+ /** 打开对话框 */
293
299
  open: (data?: any, config?: MDialogConfig) => void;
300
+ /** 关闭对话框 */
294
301
  close: () => void;
295
302
  }>;
296
303
 
@@ -298,9 +305,12 @@ export const MDialog: DefineComponent<MDialogProps, {}, any, {}, {}, {}, {}, {
298
305
  * 对话框头部组件
299
306
  */
300
307
  export const MDialogHeader: DefineComponent<{
301
- title: string,
302
- subtitle: string,
303
- config: MDialogConfig
308
+ /** 标题 */
309
+ title: string;
310
+ /** 副标题 */
311
+ subtitle: string;
312
+ /** 配置选项 */
313
+ config: MDialogConfig;
304
314
  }>;
305
315
 
306
316
  // 导出Element Plus组件