Text.d.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. import type { ExtractPropTypes, FunctionalComponent, PropType } from 'vue';
  2. import type { EllipsisConfig } from './Base';
  3. export declare const textProps: () => {
  4. ellipsis: {
  5. type: PropType<boolean | Omit<EllipsisConfig, "onExpand" | "expandable" | "rows">>;
  6. default: boolean | Omit<EllipsisConfig, "onExpand" | "expandable" | "rows">;
  7. };
  8. prefixCls: StringConstructor;
  9. code: {
  10. type: BooleanConstructor;
  11. default: any;
  12. };
  13. mark: {
  14. type: BooleanConstructor;
  15. default: any;
  16. };
  17. strong: {
  18. type: BooleanConstructor;
  19. default: any;
  20. };
  21. content: StringConstructor;
  22. underline: {
  23. type: BooleanConstructor;
  24. default: any;
  25. };
  26. disabled: {
  27. type: BooleanConstructor;
  28. default: any;
  29. };
  30. type: PropType<import("./Base").BaseType>;
  31. editable: {
  32. type: PropType<boolean | import("./Base").EditConfig>;
  33. default: boolean | import("./Base").EditConfig;
  34. };
  35. keyboard: {
  36. type: BooleanConstructor;
  37. default: any;
  38. };
  39. delete: {
  40. type: BooleanConstructor;
  41. default: any;
  42. };
  43. copyable: {
  44. type: PropType<boolean | import("./Base").CopyConfig>;
  45. default: boolean | import("./Base").CopyConfig;
  46. };
  47. 'onUpdate:content': PropType<(content: string) => void>;
  48. };
  49. export declare type TextProps = Partial<ExtractPropTypes<ReturnType<typeof textProps>>>;
  50. declare const Text: FunctionalComponent<TextProps>;
  51. export default Text;