fix: 表字段列排序组件首位排序无效问题
This commit is contained in:
@@ -62,7 +62,7 @@ function fnTableColumnsCheckAllChange(e: any) {
|
|||||||
/**表格字段列拖拽操作 */
|
/**表格字段列拖拽操作 */
|
||||||
function fnTableColumnsDrop(dropResult: any) {
|
function fnTableColumnsDrop(dropResult: any) {
|
||||||
const { removedIndex, addedIndex, payload } = dropResult;
|
const { removedIndex, addedIndex, payload } = dropResult;
|
||||||
if (!removedIndex || !addedIndex) {
|
if (removedIndex === null || addedIndex === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let itemToAdd = payload;
|
let itemToAdd = payload;
|
||||||
@@ -184,6 +184,7 @@ onMounted(() => {
|
|||||||
<a-button
|
<a-button
|
||||||
v-if="c.fixed !== undefined"
|
v-if="c.fixed !== undefined"
|
||||||
size="small"
|
size="small"
|
||||||
|
:title="c.fixed ? `Fixed ${c.fixed} side` : ''"
|
||||||
:type="c.fixed ? 'primary' : 'dashed'"
|
:type="c.fixed ? 'primary' : 'dashed'"
|
||||||
@click="fnTableColumnsFixed(c)"
|
@click="fnTableColumnsFixed(c)"
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in New Issue
Block a user