perf: use close to reslove except confirm

This commit is contained in:
ibuler
2025-01-20 18:05:01 +08:00
parent 14c3b249a7
commit 1c36d1b3c6
3 changed files with 16 additions and 2 deletions

View File

@@ -84,6 +84,10 @@ export default {
type: String,
default: ''
},
moreActionsType: {
type: String,
default: null
},
moreCreates: {
type: Object,
default: null
@@ -194,10 +198,12 @@ export default {
selectedRows: this.selectedRows,
reloadTable: this.reloadTable
})
return {
name: 'moreActions',
title: this.moreActionsTitle || this.$t('MoreActions'),
dropdown: dropdown
dropdown: dropdown,
type: this.moreActionsType
}
},
hasSelectedRows() {

View File

@@ -130,6 +130,9 @@ export default {
this.$emit('handle', { action: 'ignore', comment: this.comment })
},
getDetailIcon(detail) {
if (detail.action === 'reopen') {
return 'el-icon-refresh'
}
switch (detail.status) {
case '1':
return 'el-icon-check'
@@ -225,6 +228,11 @@ ${detail.diff}
.el-timeline {
padding: 0 20px;
.el-timeline-item__node--normal {
width: 15px;
height: 15px;
}
}
}
}

View File

@@ -16,7 +16,7 @@
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<el-tooltip :content="$tc('Ignore alert')" :open-delay="400">
<el-tooltip :content="$tc('IgnoreAlert')" :open-delay="400">
<el-button class="ignore action" size="mini" @click="handleDropdown('ignore')">
<svg-icon icon-class="ignore" />
</el-button>