[Feature Request] VDatePicker add add click:date and dblclick:date events
Problem to solve
This are really needed feature: the double click event is needed when you want to also close the dialog/menu the click is needed for example when you want to select time in another input so you want to focus there
update:modelValue is not enought for this, because you can detext doubleclick here, and also you can change model value externally, you really need in this case the click and dblclick event
note: i saw old requests and PR where click:date was maybe implemented but its not in current latest source code of component
Proposed solution
just emit these two events: click:date and dblclick:date
👋 @wanfuxiong, seems like this is your first time contribution to element-plus. Please make sure that you have read our guidelines and code of conduct before making a contribution.
Perhaps it would be better as an independent npm package or as an example in the documentation table?
Or, add an additional prop "pagination" for the table.
cc @element-plus/backers
Perhaps it would be better as an independent npm package or as an example in the documentation table?
Or, add an additional prop "pagination" for the table.
cc @element-plus/backers
Thanks for your comment!
It's a good idea.
But I thought about it for a moment. If I write an el-pagination inside an el-table and control its visibility through props, is there a possibility that future changes to the pagination functionality might require modifying the table's source code? If I combine el-table and el-pagination into a new component and expose all their props and attributes, would that potentially reduce the need for changes to the pagination-table in the future? I'm not entirely sure.
Moreover, this component is not just about simply placing the table and pagination inside a single component. I have also added flex styling so that when the component has a set height, the table can expand and push the pagination to the bottom. Additionally, it supports automatic pagination functionality simply by providing a tableData array.
[2025/12/9 15:16] I still have some code to commit. Please pay attention to the table slot section of the Vue code, mainly regarding slot decoupling.
感谢你的贡献,组件库当前仅提供一些基础的组件。我觉得这个组件更贴近业务,没有必要增加到这里,作为一个npm包使用挺好。
就像 data-at-once 属性一样,data 需要处理不同情况,那多选、筛选、排序等需求呢?不同的用户有不同的使用需求,用户自己封装比我们兼容所有情况可能更轻松。
感谢你的贡献,组件库当前仅提供一些基础的组件。我觉得这个组件更贴近业务,没有必要增加到这里,作为一个npm包使用挺好。
就像 data-at-once 属性一样,data 需要处理不同情况,那多选、筛选、排序等需求呢?不同的用户有不同的使用需求,用户自己封装比我们兼容所有情况可能更轻松。
我赞同