Editable.d.ts 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. import type { ExtractPropTypes, PropType } from 'vue';
  2. import type { Direction } from '../config-provider';
  3. import type { AutoSizeType } from '../input/inputProps';
  4. declare const editableProps: () => {
  5. prefixCls: StringConstructor;
  6. value: StringConstructor;
  7. maxlength: NumberConstructor;
  8. autoSize: {
  9. type: PropType<boolean | AutoSizeType>;
  10. };
  11. onSave: PropType<(val: string) => void>;
  12. onCancel: PropType<() => void>;
  13. onEnd: PropType<() => void>;
  14. onChange: PropType<(val: string) => void>;
  15. originContent: StringConstructor;
  16. direction: PropType<Direction>;
  17. component: StringConstructor;
  18. };
  19. export type EditableProps = Partial<ExtractPropTypes<ReturnType<typeof editableProps>>>;
  20. declare const Editable: import("vue").DefineComponent<{
  21. prefixCls: StringConstructor;
  22. value: StringConstructor;
  23. maxlength: NumberConstructor;
  24. autoSize: {
  25. type: PropType<boolean | AutoSizeType>;
  26. };
  27. onSave: PropType<(val: string) => void>;
  28. onCancel: PropType<() => void>;
  29. onEnd: PropType<() => void>;
  30. onChange: PropType<(val: string) => void>;
  31. originContent: StringConstructor;
  32. direction: PropType<Direction>;
  33. component: StringConstructor;
  34. }, () => import("../_util/type").VueNode, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
  35. prefixCls: StringConstructor;
  36. value: StringConstructor;
  37. maxlength: NumberConstructor;
  38. autoSize: {
  39. type: PropType<boolean | AutoSizeType>;
  40. };
  41. onSave: PropType<(val: string) => void>;
  42. onCancel: PropType<() => void>;
  43. onEnd: PropType<() => void>;
  44. onChange: PropType<(val: string) => void>;
  45. originContent: StringConstructor;
  46. direction: PropType<Direction>;
  47. component: StringConstructor;
  48. }>>, {}, {}>;
  49. export default Editable;