@burh/nuxt-core 1.0.494 → 1.0.496

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.
@@ -19,7 +19,12 @@
19
19
  `${userData.name} ${userData.last_name}`
20
20
  )
21
21
  "
22
- ></h5>
22
+ />
23
+ <h6
24
+ v-if="userData && userData.user_complementary_information && userData.user_complementary_information.birth && getAge() > 0 || false"
25
+ >
26
+ {{ getAge() }} anos
27
+ </h6>
23
28
 
24
29
  <p
25
30
  class="user-info"
@@ -223,7 +228,7 @@
223
228
  <script>
224
229
  import getPrefixes from '~/util/getPrefixes.js';
225
230
  import VueQrcode from '@chenfengyuan/vue-qrcode';
226
- // import swal from 'sweetalert2';
231
+ import moment from 'moment';
227
232
 
228
233
  export default {
229
234
  name: 'user-cv-left-side',
@@ -251,6 +256,10 @@ export default {
251
256
  };
252
257
  },
253
258
  methods: {
259
+ getAge(){
260
+ const userAge = this.userData.user_complementary_information.birth;
261
+ return moment().diff(userAge, 'years');
262
+ },
254
263
  highlightText(search, text) {
255
264
  if (search.length < 2) return text;
256
265
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burh/nuxt-core",
3
- "version": "1.0.494",
3
+ "version": "1.0.496",
4
4
  "description": "Design System and Components.",
5
5
  "author": "Burh",
6
6
  "scripts": {