classcard-ui 0.2.588 → 0.2.589

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.588",
3
+ "version": "0.2.589",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -22,15 +22,28 @@
22
22
  :key="tab.text"
23
23
  @click="switchTab(tab.name)"
24
24
  class="group inline-flex cursor-pointer items-center whitespace-nowrap border-b-2 py-4 px-1 text-sm font-medium"
25
+ :class="
26
+ activeTab == tab.name
27
+ ? 'border-indigo-600 text-indigo-700 hover:text-indigo-800'
28
+ : 'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700'
29
+ "
25
30
  >
26
31
  <c-icon
27
32
  v-if="tab.icon"
28
33
  :name="tab.icon"
29
34
  class="-ml-0.5 mr-2 h-5 w-5"
35
+ :class="
36
+ activeTab == tab.name
37
+ ? 'text-indigo-700 group-hover:text-indigo-800'
38
+ : 'text-gray-400 group-hover:text-gray-500 '
39
+ "
30
40
  type="solid"
31
41
  ></c-icon>
32
- <span
33
- >
42
+ <span :class="
43
+ activeTab == tab.name
44
+ ? 'text-indigo-700'
45
+ : 'text-gray-500 hover:text-gray-700'
46
+ ">
34
47
  {{ tab.text }}
35
48
  </span>
36
49
  </a>