Elementui date selector mispositioning problem

for example, there are three sets of date selectors. The first one of each group will have the problem of mispositioning. How to solve it at 0: 00?
Code structure:
< el-form-item label=" time Dimension:">

            <el-radio-group v-model="dateRange" size="mini">
                <el-radio-button label="dateDay"></el-radio-button>
                <el-radio-button label="dateWeek"></el-radio-button>
                <el-radio-button label="dateMonth"></el-radio-button>
            </el-radio-group>
            <!--  -->
            <span v-if="dateRange=="dateDay"">
                <el-date-picker
                v-model="dateDayVal"
                size="mini"
                type="daterange"
                range-separator=""
                start-placeholder=""
                end-placeholder="">
                </el-date-picker>
            </span>
            <!--  -->
            <span v-if="dateRange=="dateWeek"">
                <el-date-picker
                    v-model="weekValue"
                    type="week"
                    size="mini"
                    :picker-options="packerOpitions"
                    @change="changePacker"
                    :clearable="false"
                    format= "yyyyWW"
                    placeholder="">
                </el-date-picker>
                <span></span>
                <el-date-picker
                    v-model="weekValue2"
                    type="week"
                    size="mini"
                    align="center"
                    :picker-options="packerOpitions"
                    @change="changePacker2"
                    :clearable="false"
                    format= "yyyyWW"
                    placeholder="">
                </el-date-picker>
            </span>
            <!--  -->
            <span v-if="dateRange=="dateMonth"">
                <el-date-picker
                v-model="dateMonthVal1"
                type="month"
                size="mini"
                placeholder="">
                </el-date-picker>
                <span></span>
                <el-date-picker
                v-model="dateMonthVal2"
                type="month"
                size="mini"
                placeholder="">
                </el-date-picker>
            </span>
            
        </el-form-item>
        

effect is shown in figure

clipboard.png

clipboard.png

clipboard.png

clipboard.png

May.22,2021

you can change v-if to v-show


if you use v-show to click the radio button, if you switch to the date box, if there is authentication, it will invalidate the verification and do not follow the interface


< el-date-picker
: key= "aa"

add a key (different types plus different key,) Otherwise, there is still a problem)


package a div or other element in the outer layer of your component, and set its style position: relative to


did you solve it? I tried v-show. The effect is not good.

Menu