wangeditor
Version:
wangEditor - 轻量级 web 富文本编辑器,配置方便,使用简单,开源免费
15 lines (14 loc) • 585 B
TypeScript
import { FontStyleType } from '../../config/menus';
import { DropListItem } from '../menu-constructors/DropList';
/**
* 封装的一个字体菜单列表数据的组装对象,
* 原因是因为在constructor函数中,直接执行此流程,会让代码量看起来较多,
* 如果要在constructor调用外部函数,个人目前发现会有错误提示,
* 因此,想着顺便研究实践下ts,遍创建了这样一个类
*/
declare class FontStyleList {
private itemList;
constructor(list: FontStyleType);
getItemList(): DropListItem[];
}
export default FontStyleList;