morghulis 2.0.68 → 2.0.69
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/morghulis.es.js +326 -319
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +3 -3
- package/dist/morghulis.umd.js.map +1 -1
- package/package.json +1 -1
- package/types/index.d.ts +66 -1
package/package.json
CHANGED
package/types/index.d.ts
CHANGED
@@ -41,6 +41,36 @@ export interface MorDialogProps {
|
|
41
41
|
data?: any
|
42
42
|
};
|
43
43
|
|
44
|
+
// 定义MorButtonProps接口
|
45
|
+
export interface MorButtonProps {
|
46
|
+
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text' | 'default',
|
47
|
+
size?: 'large' | 'default' | 'small',
|
48
|
+
text?: string,
|
49
|
+
icon?: string,
|
50
|
+
round?: boolean,
|
51
|
+
circle?: boolean,
|
52
|
+
loading?: boolean,
|
53
|
+
disabled?: boolean,
|
54
|
+
color?: string,
|
55
|
+
dark?: boolean,
|
56
|
+
plain?: boolean,
|
57
|
+
autofocus?: boolean,
|
58
|
+
nativeType?: 'button' | 'submit' | 'reset',
|
59
|
+
tag?: string,
|
60
|
+
width?: number | string,
|
61
|
+
height?: number | string,
|
62
|
+
borderRadius?: number | string,
|
63
|
+
dialogProps?: any,
|
64
|
+
onClick?: ((e: MouseEvent) => void) | null,
|
65
|
+
onClickDialog?: ((close: () => void) => void) | null,
|
66
|
+
}
|
67
|
+
|
68
|
+
// 定义MorButtonInstance接口
|
69
|
+
export interface MorButtonInstance {
|
70
|
+
openDialog: (data?: any, config?: any) => void,
|
71
|
+
closeDialog: () => void
|
72
|
+
}
|
73
|
+
|
44
74
|
// 定义MorDialogConfig接口
|
45
75
|
export interface MorDialogConfig {
|
46
76
|
title: string,
|
@@ -62,7 +92,7 @@ export interface MorghulisAuthorize {
|
|
62
92
|
}
|
63
93
|
|
64
94
|
// 导出接口
|
65
|
-
export { MorDialogProps, MorOption, MorghulisAuthorize };
|
95
|
+
export { MorDialogProps, MorButtonProps, MorOption, MorghulisAuthorize };
|
66
96
|
|
67
97
|
export declare function createMorghulis(options?: MorOption): {
|
68
98
|
install: (Vue: App) => void;
|
@@ -123,6 +153,40 @@ export declare const MDialog: DefineComponent<
|
|
123
153
|
close: () => void;
|
124
154
|
};
|
125
155
|
|
156
|
+
// 导出MButton组件
|
157
|
+
export declare const MButton: DefineComponent<
|
158
|
+
MorButtonProps,
|
159
|
+
{},
|
160
|
+
{},
|
161
|
+
{},
|
162
|
+
{},
|
163
|
+
ComponentOptionsMixin,
|
164
|
+
ComponentOptionsMixin,
|
165
|
+
{},
|
166
|
+
string,
|
167
|
+
VNodeProps & AllowedComponentProps & ComponentCustomProps,
|
168
|
+
Readonly<MorButtonProps>,
|
169
|
+
{
|
170
|
+
type: string;
|
171
|
+
size: string;
|
172
|
+
round: boolean;
|
173
|
+
circle: boolean;
|
174
|
+
loading: boolean;
|
175
|
+
disabled: boolean;
|
176
|
+
dark: boolean;
|
177
|
+
plain: boolean;
|
178
|
+
autofocus: boolean;
|
179
|
+
nativeType: string;
|
180
|
+
tag: string;
|
181
|
+
}
|
182
|
+
> & {
|
183
|
+
openDialog: (data?: any, config?: any) => void;
|
184
|
+
closeDialog: () => void;
|
185
|
+
};
|
186
|
+
|
187
|
+
// 导出别名Button
|
188
|
+
export declare const Button: typeof MButton;
|
189
|
+
|
126
190
|
// 导出MCell组件
|
127
191
|
export declare const MCell: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<{}>, {}>;
|
128
192
|
|
@@ -140,6 +204,7 @@ declare module '@vue/runtime-core' {
|
|
140
204
|
export interface GlobalComponents {
|
141
205
|
// Morghulis组件
|
142
206
|
MDialog: typeof MDialog;
|
207
|
+
MButton: typeof MButton;
|
143
208
|
|
144
209
|
// Element Plus组件
|
145
210
|
ElButton: typeof ElButton;
|