|
@@ -57,7 +57,7 @@ const handleTabClick = (activeKey: string | number) => {
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<template>
|
|
<template>
|
|
- <div>
|
|
|
|
|
|
+ <div class="device-group-container">
|
|
<ATabs class="device-group-tab" v-model:active-key="activeKey" @tab-click="handleTabClick">
|
|
<ATabs class="device-group-tab" v-model:active-key="activeKey" @tab-click="handleTabClick">
|
|
<ATabPane v-for="item in aiSmartCtrlTabs" :key="item.name" :tab="translateNavigation(item.name)">
|
|
<ATabPane v-for="item in aiSmartCtrlTabs" :key="item.name" :tab="translateNavigation(item.name)">
|
|
<component v-if="renderView" :is="item.component" :device-group-id="Number(deviceGroupId)" />
|
|
<component v-if="renderView" :is="item.component" :device-group-id="Number(deviceGroupId)" />
|
|
@@ -67,10 +67,20 @@ const handleTabClick = (activeKey: string | number) => {
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
+.device-group-container {
|
|
|
|
+ height: 100%;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+}
|
|
|
|
+
|
|
:deep(.device-group-tab) {
|
|
:deep(.device-group-tab) {
|
|
|
|
+ height: 100%;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
line-height: 22px;
|
|
line-height: 22px;
|
|
|
|
|
|
|
|
+ .ant-tabs-content {
|
|
|
|
+ height: 100%;
|
|
|
|
+ }
|
|
|
|
+
|
|
&.ant-tabs-top > .ant-tabs-nav {
|
|
&.ant-tabs-top > .ant-tabs-nav {
|
|
.ant-tabs-tab {
|
|
.ant-tabs-tab {
|
|
padding: 8px 0;
|
|
padding: 8px 0;
|