
<!-- 创建知识库 -->
<template>
  <div>

    <!-- <el-steps :active="active" style="width:60%;margin:0 auto 20px auto">
      <el-step title="基本信息" icon="el-icon-s-order"></el-step>
      <el-step title="导入配置" icon="el-icon-upload"></el-step>
   
    </el-steps> -->

    <div style="width: 60%;">
      <essentialInformation v-if="active==1" :item="item" :isEdit="isEdit" />
      <importConfiguration v-if="active==2 && knowledgeFormat==0" :item="item" :knowledgeName="knowledgeName" />
      <importConfiguration2 v-if="active==2 && knowledgeFormat==1" :item="item" :knowledgeName="knowledgeName" />
    </div>

  </div>
</template>

<script>
// import indexConfiguration from './indexConfiguration/index';
import importConfiguration from './importConfiguration/index'
import importConfiguration2 from './importConfiguration/index-2'
import essentialInformation from './essentialInformation/index'

export default {
  data() {
    return {
      active: 1,
      knowledgeName: '',
      knowledgeFormat: undefined
    }
  },
  props: ['isEdit', 'item'],
  components: { importConfiguration, essentialInformation, importConfiguration2 },

  computed: {},

  mounted() {},

  methods: {
    onCancel(isSuccess) {
      if (this.observer != null) {
        this.observer.cancel(isSuccess)
      }
    }
  }
}
</script>
<style scoped>
.inputWidth {
  width: 600px;
}

form /deep/ .dialog-btn-layer {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: #fff;
}
</style>
