@tekkare/auriga 0.1.95 → 0.1.96
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/module.json
CHANGED
|
@@ -354,10 +354,24 @@ export default defineComponent({
|
|
|
354
354
|
watch(
|
|
355
355
|
() => props.element_table,
|
|
356
356
|
(new_element_table) => {
|
|
357
|
+
console.log("uhuh");
|
|
357
358
|
element_table_copy.value = new_element_table;
|
|
359
|
+
console.log(props.default_select);
|
|
358
360
|
if (props.preselection_all) {
|
|
359
361
|
add_all();
|
|
360
362
|
} else if (props.default_select && props.default_select.length > 0) {
|
|
363
|
+
console.log(
|
|
364
|
+
element_table_copy.value.some(
|
|
365
|
+
(a) => props.default_select.includes(a)
|
|
366
|
+
)
|
|
367
|
+
);
|
|
368
|
+
if (!element_table_copy.value.some(
|
|
369
|
+
(a) => props.default_select.includes(a)
|
|
370
|
+
)) {
|
|
371
|
+
element_table_copy.value = element_table_copy.value.concat(
|
|
372
|
+
props.default_select
|
|
373
|
+
);
|
|
374
|
+
}
|
|
361
375
|
selected_items.value = props.default_select;
|
|
362
376
|
}
|
|
363
377
|
}
|
|
@@ -601,6 +615,9 @@ export default defineComponent({
|
|
|
601
615
|
selected_all.value = false;
|
|
602
616
|
if (!props.options_disable.includes(index)) {
|
|
603
617
|
selected_items.value.splice(selected_items.value.indexOf(element), 1);
|
|
618
|
+
if (!props.element_table.includes(element)) {
|
|
619
|
+
element_table_copy.value.splice(index, 1);
|
|
620
|
+
}
|
|
604
621
|
emit(
|
|
605
622
|
"changeElement",
|
|
606
623
|
selected_items.value.map((a) => a)
|