@hostlink/nuxt-light 1.40.2 → 1.40.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
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { toQuery } from "@hostlink/light";
|
|
2
|
-
import { useRoute } from "vue-router";
|
|
3
2
|
import { default as getModelField } from "./getModelField.js";
|
|
4
3
|
import { default as collect } from "./collect.js";
|
|
5
4
|
import { defu } from "defu";
|
|
6
|
-
import { useAsyncData } from "#app";
|
|
5
|
+
import { useAsyncData, useRoute } from "#app";
|
|
6
|
+
let route = useRoute();
|
|
7
7
|
export default function(fields) {
|
|
8
|
-
let route = useRoute();
|
|
9
8
|
if (!route.name) {
|
|
10
9
|
return;
|
|
11
10
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {} from "@formkit/inputs";
|
|
3
2
|
import { useRouter, useRoute } from "vue-router";
|
|
4
3
|
import { useQuasar } from "quasar";
|
|
5
4
|
import { computed, model } from "#imports";
|
|
@@ -72,19 +71,23 @@ if (!props.context.onSubmit) {
|
|
|
72
71
|
const isNoDirtyCheck = computed(() => {
|
|
73
72
|
return props.context.attrs["no-dirty-check"] !== void 0;
|
|
74
73
|
});
|
|
74
|
+
const localClass = computed(() => {
|
|
75
|
+
if (props.context.attrs.class) {
|
|
76
|
+
return props.context.attrs.class;
|
|
77
|
+
}
|
|
78
|
+
return "row q-col-gutter-md";
|
|
79
|
+
});
|
|
75
80
|
</script>
|
|
76
81
|
|
|
77
82
|
<template>
|
|
78
|
-
<
|
|
79
|
-
<
|
|
80
|
-
<
|
|
81
|
-
|
|
82
|
-
</q-card-section>
|
|
83
|
+
<l-card :bordered="bordered">
|
|
84
|
+
<q-card-section :class="localClass">
|
|
85
|
+
<slot v-bind="context"></slot>
|
|
86
|
+
</q-card-section>
|
|
83
87
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
</form>
|
|
88
|
+
<q-card-actions align="right" v-if="context.actions">
|
|
89
|
+
<l-btn icon="sym_o_check" :label="context.submitLabel ?? 'Submit'" @click="onSubmit"
|
|
90
|
+
:disabled="!isNoDirtyCheck && !context.state.dirty" :loading="context.state.loading"></l-btn>
|
|
91
|
+
</q-card-actions>
|
|
92
|
+
</l-card>
|
|
90
93
|
</template>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare var
|
|
1
|
+
declare var __VLS_10: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
};
|
|
4
4
|
type __VLS_Slots = {} & {
|
|
5
|
-
default?: (props: typeof
|
|
5
|
+
default?: (props: typeof __VLS_10) => any;
|
|
6
6
|
};
|
|
7
7
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
8
|
context: {
|