feat: add widget header

This commit is contained in:
Qiuxia Fan
2021-12-23 20:24:58 +08:00
parent 4992d1567d
commit b39109eae6
5 changed files with 78 additions and 2 deletions

View File

@@ -45,6 +45,9 @@ export const dashboardStore = defineStore({
});
this.layout.push(newWidget);
},
removeWidget(item: GridItemData) {
this.layout = this.layout.filter((d: GridItemData) => d.i !== item.i);
},
},
});