@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,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.40.2",
4
+ "version": "1.40.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -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
- <form v-bind="context.attrs">
79
- <l-card :bordered="bordered">
80
- <q-card-section class="row q-col-gutter-md">
81
- <slot v-bind="context"></slot>
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
- <q-card-actions align="right" v-if="context.actions">
85
- <l-btn icon="sym_o_check" :label="context.submitLabel ?? 'Submit'" @click="onSubmit"
86
- :disabled="!isNoDirtyCheck && !context.state.dirty" :loading="context.state.loading"></l-btn>
87
- </q-card-actions>
88
- </l-card>
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 __VLS_9: {
1
+ declare var __VLS_10: {
2
2
  [x: string]: any;
3
3
  };
4
4
  type __VLS_Slots = {} & {
5
- default?: (props: typeof __VLS_9) => any;
5
+ default?: (props: typeof __VLS_10) => any;
6
6
  };
7
7
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
8
  context: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.40.2",
3
+ "version": "1.40.4",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",