@drax/crud-vue 0.34.2 → 0.34.3

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
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.34.2",
6
+ "version": "0.34.3",
7
7
  "type": "module",
8
8
  "main": "./src/index.ts",
9
9
  "module": "./src/index.ts",
@@ -64,5 +64,5 @@
64
64
  "vue-tsc": "^2.1.10",
65
65
  "vuetify": "^3.8.2"
66
66
  },
67
- "gitHead": "9b12fafdf8a43df90e2df88ddae374c1a31cef4a"
67
+ "gitHead": "1cb0d3a373d7ff9d95bd6e72c605710bd9278939"
68
68
  }
@@ -149,21 +149,26 @@ const {xs} = useDisplay()
149
149
  <v-icon>mdi-plus</v-icon> {{ label }}
150
150
  </v-btn>
151
151
 
152
- <v-chip-group v-model="itemSelected"
152
+
153
+ <v-chip-group v-model="indexSelected"
153
154
  :style="{ maxHeight: menuMaxHeight, overflowY: 'auto' }"
154
155
  direction="horizontal"
155
156
 
156
157
  >
158
+
157
159
  <v-chip v-for="(item,index) in valueModel" :key="index"
158
- :value="item" @click="menuSelect(item, index)"
159
- label filter class="pr-0"
160
+ :value="index" @click="menuSelect(item, index)"
161
+ label class="pr-0" :color="indexSelected === index ? 'primary' : ''"
160
162
  >
161
-
162
163
  {{//@ts-ignore
163
- valueModel[index][Object.keys(valueModel[index] as any)[0]] || index
164
+ valueModel[index][Object.keys(valueModel[index] as any)[0]] || (index)
164
165
  }}
166
+
165
167
  <template v-slot:append>
166
- <v-btn variant="text" class="ml-2" density="compact" icon="mdi-close-circle" @click="removeItem(index)"></v-btn>
168
+ <v-btn variant="text" class="ml-2" density="compact"
169
+ icon="mdi-close-circle"
170
+ @click="removeItem(index)"
171
+ ></v-btn>
167
172
  </template>
168
173
  </v-chip>
169
174