Technology Sharing

vue3 antdv Modal sets the minimum height of the container in the content to make the Modal appropriately taller

2024-07-11

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. When the payment information Collapses, we will find that the height of Modal also becomes very small.

2. We hope the height is a little higher, so that the height of the Modal displayed above feels too small, and the effect below is displayed.

3. Initially, I wanted to implement it through class, style or wrapClassName, but found that it didn't workAnt Design Vue — An enterprise-class UI components based on Ant Design and Vue.js

4. It seems that this Modal is automatically scaled according to the height of the content, so we can set min-height in the content container.