@burh/nuxt-core 1.0.378 → 1.0.380
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="bg-white content-right tabs
|
|
2
|
+
<div class="bg-white content-right tabs">
|
|
3
3
|
<el-tabs
|
|
4
4
|
:class="active"
|
|
5
5
|
class="mt-3 handle-icon-color"
|
|
@@ -530,11 +530,11 @@ export default {
|
|
|
530
530
|
};
|
|
531
531
|
</script>
|
|
532
532
|
<style>
|
|
533
|
-
.el-tabs__nav-wrap::after {
|
|
533
|
+
.el-tabs__nav-wrap.is-top::after {
|
|
534
534
|
background: #fff !important;
|
|
535
535
|
}
|
|
536
536
|
|
|
537
|
-
.el-tabs__active-bar {
|
|
537
|
+
.el-tabs__active-bar.is-top {
|
|
538
538
|
width: 30px !important;
|
|
539
539
|
height: 4px !important;
|
|
540
540
|
border-radius: 10px 10px 0px 0px;
|
|
@@ -286,7 +286,7 @@ export default {
|
|
|
286
286
|
.catch(() => {});
|
|
287
287
|
},
|
|
288
288
|
getCityListFiltered(query) {
|
|
289
|
-
if (query && query.length
|
|
289
|
+
if (query && query.length >= 2) {
|
|
290
290
|
this.cityListFiltered = this.cityList.filter(city => removeAccents(String(city.city)).toLowerCase().startsWith(removeAccents(query.toLowerCase())));
|
|
291
291
|
this.cityListFiltered = this.cityListFiltered.map(city => {
|
|
292
292
|
return {
|
|
@@ -1,106 +1,108 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<li class="tab tab-primary" :class="active && 'tab--active'"
|
|
3
|
-
@click="$emit('tab-click')">
|
|
4
|
-
<span class="tab__title" :class="tabTitleClass">{{title}}</span>
|
|
5
|
-
<span v-if="icon > 0" class="tab__icon" :class="tabIconClass">{{icon}}</span>
|
|
6
|
-
</li>
|
|
7
|
-
</template>
|
|
8
|
-
<script>
|
|
9
|
-
export default {
|
|
10
|
-
name: 'teste-tab',
|
|
11
|
-
props: {
|
|
12
|
-
title: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: 'Testes',
|
|
15
|
-
description: 'Title for tab',
|
|
16
|
-
},
|
|
17
|
-
icon: {
|
|
18
|
-
type: Number,
|
|
19
|
-
default: 0,
|
|
20
|
-
description: 'Number for tab icon',
|
|
21
|
-
},
|
|
22
|
-
active: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false,
|
|
25
|
-
description: 'Define if tab is active',
|
|
26
|
-
},
|
|
27
|
-
tabIconClass: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: '',
|
|
30
|
-
description: 'Define css class for tab\'s icon',
|
|
31
|
-
},
|
|
32
|
-
tabTitleClass: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: '',
|
|
35
|
-
description: 'Define css class for tab\'s title',
|
|
36
|
-
},
|
|
37
|
-
link: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: '/',
|
|
40
|
-
description: 'Define nuxt-link link',
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
redirect(link){
|
|
45
|
-
this.$router.push(link);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
</script>
|
|
50
|
-
<style lang="scss" scoped>
|
|
51
|
-
@import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
52
|
-
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
@media screen and (min-width: 992px){
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<li class="custom__tab tab tab-primary" :class="active && 'tab--active'"
|
|
3
|
+
@click="$emit('tab-click')">
|
|
4
|
+
<span class="tab__title" :class="tabTitleClass">{{title}}</span>
|
|
5
|
+
<span v-if="icon > 0" class="tab__icon" :class="tabIconClass">{{icon}}</span>
|
|
6
|
+
</li>
|
|
7
|
+
</template>
|
|
8
|
+
<script>
|
|
9
|
+
export default {
|
|
10
|
+
name: 'teste-tab',
|
|
11
|
+
props: {
|
|
12
|
+
title: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: 'Testes',
|
|
15
|
+
description: 'Title for tab',
|
|
16
|
+
},
|
|
17
|
+
icon: {
|
|
18
|
+
type: Number,
|
|
19
|
+
default: 0,
|
|
20
|
+
description: 'Number for tab icon',
|
|
21
|
+
},
|
|
22
|
+
active: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: false,
|
|
25
|
+
description: 'Define if tab is active',
|
|
26
|
+
},
|
|
27
|
+
tabIconClass: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: '',
|
|
30
|
+
description: 'Define css class for tab\'s icon',
|
|
31
|
+
},
|
|
32
|
+
tabTitleClass: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: '',
|
|
35
|
+
description: 'Define css class for tab\'s title',
|
|
36
|
+
},
|
|
37
|
+
link: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: '/',
|
|
40
|
+
description: 'Define nuxt-link link',
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
methods: {
|
|
44
|
+
redirect(link){
|
|
45
|
+
this.$router.push(link);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
</script>
|
|
50
|
+
<style lang="scss" scoped>
|
|
51
|
+
@import "@burh/nuxt-core/assets/sass/burh-ds/variables/_colors.scss";
|
|
52
|
+
|
|
53
|
+
.custom__tab {
|
|
54
|
+
&.tab {
|
|
55
|
+
position: relative;
|
|
56
|
+
padding: .75rem 2rem;
|
|
57
|
+
margin: 0 1rem;
|
|
58
|
+
|
|
59
|
+
&:hover {
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
.tab__title, .tab__icon {
|
|
62
|
+
color: $primary;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__title {
|
|
67
|
+
color: #3C4858;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__icon {
|
|
72
|
+
color: #ffffff;
|
|
73
|
+
border-radius: 50% !important;
|
|
74
|
+
background-color: #3C4858;;
|
|
75
|
+
padding: 0 .4rem;
|
|
76
|
+
font-weight: bold;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media screen and (min-width: 992px){
|
|
80
|
+
&.tab{
|
|
81
|
+
padding: .75 2rem;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.tab--active {
|
|
86
|
+
.tab__title {
|
|
87
|
+
color:$primary;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tab__icon {
|
|
91
|
+
background-color: $primary;
|
|
92
|
+
color: #FFF
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&.tab--active::after {
|
|
97
|
+
content:'';
|
|
98
|
+
position:absolute;
|
|
99
|
+
bottom:0;
|
|
100
|
+
left:0;
|
|
101
|
+
right:0;
|
|
102
|
+
background: $primary;
|
|
103
|
+
height: 5px;
|
|
104
|
+
border-radius:5px 5px 0px 0px;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</style>
|