mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-15 12:49:17 +00:00
feat: resize events to rerender charts
This commit is contained in:
@@ -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,
|
||||
};
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user