classcard-ui 0.2.496 → 0.2.497

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.496",
3
+ "version": "0.2.497",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <div>
3
- <span class="relative -ml-px block sm:hidden sm:shadow-sm">
4
- <div v-if="!hideDropdownIcon">
3
+ <span
4
+ v-if="!hideDropdownIcon"
5
+ class="relative -ml-px block sm:hidden sm:shadow-sm"
6
+ >
7
+ <div>
5
8
  <button
6
9
  @click="showButtons = !showButtons"
7
10
  type="button"
@@ -44,7 +47,7 @@
44
47
  </div>
45
48
  </div>
46
49
  </span>
47
- <span class="z-0 relative inline-flex hidden rounded-md sm:block">
50
+ <span :class="buttonClass">
48
51
  <button
49
52
  v-for="(button, index) in buttonObject"
50
53
  v-bind:key="button.label"
@@ -93,6 +96,10 @@ export default {
93
96
  data() {
94
97
  return {
95
98
  showButtons: false,
99
+ buttonClass:
100
+ this.hideDropdownIcon === true
101
+ ? "z-0 relative inline-flex rounded-md sm:block"
102
+ : "z-0 relative inline-flex hidden rounded-md sm:block",
96
103
  };
97
104
  },
98
105
  methods: {