@burh/nuxt-core 1.0.134 → 1.0.136

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.
@@ -20,6 +20,7 @@
20
20
  <h5 class="font-weight-bold">Sobre</h5>
21
21
  <p
22
22
  id="USER_ABOUT"
23
+ class="mb-0"
23
24
  :class="
24
25
  !wordIsLesserThan(
25
26
  userData.user_complementary_information.about
@@ -81,7 +82,7 @@
81
82
  </span>
82
83
 
83
84
  <p
84
- :id="`USER_EXPERIENCE`"
85
+ :id="`USER_EXPERIENCE-${index}`"
85
86
  class="description mt-4 mb-0"
86
87
  :class="!wordIsLesserThan(exp.description) && 'readmore'"
87
88
  >
@@ -92,7 +93,9 @@
92
93
  href="#"
93
94
  aria-label="expandir conteudo"
94
95
  v-show="!wordIsLesserThan(exp.description)"
95
- @click.prevent.stop="toggleReadMore($event, `USER_EXPERIENCE`)"
96
+ @click.prevent.stop="
97
+ toggleReadMore($event, `USER_EXPERIENCE-${index}`)
98
+ "
96
99
  >Ler mais</a
97
100
  ><br /><br />
98
101
  </div>
@@ -1,50 +1,56 @@
1
1
  <template>
2
- <div
3
- class="tab-pane"
4
- v-show="active"
5
- :id="id || title"
6
- :class="{ active: active }"
7
- :aria-expanded="active"
8
- >
9
- <slot></slot>
10
- </div>
2
+ <div
3
+ class="tab-pane"
4
+ v-show="active"
5
+ :id="id || title"
6
+ :class="{ active: active }"
7
+ :aria-expanded="active"
8
+ >
9
+ <slot></slot>
10
+ </div>
11
11
  </template>
12
12
  <script>
13
13
  import { isMobile, isMobileOnly } from 'mobile-device-detect';
14
14
 
15
15
  export default {
16
- name: 'tab-pane',
17
- props: ['title', 'id'],
18
- inject: ['addTab', 'removeTab'],
19
- data() {
20
- return {
21
- active: false,
22
- isMobileOnlyWatch: isMobileOnly
23
- };
24
- },
25
- mounted() {
26
- this.addTab(this);
16
+ name: 'tab-pane',
17
+ props: ['title', 'id'],
18
+ inject: ['addTab', 'removeTab'],
19
+ data() {
20
+ return {
21
+ active: false,
22
+ isMobileOnlyWatch: isMobileOnly
23
+ };
24
+ },
25
+ mounted() {
26
+ this.addTab(this);
27
27
 
28
- this.$bus.$on('close-tab', (data) => {
29
- this.active = false;
30
- if(this.isMobileOnlyWatch){
31
- if(document.querySelector('html').classList.contains('no-scroll')){
32
- document.querySelector('html').classList.remove('no-scroll');
28
+ this.$bus.$on('close-tab', data => {
29
+ this.active = false;
30
+ if (this.isMobileOnlyWatch) {
31
+ if (
32
+ document
33
+ .querySelector('html')
34
+ .classList.contains('no-scroll')
35
+ ) {
36
+ document
37
+ .querySelector('html')
38
+ .classList.remove('no-scroll');
39
+ }
40
+ }
41
+ });
42
+ },
43
+ beforeDestroy() {
44
+ if (document.querySelector('html').classList.contains('no-scroll')) {
45
+ document.querySelector('html').classList.remove('no-scroll');
33
46
  }
34
- }
35
- });
36
- },
37
- beforeDestroy(){
38
- if(document.querySelector('html').classList.contains('no-scroll')){
39
- document.querySelector('html').classList.remove('no-scroll');
40
- }
41
- },
42
- destroyed() {
43
- if (this.$el && this.$el.parentNode) {
44
- this.$el.parentNode.removeChild(this.$el);
47
+ },
48
+ destroyed() {
49
+ if (this.$el && this.$el.parentNode) {
50
+ this.$el.parentNode.removeChild(this.$el);
51
+ }
52
+ this.removeTab(this);
45
53
  }
46
- this.removeTab(this);
47
- }
48
54
  };
49
55
  </script>
50
56
  <style></style>
@@ -20,7 +20,7 @@
20
20
  >
21
21
  <li
22
22
  v-for="tab in tabs"
23
- class="nav-item"
23
+ class="nav-item active"
24
24
  data-toggle="tab"
25
25
  role="tablist"
26
26
  aria-expanded="true"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.134",
3
+ "version": "1.0.136",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {