鸿宇研学生前端代码
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.

50 lines
896 B

  1. <template>
  2. <uv-input
  3. :type="type"
  4. :inputAlign="inputAlign"
  5. :value="value"
  6. @input="$emit('input', $event)"
  7. :placeholder="placeholder"
  8. placeholderStyle="color: #C6C6C6; font-size: 32rpx; font-weight: 400;"
  9. :customStyle="{
  10. backgroundColor: 'transparent',
  11. padding: '0',
  12. boxSizing: 'border-box',
  13. fontSize: fontSize,
  14. border: 'none',
  15. transform: 'translateX(-4px)'
  16. }"
  17. :fontSize="fontSize"
  18. ></uv-input>
  19. </template>
  20. <script>
  21. export default {
  22. props: {
  23. value: {
  24. default: null
  25. },
  26. placeholder: {
  27. type: String,
  28. default: '请输入'
  29. },
  30. type: {
  31. type: String,
  32. default: 'text'
  33. },
  34. inputAlign: {
  35. type: String,
  36. default: 'left'
  37. },
  38. fontSize: {
  39. type: String,
  40. default: '32rpx'
  41. },
  42. },
  43. data() {
  44. return {
  45. }
  46. },
  47. }
  48. </script>