We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<draggable force-fallback="true" chosen-class="chosen" ghost-class="ghost" animation="300" v-model="List" group='itxst' @end="end" @start="start"> <!--简单循环代码部分--> </draggable>
js部分
start($event) { this.drag = true; } end($event) { this.drag = false; }
style部分
.chosen{ opacity: 1 !important; background: red !important; } .ghost { background: black !important; }
以上代码在不做处理的情况下会导致 chosen-class失效,我发现如果取消@start="start"事件就会生效。
start($event) { this.drag = true; this.$nextTick(()=>{ $event.item.classList.add("ghost"); }) }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
js部分
style部分
以上代码在不做处理的情况下会导致 chosen-class失效,我发现如果取消@start="start"事件就会生效。
如果想要生效就得
The text was updated successfully, but these errors were encountered: