datetimePicker.js 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. * @Author : LQ
  3. * @Description :
  4. * @version : 1.0
  5. * @Date : 2021-08-20 16:44:21
  6. * @LastAuthor : LQ
  7. * @lastTime : 2021-08-20 16:57:48
  8. * @FilePath : /u-view2.0/uview-ui/libs/config/props/datetimePicker.js
  9. */
  10. import { t } from '../../libs/i18n'
  11. export default {
  12. // datetimePicker 组件
  13. datetimePicker: {
  14. show: false,
  15. popupMode: 'bottom',
  16. showToolbar: true,
  17. value: '',
  18. title: '',
  19. mode: 'datetime',
  20. maxDate: new Date(new Date().getFullYear() + 10, 0, 1).getTime(),
  21. minDate: new Date(new Date().getFullYear() - 10, 0, 1).getTime(),
  22. minHour: 0,
  23. maxHour: 23,
  24. minMinute: 0,
  25. maxMinute: 59,
  26. filter: null,
  27. formatter: null,
  28. loading: false,
  29. itemHeight: 44,
  30. cancelText: t("up.common.cancel"),
  31. confirmText: t("up.common.confirm"),
  32. cancelColor: '#909193',
  33. confirmColor: '#3c9cff',
  34. visibleItemCount: 5,
  35. closeOnClickOverlay: false,
  36. defaultIndex: [],
  37. inputBorder: 'surround',
  38. disabled: false,
  39. disabledColor: '',
  40. placeholder: t("up.common.pleaseChoose"),
  41. inputProps: {},
  42. pageInline: false
  43. }
  44. }