The invention discloses an el-table-based single-row
verification method, and relates to the technical field of front-end development, and the
verification method comprises the following steps: defining column data, and obtaining attributes needing to be edited in all columns through isEdit; all isEdit attributes are bound through a slot, and a corresponding
verification method is directly specified according to rules; according to the single-row verification method based on the el-table, a common verification method is defined, conventional Element Plus form verification is reused, through the single-row verification method based on the el-table, single-row independent verification is achieved, it is not needed to add el-form for each row or each column, and therefore expenditure is reduced; meanwhile, the same verification logic as the large
list form is kept, existing codes do not need to be modified, and the code complexity is reduced; according to the method and the
system, the table is edited, instant feedback is supported, multiple triggering
modes are compatible, the native verification rule of Element Plus is reused, a Vue2 / Vue3
technology stack is adapted, seamless support of single-line verification is achieved,
cell errors are accurately positioned, and
data verification experience in a table editing scene is improved.