@hanfy/plugin-hr
v2.10.5
Published
分割线插件
Downloads
2
Readme
@hanfy/plugin-hr
分割线插件
安装
$ yarn add @hanfy/plugin-hr
添加到引擎
import Engine, { EngineInterface } from '@hanfy/engine';
import Hr , { HrComponent } from '@hanfy/plugin-hr';
new Engine(...,{ plugins:[Hr] , cards:[HrComponent]})
可选项
快捷键
默认快捷键 mod+shift+e
hotkey?:string;//默认mod+shift+e
//使用配置
new Engine(...,{
config:{
"hr":{
//修改快捷键
hotkey:"快捷键"
}
}
})
命令
engine.command.execute('hr');