shared.ts 560 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * Common Switch Props
  3. */
  4. export type SharedSwitchProps = {
  5. size: string;
  6. value?: any;
  7. loading?: boolean;
  8. disabled?: boolean;
  9. activeValue: any;
  10. inactiveValue: any;
  11. activeColor?: string;
  12. inactiveColor?: string;
  13. };
  14. export const switchProps = {
  15. value: null as any,
  16. loading: Boolean,
  17. disabled: Boolean,
  18. activeColor: String,
  19. inactiveColor: String,
  20. activeValue: {
  21. type: null as any,
  22. default: true
  23. },
  24. inactiveValue: {
  25. type: null as any,
  26. default: false
  27. },
  28. size: {
  29. type: String,
  30. default: '30px'
  31. }
  32. };