$ npm install @aomao/plugin-hr
分割线插件
$ yarn add @aomao/plugin-hr
添加到引擎
import Engine, { EngineInterface } from '@aomao/engine';
import Hr , { HrComponent } from '@aomao/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');
© 2010 - cnpmjs.org x YWFE | Home | YWFE