1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import Store from '../stores/repo_store'; const RepoMixin = { computed: { isMini() { return !!Store.openedFiles.length; }, changedFiles() { const changedFileList = this.openedFiles .filter(file => file.changed); return changedFileList; }, }, }; export default RepoMixin;