feat: Move topology to widgets (#29)

This commit is contained in:
Fine0830
2022-03-20 19:45:31 +08:00
committed by GitHub
parent 597e98e291
commit 42d8e909f6
25 changed files with 279 additions and 348 deletions

View File

@@ -28,16 +28,7 @@ limitations under the License. -->
@closed="dashboardStore.setConfigPanel(false)"
>
<TopologyConfig v-if="dashboardStore.selectedGrid.type === 'Topology'" />
<Widget v-else />
</el-dialog>
<el-dialog
v-model="dashboardStore.showTopology"
:destroy-on-close="true"
fullscreen
@closed="dashboardStore.setTopology(false)"
custom-class="dark-dialog"
>
<Topology />
<WidgetConfig v-else />
</el-dialog>
</div>
</template>
@@ -47,9 +38,8 @@ import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
import GridLayout from "./panel/Layout.vue";
import Tool from "./panel/Tool.vue";
import Widget from "./configuration/Widget.vue";
import TopologyConfig from "./configuration/Topology.vue";
import Topology from "./related/topology/Index.vue";
import WidgetConfig from "./configuration/Widget.vue";
import { useDashboardStore } from "@/store/modules/dashboard";
import { useAppStoreWithOut } from "@/store/modules/app";