classcard-ui 0.2.545 → 0.2.546

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.545",
3
+ "version": "0.2.546",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -7,6 +7,7 @@
7
7
  v-model="activeTab"
8
8
  @change="switchTabForMobile($event.target.selectedIndex)"
9
9
  class="block w-full rounded-md border-gray-300 focus:border-indigo-500 focus:ring-indigo-500"
10
+ id="tabs"
10
11
  >
11
12
  <option v-for="tab in tabs" :key="tab.text">{{ tab.text }}</option>
12
13
  </select>
@@ -41,7 +42,9 @@
41
42
  ></c-icon>
42
43
  <span
43
44
  :class="
44
- activeTab == tab.name ? 'text-indigo-700' : 'text-gray-500 hover:text-gray-700'
45
+ activeTab == tab.name
46
+ ? 'text-indigo-700'
47
+ : 'text-gray-500 hover:text-gray-700'
45
48
  "
46
49
  >
47
50
  <slot :name="tabHeadSlotName(tab.text)"></slot>{{ tab.text }}
@@ -90,7 +93,7 @@ export default {
90
93
  },
91
94
  switchTabForMobile(index) {
92
95
  var selectedOption = this.tabs[index];
93
- this.activeTab = selectedOption.name;
96
+ this.activeTab = selectedOption.text;
94
97
  },
95
98
  tabHeadSlotName(tabName) {
96
99
  return `tab-head-${tabName}`;