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

55 lines
995 B

2 months ago
2 months ago
2 months ago
2 months ago
  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. :disabled="disabled"
  19. ></uv-input>
  20. </template>
  21. <script>
  22. export default {
  23. props: {
  24. value: {
  25. default: null
  26. },
  27. placeholder: {
  28. type: String,
  29. default: '请输入'
  30. },
  31. type: {
  32. type: String,
  33. default: 'text'
  34. },
  35. inputAlign: {
  36. type: String,
  37. default: 'left'
  38. },
  39. fontSize: {
  40. type: String,
  41. default: '32rpx'
  42. },
  43. disabled: {
  44. type: Boolean,
  45. default: false,
  46. },
  47. },
  48. data() {
  49. return {
  50. }
  51. },
  52. }
  53. </script>