@hostlink/nuxt-light 1.20.1 → 1.20.3
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
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
<script setup>
|
|
1
|
+
<script setup lang="ts">
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const modelValue = defineModel<{
|
|
4
|
+
createdTime: string,
|
|
5
|
+
createdBy: string,
|
|
6
|
+
updatedTime: string,
|
|
7
|
+
updatedBy: string,
|
|
8
|
+
}>({
|
|
9
|
+
required: true
|
|
8
10
|
})
|
|
9
11
|
|
|
10
12
|
</script>
|
|
@@ -17,5 +19,4 @@ defineProps({
|
|
|
17
19
|
<l-item label="Updated by" v-if="modelValue.updatedBy">{{ modelValue.updatedBy }}</l-item>
|
|
18
20
|
</l-list>
|
|
19
21
|
</l-card>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
+
</template>
|
|
@@ -3,35 +3,33 @@ import type { QItemProps } from 'quasar';
|
|
|
3
3
|
|
|
4
4
|
export interface LItemProps extends QItemProps {
|
|
5
5
|
label?: string;
|
|
6
|
-
type?: 'text' | 'caption';
|
|
7
6
|
name?: string;
|
|
8
7
|
top?: boolean;
|
|
8
|
+
labelTop?: boolean;
|
|
9
|
+
alignItems?: 'flex-start' | 'center' | 'flex-end';
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
withDefaults(defineProps<LItemProps>(), {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
top: false,
|
|
14
|
+
labelTop: false,
|
|
15
|
+
alignItems: 'flex-end'
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
</script>
|
|
19
20
|
<template>
|
|
20
21
|
<q-item v-bind="$props">
|
|
21
|
-
<q-item-section side
|
|
22
|
+
<q-item-section side v-if=$slots.avatar>
|
|
23
|
+
<slot name="avatar"></slot>
|
|
24
|
+
</q-item-section>
|
|
25
|
+
|
|
26
|
+
<q-item-section side v-if="label" :top="labelTop">
|
|
22
27
|
<q-item-label>{{ $t(label) }}</q-item-label>
|
|
23
|
-
<q-item-label caption v-if="type == 'caption'">
|
|
24
|
-
<div style="white-space: pre-wrap;">
|
|
25
|
-
<slot></slot>
|
|
26
|
-
</div>
|
|
27
|
-
</q-item-label>
|
|
28
28
|
</q-item-section>
|
|
29
29
|
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
</q-item-section>
|
|
34
|
-
</template>
|
|
30
|
+
<q-item-section :style="{ alignItems }">
|
|
31
|
+
<slot></slot>
|
|
32
|
+
</q-item-section>
|
|
35
33
|
|
|
36
34
|
<q-item-section side v-if=$slots.end>
|
|
37
35
|
<slot name="end"></slot>
|
|
@@ -10,7 +10,7 @@ export default async function(fields = []) {
|
|
|
10
10
|
const id = parseInt(route.params[id_name]);
|
|
11
11
|
const filters = {};
|
|
12
12
|
filters[id_name] = id;
|
|
13
|
-
if (fields instanceof Object) {
|
|
13
|
+
if (fields instanceof Object && !(fields instanceof Array)) {
|
|
14
14
|
fields = [fields];
|
|
15
15
|
}
|
|
16
16
|
if (fields instanceof Array && fields.length == 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.3",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@azure/msal-browser": "^3.26.1",
|
|
36
36
|
"@formkit/drag-and-drop": "^0.1.6",
|
|
37
|
-
"@hostlink/light": "^2.
|
|
37
|
+
"@hostlink/light": "^2.3.1",
|
|
38
38
|
"@nuxt/kit": "^3.7.4",
|
|
39
39
|
"@nuxt/module-builder": "^0.8.3",
|
|
40
40
|
"@quasar/extras": "^1.16.11",
|