VisActor / VTable

VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
https://visactor.io/vtable
MIT License
1.8k stars 165 forks source link

[Feature] Menu 组件不能自定义样式 #2786

Open liuhuan1011 opened 2 weeks ago

liuhuan1011 commented 2 weeks ago

What problem does this feature solve?

import { ListTable, Menu, Tooltip } from '@visactor/react-vtable';

export type MenuProps = { / 代替原来的option.menuType html目前实现较完整 先默认html渲染方式*/ renderMode?: 'canvas' | 'html'; /* 内置下拉菜单的全局设置项 目前只针对基本表格有效 会对每个表头单元格开启默认的下拉菜单功能。代替原来的option.dropDownMenu/ defaultHeaderMenuItems?: TYPES.MenuListItem[]; / 右键菜单。代替原来的option.contextmenu */ contextMenuItems?: | TYPES.MenuListItem[] | ((field: string, row: number, col: number, table?: BaseTable) => TYPES.MenuListItem[]); /* 设置选中状态的菜单。代替原来的option.dropDownMenuHighlight / dropDownMenuHighlight?: TYPES.DropDownMenuHighlightInfo[]; } & BaseComponentProps;

type MenuListItem = | string | { text?: string; type?: 'title' | 'item' | 'split'; menuKey?: string; icon?: Icon; selectedIcon?: Icon; stateIcon?: Icon; children?: MenuListItem[]; };

Menu 没有提供自定义样式的属性,希望提供可以修改 style和 className 样式的属性。

What does the proposed API look like?

希望提供可以修改 style和 className 样式的属性。

fangsmile commented 2 weeks ago

感谢你的反馈!我们已经收到你的问题,并将在后续进行处理。 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!