md-footer.vue 949 字节
Newer Older
璃白.'s avatar
璃白. 已提交
1
<template>
璃白.'s avatar
璃白. 已提交
2
  <div :class="['md_footer', { active: isFocus }]">
璃白.'s avatar
璃白. 已提交
3
    <div class="doc"></div>
璃白.'s avatar
璃白. 已提交
4
    <upload-files @changeFileList="$emit('update:fileList', $event)" :fileList="fileList" v-if="canAttachFile" />
璃白.'s avatar
璃白. 已提交
5 6 7 8 9 10
  </div>
</template>
<script>
import uploadFiles from "./upload-files";
export default {
  components: { uploadFiles },
璃白.'s avatar
璃白. 已提交
11 12 13 14 15 16 17 18 19 20 21 22 23 24
  props: {
     isFocus: {
      type: Boolean,
      default: false
    },
     canAttachFile: {
      type: Boolean,
      default: false
    },
    fileList: {
      type: Array,
      default: ()=>[]
    }
  },
璃白.'s avatar
璃白. 已提交
25 26 27 28 29 30 31
};
</script>
<style lang="less" scoped>
.md_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
璃白.'s avatar
璃白. 已提交
32
  border-top: 1px solid var(--md-editor-border-color);
璃白.'s avatar
璃白. 已提交
33 34 35
  padding-top: 10px;
  box-sizing: border-box;
  font-size: 14px;
璃白.'s avatar
璃白. 已提交
36 37 38
  color: var(--md-editor-text-color);
  transition: border-top 0.3s;
  &.active {
璃白.'s avatar
璃白. 已提交
39
    border-top: 1px solid var(--md-editor-border-color-active);
璃白.'s avatar
璃白. 已提交
40
  }
璃白.'s avatar
璃白. 已提交
41 42
}
</style>