@@ -4,6 +4,8 @@ import { getComponent, findDOMNode } from '../../../_util/props-util';
44import moment from 'moment' ;
55import { formatDate } from '../util' ;
66import KeyCode from '../../../_util/KeyCode' ;
7+ import { withDirectives } from 'vue' ;
8+ import antInput from '../../../_util/antInputDirective' ;
79
810let cachedSelectionStart ;
911let cachedSelectionEnd ;
@@ -193,20 +195,23 @@ const DateInput = {
193195 return (
194196 < div class = { `${ prefixCls } -input-wrap` } >
195197 < div class = { `${ prefixCls } -date-input-wrap` } >
196- < input
197- ref = { this . saveDateInput }
198- class = { `${ prefixCls } -input ${ invalidClass } ` }
199- value = { str }
200- disabled = { disabled }
201- placeholder = { placeholder }
202- onInput = { this . onInputChange }
203- onChange = { this . onInputChange }
204- onKeydown = { this . onKeyDown }
205- onFocus = { this . onFocus }
206- onBlur = { this . onBlur }
207- inputMode = { inputMode }
208- readonly = { inputReadOnly }
209- />
198+ { withDirectives (
199+ < input
200+ ref = { this . saveDateInput }
201+ class = { `${ prefixCls } -input ${ invalidClass } ` }
202+ value = { str }
203+ disabled = { disabled }
204+ placeholder = { placeholder }
205+ onInput = { this . onInputChange }
206+ onChange = { this . onInputChange }
207+ onKeydown = { this . onKeyDown }
208+ onFocus = { this . onFocus }
209+ onBlur = { this . onBlur }
210+ inputMode = { inputMode }
211+ readonly = { inputReadOnly }
212+ /> ,
213+ [ [ antInput ] ] ,
214+ ) }
210215 </ div >
211216 { showClear ? (
212217 < a role = "button" title = { locale . clear } onClick = { this . onClear } >
0 commit comments