premise: due to the rich product information, ui is roughly divided into two types, so in the .vue file, a large number of v-if are used to control the display of the layout. (it is basically 2 chunks, and each time one of them is displayed, the elements in the chunk are also controlled by more v-if.)
problem occurs: after the product list re-initiates the request sort through a combination of filter criteria, the ordering of the product list changes. And there is a layout disorder, such as a string with a line: a v-if controlled b, a dead c, and a makeshift b, and a dead c, a makeshift string. The normal display of
is as follows: the data of an item has changed and the re-rendering does appear: it is an item whose layout is out of order, and most of the others are normal.
, which has been used for almost 2 years. Now it is found that packing two large pieces of layout into component, can reduce this phenomenon.
but the specific reason has not been found yet. I don"t know if anyone has encountered this problem