[RFC] About combine ContextMenu and ComtextMenuCombiner #233
-
需求背景目前组件库内存在 目标
实现为确保尽量少的 API 变更和结构变更,目前考虑以 type Data = { txt: string; cb: () => void; }[];
interface {
data: Data; // 负责渲染数据
getPopupContainer; // 默认渲染到 body 上
wrapperClassName: string;
[key:string]:any; // 其他一些 popup 相关配置
} 使用方式如下:
<div>
<ContextMenu data={[....]}>
<span>123</span>
</ContextMenu>
</div> 与目前的 ContextMenuCombiner 不同点在于
|
Beta Was this translation helpful? Give feedback.
Answered by
mortalYoung
Oct 19, 2022
Replies: 1 comment
-
补充:计划通过 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mumiao
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
补充:计划通过
rc-trigger
实现或者 antd 的 dropdown