am-editor11212/plugins/status
yanmao 3293c8681d Publish
- @aomao/engine@2.6.3
 - @aomao/toolbar-vue@2.6.3
 - @aomao/toolbar@2.6.3
 - @aomao/plugin-alignment@2.6.3
 - @aomao/plugin-backcolor@2.6.3
 - @aomao/plugin-bold@2.6.3
 - @aomao/plugin-code@2.6.3
 - @aomao/plugin-codeblock-vue@2.6.3
 - @aomao/plugin-codeblock@2.6.3
 - @aomao/plugin-file@2.6.3
 - @aomao/plugin-fontcolor@2.6.3
 - @aomao/plugin-fontfamily@2.6.3
 - @aomao/plugin-fontsize@2.6.3
 - @aomao/plugin-heading@2.6.3
 - @aomao/plugin-hr@2.6.3
 - @aomao/plugin-image@2.6.3
 - @aomao/plugin-indent@2.6.3
 - @aomao/plugin-italic@2.6.3
 - @aomao/plugin-line-height@2.6.3
 - @aomao/plugin-link-vue@2.6.3
 - @aomao/plugin-link@2.6.3
 - @aomao/plugin-mark-range@2.6.3
 - @aomao/plugin-mark@2.6.3
 - @aomao/plugin-math@2.6.3
 - @aomao/plugin-mention@2.6.3
 - @aomao/plugin-mind@2.6.3
 - @aomao/plugin-orderedlist@2.6.3
 - @aomao/plugin-paintformat@2.6.3
 - @aomao/plugin-quote@2.6.3
 - @aomao/plugin-redo@2.6.3
 - @aomao/plugin-removeformat@2.6.3
 - @aomao/plugin-selectall@2.6.3
 - @aomao/plugin-status@2.6.3
 - @aomao/plugin-strikethrough@2.6.3
 - @aomao/plugin-sub@2.6.3
 - @aomao/plugin-sup@2.6.3
 - @aomao/plugin-table@2.6.3
 - @aomao/plugin-tasklist@2.6.3
 - @aomao/plugin-underline@2.6.3
 - @aomao/plugin-undo@2.6.3
 - @aomao/plugin-unorderedlist@2.6.3
 - @aomao/plugin-video@2.6.3
2021-11-05 13:41:28 +08:00
..
src init 2021-11-03 19:58:08 +08:00
README.md init 2021-11-03 19:58:08 +08:00
package.json Publish 2021-11-05 13:41:28 +08:00
tsconfig.json init 2021-11-03 19:58:08 +08:00

README.md

@aomao/plugin-status

状态插件

安装

$ yarn add @aomao/plugin-status

添加到引擎

import Engine, { EngineInterface } from '@aomao/engine';
import Status , { StatusComponent } from '@aomao/plugin-status';

new Engine(...,{ plugins:[Status] , cards:[StatusComponent]})

可选项

快捷键

默认无快捷键

hotkey?:string;

//使用配置
new Engine(...,{
    config:{
        "status":{
            //修改快捷键
            hotkey:"快捷键"
        }
    }
 })

自定义颜色

可以通过 StatusComponent.colors 修改或增加到默认颜色列表中

colorsStatusComponent 的静态属性,它的类型如下:

static colors: Array<{
    background: string,
    color: string,
    border?: string
}>
  • background 背景颜色
  • color 字体颜色
  • border 可选,在颜色列表中可以设置边框颜色,除了可以美化外,在比较接近白色的色块中可能肉眼不好观察到,也可以设置边框
//默认颜色列表
[
	{
		background: '#FFE8E6',
		color: '#820014',
		border: '#FF4D4F',
	},
	{
		background: '#FCFCCA',
		color: '#614700',
		border: '#FFEC3D',
	},
	{
		background: '#E4F7D2',
		color: '#135200',
		border: '#73D13D',
	},
	{
		background: '#E9E9E9',
		color: '#595959',
		border: '#E9E9E9',
	},
	{
		background: '#D4EEFC',
		color: '#003A8C',
		border: '#40A9FF',
	},
	{
		background: '#DEE8FC',
		color: '#061178',
		border: '#597EF7',
	},
];

命令

engine.command.execute('status');