fix: 🐛 `sortable` 打包eslint报错(暂移除)

Former-commit-id: 72970850a0
This commit is contained in:
hxr 2023-08-09 08:31:31 +08:00
parent c63c14cfbc
commit 21017d407b
1 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@
</template>
<script setup lang="ts">
import Sortable from "sortablejs";
//import Sortable from "sortablejs";
import { fetchList } from "@/api/article";
defineOptions({
@ -127,14 +127,14 @@ const rowDrag = function () {
const tbody = document.querySelector(
".draggable .el-table__body-wrapper tbody"
);
Sortable.create(tbody, {
/* Sortable.create(tbody, {
//
draggable: ".draggable .el-table__row",
onEnd({ newIndex, oldIndex }: { newIndex: number; oldIndex: number }) {
const currRow = list.value.splice(oldIndex, 1)[0];
list.value.splice(newIndex, 0, currRow);
},
});
}); */
};
onMounted(() => {