@nixweb/nixloc-ui 0.0.81 → 0.0.82
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/package.json
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
import { mapState, mapMutations } from "vuex";
|
|
16
|
+
|
|
15
17
|
export default {
|
|
16
18
|
name: "CheckboxMultiplo",
|
|
17
19
|
props: {
|
|
@@ -36,11 +38,13 @@ export default {
|
|
|
36
38
|
this.selecionado = this.valorInicial;
|
|
37
39
|
},
|
|
38
40
|
methods: {
|
|
41
|
+
...mapMutations("validation", ["insereFormSujo"]),
|
|
39
42
|
executar(event) {
|
|
43
|
+
this.insereFormSujo(true);
|
|
40
44
|
this.$emit("input", this.selecionado);
|
|
41
45
|
let self = this;
|
|
42
46
|
setTimeout(function () {
|
|
43
|
-
// adicionado o pointerId para
|
|
47
|
+
// adicionado o pointerId para prevenir que não seja executado em duplicidade
|
|
44
48
|
if (self.clicou && event.pointerId === 1) self.clicou(self.params);
|
|
45
49
|
}, 100);
|
|
46
50
|
},
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
v-if="notificacoes.length > 0 && formSujo"
|
|
11
11
|
class="requerido glyphicon fas fa-exclamation-triangle"
|
|
12
12
|
></i>
|
|
13
|
-
|
|
14
13
|
<vue-numeric
|
|
15
14
|
class="form-control"
|
|
16
15
|
v-on:keyup.enter.native="apertouEnter"
|
|
@@ -67,7 +66,11 @@ export default {
|
|
|
67
66
|
this.valor = this.value;
|
|
68
67
|
},
|
|
69
68
|
methods: {
|
|
70
|
-
...mapMutations("validation", [
|
|
69
|
+
...mapMutations("validation", [
|
|
70
|
+
"insereValidacao",
|
|
71
|
+
"removeValidacao",
|
|
72
|
+
"insereFormSujo",
|
|
73
|
+
]),
|
|
71
74
|
valida() {
|
|
72
75
|
this.notificacoes = [];
|
|
73
76
|
if (this.value == 0) return;
|
|
@@ -90,6 +93,7 @@ export default {
|
|
|
90
93
|
valor() {
|
|
91
94
|
this.valida();
|
|
92
95
|
this.formSujo = true;
|
|
96
|
+
this.insereFormSujo(true);
|
|
93
97
|
this.$emit("input", this.valor);
|
|
94
98
|
},
|
|
95
99
|
notificacoes() {
|
|
@@ -56,7 +56,11 @@ export default {
|
|
|
56
56
|
this.valida();
|
|
57
57
|
},
|
|
58
58
|
methods: {
|
|
59
|
-
...mapMutations("validation", [
|
|
59
|
+
...mapMutations("validation", [
|
|
60
|
+
"insereValidacao",
|
|
61
|
+
"removeValidacao",
|
|
62
|
+
"insereFormSujo",
|
|
63
|
+
]),
|
|
60
64
|
valida() {
|
|
61
65
|
this.notificacoes = [];
|
|
62
66
|
|
|
@@ -80,6 +84,7 @@ export default {
|
|
|
80
84
|
value() {
|
|
81
85
|
this.valida();
|
|
82
86
|
this.formSujo = true;
|
|
87
|
+
this.insereFormSujo(true);
|
|
83
88
|
},
|
|
84
89
|
notificacoes() {
|
|
85
90
|
let self = this;
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
<div class="div-logo text-center">
|
|
6
6
|
<img :src="urlImagem" />
|
|
7
7
|
</div>
|
|
8
|
-
<div class="div-hr"><hr /></div>
|
|
9
8
|
</li>
|
|
10
9
|
<li>
|
|
11
10
|
<a
|
|
@@ -146,7 +145,8 @@ export default {
|
|
|
146
145
|
}
|
|
147
146
|
|
|
148
147
|
.div-logo {
|
|
149
|
-
|
|
148
|
+
padding-top: 5px;
|
|
149
|
+
padding-bottom: 15px;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
.div-icone {
|
|
@@ -155,11 +155,6 @@ export default {
|
|
|
155
155
|
padding-top: 5px;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
.div-hr {
|
|
159
|
-
padding-left: 30px;
|
|
160
|
-
padding-right: 30px;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
158
|
.icone-fechar {
|
|
164
159
|
margin-right: 20px;
|
|
165
160
|
}
|
|
@@ -183,7 +178,7 @@ export default {
|
|
|
183
178
|
}
|
|
184
179
|
|
|
185
180
|
img {
|
|
186
|
-
height:
|
|
181
|
+
height: 27px;
|
|
187
182
|
margin-top: 10px;
|
|
188
183
|
}
|
|
189
184
|
</style>
|