@hostlink/nuxt-light 1.25.2 → 1.26.0
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/module.json
CHANGED
|
@@ -617,7 +617,14 @@ const onAdd = () => {
|
|
|
617
617
|
:style="getCellStyle(col, props.row)" :class="getCellClass(col, props.row)"><template
|
|
618
618
|
v-if="col.to" class="bg-primary">
|
|
619
619
|
<l-link :to="col.to(props.row)">{{ col.value }}</l-link>
|
|
620
|
-
</template
|
|
620
|
+
</template>
|
|
621
|
+
<template v-else-if="col.component">
|
|
622
|
+
<component :is="col.component" v-model="props.row"/>
|
|
623
|
+
</template>
|
|
624
|
+
<template v-else>
|
|
625
|
+
{{ col.value }}
|
|
626
|
+
</template>
|
|
627
|
+
</q-td>
|
|
621
628
|
</template>
|
|
622
629
|
</template>
|
|
623
630
|
</q-tr>
|
|
@@ -44,14 +44,6 @@ declare const _default: {
|
|
|
44
44
|
}[];
|
|
45
45
|
format: (value: any) => string;
|
|
46
46
|
};
|
|
47
|
-
test: {
|
|
48
|
-
label: string;
|
|
49
|
-
name: string;
|
|
50
|
-
to: (row: any) => string;
|
|
51
|
-
gqlField: string[];
|
|
52
|
-
field: (row: any) => any;
|
|
53
|
-
backgroundColor: (row: any) => "primary" | undefined;
|
|
54
|
-
};
|
|
55
47
|
has2FA: {
|
|
56
48
|
label: string;
|
|
57
49
|
searchType: string;
|
|
@@ -56,18 +56,6 @@ export default {
|
|
|
56
56
|
return ["Active", "Inactive"][value];
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
test: {
|
|
60
|
-
label: "Test",
|
|
61
|
-
name: "_test",
|
|
62
|
-
to: (row) => `/User/${row.user_id}/view`,
|
|
63
|
-
gqlField: ["user_id", "first_name"],
|
|
64
|
-
field: (row) => row.first_name,
|
|
65
|
-
backgroundColor: (row) => {
|
|
66
|
-
if (row.username == "admin") {
|
|
67
|
-
return "primary";
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
59
|
has2FA: {
|
|
72
60
|
label: "2FA",
|
|
73
61
|
searchType: "select",
|