学员端小程序
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.

48 lines
1.4 KiB

1 year ago
  1. export default {
  2. props: {
  3. // input的label提示语
  4. label: {
  5. type: String,
  6. default: uni.$u.props.formItem.label
  7. },
  8. // 绑定的值
  9. prop: {
  10. type: String,
  11. default: uni.$u.props.formItem.prop
  12. },
  13. // 是否显示表单域的下划线边框
  14. borderBottom: {
  15. type: [String, Boolean],
  16. default: uni.$u.props.formItem.borderBottom
  17. },
  18. // label的位置,left-左边,top-上边
  19. labelPosition: {
  20. type: String,
  21. default: uni.$u.props.formItem.labelPosition
  22. },
  23. // label的宽度,单位px
  24. labelWidth: {
  25. type: [String, Number],
  26. default: uni.$u.props.formItem.labelWidth
  27. },
  28. // 右侧图标
  29. rightIcon: {
  30. type: String,
  31. default: uni.$u.props.formItem.rightIcon
  32. },
  33. // 左侧图标
  34. leftIcon: {
  35. type: String,
  36. default: uni.$u.props.formItem.leftIcon
  37. },
  38. // 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置
  39. required: {
  40. type: Boolean,
  41. default: uni.$u.props.formItem.required
  42. },
  43. leftIconStyle: {
  44. type: [String, Object],
  45. default: uni.$u.props.formItem.leftIconStyle,
  46. }
  47. }
  48. }