quasar-ui-danx 0.0.40 → 0.0.41
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/helpers/actions.ts +5 -4
package/package.json
CHANGED
package/src/helpers/actions.ts
CHANGED
@@ -2,12 +2,13 @@ import { shallowRef } from "vue";
|
|
2
2
|
import { FlashMessages } from "./index";
|
3
3
|
|
4
4
|
interface ActionOptions {
|
5
|
-
name
|
6
|
-
label
|
5
|
+
name?: string;
|
6
|
+
label?: string;
|
7
7
|
menu?: boolean;
|
8
8
|
batch?: boolean;
|
9
|
+
category?: string;
|
9
10
|
inputComponent?: (target: object[] | object) => any;
|
10
|
-
enabled?: (target: object) => boolean;
|
11
|
+
enabled?: (target: object[] | object) => boolean;
|
11
12
|
onAction?: (action: string | null, target: object, input: any) => Promise<any>;
|
12
13
|
onBatchAction?: (action: string | null, targets: object[], input: any) => Promise<any>;
|
13
14
|
onSuccess?: (action: string | null, targets: object, input: any) => any;
|
@@ -19,7 +20,7 @@ export const activeActionInput = shallowRef(null);
|
|
19
20
|
|
20
21
|
/**
|
21
22
|
* Hook to perform an action on a set of targets
|
22
|
-
* This helper allows you
|
23
|
+
* This helper allows you applyActionto perform actions by name on a set of targets using a provided list of actions
|
23
24
|
*
|
24
25
|
* @param actions
|
25
26
|
* @param {ActionOptions} globalOptions
|