@burh/nuxt-core 1.0.60 → 1.0.61

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.
@@ -28,9 +28,10 @@
28
28
  ></textarea>
29
29
  </div>
30
30
 
31
- <div class="col-12 mb-4 d-flex flex-column" v-if="!isCourse">
31
+ <div class="col-12 mb-4 d-flex flex-column" v-if="!isCourse && categories && categories.length">
32
32
  <label for="category" class="form-control-label">Categoria</label>
33
33
  <el-select
34
+ filterable
34
35
  class="select-danger"
35
36
  id="category"
36
37
  :disabled="testId != null ? true : false"
@@ -39,10 +40,11 @@
39
40
  :placeholder="''"
40
41
  >
41
42
  <el-option
42
- v-for="category in categories"
43
+ v-for="(category, index) in categories"
43
44
  :key="category.id"
44
45
  :label="category.name"
45
46
  :value="category.id"
47
+ :selected="index == 0 && configInfo.category == null"
46
48
  >
47
49
  </el-option>
48
50
  </el-select>
@@ -213,6 +215,12 @@ export default {
213
215
  testCategories(newValue){
214
216
  this.configInfo.category = newValue;
215
217
  },
218
+ show(value) {
219
+ const isCategoryInitialized = this.configInfo.category ? true : false
220
+ if(value && !isCategoryInitialized) {
221
+ this.configInfo.category = this.categories[0].id;
222
+ }
223
+ }
216
224
  },
217
225
  mounted() {
218
226
  this.loadTime();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {