nuxt-glorious 1.2.9-9-5 → 1.2.9-9-6
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,14 +1,19 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { useId } from '#imports'
|
3
3
|
|
4
|
-
const
|
4
|
+
const filler = ref(true)
|
5
|
+
const id = useId()
|
6
|
+
const value = [5, 4, 3, 2, 1]
|
7
|
+
const modelValue: any = defineModel()
|
5
8
|
const computeModelValue = (event: Event) => {
|
9
|
+
const check = document.querySelectorAll(`input[name=star-name${id}]`)
|
10
|
+
check.forEach((item) => {
|
11
|
+
item.nextElementSibling?.classList.remove('checked')
|
12
|
+
})
|
13
|
+
filler.value = false
|
6
14
|
const target = event.target as HTMLInputElement
|
7
15
|
modelValue.value = target.value
|
8
16
|
}
|
9
|
-
|
10
|
-
const id = useId()
|
11
|
-
const value = [5, 4, 3, 2, 1]
|
12
17
|
</script>
|
13
18
|
|
14
19
|
<template>
|
@@ -17,6 +22,7 @@ const value = [5, 4, 3, 2, 1]
|
|
17
22
|
v-for="(item, index) in 5"
|
18
23
|
:key="index"
|
19
24
|
>
|
25
|
+
{{ value[index] < modelValue }}
|
20
26
|
<input
|
21
27
|
type="radio"
|
22
28
|
:id="`star${item}-${id}`"
|
@@ -24,7 +30,10 @@ const value = [5, 4, 3, 2, 1]
|
|
24
30
|
:value="value[index]"
|
25
31
|
@input="computeModelValue"
|
26
32
|
/>
|
27
|
-
<label
|
33
|
+
<label
|
34
|
+
:for="`star${item}-${id}`"
|
35
|
+
:class="[value[index] < modelValue + 1 && filler ? 'checked' : '']"
|
36
|
+
/>
|
28
37
|
</template>
|
29
38
|
</div>
|
30
39
|
</template>
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.2.9-9-
|
2
|
+
"version": "1.2.9-9-6",
|
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",
|