props.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { defineProps } from '../../libs/util/props';
  2. import theme from '../../libs/config/theme.js'
  3. export default defineProps('section', {
  4. // 标题信息
  5. title: {
  6. type: String,
  7. default: ''
  8. },
  9. // 右边副标题内容
  10. subTitle: {
  11. type: String,
  12. default: () => uni.$u.$t('uSection.subTitle')
  13. },
  14. // 是否显示右边的内容
  15. right: {
  16. type: Boolean,
  17. default: true
  18. },
  19. fontSize: {
  20. type: [Number, String],
  21. default: 15
  22. },
  23. // 主标题是否加粗
  24. bold: {
  25. type: Boolean,
  26. default: true
  27. },
  28. // 主标题的颜色
  29. color: {
  30. type: String,
  31. default: theme.mainColor
  32. },
  33. // 右边副标题的颜色
  34. subColor: {
  35. type: String,
  36. default: theme.lightColor
  37. },
  38. // 是否显示左边的竖条
  39. showLine: {
  40. type: Boolean,
  41. default: true
  42. },
  43. // 左边竖线的颜色
  44. lineColor: {
  45. type: String,
  46. default: ''
  47. },
  48. // 是否显示右边箭头
  49. arrow: {
  50. type: Boolean,
  51. default: true
  52. }
  53. })