@hostlink/nuxt-light 1.1.5 → 1.1.7

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,5 +1,5 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.1.5"
4
+ "version": "1.1.7"
5
5
  }
@@ -9,7 +9,7 @@ const emits = defineEmits(["update:modelValue"]);
9
9
  const { t } = useI18n();
10
10
  const light = useLight();
11
11
  interface LSelectProps extends QSelectProps {
12
- required?: boolean
12
+ required?: boolean,
13
13
  }
14
14
 
15
15
 
@@ -30,6 +30,7 @@ const props = withDefaults(defineProps<LSelectProps>(), {
30
30
  dense: undefined,
31
31
  square: undefined,
32
32
  stackLabel: undefined,
33
+
33
34
  })
34
35
 
35
36
 
@@ -131,7 +132,6 @@ const localValue = computed({
131
132
 
132
133
  </script>
133
134
  <template>
134
- {{ select_options }}
135
135
  <q-select v-bind="attrs" v-model="localValue" :options="select_options" @filter="filterFn" :option-label="optionLabel"
136
136
  hide-bottom-space :rules="rules" :clearable="clearable" />
137
137
  </template>
@@ -7,11 +7,14 @@ const props = defineProps({
7
7
 
8
8
  const { error, errorMessage } = getErrorMessage(props.context.node);
9
9
 
10
+
11
+
10
12
  const value = computed({
11
13
  get: () => props.context.value,
12
14
  set: (val) => props.context.node.input(val)
13
15
  })
14
16
 
17
+ console.log(props.context.node.props.parsedRules);
15
18
 
16
19
  //check required in parsedRules
17
20
  let required = false;
@@ -29,11 +32,11 @@ if (required) { //no clearable
29
32
  clearable = true;
30
33
  }
31
34
 
32
-
33
35
  </script>
34
36
  <template>
37
+ {{ required }}
35
38
  <l-select v-model="value" :label="context.label" v-bind="context.attrs" :error="error" :error-message="errorMessage"
36
- :clearable="clearable">
39
+ :clearable="clearable" :required="required">
37
40
  <template v-for="(s, name) in $slots" v-slot:[name]="props" :key="name">
38
41
  <slot :name="name" v-bind="props ?? {}"></slot>
39
42
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": "@hostlink/nuxt-light",
6
6
  "license": "MIT",