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

      <el-steps :active="active">
        <el-step title="基本信息"></el-step>
        <el-step title="导入配置"></el-step>
        <!-- <el-step title="索引配置"></el-step> -->
      </el-steps>
   
    <essentialInformation v-if="active==1" :item="item" :isEdit="isEdit" />
    <importConfiguration v-if="active==2" :item="item" :knowledgeName="knowledgeName" />

  </div>
</template>

<script>

// import indexConfiguration from './indexConfiguration/index';
import importConfiguration from './importConfiguration/index';
import essentialInformation from './essentialInformation/index';

export default {
  data () {
    return {
      active: 1,
      knowledgeName: ''

    };
  },
  props: ['isEdit', 'item'],
  components: { importConfiguration, essentialInformation},

  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>
