props.js 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. export const commonProps = {
  2. value: String,
  3. placeholder: String,
  4. placeholderStyle: String,
  5. placeholderClass: String,
  6. disabled: Boolean,
  7. maxlength: {
  8. type: Number,
  9. value: -1,
  10. },
  11. cursorSpacing: {
  12. type: Number,
  13. value: 50,
  14. },
  15. autoFocus: Boolean,
  16. focus: Boolean,
  17. cursor: {
  18. type: Number,
  19. value: -1,
  20. },
  21. selectionStart: {
  22. type: Number,
  23. value: -1,
  24. },
  25. selectionEnd: {
  26. type: Number,
  27. value: -1,
  28. },
  29. adjustPosition: {
  30. type: Boolean,
  31. value: true,
  32. },
  33. holdKeyboard: Boolean,
  34. };
  35. export const inputProps = {
  36. type: {
  37. type: String,
  38. value: 'text',
  39. },
  40. password: Boolean,
  41. confirmType: String,
  42. confirmHold: Boolean,
  43. alwaysEmbed: Boolean,
  44. };
  45. export const textareaProps = {
  46. autoHeight: Boolean,
  47. fixed: Boolean,
  48. showConfirmBar: {
  49. type: Boolean,
  50. value: true,
  51. },
  52. disableDefaultPadding: {
  53. type: Boolean,
  54. value: true,
  55. },
  56. };