Skip to content

Commit 19f3dda

Browse files
committed
feat(dateinput): Remove deprecated icon props
1 parent 1046cb7 commit 19f3dda

File tree

5 files changed

+3
-29
lines changed

5 files changed

+3
-29
lines changed

docs/guide/Migration/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
- a new `changed` event is emitted whenever the selected date deviates from its previous value.
88
- the `focus` and `blur` events now refer to the whole datepicker, not just the input field.
99
- the `disabled-dates` prop is now watched for changes with the value of any selected date being nullified if that date is disabled.
10+
- the previously deprecated `calendar-button-icon`, `calendar-button-icon-content` and `clear-button-icon` props have been removed. Use [slots](../Slots/README.md) instead.
1011

1112
## 3.x.x to 4.x.x
1213

docs/guide/Props/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
| autofocus | Boolean | false | Sets html `autofocus` attribute on input |
77
| bootstrap-styling | Boolean | false | Use bootstrap v4 styling classes. |
88
| calendar-button | Boolean | false | Show an button that opens/closes the datepicker. Customisable via [slots](../Slots/README.md) |
9-
| calendar-button-icon | String | | (Deprecated for slot) Use icon for button (ex: fa fa-calendar) |
10-
| calendar-button-icon-content | String | | (Deprecated for slot) Use for material-icons (ex: event) |
119
| calendar-class | String|Object | | CSS class applied to the calendar el |
1210
| clear-button | Boolean | false | Show a button for clearing the date. Customisable via [slots](../Slots/README.md) |
13-
| clear-button-icon | String | | (Deprecated for slot) Use icon for button (ex: fa fa-times) |
1411
| day-cell-content | Function | | Use to render custom content in day cell |
1512
| disabled | Boolean | false | If `true`, disable datepicker on screen |
1613
| disabled-dates | Object | | See [Disabled Dates](../DisabledDates/README.md) for configuration |

src/components/DateInput.vue

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@
1414
@focus="handleButtonFocus"
1515
>
1616
<span :class="{ 'input-group-text': bootstrapStyling }">
17-
<slot name="calendarBtn">
18-
<i :class="calendarButtonIcon">
19-
{{ calendarButtonIconContent }}
20-
<span v-if="!calendarButtonIcon">&hellip;</span>
21-
</i>
22-
</slot>
17+
<slot name="calendarBtn">&hellip;</slot>
2318
</span>
2419
</button>
2520
<!-- Input -->
@@ -65,11 +60,7 @@
6560
@click="clearDate"
6661
>
6762
<span :class="{ 'input-group-text': bootstrapStyling }">
68-
<slot name="clearBtn">
69-
<i :class="clearButtonIcon">
70-
<span v-if="!clearButtonIcon">&times;</span>
71-
</i>
72-
</slot>
63+
<slot name="clearBtn">&times;</slot>
7364
</span>
7465
</button>
7566
<slot name="afterDateInput" />

src/components/Datepicker.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
:autofocus="autofocus"
1515
:bootstrap-styling="bootstrapStyling"
1616
:calendar-button="calendarButton"
17-
:calendar-button-icon="calendarButtonIcon"
18-
:calendar-button-icon-content="calendarButtonIconContent"
1917
:clear-button="clearButton"
20-
:clear-button-icon="clearButtonIcon"
2118
:disabled="disabled"
2219
:format="format"
2320
:inline="inline"

src/mixins/inputProps.vue

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,10 @@ export default {
1313
type: Boolean,
1414
default: false,
1515
},
16-
clearButtonIcon: {
17-
type: String,
18-
default: '',
19-
},
2016
calendarButton: {
2117
type: Boolean,
2218
default: false,
2319
},
24-
calendarButtonIcon: {
25-
type: String,
26-
default: '',
27-
},
28-
calendarButtonIconContent: {
29-
type: String,
30-
default: '',
31-
},
3220
disabled: {
3321
type: Boolean,
3422
default: false,

0 commit comments

Comments
 (0)