Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.69k stars 738 forks source link

[Feature Request] 编辑时进行增加数据验证。 #434

Closed America-first-melon closed 1 year ago

America-first-melon commented 2 years ago

I am opening an issue for

vue-easytable

Issue Type

Feature

Issue Title

编辑时进行增加数据验证。

What problem does this feature solve?

编辑数据时,可以传入校验函数,校验不通过可以红框提示或者error提示。

huangshuwei commented 2 years ago

感谢反馈,我已经将这个新功能加入了待开发列表:https://github.com/Happy-Coding-Clans/vue-easytable/projects/3#card-75210590

huangshuwei commented 1 year ago

可以通过 beforeCellValueChangeafterCellValueChange进行编辑验证。文档:https://happy-coding-clans.github.io/vue-easytable/#/zh/doc/table/cell-edit?anchor=api