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