classcard-ui 0.2.518 → 0.2.519
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 +56 -53
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +56 -53
- 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 +8 -5
package/package.json
CHANGED
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="-space-y-px rounded-md bg-white">
|
|
4
4
|
<div
|
|
5
5
|
class="relative rounded-tl-md rounded-tr-md pb-5"
|
|
6
6
|
v-for="item in items"
|
|
7
7
|
v-bind:key="item.label"
|
|
8
8
|
>
|
|
9
|
-
<div class="flex items-
|
|
9
|
+
<div class="flex items-start">
|
|
10
10
|
<input
|
|
11
11
|
type="radio"
|
|
12
12
|
:value="item.value"
|
|
13
13
|
:name="name"
|
|
14
14
|
v-model="selectedItem"
|
|
15
15
|
@click="onChange(item.value)"
|
|
16
|
-
class="
|
|
16
|
+
class="mt-0.5 h-4 w-4 cursor-pointer border-gray-300 text-indigo-600 focus:ring-indigo-500 disabled:opacity-50"
|
|
17
17
|
:disabled="isDisabled"
|
|
18
18
|
/>
|
|
19
|
-
<label
|
|
19
|
+
<label
|
|
20
|
+
class="ml-3 flex cursor-pointer flex-col"
|
|
21
|
+
@click="onChange(item.value)"
|
|
22
|
+
>
|
|
20
23
|
<span class="block text-sm font-medium">
|
|
21
24
|
{{ item.label }}
|
|
22
25
|
</span>
|
|
23
26
|
<span class="block text-sm text-gray-500">
|
|
24
27
|
{{ item.description }}
|
|
25
|
-
</span>
|
|
28
|
+
</span>
|
|
26
29
|
</label>
|
|
27
30
|
</div>
|
|
28
31
|
<slot v-if="item.value === selectedItem" :name="item.value" />
|