morghulis 1.0.48 → 1.0.50
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.css +1 -1
- package/dist/index.d.ts +31 -3
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/install-deps.cjs +89 -1
- package/package.json +6 -3
- package/types/morghulis.d.ts +146 -0
- package/types/tsconfig.json +24 -0
package/dist/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
import type { App, DefineComponent } from 'vue';
|
1
|
+
import type { App, DefineComponent, Component } from 'vue';
|
2
2
|
import type * as ElementPlus from 'element-plus';
|
3
|
+
import type { DialogProps } from 'element-plus';
|
3
4
|
|
4
5
|
// 导出Element Plus的所有类型
|
5
6
|
export * from 'element-plus';
|
@@ -118,7 +119,7 @@ export interface MDialogConfig {
|
|
118
119
|
* 对话框属性选项
|
119
120
|
* 结合了Element Plus的Dialog组件属性和自定义属性
|
120
121
|
*/
|
121
|
-
export interface MDialogProps extends Partial<
|
122
|
+
export interface MDialogProps extends Partial<DialogProps>, MDialogConfig {
|
122
123
|
/**
|
123
124
|
* 对话框宽度
|
124
125
|
*/
|
@@ -191,6 +192,18 @@ export interface MDialogProps extends Partial<ElementPlus.DialogProps>, MDialogC
|
|
191
192
|
* 是否将对话框插入到body元素
|
192
193
|
*/
|
193
194
|
appendToBody?: boolean;
|
195
|
+
/**
|
196
|
+
* 确认按钮文本
|
197
|
+
*/
|
198
|
+
confirmButtonText?: string;
|
199
|
+
/**
|
200
|
+
* 取消按钮文本
|
201
|
+
*/
|
202
|
+
cancelButtonText?: string;
|
203
|
+
/**
|
204
|
+
* 初始数据
|
205
|
+
*/
|
206
|
+
data?: any;
|
194
207
|
}
|
195
208
|
|
196
209
|
/**
|
@@ -368,4 +381,19 @@ export const MDialog: DefineComponent<MDialogProps, {}, {
|
|
368
381
|
export const MDialogHeader: DefineComponent<MDialogHeaderProps>;
|
369
382
|
|
370
383
|
// 导出Element Plus组件
|
371
|
-
export const ElementPlusComponents: typeof ElementPlus;
|
384
|
+
export const ElementPlusComponents: typeof ElementPlus;
|
385
|
+
|
386
|
+
// 默认导出
|
387
|
+
export default createMorghulis;
|
388
|
+
|
389
|
+
// 为了支持全局组件类型声明,扩展Vue的内置类型
|
390
|
+
declare module '@vue/runtime-core' {
|
391
|
+
export interface GlobalComponents {
|
392
|
+
// Morghulis组件
|
393
|
+
MDialog: DefineComponent<MDialogProps, {}, {
|
394
|
+
open: (data?: any, config?: MDialogConfig) => void;
|
395
|
+
close: () => void;
|
396
|
+
}>;
|
397
|
+
MDialogHeader: DefineComponent<MDialogHeaderProps>;
|
398
|
+
}
|
399
|
+
}
|
package/dist/index.js
CHANGED
@@ -58112,6 +58112,7 @@ export {
|
|
58112
58112
|
Lx as ElTreeV2,
|
58113
58113
|
_x as ElUpload,
|
58114
58114
|
Ax as ElWatermark,
|
58115
|
+
cr as ElementPlus,
|
58115
58116
|
xIe as ElementPlusComponents,
|
58116
58117
|
Rz as FIRST_KEYS,
|
58117
58118
|
Iz as FIRST_LAST_KEYS,
|