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