@partex/one-core 2.0.62 → 2.0.63
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.
|
@@ -4,8 +4,8 @@ type IActionButtonBase = {
|
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
icon?: any;
|
|
6
6
|
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
7
|
-
buttonText?: string;
|
|
8
|
-
confirmText?: string;
|
|
7
|
+
buttonText?: string | (() => string);
|
|
8
|
+
confirmText?: string | (() => string);
|
|
9
9
|
onClick: Fn | string;
|
|
10
10
|
};
|
|
11
11
|
interface IActionButtonNormal extends IActionButtonBase {
|
|
@@ -13,7 +13,7 @@ interface IActionButtonNormal extends IActionButtonBase {
|
|
|
13
13
|
}
|
|
14
14
|
interface IActionButtonCustom extends IActionButtonBase {
|
|
15
15
|
type: 'custom';
|
|
16
|
-
tooltipText: string;
|
|
16
|
+
tooltipText: string | (() => string);
|
|
17
17
|
}
|
|
18
18
|
interface IActionButtonGroup {
|
|
19
19
|
type: 'group';
|
|
@@ -21,7 +21,7 @@ interface IActionButtonGroup {
|
|
|
21
21
|
color?: 'default' | 'tertiary' | 'primary' | 'success' | 'info' | 'warning' | 'error';
|
|
22
22
|
disabled?: boolean | ((rowData?: ObjectKey, rowIndex?: number) => boolean);
|
|
23
23
|
loading?: boolean;
|
|
24
|
-
buttonText?: string;
|
|
24
|
+
buttonText?: string | (() => string);
|
|
25
25
|
children: Array<IActionButtonNormal | IActionButtonCustom>;
|
|
26
26
|
}
|
|
27
27
|
export type IActionSingleButton = IActionButtonNormal | IActionButtonCustom;
|