Commit 444958fcc7a8172c271c1517715803361077aec8

Authored by ww
1 parent 4e19ca28

fix: visual board v-for bind key not exist

@@ -10,7 +10,7 @@ @@ -10,7 +10,7 @@
10 const slot = useSlots(); 10 const slot = useSlots();
11 11
12 const { update, add, remove } = useUpdateCenter(); 12 const { update, add, remove } = useUpdateCenter();
13 - 13 + console.log({ dataSource: props.dataSource });
14 defineExpose({ update }); 14 defineExpose({ update });
15 </script> 15 </script>
16 16
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 <div class="widget-content"> 21 <div class="widget-content">
22 <div 22 <div
23 v-for="item in props.dataSource" 23 v-for="item in props.dataSource"
24 - :key="item.id" 24 + :key="item.uuid"
25 :style="{ width: `${item.width || 100}%`, height: `${item.height || 100}%` }" 25 :style="{ width: `${item.width || 100}%`, height: `${item.height || 100}%` }"
26 class="widget-item" 26 class="widget-item"
27 > 27 >