@hostlink/nuxt-light 1.46.2 → 1.46.4
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
|
@@ -16,9 +16,11 @@ type __VLS_PublicProps = __VLS_Props & {
|
|
|
16
16
|
"minimized"?: boolean;
|
|
17
17
|
"maximized"?: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare var
|
|
19
|
+
declare var __VLS_14: {}, __VLS_68: {};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
|
-
|
|
21
|
+
actions?: (props: typeof __VLS_14) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_68) => any;
|
|
22
24
|
};
|
|
23
25
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
26
|
close: (...args: any[]) => void;
|
|
@@ -39,6 +39,7 @@ const showBar = computed(() => {
|
|
|
39
39
|
if (props.minimizable) return true;
|
|
40
40
|
if (props.title !== void 0) return true;
|
|
41
41
|
if (showSecurity.value) return true;
|
|
42
|
+
if (attrs.value.actions) return true;
|
|
42
43
|
return false;
|
|
43
44
|
});
|
|
44
45
|
const showSecurity = computed(() => {
|
|
@@ -105,6 +106,8 @@ const onMinimize = () => {
|
|
|
105
106
|
<div>{{ $t(title ?? "") }}</div>
|
|
106
107
|
<q-space />
|
|
107
108
|
|
|
109
|
+
<slot name="actions"></slot>
|
|
110
|
+
|
|
108
111
|
<q-btn dense flat icon="sym_o_lock" persistent v-if="showSecurity">
|
|
109
112
|
<q-menu>
|
|
110
113
|
<q-list>
|
|
@@ -16,9 +16,11 @@ type __VLS_PublicProps = __VLS_Props & {
|
|
|
16
16
|
"minimized"?: boolean;
|
|
17
17
|
"maximized"?: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare var
|
|
19
|
+
declare var __VLS_14: {}, __VLS_68: {};
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
|
-
|
|
21
|
+
actions?: (props: typeof __VLS_14) => any;
|
|
22
|
+
} & {
|
|
23
|
+
default?: (props: typeof __VLS_68) => any;
|
|
22
24
|
};
|
|
23
25
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
26
|
close: (...args: any[]) => void;
|
|
@@ -21,13 +21,22 @@ function getTo(field) {
|
|
|
21
21
|
}
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
|
+
const getFormattedValue = (field, val, model) => {
|
|
25
|
+
if (field.format) {
|
|
26
|
+
if (field.format instanceof Function) {
|
|
27
|
+
return field.format(val, model);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
;
|
|
31
|
+
return val;
|
|
32
|
+
};
|
|
24
33
|
</script>
|
|
25
34
|
|
|
26
35
|
<template>
|
|
27
36
|
<q-list v-bind="$props">
|
|
28
37
|
<template v-if="fields">
|
|
29
38
|
<l-item v-for="field in fields" :label="field.label" :to="getTo(field)">
|
|
30
|
-
{{
|
|
39
|
+
{{ getFormattedValue(field, props.modelValue, props.modelValue) }}
|
|
31
40
|
</l-item>
|
|
32
41
|
|
|
33
42
|
</template>
|