src/sfc/TimeSelect.vue
@@ -48,10 +48,12 @@ <el-date-picker v-model="time" type="datetimerange" range-separator="To" range-separator="~" start-placeholder="Start date" end-placeholder="End date" @change="$emit('submitTime', time)" class="pick-date" /> </div> </template> @@ -61,5 +63,16 @@ margin-left: 30px; margin-top: 5px; font-weight: bold; white-space: nowrap; } .block { display: flex; justify-content: center; /* width: 50%; */ white-space: nowrap; } .pick-date { width: 100%; } </style>