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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.591",
3
+ "version": "0.2.592",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -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(item) {
120
- console.log(item);
121
- this.$emit("delete-item", item);
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
  };