定制悬浮命令按钮(可任意拖动) #49
Linnnkkk
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
受 Echors 启发,做了一个js脚本,可以根据自己需求定制一个悬浮命令按钮。你需要修改command id 以及 lucide图标名

如下图所示,左键为默认按钮,右键为展开命令按钮,按钮可所以拖动(移动端:短按为默认按钮,长按不动为展开命令按钮,长按拖动可所以拖动)
最后的效果如下:

V2版本增加了边缘吸附功能
脚本:
V1:command.zip
V2:command_v2 修复.zip
食用方法:
直接把js脚本放在form-flow的脚本文件夹下,脚本会自动加载
Beta Was this translation helpful? Give feedback.
All reactions