nuxt-glorious 1.2.1-1 → 1.2.1-3

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-3"
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,15 @@ const props = defineProps({
24
24
  required: true,
25
25
  type: String,
26
26
  },
27
+ value: {
28
+ required: false,
29
+ default: "",
30
+ type: String,
31
+ },
32
+ checked: {
33
+ required: false,
34
+ type: Boolean,
35
+ },
27
36
  });
28
37
 
29
38
  const emits = defineEmits(["update:modelValue"]);
@@ -35,7 +44,9 @@ const emits = defineEmits(["update:modelValue"]);
35
44
  :name="props.name"
36
45
  type="radio"
37
46
  :disabled="props.disabled"
38
- @input="emits('update:modelValue', $event.currentTarget.checked)"
47
+ :value="props.value"
48
+ :checked="props.checked"
49
+ @input="emits('update:modelValue', $event?.currentTarget.value)"
39
50
  />
40
51
  <div></div>
41
52
  </label>
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1-1",
2
+ "version": "1.2.1-3",
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",