| | |
| | | rules: 'required', |
| | | }, |
| | | { |
| | | fieldName: 'date', |
| | | label: '日期', |
| | | component: 'DatePicker', |
| | | fieldName: 'dateRange', |
| | | label: '日期区间', |
| | | component: 'RangePicker', |
| | | componentProps: { |
| | | placeholder: '选择日期', |
| | | valueFormat: 'YYYY-MM-DD', |
| | | style: { width: '100%' }, |
| | | }, |
| | |
| | | export function useGridColumns(): VxeTableGridOptions<HrmAttendanceHolidayApi.Holiday>['columns'] { |
| | | return [ |
| | | { field: 'name', title: '节假日名称', minWidth: 150 }, |
| | | { field: 'date', title: '日期', width: 120 }, |
| | | { |
| | | field: 'startDate', |
| | | title: '日期区间', |
| | | minWidth: 200, |
| | | slots: { |
| | | default: 'dateRange', |
| | | }, |
| | | }, |
| | | { |
| | | field: 'type', |
| | | title: '类型', |