nuxt-glorious 1.2.1-1 → 1.2.1-2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "glorious",
3
3
  "configKey": "glorious",
4
- "version": "1.2.1-1"
4
+ "version": "1.2.1-2"
5
5
  }
@@ -3,7 +3,7 @@ const props = defineProps({
3
3
  modelValue: {
4
4
  required: false,
5
5
  default: true,
6
- type: Boolean,
6
+ type: [Boolean, String, Object],
7
7
  },
8
8
  color: {
9
9
  required: false,
@@ -24,6 +24,11 @@ const props = defineProps({
24
24
  required: true,
25
25
  type: String,
26
26
  },
27
+ value: {
28
+ required: false,
29
+ default: "",
30
+ type: String,
31
+ },
27
32
  });
28
33
 
29
34
  const emits = defineEmits(["update:modelValue"]);
@@ -35,7 +40,8 @@ const emits = defineEmits(["update:modelValue"]);
35
40
  :name="props.name"
36
41
  type="radio"
37
42
  :disabled="props.disabled"
38
- @input="emits('update:modelValue', $event.currentTarget.checked)"
43
+ :value="props.value"
44
+ @input="emits('update:modelValue', $event?.currentTarget.value)"
39
45
  />
40
46
  <div></div>
41
47
  </label>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1-1",
2
+ "version": "1.2.1-2",
3
3
  "name": "nuxt-glorious",
4
4
  "description": "This package provides many things needed by a project, including server requests and authentication, SEO and other requirements of a project.",
5
5
  "repository": "sajadhzj/nuxt-glorious",