keyboard-input.js 504 B

12345678910111213141516171819202122232425262728
  1. // 数字键盘密码输入框
  2. Component({
  3. externalClasses: ['tui-keyboard-input'],
  4. properties: {
  5. //背景颜色
  6. bgcolor: {
  7. type: String,
  8. value: "#fff"
  9. },
  10. size: {
  11. type: Number,
  12. value: 32
  13. },
  14. color: {
  15. type: String,
  16. value: "#333"
  17. },
  18. //输入框的值:数组格式,长度即为输入框个数
  19. inputvalue: {
  20. type: Array,
  21. value: ["", "", "", "", "", ""] //密码圆点 ●
  22. }
  23. },
  24. data: {
  25. },
  26. methods: {
  27. }
  28. })