0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Vue3】 transition-groupをtableで使う方法の忘備録

Posted at

単純にtbodyのattrをこうする。

<tbody is="vue:transition-group" name="list" tag="tbody">

is="vue:transition-group" と tag="tbody"

tbodyに一回「transition-group」を認識させて、
またtag="tbody"に戻してる。
tableタグ構成を変にタグを入れると、うまく行かないのでこれでいける。

name="list"

nameはアクション。
今回はlistにしてるので

【taiwindやと】※@applyつかってるよ

.list-enter-active,
.list-leave-active { @apply transition duration-300 ease-out;}
.list-enter-from,
.list-leave-to { @apply opacity-0 transform translate-x-20;}

【css/sassやと】

.list-enter-active,
.list-leave-active {
    transition: all 0.3s ease;
}
.list-enter-from,
.list-leave-to {
    opacity: 0;
    transform: translate-x-20;
}

忘れないように忘備録。

これにDraggableとかdrag&dropが使えたら最強なんやけど、
いいのあるよーってかた教えてください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?