@burh/nuxt-core 1.0.56 → 1.0.57

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.
@@ -7,12 +7,13 @@
7
7
  </template>
8
8
 
9
9
  <div class="col-12 d-flex">
10
-
11
10
  <div
11
+ id="role"
12
12
  tag="div"
13
- class="d-block"
13
+ class="d-flex flex-column mb-3"
14
14
  name="role"
15
15
  >
16
+ <label for="role" class="form-control-label">Cargos</label>
16
17
  <el-select
17
18
  class="select-danger"
18
19
  v-model="firstFieldValue"
@@ -115,32 +115,37 @@ export default {
115
115
  if (this.value > 1) {
116
116
  this.$emit('input', this.value - 1);
117
117
  }
118
- }
119
- },
120
- watch: {
121
- perPage() {
122
- this.$emit('input', 1);
123
118
  },
124
- total() {
125
- this.$emit('input', 1);
126
- },
127
- value(newValue, oldValue) {
119
+ display(value) {
128
120
  const pagesToDisplay = this.pagesName.length >= 5 ? 5 : this.pagesName.length;
129
- if(newValue < 5) {
121
+
122
+ if(value < 5) {
130
123
  this.minPage = 1;
131
124
  this.maxPage = pagesToDisplay;
132
125
  }
133
126
  else {
134
- if(newValue < this.minPage) {
135
- this.minPage = newValue;
127
+ if(value < this.minPage) {
128
+ this.minPage = value;
136
129
  this.maxPage = this.minPage + 4;
137
130
  }
138
- if(newValue > this.maxPage) {
139
- this.maxPage = newValue;
131
+ if(value > this.maxPage) {
132
+ this.maxPage = value;
140
133
  this.minPage = this.maxPage - 4;
141
134
  }
142
135
  }
143
- }
136
+ }
137
+ },
138
+ watch: {
139
+ perPage() {
140
+ this.$emit('input', 1);
141
+ },
142
+ total(newValue, old) {
143
+ this.$emit('input', 1);
144
+ this.display(this.value);
145
+ },
146
+ value(newValue, oldValue) {
147
+ this.display(newValue)
148
+ },
144
149
  }
145
150
  };
146
151
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {