You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
585 B
Plaintext

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;