morghulis 1.0.42 → 1.0.44

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
@@ -1,4 +1,5 @@
1
1
  import type { App } from 'vue';
2
+ import type { DefineComponent } from 'vue';
2
3
 
3
4
  /**
4
5
  * Morghulis库的主配置选项
@@ -96,6 +97,42 @@ export interface MBox {
96
97
  show: (content: string, title?: string, type?: MFeedback) => void;
97
98
  }
98
99
 
100
+ /**
101
+ * 对话框配置选项
102
+ */
103
+ export interface MDialogConfig {
104
+ /**
105
+ * 对话框标题
106
+ */
107
+ title?: string;
108
+ /**
109
+ * 对话框副标题
110
+ */
111
+ subtitle?: string;
112
+ }
113
+
114
+ /**
115
+ * 对话框属性选项
116
+ */
117
+ export interface MDialogProps extends MDialogConfig {
118
+ /**
119
+ * 对话框宽度
120
+ */
121
+ width?: string | number;
122
+ /**
123
+ * 对话框距顶部距离
124
+ */
125
+ top?: string;
126
+ /**
127
+ * 确认回调函数
128
+ */
129
+ confirm?: (data: any, done: () => void) => void;
130
+ /**
131
+ * 取消回调函数
132
+ */
133
+ cancel?: (data: any, done: () => void) => void;
134
+ }
135
+
99
136
  /**
100
137
  * 系统关键字常量
101
138
  */
@@ -227,4 +264,21 @@ export function useMoRequest(): {
227
264
  */
228
265
  export function createMorghulis(options?: MOptions): {
229
266
  install: (Vue: App) => void;
230
- };
267
+ };
268
+
269
+ /**
270
+ * 对话框组件
271
+ */
272
+ export const MDialog: DefineComponent<MDialogProps, {}, any>;
273
+
274
+ /**
275
+ * 对话框头部组件
276
+ */
277
+ export const MDialogHeader: DefineComponent<{
278
+ title: string,
279
+ subtitle: string,
280
+ config: MDialogConfig
281
+ }, {}, any>;
282
+
283
+ // 导出Element Plus的所有内容
284
+ export * from 'element-plus';