优化toast组件
This commit is contained in:
parent
96d2bb6e32
commit
75fd2a5024
|
@ -28,16 +28,24 @@ export default {
|
|||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
@keyframes fadeIn {
|
||||
0% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
.components-widgets-toast {
|
||||
z-index: 25;
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
transform: translateY(-50%);
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
max-width: 400rpx;
|
||||
animation: fadeIn 0.35s forwards;
|
||||
.toast {
|
||||
display: inline-block;
|
||||
font-size: 28rpx;
|
||||
|
|
Loading…
Reference in New Issue