morghulis 2.0.61 → 2.0.62
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.
@@ -1,4 +1,4 @@
|
|
1
1
|
import { DefineComponent } from 'vue';
|
2
2
|
import { ButtonProps, ButtonEmits, ButtonExpose } from './MButton';
|
3
|
-
declare const MButton: DefineComponent<ButtonProps, {}, {}, {}, {}, {}, {}, ButtonEmits, string, Readonly<ButtonProps>, ButtonExpose
|
3
|
+
declare const MButton: DefineComponent<ButtonProps, {}, {}, {}, {}, {}, {}, ButtonEmits, string, Readonly<ButtonProps>, Partial<ButtonExpose>>;
|
4
4
|
export default MButton;
|
package/package.json
CHANGED
@@ -1,46 +0,0 @@
|
|
1
|
-
import { DefineComponent } from 'vue';
|
2
|
-
|
3
|
-
|
4
|
-
export type ButtonColor = 'primary' | 'success' | 'warning' | 'danger' | 'info'
|
5
|
-
export type ButtonSize = 'small' | 'medium' | 'large'
|
6
|
-
|
7
|
-
export interface ButtonProps {
|
8
|
-
/**
|
9
|
-
* 按钮颜色
|
10
|
-
*/
|
11
|
-
color?: ButtonColor
|
12
|
-
/**
|
13
|
-
* 是否为圆角按钮
|
14
|
-
*/
|
15
|
-
round?: boolean
|
16
|
-
/**
|
17
|
-
* 按钮尺寸
|
18
|
-
*/
|
19
|
-
size?: ButtonSize
|
20
|
-
/**
|
21
|
-
* 是否禁用
|
22
|
-
*/
|
23
|
-
disabled?: boolean
|
24
|
-
/**
|
25
|
-
* 自定义弹窗消息
|
26
|
-
*/
|
27
|
-
popupMessage?: string
|
28
|
-
}
|
29
|
-
|
30
|
-
export interface ButtonEmits {
|
31
|
-
(e: 'click', event: MouseEvent): void
|
32
|
-
(e: 'popup', message: string): void
|
33
|
-
}
|
34
|
-
|
35
|
-
export interface ButtonExpose {
|
36
|
-
/**
|
37
|
-
* 显示弹窗
|
38
|
-
* @param message 弹窗消息
|
39
|
-
*/
|
40
|
-
popup?: (message: string) => string
|
41
|
-
}
|
42
|
-
|
43
|
-
declare const MButton: DefineComponent<ButtonProps, {}, {}, {}, {}, {}, {}, ButtonEmits, string, Readonly<ButtonProps>, Partial<ButtonExpose>>
|
44
|
-
|
45
|
-
export default MButton
|
46
|
-
export function popup(message: string): void
|