@hostlink/nuxt-light 1.28.0 → 1.28.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.28.0",
4
+ "version": "1.28.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.5.0"
@@ -1,10 +1,8 @@
1
1
  <script setup>
2
- import { computed, ref, useAttrs } from "vue";
2
+ import { computed, ref } from "vue";
3
3
  import { useI18n } from "vue-i18n";
4
4
  import tc2sc from "../lib/tc2sc";
5
- import { useLight } from "#imports";
6
5
  const { t } = useI18n();
7
- const light = useLight();
8
6
  const props = defineProps({
9
7
  showPassword: { type: Boolean, required: false },
10
8
  translate: { type: Boolean, required: false },
@@ -62,7 +60,7 @@ const props = defineProps({
62
60
  onBlur: { type: Function, required: false },
63
61
  onClear: { type: Function, required: false }
64
62
  });
65
- const modelValue = defineModel({ type: [String, Number, Unknown, null] });
63
+ const modelValue = props.modelValue;
66
64
  const new_rules = props.rules || [];
67
65
  if (props.required) {
68
66
  new_rules.push((val) => !!val || t("input_required", [t(props.label ?? "")]));
@@ -161,6 +159,6 @@ const onClickTc2Sc = () => {
161
159
  <q-icon name="sym_o_visibility_off" class="cursor-pointer" :color="showPassword ? 'grey-5' : 'primary'"
162
160
  @click="isShowPassword = true" v-else />
163
161
  </template>
164
-
162
+
165
163
  </q-input>
166
164
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.28.0",
3
+ "version": "1.28.1",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",