aloha-vue 1.2.36 → 1.2.38
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/package.json
CHANGED
|
@@ -61,7 +61,7 @@ export default function ActionsAPI(props, { emit }) {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
const onCancelMultipleActions = () => {
|
|
64
|
-
emit("toggleMultipleActionsActive");
|
|
64
|
+
emit("toggleMultipleActionsActive", { action: currentMultipleActions.value });
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
const multipleActionsFiltered = computed(() => {
|
|
@@ -54,6 +54,20 @@ export default function RowActionsAPI(props) {
|
|
|
54
54
|
return undefined;
|
|
55
55
|
};
|
|
56
56
|
|
|
57
|
+
const getRowActionHtml = ({ rowAction }) => {
|
|
58
|
+
if (rowAction.html) {
|
|
59
|
+
return rowAction.html;
|
|
60
|
+
}
|
|
61
|
+
if (isFunction(rowAction.htmlCallback)) {
|
|
62
|
+
return rowAction.htmlCallback({
|
|
63
|
+
row: row.value,
|
|
64
|
+
rowIndex: rowIndex.value,
|
|
65
|
+
rowAction,
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
return undefined;
|
|
69
|
+
};
|
|
70
|
+
|
|
57
71
|
const getRowActionTitle = ({ rowAction }) => {
|
|
58
72
|
if (rowAction.title) {
|
|
59
73
|
return rowAction.title;
|
|
@@ -212,6 +226,10 @@ export default function RowActionsAPI(props) {
|
|
|
212
226
|
if (TEXT) {
|
|
213
227
|
rowAction.text = TEXT;
|
|
214
228
|
}
|
|
229
|
+
const HTML = getRowActionHtml({ rowAction });
|
|
230
|
+
if (HTML) {
|
|
231
|
+
rowAction.html = HTML;
|
|
232
|
+
}
|
|
215
233
|
const TITLE = getRowActionTitle({ rowAction });
|
|
216
234
|
if (TITLE) {
|
|
217
235
|
rowAction.title = TITLE;
|