In non-string templates,it is necessary to use h-datepicker.
By default, the data uses {start,end} objects and can also customize parameters. For details, refer to
The requirements for some optional start or end date can be controlled by the start and end parameters.
| Property | Description | Type | Optional | Default |
|---|---|---|---|---|
| disabled | Boolean | - | false | |
| option | Configuration items, see the options below for details | Object | - | |
| noBorder | Whether there is a border, suitable for the drop-down selection of text | Boolean | - | false |
| placeholder | Show the default prompt | String | - | please select |
| startWeek | When choosing a week, set the starting day of the week | Number | 1, 2, 3, 4, 5, 6, 7 | Global Configuration datepicker.startWeek, For details, please go to |
| readonly | Boolean | - | false |
| Event | Description |
|---|---|
| input | Data changes |
| confirm | Click OK button |
| clear | Click on the clear button |
| Property | Description | Type | Optional | Default |
|---|---|---|---|---|
| start | Starting time | Function, Object, String | - | - |
| end | End Time | Function, Object, String | - | - |
| disabled | No date selectable | Function | - | - |
| shortcuts | Custom shortcuts | [Object] | - | - |