UNPKG

1.75 kBTypeScriptView Raw
1/**
2 * @description 菜单配置
3 * @author wangfupeng
4 */
5export declare type EmotionsContentType = {
6 alt: string;
7 src: string;
8};
9export declare type EmotionsType = {
10 title: string;
11 type: string;
12 content: Array<EmotionsContentType | string>;
13};
14export declare type FontSizeConfType = {
15 [key: string]: {
16 name: string;
17 value: string;
18 };
19};
20export interface IndentationOptions {
21 value: number;
22 unit: string;
23}
24export declare type IndentationType = string | IndentationOptions;
25declare const _default: {
26 menus: string[];
27 fontNames: string[];
28 fontSizes: {
29 'x-small': {
30 name: string;
31 value: string;
32 };
33 small: {
34 name: string;
35 value: string;
36 };
37 normal: {
38 name: string;
39 value: string;
40 };
41 large: {
42 name: string;
43 value: string;
44 };
45 'x-large': {
46 name: string;
47 value: string;
48 };
49 'xx-large': {
50 name: string;
51 value: string;
52 };
53 'xxx-large': {
54 name: string;
55 value: string;
56 };
57 };
58 colors: string[];
59 languageType: string[];
60 languageTab: string;
61 /**
62 * 表情配置菜单
63 * 如果为emoji表情直接作为元素插入
64 * emoticon:Array<EmotionsType>
65 */
66 emotions: ({
67 title: string;
68 type: string;
69 content: {
70 alt: string;
71 src: string;
72 }[];
73 } | {
74 title: string;
75 type: string;
76 content: string[];
77 })[];
78 lineHeights: string[];
79 undoLimit: number;
80 indentation: string;
81};
82export default _default;