-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support easy-to-use RecycleTree component #93
Comments
当前仍在使用
|
补充针对
行内菜单: <RecycleTree
inlineMenus={[
{
icon: getExternalIcon('replace'),
title: localize('search.replace.title'),
command: 'replaceResult',
location: TreeViewActionTypes.TreeNode_Right, // 三个区域,节点左、节点右、父节点上(右侧)
paramsKey: 'id', // 点击后传递给执行器的参数,默认是整个 Item,这里指定的下面 `params` 的第二个参数 [item, item.id...]
},
]}
inlineMenuActuator=(command, params) => {.....} // inlineMenus 点击后的执行逻辑
/> 右键菜单: <RecycleTree
contextMenus={[
{
title: localize('search.replace.title'),
command: 'replaceResult',
paramsKey: 'id', // 点击后传递给执行器的参数,默认是整个 Item,这里指定的下面 `params` 的第二个参数 [item, item.id...]
},
]}
contextMenuActuator=(command, params) => {.....} // contextMenus 点击后的执行逻辑
/> |
同时 |
1 task
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
现状
当前的
@opensumi/ide-components
中实现的RecycleTree
为了更灵活的组装形式,分离了视图及数据,牺牲了一定使用的便捷性,而以目前的情况去看,许多简化场景下可能不希望自己去组装,而是希望获得一个能快速使用的Tree组件,参考 AntDesign Tree组件 tree期望
这部分组件功能前期希望能尽量收敛,支持的 Tree 种类希望能为一个最简化的版本,后续可能更多的是由业务方遵循相关开发规范自行在
@opensumi/ide-components
中实现相应的Tree
组件的方式The text was updated successfully, but these errors were encountered: