|
@@ -123,7 +123,14 @@ |
|
|
<i class="icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon" /> |
|
|
<i class="icon font_family icon-icon_status_wenjianbiaojiwancheng yijianIcon" /> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
<div v-if="!isFileModified && enableSelect" class="yijianIcon select-icon" :class="{ selected: false }" /> |
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
v-if="!isFileModified && enableSelect" |
|
|
|
|
|
class="yijianxietong select-icon" |
|
|
|
|
|
:class="{ selected: selected }" |
|
|
|
|
|
@click.stop="onSelect" |
|
|
|
|
|
> |
|
|
|
|
|
<i v-if="selected" class="el-icon-check" /> |
|
|
|
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
@@ -244,6 +251,10 @@ export default { |
|
|
type: Boolean, |
|
|
type: Boolean, |
|
|
default: false, |
|
|
default: false, |
|
|
}, |
|
|
}, |
|
|
|
|
|
selected: { |
|
|
|
|
|
type: Boolean, |
|
|
|
|
|
default: false, |
|
|
|
|
|
}, |
|
|
// rightShowMenu: { |
|
|
// rightShowMenu: { |
|
|
// type: Function, |
|
|
// type: Function, |
|
|
// default: () => () => {} |
|
|
// default: () => () => {} |
|
@@ -403,6 +414,9 @@ export default { |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
onSelect() { |
|
|
|
|
|
this.$emit('select', this.file); |
|
|
|
|
|
}, |
|
|
commitFile() { |
|
|
commitFile() { |
|
|
this.isFileRightMenuVisible = false; |
|
|
this.isFileRightMenuVisible = false; |
|
|
this.$emit('commitFile', this.file, this.fileImgClass); |
|
|
this.$emit('commitFile', this.file, this.fileImgClass); |
|
@@ -632,6 +646,17 @@ export default { |
|
|
width: 24px; |
|
|
width: 24px; |
|
|
height: 24px; |
|
|
height: 24px; |
|
|
border-radius: 50%; |
|
|
border-radius: 50%; |
|
|
|
|
|
background-color: rgba(203, 203, 206, 1); |
|
|
|
|
|
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.15) inset; |
|
|
|
|
|
display: flex; |
|
|
|
|
|
align-items: center; |
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
&.selected { |
|
|
|
|
|
background-color: #7850FF; |
|
|
|
|
|
} |
|
|
|
|
|
.el-icon-check { |
|
|
|
|
|
color: #fff; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
</style> |
|
|
</style> |
|
|
|
|
|
|
|
|