Skip to content

Commit 09645bb

Browse files
committed
fix
1 parent 68ed5d3 commit 09645bb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

examples/app.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<!-- <img class="avatar" src="../src/assets/images/cache_user_icon.jpg" alt=""> -->
44
<router-view></router-view>
55
<!-- <lai-button @click.native="openModal">Modal</lai-button> -->
6+
<lai-button @click.native="openAlert">Alert</lai-button>
67
</div>
78
</template>
89

@@ -26,6 +27,12 @@ export default {
2627
content: '12344444'
2728
})
2829
modal.open()
30+
},
31+
openAlert () {
32+
this.$alert({
33+
content: '122334',
34+
duration: 2000
35+
})
2936
}
3037
}
3138
}

src/components/alert/alertContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default {
4747
opacity: 0;
4848
}
4949
.slide-enter-active, .slide-leave-active {
50-
transition: .25s cubic-bezier(0.4, 0, 1, 1);
50+
transition: transform .25s cubic-bezier(0.4, 0, 1, 1), opacity .1s ease-in;
5151
}
5252
.slide-leave-active {
5353
transition-delay: 0s !important;

0 commit comments

Comments
 (0)