nuxt-glorious 1.2.3-5 → 1.2.3-7
Sign up to get free protection for your applications and to get access to all the features.
package/dist/module.json
CHANGED
@@ -7,29 +7,34 @@ const props = defineProps({
|
|
7
7
|
},
|
8
8
|
color: {
|
9
9
|
required: false,
|
10
|
-
default:
|
11
|
-
type: String as () =>
|
10
|
+
default: 'green',
|
11
|
+
type: String as () => 'orange' | 'blue' | 'gray' | 'red' | 'green',
|
12
12
|
},
|
13
13
|
size: {
|
14
14
|
required: false,
|
15
|
-
default:
|
16
|
-
type: String as () =>
|
15
|
+
default: 'md',
|
16
|
+
type: String as () => 'xl' | 'lg' | 'md' | 'sm' | 'xs',
|
17
17
|
},
|
18
18
|
disabled: {
|
19
19
|
required: false,
|
20
20
|
default: false,
|
21
21
|
type: Boolean,
|
22
22
|
},
|
23
|
-
})
|
23
|
+
})
|
24
24
|
|
25
|
-
const emits = defineEmits([
|
25
|
+
const emits = defineEmits(['update:modelValue'])
|
26
26
|
|
27
27
|
const inputFunction = (event: any) =>
|
28
|
-
emits(
|
28
|
+
emits('update:modelValue', event.currentTarget.checked)
|
29
|
+
|
30
|
+
emits('update:modelValue', false)
|
29
31
|
</script>
|
30
32
|
|
31
33
|
<template>
|
32
|
-
<label
|
34
|
+
<label
|
35
|
+
class="glorious-checkbox"
|
36
|
+
:class="[props.color, `size-${props.size}`]"
|
37
|
+
>
|
33
38
|
<input
|
34
39
|
type="checkbox"
|
35
40
|
:disabled="props.disabled"
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { defineNuxtRouteMiddleware } from "#imports";
|
2
2
|
import { GloriousStore } from "../stores/GloriousStore.mjs";
|
3
|
-
export default defineNuxtRouteMiddleware(() => {
|
3
|
+
export default defineNuxtRouteMiddleware((to, from) => {
|
4
|
+
if (to.path === from.path) return;
|
4
5
|
const gs = GloriousStore();
|
5
6
|
Object.entries(gs.response).forEach((element) => {
|
6
7
|
if (!gs.keepResponse.includes(element[0])) delete gs.response[element[0]];
|
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"version": "1.2.3-
|
2
|
+
"version": "1.2.3-7",
|
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",
|