props.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /// <reference types="miniprogram-api-typings" />
  2. export declare const commonProps: {
  3. value: {
  4. type: StringConstructor;
  5. observer(
  6. this: WechatMiniprogram.Component.TrivialInstance,
  7. value: string
  8. ): void;
  9. };
  10. placeholder: StringConstructor;
  11. placeholderStyle: StringConstructor;
  12. placeholderClass: StringConstructor;
  13. disabled: BooleanConstructor;
  14. maxlength: {
  15. type: NumberConstructor;
  16. value: number;
  17. };
  18. cursorSpacing: {
  19. type: NumberConstructor;
  20. value: number;
  21. };
  22. autoFocus: BooleanConstructor;
  23. focus: BooleanConstructor;
  24. cursor: {
  25. type: NumberConstructor;
  26. value: number;
  27. };
  28. selectionStart: {
  29. type: NumberConstructor;
  30. value: number;
  31. };
  32. selectionEnd: {
  33. type: NumberConstructor;
  34. value: number;
  35. };
  36. adjustPosition: {
  37. type: BooleanConstructor;
  38. value: boolean;
  39. };
  40. holdKeyboard: BooleanConstructor;
  41. };
  42. export declare const inputProps: {
  43. type: {
  44. type: StringConstructor;
  45. value: string;
  46. };
  47. password: BooleanConstructor;
  48. confirmType: StringConstructor;
  49. confirmHold: BooleanConstructor;
  50. };
  51. export declare const textareaProps: {
  52. autoHeight: BooleanConstructor;
  53. fixed: BooleanConstructor;
  54. showConfirmBar: {
  55. type: BooleanConstructor;
  56. value: boolean;
  57. };
  58. disableDefaultPadding: {
  59. type: BooleanConstructor;
  60. value: boolean;
  61. };
  62. };