With the urgent need to explore low-cost, high-efficiency solid-state refrigeration technology, the electrocaloric effects of ferroelectric materials have attracted much attention in the past decades. With the development of modern computing technology, the phase-field method is widely used to simulate the evolution of microstructure at mesoscale and predict the properties of different types of ferroelectric materials. In this article, we review the recent progress of electrocaloric effects from phenomenological Landau thermodynamics theory to phase-field simulation by discussing the microcosmic composition, mesoscopic domain structures, macroscopic size/shape, and external stimulus of strain/stress. More importantly, in searching for new ferroelectric electrocaloric cooling materials, it is possible to find materials whose free energy barrier height changes rapidly with temperature, such materials have a faster change rate with polarization temperature in terms of ferroelectric macroscopic properties, from them could get superior electrocaloric effects. We compile a relatively comprehensive computational design on the high performance of electrocaloric effects in different types of ferroelectrics and offer a perspective on the computational design of electrocaloric refrigeration materials at the mesoscale microstructure level.