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, "rows" | "onExpand" | "expandable">>;
  6. default: boolean | Omit<EllipsisConfig, "rows" | "onExpand" | "expandable">;
  7. };
  8. delete: {
  9. type: BooleanConstructor;
  10. default: any;
  11. };
  12. type: PropType<import("./Base").BaseType>;
  13. code: {
  14. type: BooleanConstructor;
  15. default: any;
  16. };
  17. mark: {
  18. type: BooleanConstructor;
  19. default: any;
  20. };
  21. strong: {
  22. type: BooleanConstructor;
  23. default: any;
  24. };
  25. content: StringConstructor;
  26. underline: {
  27. type: BooleanConstructor;
  28. default: any;
  29. };
  30. disabled: {
  31. type: BooleanConstructor;
  32. default: any;
  33. };
  34. prefixCls: StringConstructor;
  35. editable: {
  36. type: PropType<boolean | import("./Base").EditConfig>;
  37. default: boolean | import("./Base").EditConfig;
  38. };
  39. keyboard: {
  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 type TextProps = Partial<ExtractPropTypes<ReturnType<typeof textProps>>>;
  50. declare const Text: FunctionalComponent<TextProps>;
  51. export default Text;