classcard-ui 0.2.464 → 0.2.467
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.
- package/dist/classcard-ui.common.js +66 -65
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +66 -65
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CAvatar/CAvatar.vue +1 -1
- package/src/components/CPageHeading/CPageHeading.vue +1 -1
- package/src/components/CTabs/CTabs.vue +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="sticky top-0 z-10 bg-transparent backdrop-blur-xl">
|
|
3
3
|
<div
|
|
4
|
-
class="flex sm:max-w-
|
|
4
|
+
class="flex sm:max-w-full flex-col items-start justify-between pt-4 pb-2 sm:pb-1 sm:flex-row sm:items-center"
|
|
5
5
|
>
|
|
6
6
|
<div>
|
|
7
7
|
<h2
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<a
|
|
21
21
|
v-for="tab in tabs"
|
|
22
22
|
:key="tab.text"
|
|
23
|
-
@click="switchTab(tab.
|
|
23
|
+
@click="switchTab(tab.name)"
|
|
24
24
|
:class="
|
|
25
25
|
activeTab == tab.text
|
|
26
26
|
? 'border-indigo-600 text-indigo-700 hover:text-indigo-800'
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
class="-ml-0.5 mr-2 h-5 w-5"
|
|
35
35
|
type="solid"
|
|
36
36
|
:class="
|
|
37
|
-
activeTab == tab.
|
|
37
|
+
activeTab == tab.name
|
|
38
38
|
? 'text-indigo-700 group-hover:text-indigo-800'
|
|
39
39
|
: 'text-gray-400 group-hover:text-gray-500 '
|
|
40
40
|
"
|
|
41
41
|
></c-icon>
|
|
42
42
|
<span
|
|
43
43
|
:class="
|
|
44
|
-
activeTab == tab.
|
|
44
|
+
activeTab == tab.name ? 'text-indigo-700' : 'text-gray-500 hover:text-gray-700'
|
|
45
45
|
"
|
|
46
46
|
>
|
|
47
47
|
<slot :name="tabHeadSlotName(tab.text)"></slot>{{ tab.text }}
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
},
|
|
91
91
|
switchTabForMobile(index) {
|
|
92
92
|
var selectedOption = this.tabs[index];
|
|
93
|
-
this.activeTab = selectedOption.
|
|
93
|
+
this.activeTab = selectedOption.name;
|
|
94
94
|
},
|
|
95
95
|
tabHeadSlotName(tabName) {
|
|
96
96
|
return `tab-head-${tabName}`;
|