classcard-ui 0.2.522 → 0.2.523
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/dist/classcard-ui.common.js +57 -57
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +57 -57
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CRadio/CRadio.vue +7 -5
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<div class="-space-y-px rounded-md bg-white">
|
|
4
4
|
<div
|
|
5
5
|
v-for="(item, index) in items"
|
|
6
|
-
class="relative
|
|
6
|
+
class="relative pb-4 first:rounded-t-md last:rounded-b-md"
|
|
7
7
|
v-bind:key="item.label"
|
|
8
8
|
:class="customClasses ? classes(item, index) : ''"
|
|
9
9
|
>
|
|
@@ -85,19 +85,21 @@ export default {
|
|
|
85
85
|
classes(item, index) {
|
|
86
86
|
let classForRadio = "";
|
|
87
87
|
if (item.value === this.selectedItem && index === 0) {
|
|
88
|
-
classForRadio =
|
|
88
|
+
classForRadio =
|
|
89
|
+
"border p-4 border-indigo-200 rounded-t-md bg-indigo-50";
|
|
89
90
|
} else if (
|
|
90
91
|
item.value === this.selectedItem &&
|
|
91
92
|
index === this.items.length - 1
|
|
92
93
|
) {
|
|
93
|
-
classForRadio =
|
|
94
|
+
classForRadio =
|
|
95
|
+
"border p-4 border-indigo-200 rounded-b-md bg-indigo-50";
|
|
94
96
|
} else if (
|
|
95
97
|
item.value === this.selectedItem &&
|
|
96
98
|
0 < index < this.items.length - 1
|
|
97
99
|
) {
|
|
98
|
-
classForRadio = "border border-indigo-200 bg-indigo-50";
|
|
100
|
+
classForRadio = "border p-4 border-indigo-200 bg-indigo-50";
|
|
99
101
|
} else {
|
|
100
|
-
classForRadio = "border border-gray-200";
|
|
102
|
+
classForRadio = "border p-4 border-gray-200";
|
|
101
103
|
}
|
|
102
104
|
|
|
103
105
|
return classForRadio;
|