naive-ui icon indicating copy to clipboard operation
naive-ui copied to clipboard

当表格single-line为false时,表格可否增加可伸缩列。

Open yanbowe opened this issue 4 years ago • 5 comments
trafficstars

This function solves the problem (这个功能解决的问题)

当列设置固定宽度时,用户鼠标移动到列border-right时可自定义修改列的宽度。

Expected API (期望的 API)

默认开启

yanbowe avatar Sep 15 '21 02:09 yanbowe

像element-plus表格伸缩列一样

yanbowe avatar Sep 15 '21 02:09 yanbowe

伸缩列

https://element-plus.gitee.io/#/zh-CN/component/table 哪个是伸缩列的 demo

07akioni avatar Sep 15 '21 17:09 07akioni

image 鼠标移动到竖线上可以伸缩列的宽度

yanbowe avatar Sep 16 '21 01:09 yanbowe

https://github.com/yiptsangkin/near-admin-naive/blob/master/src/core/component/NCommonTable.vue

可以先参考这个,结合vue3-draggable-resizable可以实现简单的列宽调整

yiptsangkin avatar Mar 15 '22 02:03 yiptsangkin

这个功能会在未来添加吗? @07akioni

lx11573 avatar Aug 11 '22 05:08 lx11573

track in #3165

equt avatar Aug 18 '22 07:08 equt