classcard-ui 0.2.194 → 0.2.195

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.194",
3
+ "version": "0.2.195",
4
4
  "main": "dist/classcard-ui.common.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -19,7 +19,7 @@
19
19
  <button
20
20
  v-else
21
21
  :type="type"
22
- :class="classes + ' ' + customClasses"
22
+ :class="classes"
23
23
  :disabled="disabled"
24
24
  class="inline-flex items-center px-4 py-2 shadow-sm text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2 disabled:opacity-50"
25
25
  @click="$emit('action')"
@@ -72,7 +72,7 @@ export default {
72
72
 
73
73
  computed: {
74
74
  classes() {
75
- return {
75
+ let classes = {
76
76
  "text-gray-700 border bg-white border-gray-300 hover:bg-gray-50 focus:ring-indigo-600":
77
77
  this.type == "white",
78
78
  "text-indigo-700 bg-indigo-100 hover:bg-indigo-200 focus:ring-indigo-500":
@@ -91,6 +91,8 @@ export default {
91
91
  this.type == "dark-blue",
92
92
  "cursor-default pointer-events-none": this.isLoading,
93
93
  };
94
+ classes[this.customClasses] = true;
95
+ return classes;
94
96
  },
95
97
  iconClasses() {
96
98
  return {