<template>
  <div>
    <div>fsfasf{{ strZf }}</div>
    <el-tabs v-model="activeTab">
      <el-tab-pane label="流量计参数" name="meterpar">
        <meterPar v-model:meterPar="parentMeterPar" />
      </el-tab-pane>

      <el-tab-pane label="天然气组分" name="ngComponents">
        <ngComponents :str-zf.sync="parentStrZf" />
      </el-tab-pane>
      <el-tab-pane label="流量计算结果" name="meterresult">
        <meterResult v-model:meterResult="parentMeterResult" />
      </el-tab-pane>
    </el-tabs>
    <div></div>
  </div>
</template>

<script>
import meterPar from '@/components/NGTools/meterPar';
import ngComponents from '@/components/NGTools/ngComponents';
import meterResult from '@/components/NGTools/meterResult';

export default {
  name: 'TabbedComponentWrapper',
  components: {
    meterPar,
    ngComponents,
    meterResult
  },
  data() {
    return {
      activeTab: 'meterpar',
      parentMeterPar: {
        pageNum: 1,
        pageSize: 10
        // 其他属性按需初始化
      },

      parentMeterResult: {
        pageNum: 1,
        pageSize: 10
        // 其他属性按需初始化
      },
      parentStrZf: ''
    };
  }
};
</script>

<style scoped>
/* 可按需添加样式 */
</style>
