props.js 737 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. export default {
  2. props: {
  3. showIcon: {
  4. type: Boolean,
  5. default: uni.$u.props.toolbar.show
  6. },
  7. // 是否展示工具条
  8. show: {
  9. type: Boolean,
  10. default: uni.$u.props.toolbar.show
  11. },
  12. // 取消按钮的文字
  13. cancelText: {
  14. type: String,
  15. default: uni.$u.props.toolbar.cancelText
  16. },
  17. // 确认按钮的文字
  18. confirmText: {
  19. type: String,
  20. default: uni.$u.props.toolbar.confirmText
  21. },
  22. // 取消按钮的颜色
  23. cancelColor: {
  24. type: String,
  25. default: uni.$u.props.toolbar.cancelColor
  26. },
  27. // 确认按钮的颜色
  28. confirmColor: {
  29. type: String,
  30. default: uni.$u.props.toolbar.confirmColor
  31. },
  32. // 标题文字
  33. title: {
  34. type: String,
  35. default: uni.$u.props.toolbar.title
  36. }
  37. }
  38. }