menus.d.ts 1.8 KB

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