FontStyleList.d.ts 528 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
import { DropListItem } from '../menu-constructors/DropList';
/**
 * 封装的一个字体菜单列表数据的组装对象,
 * 原因是因为在constructor函数中,直接执行此流程,会让代码量看起来较多,
 * 如果要在constructor调用外部函数,个人目前发现会有错误提示,
 * 因此,想着顺便研究实践下ts,遍创建了这样一个类
 */
declare class FontStyleList {
    private itemList;
    constructor(list: string[]);
    getItemList(): DropListItem[];
}
export default FontStyleList;