tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

✨ [Feature]: [grid] I hope to add the API to get the status of adding, deleting and changing a row.

Open harvenzhang opened this issue 1 year ago • 6 comments

What problem does this feature solve

用户可以根据不同状态设置不同的css

What does the proposed API look like

None

harvenzhang avatar Nov 19 '23 03:11 harvenzhang

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.

Issues-translate-bot avatar Nov 19 '23 03:11 Issues-translate-bot

感谢反馈,我们会尽快看下这个问题

zzcr avatar Nov 22 '23 06:11 zzcr

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

Issues-translate-bot avatar Nov 22 '23 06:11 Issues-translate-bot

@harvenzhang 可否描述详细一下这个需求,比如希望给什么组件增加功能,最好补充一些截图辅助表格,感谢你的大力支持!

kagol avatar Dec 09 '23 01:12 kagol

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!

Issues-translate-bot avatar Dec 09 '23 01:12 Issues-translate-bot

就是给表格组件添加一个获取行状态的方法,比如: 方法名:getRowStatus(rowIndex) , 返回:updated, removed, inserted, nochanged 这四种结果。 用户可根据行的这四种状态,做进一步处理。

harvenzhang avatar Dec 10 '23 06:12 harvenzhang

你好,表格的状态可以在数据中体现,并使用自定义渲染器,显示不同的状态:https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-renderer#renderer-custom-renderer

zzcr avatar Jul 29 '24 07:07 zzcr