The Mode of new menu type is invaild
The most simple example
menu(mode='multi_unique' title='Test Menu')
{
item(title='Hello, World!' cmd=msg('Hello @user.name'))
}
It should only appear when select multiply items. But it shows everywhere
The multi-unique option means that when there are multiple selections, they must be of only one type.
- Single object.
- Multiple objects, same type.
The
multi-uniqueoption means that when there are multiple selections, they must be of only one type.
- Single object.
- Multiple objects, same type.
But my question is how to NOT display menuitem when there is no selection. I tried all 5 properties, all display menuitem when there is no selection as the screenshot.
该选项意味着当有多个选择时,必须只属于一种类型。
multi-unique
- 单一物体。
- 多个对象,同类型。
但我的问题是,当没有选择时,如何不显示菜单项。我试过所有5个属性,在截图中没有选择时都显示菜单项。
发给你参考代码,你自己不用心看,还直接发三连问..真是个人才
menu(mode='multi_unique' type="file|dir" title='Test Menu') {/*菜单*/}
@TiAmo-KO 你算那根葱跳出来叫屁叫,你要不要找个人给你看看你自己说些啥??有逻辑吗?表达不明就就不要乱用翻译软件了,搞笑
@TiAmo-KO 真是恶心,不知道哪冒出来的新号,幼儿园没毕业就来碍眼,可惜没有个实名验证过滤过滤这些垃圾
不懂代码还来出来学人家写代码配置文件,笑死
item(title=1 where=sel.count>1 mode='multiple')
不懂代码还来出来学人家写代码配置文件,笑死
@TiAmo-KO 哪里跑来的狗在这乱叫,毕业了吗,要不要不要到处放屁丢人现眼了,恶心。这里不是厕所,不是给你们这些底层垃圾乱排泄的地方。
没有家教的东西,都不知道是吃什么长大的 ,满嘴污言秽语。跑到外网丢人现眼
没有家教的东西,都不知道是吃什么长大的 ,满嘴污言秽语。跑到外网丢人现眼
不是你这奇葩先来挑事吗??你还好意思?要脸吗?有脑子吗?