feat(DatetimePicker): support picker slots (#7645)

This commit is contained in:
neverland
2020-11-26 19:57:28 +08:00
committed by GitHub
parent 488d90aab9
commit d3f38c29f9
6 changed files with 41 additions and 0 deletions
+12
View File
@@ -292,6 +292,18 @@ Following props are supported when the type is time
| confirm | Emitted when the confirm button is clicked | value: current value |
| cancel | Emitted when the cancel button is clicked | - |
### Slots
| Name | Description | SlotProps |
| --- | --- | --- |
| default `v2.11.1` | Custom toolbar content | - |
| title `v2.11.1` | Custom title | - |
| confirm `v2.11.1` | Custom confirm button text | - |
| cancel `v2.11.1` | Custom cancel button text | - |
| option `v2.11.1` | Custom option content | _option: string \| object_ |
| columns-top `v2.11.1` | Custom content above columns | - |
| columns-bottom `v2.11.1` | Custom content below columns | - |
### Methods
Use [ref](https://vuejs.org/v2/api/#ref) to get DatetimePicker instance and call instance methods.