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