小小儁爺
2024-07-09 eb5aca176bf68e13be87c98eb1ead8aa72adee28
src/components/DragSelect/index.vue
@@ -39,6 +39,7 @@
          // Detail see : https://github.com/RubaXa/Sortable/issues/1012
        },
        onEnd: evt => {
          console.log(evt, 123)
          const targetRow = this.value.splice(evt.oldIndex, 1)[0]
          this.value.splice(evt.newIndex, 0, targetRow)
        }
@@ -47,7 +48,13 @@
  }
}
</script>
<style>
.sortable-ghost{
  opacity: .8;
  color: #fff!important;
  background: #42b983!important;
}
</style>
<style lang="scss" scoped>
.drag-select {
  ::v-deep {