You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.2 KiB

8 months ago
  1. export default {
  2. props: {
  3. // 键盘弹起时,是否自动上推页面
  4. adjustPosition: {
  5. type: Boolean,
  6. default: uni.$u.props.codeInput.adjustPosition
  7. },
  8. // 最大输入长度
  9. maxlength: {
  10. type: [String, Number],
  11. default: uni.$u.props.codeInput.maxlength
  12. },
  13. // 是否用圆点填充
  14. dot: {
  15. type: Boolean,
  16. default: uni.$u.props.codeInput.dot
  17. },
  18. // 显示模式,box-盒子模式,line-底部横线模式
  19. mode: {
  20. type: String,
  21. default: uni.$u.props.codeInput.mode
  22. },
  23. // 是否细边框
  24. hairline: {
  25. type: Boolean,
  26. default: uni.$u.props.codeInput.hairline
  27. },
  28. // 字符间的距离
  29. space: {
  30. type: [String, Number],
  31. default: uni.$u.props.codeInput.space
  32. },
  33. // 预置值
  34. value: {
  35. type: [String, Number],
  36. default: uni.$u.props.codeInput.value
  37. },
  38. // 是否自动获取焦点
  39. focus: {
  40. type: Boolean,
  41. default: uni.$u.props.codeInput.focus
  42. },
  43. // 字体是否加粗
  44. bold: {
  45. type: Boolean,
  46. default: uni.$u.props.codeInput.bold
  47. },
  48. // 字体颜色
  49. color: {
  50. type: String,
  51. default: uni.$u.props.codeInput.color
  52. },
  53. // 字体大小
  54. fontSize: {
  55. type: [String, Number],
  56. default: uni.$u.props.codeInput.fontSize
  57. },
  58. // 输入框的大小,宽等于高
  59. size: {
  60. type: [String, Number],
  61. default: uni.$u.props.codeInput.size
  62. },
  63. // 是否隐藏原生键盘,如果想用自定义键盘的话,需设置此参数为true
  64. disabledKeyboard: {
  65. type: Boolean,
  66. default: uni.$u.props.codeInput.disabledKeyboard
  67. },
  68. // 边框和线条颜色
  69. borderColor: {
  70. type: String,
  71. default: uni.$u.props.codeInput.borderColor
  72. },
  73. // 是否禁止输入"."符号
  74. disabledDot: {
  75. type: Boolean,
  76. default: uni.$u.props.codeInput.disabledDot
  77. }
  78. }
  79. }