props.js 803 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { defineProps } from '../../libs/util/props';
  2. import theme from '../../libs/config/theme.js'
  3. export default defineProps('toolbar', {
  4. // 是否展示工具条
  5. show: {
  6. type: Boolean,
  7. default: true
  8. },
  9. // 取消按钮的文字
  10. cancelText: {
  11. type: String,
  12. default: () => uni.$u.$t('uToolbar.cancelText')
  13. },
  14. // 确认按钮的文字
  15. confirmText: {
  16. type: String,
  17. default: () => uni.$u.$t('uToolbar.confirmText')
  18. },
  19. // 取消按钮的颜色
  20. cancelColor: {
  21. type: String,
  22. default: theme.lightColor
  23. },
  24. // 确认按钮的颜色
  25. confirmColor: {
  26. type: String,
  27. default: theme.primary
  28. },
  29. // 标题文字
  30. title: {
  31. type: String,
  32. default: ''
  33. }
  34. })