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

      <el-steps :active="active" style="width:100%;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-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: '',
      knowledgeCode: ''

    };
  },
  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>
