classcard-ui 0.2.913 → 0.2.916
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 +71 -56
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +71 -56
- 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/CCheckbox/CCheckbox.vue +18 -6
- package/src/icons.js +1 -0
package/package.json
CHANGED
|
@@ -18,9 +18,16 @@
|
|
|
18
18
|
<label
|
|
19
19
|
:class="`cursor-pointer font-medium text-gray-900 ${
|
|
20
20
|
isDisabled ? 'opacity-50' : ''
|
|
21
|
-
}`"
|
|
22
|
-
>{{ label }}
|
|
23
|
-
|
|
21
|
+
} ${tag ? 'flex' : ''}`"
|
|
22
|
+
>{{ label }}
|
|
23
|
+
<c-tag
|
|
24
|
+
v-if="tag && Object.keys(tag).length !== 0"
|
|
25
|
+
:label="tag.label"
|
|
26
|
+
:color="tag.color"
|
|
27
|
+
:class="tag.class"
|
|
28
|
+
class="ml-2"
|
|
29
|
+
/>
|
|
30
|
+
</label>
|
|
24
31
|
<p
|
|
25
32
|
:class="`mt-0.5 cursor-pointer text-gray-500 ${
|
|
26
33
|
isDisabled ? 'opacity-50' : ''
|
|
@@ -33,7 +40,9 @@
|
|
|
33
40
|
</div>
|
|
34
41
|
</template>
|
|
35
42
|
<script>
|
|
43
|
+
import CTag from "../CTag/CTag.vue";
|
|
36
44
|
export default {
|
|
45
|
+
components: { CTag },
|
|
37
46
|
name: "CCheckbox",
|
|
38
47
|
props: {
|
|
39
48
|
label: { type: String },
|
|
@@ -42,6 +51,9 @@ export default {
|
|
|
42
51
|
isDisabled: {
|
|
43
52
|
type: Boolean,
|
|
44
53
|
},
|
|
54
|
+
tag: {
|
|
55
|
+
type: Object,
|
|
56
|
+
},
|
|
45
57
|
},
|
|
46
58
|
data() {
|
|
47
59
|
return {
|
|
@@ -66,8 +78,8 @@ export default {
|
|
|
66
78
|
this.checkedValue = this.value;
|
|
67
79
|
},
|
|
68
80
|
},
|
|
69
|
-
mounted(){
|
|
70
|
-
this.checkedValue = this.value == 0? false:true
|
|
71
|
-
}
|
|
81
|
+
mounted() {
|
|
82
|
+
this.checkedValue = this.value == 0 ? false : true;
|
|
83
|
+
},
|
|
72
84
|
};
|
|
73
85
|
</script>
|
package/src/icons.js
CHANGED
|
@@ -347,4 +347,5 @@ export default {
|
|
|
347
347
|
"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065zM15 12a3 3 0 11-6 0 3 3 0 016 0z",
|
|
348
348
|
"menu-user":
|
|
349
349
|
"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z",
|
|
350
|
+
"sun-outline":"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z",
|
|
350
351
|
};
|