-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于Table可编辑行的几个疑问 #267
Comments
|
@anncwb
|
第二个问题已经修复,第三问题PersonTable最新的代码,增加了edit-change事件,可以在值改变后触发,然后保存到变量,这样就可以在保存前拿到 |
@anncwb 求教 第二个问题怎么修复的,我thin那边的项目还是会触发两次,第一次原始值,貌似是EditableCell初始化了两次,不明白啊啊啊 |
@anncwb 终于发现问题所在了,如果column加上 fixed: 'left',就会触发第二个问题: |
用的thin版本,不知道在这里发帖是否合适
record.onEdit?.(false, true)
同一单元格的editRule会触发两次,而且不知道为什么第一次触发时值为空第二次正确,因为我editRule加了个验证空的话会返回'XX不能为空',所以onEdit会返回false,以第一次触发为准。(不过在非thin版本虽然也触发两次,但第一次触发值不为空)record.onEdit?.(false, true)
后,编辑控件值会写入record,那在此之前如何获取到控件的当前值?The text was updated successfully, but these errors were encountered: