<template>
  <div class="page-cell">
    <co-header fixed title="上传">
      <fallback slot="left"></fallback>
      <a slot="right">
        <cus-appendix :isButton="true" :datas="[]" :params="params" @appendixInput="appendixInput">
          上传
        </cus-appendix>
      </a>
    </co-header>
    <!-- 暂时不支持批量上传 -->
    <div class="co-wrapper">
      <cus-appendix :datas="datas" :params="params" @appendixInput="appendixInput"></cus-appendix>
    </div>
  </div>
</template>

<script type="es6">
export default {
  name: 'attach',
  data() {
    return {
      datas: [],
      params: {
        'service': config.mpm,
        'action': config.mpm + '/upload-file',
        'headers': {
          'X-Authorization': config.jwt
        },
        'contentName': 'files'
      }
    };
  },
  methods: {
    appendixInput(result) {}
  }
};
</script>
