feat: resize events to rerender charts

This commit is contained in:
Qiuxia Fan
2022-01-11 14:32:52 +08:00
parent 4a6ac51b7a
commit d4dedecd1b
5 changed files with 64 additions and 7 deletions

View File

@@ -30,6 +30,7 @@ limitations under the License. -->
:i="item.i"
:key="item.i"
@click="clickGrid(item)"
@resized="resizedEvent"
:class="{ active: dashboardStore.activedGridItem === item.i }"
>
<component
@@ -57,10 +58,14 @@ export default defineComponent({
function clickGrid(item: LayoutConfig) {
dashboardStore.activeGridItem(item.i);
}
function resizedEvent() {
console.log("test");
}
return {
dashboardStore,
layoutUpdatedEvent,
clickGrid,
resizedEvent,
};
},
});