You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We introduce three slots in `v.1.1.4` to help you customize the clear button, the dropdown button, and the input icon with your own icon/image.
876
+
877
+
Slot Name | Position | Description
878
+
------------------ | -------- | --------------
879
+
**icon** | _left_ | On the lefthand side of the `<input>`
880
+
**clearButton** | _right_ | In the same spot of the default clear button
881
+
**dropdownButton** | _right_ | In the same spot of the default dropdown button
882
+
883
+
> Please note that Vue v2.6.0+ introduces a significant update of the Named Slots syntax. Check the [official documentation](https://vuejs.org/v2/guide/components-slots.html#Named-Slots) for more information.
Please feel free to fork and help developing. Check [CONTRIBUTING.md](https://github.com/phoenixwong/vue2-timepicker/blob/master/CONTRIBUTING.md) for more details.
template(v-slot:title) Customized Buttons And Input Icon
862
+
template(v-slot:description)
863
+
p You can customize the clear button, and the dropdown button with your own icon/image starts from <code>v1.1.4+</code>. There's an additional slot for the input icon as well.
864
+
p Please note that Vue v2.6.0+ introduces a significant update of the <b>Named Slots</b> syntax. Check the <ahref="https://vuejs.org/v2/guide/components-slots.html#Named-Slots"target="_black">official documentation</a> for more information.
0 commit comments