classcard-ui 0.2.591 → 0.2.592
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 +66 -57
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +66 -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/CStackedList/CStackedList.vue +11 -3
package/package.json
CHANGED
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
<button
|
|
71
71
|
v-if="items.listIcon"
|
|
72
72
|
type="button"
|
|
73
|
+
:id="listId ? listId : ''"
|
|
73
74
|
class="flex h-8 w-8 items-center justify-center rounded-full text-gray-500 hover:bg-red-100 hover:text-red-800 focus:outline-none focus:ring-2 focus:ring-red-500"
|
|
74
75
|
@click="deleteItem"
|
|
75
76
|
>
|
|
@@ -103,6 +104,9 @@ export default {
|
|
|
103
104
|
type: Boolean,
|
|
104
105
|
default: false,
|
|
105
106
|
},
|
|
107
|
+
listId: {
|
|
108
|
+
type: String,
|
|
109
|
+
},
|
|
106
110
|
icon: {
|
|
107
111
|
type: Object,
|
|
108
112
|
},
|
|
@@ -116,9 +120,13 @@ export default {
|
|
|
116
120
|
collapseList() {
|
|
117
121
|
this.showSection = !this.showSection;
|
|
118
122
|
},
|
|
119
|
-
deleteItem(
|
|
120
|
-
console.log(
|
|
121
|
-
this
|
|
123
|
+
deleteItem() {
|
|
124
|
+
console.log(this.listId);
|
|
125
|
+
if (this.listId) {
|
|
126
|
+
this.$emit("delete-item", this.listId);
|
|
127
|
+
} else {
|
|
128
|
+
this.$emit("delete-item");
|
|
129
|
+
}
|
|
122
130
|
},
|
|
123
131
|
},
|
|
124
132
|
};
|