chore [matrix]: 屏蔽置底功能
This commit is contained in:
@@ -112,10 +112,10 @@ function addShowActionOption() {
|
||||
const popoverActions = [
|
||||
{
|
||||
text: '删除'
|
||||
},
|
||||
{
|
||||
text: '置底'
|
||||
}
|
||||
// {
|
||||
// text: '置底'
|
||||
// }
|
||||
];
|
||||
|
||||
// popover 的事件
|
||||
@@ -124,13 +124,13 @@ function handleActionSelect(action: { text: string }, axi: any, type: 'row' | 'c
|
||||
const index = data.value.indexOf(axi);
|
||||
if (index < 0) return;
|
||||
switch (action.text) {
|
||||
case '删除':
|
||||
data.value.splice(index, 1);
|
||||
break;
|
||||
case '删除':
|
||||
data.value.splice(index, 1);
|
||||
break;
|
||||
|
||||
case '置底':
|
||||
data.value.push(data.value.splice(index, 1)[0]);
|
||||
break;
|
||||
case '置底':
|
||||
data.value.push(data.value.splice(index, 1)[0]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user