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