An API of Modal fadeInScaleUpTransition to setup the transition time
This function solves the problem (这个功能解决的问题)
When I use the naive-ui Modal component in my project,I found that the fade in/out transition time (0.25s) is too long which leaves a feeling of sluggish for the users.I have already forked the project and done some simple debug,0.15s - 0.2s will be a better value,so the api maybe needed
Expected API (期望的 API)
<n-modal transition="0.15s">
<div>balabala ~~~~~</div>
</n-modal>
Maybe later.
could U pls provide more transition types for the modal like slide-up, slide-down or give an api to customize it ?
uld U pls provide more transition types for the modal like slide-up, slide-down or give an api to customize it ?
No we won't do it. Animation of the library is opinionated.
希望加上动画时间,或者支持关闭动画。因为在动画过程中,modal的宽高在不停地变化,导致这段时间里内部的组件获取高宽的时候会与最终modal的宽高不一致。
给个各种弹窗设置动画的口子,目前感觉动画不是很好
现在有办法取消掉弹窗的动画吗