@dcrackel/hematournamentui 1.0.81 → 1.0.83
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.
|
@@ -29184,12 +29184,22 @@ const Wp = /* @__PURE__ */ Re(MT, [["render", PT]]), NT = {
|
|
|
29184
29184
|
},
|
|
29185
29185
|
recommended: {
|
|
29186
29186
|
type: Number,
|
|
29187
|
-
|
|
29187
|
+
default: 0
|
|
29188
|
+
}
|
|
29189
|
+
},
|
|
29190
|
+
data() {
|
|
29191
|
+
return {
|
|
29192
|
+
counter: this.count
|
|
29193
|
+
};
|
|
29194
|
+
},
|
|
29195
|
+
watch: {
|
|
29196
|
+
count(n) {
|
|
29197
|
+
this.counter = n;
|
|
29188
29198
|
}
|
|
29189
29199
|
},
|
|
29190
29200
|
computed: {
|
|
29191
29201
|
isRecommended() {
|
|
29192
|
-
return this.
|
|
29202
|
+
return this.counter === this.recommended;
|
|
29193
29203
|
},
|
|
29194
29204
|
boxClass() {
|
|
29195
29205
|
return {
|
|
@@ -29201,7 +29211,7 @@ const Wp = /* @__PURE__ */ Re(MT, [["render", PT]]), NT = {
|
|
|
29201
29211
|
},
|
|
29202
29212
|
methods: {
|
|
29203
29213
|
increase() {
|
|
29204
|
-
this.counter++, this.$emit("update:count", this.counter);
|
|
29214
|
+
this.counter < 10 && (this.counter++, this.$emit("update:count", this.counter));
|
|
29205
29215
|
},
|
|
29206
29216
|
decrease() {
|
|
29207
29217
|
this.counter > 0 && (this.counter--, this.$emit("update:count", this.counter));
|
|
@@ -29234,7 +29244,7 @@ function zT(n, e, t, r, i, o) {
|
|
|
29234
29244
|
]),
|
|
29235
29245
|
P("span", FT, [
|
|
29236
29246
|
N(a, {
|
|
29237
|
-
text:
|
|
29247
|
+
text: i.counter,
|
|
29238
29248
|
size: "xl",
|
|
29239
29249
|
color: "primary"
|
|
29240
29250
|
}, null, 8, ["text"])
|