props.ts 452 B

1234567891011121314151617181920
  1. // @ts-nocheck
  2. import {PropType} from '@/uni_modules/lime-shared/vue'
  3. export type BadgePosition =
  4. | 'top-left'
  5. | 'top-right'
  6. | 'bottom-left'
  7. | 'bottom-right';
  8. type Numeric = string | number
  9. export default {
  10. dot: Boolean,
  11. max: Number,
  12. color: String,
  13. offset: Array as unknown as PropType<[Numeric, Numeric]>,
  14. content: [Number , String],
  15. showZero: Boolean,
  16. position: {
  17. type: String as PropType<BadgePosition>,
  18. default: 'top-right'
  19. }
  20. }