opentiny / tiny-vue

TinyVue is an enterprise-class UI component library of OpenTiny community, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.
https://opentiny.design/tiny-vue
MIT License
1.66k stars 264 forks source link

✨ [Feature]: 表格的最后一行冻结 #2416

Closed fanbingbing16 closed 12 hours ago

fanbingbing16 commented 1 week ago

What problem does this feature solve

现在有一个需求是表格的最后一行冻结,一个表示数据的表格,最后一行是合计,希望最后一行和表格头都可以冻结,表格头是可以冻结的 现在的处理方法是用了两个表格,然后第一个表格显示数据将分页去掉,第二个表格只显示合计,这样让人看着以为是一个表格然后最后一行冻结,但是这样的效果不好

What does the proposed API look like

fixed:'bottom'

What is your project name

grid

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


Title: ✨ [Feature]: The last row of the table is frozen

What problem does this feature solve

Now there is a need to freeze the last row of the table, a table representing data, the last row is the total, I hope that the last row and the table header can be frozen, the table header can be frozen, the current processing method is to use two tables, and then The first table displays data without paging, and the second table only displays totals. This makes people think it is a table and then the last row is frozen, but this effect is not good.

What does the proposed API look like

fixed:'bottom'

What is your project name

grid

gimmyhehe commented 1 week ago

@fanbingbing16 你的功能可以通过定位表尾来实现,表尾相对于表格来说,位置是冻结的

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


@fanbingbing16 Your function can be realized by positioning the tail of the table. The position of the tail of the table is frozen relative to the table.

fanbingbing16 commented 1 week ago

@fanbingbing16 你的功能可以通过定位表尾来实现,表尾相对于表格来说,位置是冻结的

具体是咋样的,没找到文档

Issues-translate-bot commented 1 week ago

Bot detected the issue body's language is not English, translate it automatically.


@fanbingbing16 Your function can be realized by positioning the end of the table. The position of the end of the table is frozen relative to the table.

How exactly does it work? No documentation found.

gimmyhehe commented 12 hours ago

@fanbingbing16 https://opentiny.design/tiny-vue/zh-CN/os-theme/components/grid-footer 可以参考一下表格设置表尾相关的demo哈~