Rap 原分销系统代码Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5b8d82137e7c1266183c27759f9623e45f645a3c.svn-base 902B

5 kuukautta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <script>
  2. import { DatePicker, DatePickerOptions } from 'element-ui'
  3. import { calendarShortcuts } from '@/utils/shortcuts'
  4. export default {
  5. name: 'DateRangePicker',
  6. mixins: [DatePicker],
  7. props: {
  8. type: {
  9. type: String,
  10. default: 'daterange'
  11. },
  12. valueFormat: {
  13. type: String,
  14. default: 'yyyy-MM-dd HH:mm:ss'
  15. },
  16. defaultTime: {
  17. type: Array,
  18. default: _ => ['00:00:00', '23:59:59']
  19. },
  20. pickerOptions: {
  21. type: DatePickerOptions,
  22. default: _ => {
  23. return { shortcuts: calendarShortcuts, firstDayOfWeek: 1 }
  24. }
  25. },
  26. size: {
  27. type: String,
  28. default: 'small'
  29. },
  30. rangeSeparator: {
  31. type: String,
  32. default: ':'
  33. },
  34. startPlaceholder: {
  35. type: String,
  36. default: '开始日期'
  37. },
  38. endPlaceholder: {
  39. type: String,
  40. default: '结束日期'
  41. }
  42. }
  43. }
  44. </script>