Element-uiがテーブルに検証を追加する方法

入力ボックスの外側にel-formラベルを貼ります

<el-table-column label="开始时间" align="center">
                                    <template slot-scope="scope">
                                        <el-form :model="scope.row" :rules="rules" ref="scope.row">
                                            <el-form-item prop="startTime">
                                                <el-date-picker v-model="scope.row.startTime"
                                                                :picker-options="pickerOptionsKS"
                                                                class="table_input_time"
                                                                style="margin-top: 20px;" type="date"
                                                                placeholder="选择开始时间"
                                                                @change="startTime($event,scope)"></el-date-picker>
                                            </el-form-item>
                                        </el-form>
                                    </template>
                                </el-table-column>

おすすめ

転載: blog.csdn.net/ke_new/article/details/102714805