md-footer.vue 759 字节
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 v-if="canAttachFile" />
璃白.'s avatar
璃白. 已提交
5 6 7 8
  </div>
</template>
<script>
import uploadFiles from "./upload-files";
璃白.'s avatar
璃白. 已提交
9
import { mapState } from "vuex";
璃白.'s avatar
璃白. 已提交
10 11
export default {
  components: { uploadFiles },
璃白.'s avatar
璃白. 已提交
12
  computed: {
璃白.'s avatar
璃白. 已提交
13
    ...mapState(["isFocus", "canAttachFile"])
璃白.'s avatar
璃白. 已提交
14 15 16 17 18 19 20 21
  }
};
</script>
<style lang="less" scoped>
.md_footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
璃白.'s avatar
璃白. 已提交
22
  border-top: 1px solid var(--md-editor-border-color);
璃白.'s avatar
璃白. 已提交
23 24 25
  padding-top: 10px;
  box-sizing: border-box;
  font-size: 14px;
璃白.'s avatar
璃白. 已提交
26 27 28
  color: var(--md-editor-text-color);
  transition: border-top 0.3s;
  &.active {
璃白.'s avatar
璃白. 已提交
29
    border-top: 1px solid var(--md-editor-border-color-active);
璃白.'s avatar
璃白. 已提交
30
  }
璃白.'s avatar
璃白. 已提交
31 32
}
</style>