@hostlink/nuxt-light 1.24.3 → 1.25.1
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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { type FormKitInputs } from '@formkit/inputs';
|
|
3
3
|
import { useRouter, useRoute } from "vue-router";
|
|
4
4
|
import { useQuasar } from "quasar";
|
|
5
|
-
import { model } from "#imports"
|
|
5
|
+
import { computed, model } from "#imports"
|
|
6
6
|
|
|
7
7
|
const route = useRoute();
|
|
8
8
|
const router = useRouter();
|
|
@@ -90,12 +90,13 @@ if (!props.context.onSubmit) {
|
|
|
90
90
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
+
const isNoDirtyCheck = computed(() => {
|
|
94
|
+
return props.context.attrs["no-dirty-check"] !== undefined;
|
|
95
|
+
});
|
|
93
96
|
|
|
94
97
|
</script>
|
|
95
98
|
<template>
|
|
96
99
|
<form v-bind="context.attrs">
|
|
97
|
-
|
|
98
|
-
|
|
99
100
|
<l-card :bordered="bordered">
|
|
100
101
|
<q-card-section>
|
|
101
102
|
<div :class="`q-gutter-${gutter}`">
|
|
@@ -105,7 +106,7 @@ if (!props.context.onSubmit) {
|
|
|
105
106
|
|
|
106
107
|
<q-card-actions align="right" v-if="context.actions">
|
|
107
108
|
<l-btn icon="sym_o_check" :label="context.submitLabel ?? 'Submit'" @click="onSubmit"
|
|
108
|
-
:disabled="!context.state.dirty" :loading="context.state.loading"></l-btn>
|
|
109
|
+
:disabled="!isNoDirtyCheck && !context.state.dirty" :loading="context.state.loading"></l-btn>
|
|
109
110
|
</q-card-actions>
|
|
110
111
|
</l-card>
|
|
111
112
|
</form>
|
package/dist/runtime/index.d.ts
CHANGED