<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-click="handleClick">
      <el-tab-pane label="全部商品" :name="1">
        <allProduct></allProduct>
      </el-tab-pane>
      <el-tab-pane label="草稿箱" :name="2">
        <draftProduct></draftProduct>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import allProduct from "./list/allProduct.vue";
import draftProduct from "./list/draftProduct.vue";
export default {
  components: {
    allProduct,
    draftProduct,
  },
  name: "product",
  data() {
    return {
      activeName: 1,
    };
  },
  mounted() {},
  methods: {},
};
</script>
<style>
.el-form-item {
  margin-bottom: 10px;
}
</style>
