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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.464",
3
+ "version": "0.2.467",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,7 @@
5
5
  <img
6
6
  @error="$emit('error', $event)"
7
7
  :class="[classes, imageClasses]"
8
- class="inline-block"
8
+ class="inline-block object-cover"
9
9
  :src="image"
10
10
  alt=""
11
11
  />
@@ -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-7xl sm:px-16 sm:mx-auto flex-col items-start justify-between pt-4 pb-2 sm:pb-1 sm:flex-row sm:items-center"
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.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}`;