tiny-vue
tiny-vue copied to clipboard
✨ [Feature]: [grid] I hope to add the API to get the status of adding, deleting and changing a row.
What problem does this feature solve
用户可以根据不同状态设置不同的css
What does the proposed API look like
None
Bot detected the issue body's language is not English, translate it automatically.
Title: ✨ [Feature]: I hope to add an interface to obtain the addition, deletion and modification status of a certain row.
感谢反馈,我们会尽快看下这个问题
Bot detected the issue body's language is not English, translate it automatically.
Thanks for the feedback, we will look into this issue as soon as possible
@harvenzhang 可否描述详细一下这个需求,比如希望给什么组件增加功能,最好补充一些截图辅助表格,感谢你的大力支持!
Bot detected the issue body's language is not English, translate it automatically.
@harvenzhang Can you describe this requirement in more detail, such as what components you want to add functions to? It would be best to add some screenshot auxiliary tables. Thank you for your strong support!
就是给表格组件添加一个获取行状态的方法,比如: 方法名:getRowStatus(rowIndex) , 返回:updated, removed, inserted, nochanged 这四种结果。 用户可根据行的这四种状态,做进一步处理。
你好,表格的状态可以在数据中体现,并使用自定义渲染器,显示不同的状态:https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-renderer#renderer-custom-renderer