classcard-ui 0.2.464 → 0.2.465

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.464",
3
+ "version": "0.2.465",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -20,7 +20,7 @@
20
20
  <a
21
21
  v-for="tab in tabs"
22
22
  :key="tab.text"
23
- @click="switchTab(tab.text)"
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.text
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.text ? 'text-indigo-700' : 'text-gray-500 hover:text-gray-700'
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.text;
93
+ this.activeTab = selectedOption.name;
94
94
  },
95
95
  tabHeadSlotName(tabName) {
96
96
  return `tab-head-${tabName}`;