File tree 9 files changed +49
-5
lines changed
9 files changed +49
-5
lines changed Original file line number Diff line number Diff line change @@ -251,9 +251,7 @@ export default {
251
251
ref : 'input' ,
252
252
key : 'ant-input' ,
253
253
} ;
254
- if ( $listeners [ 'change.value' ] ) {
255
- inputProps . directives = [ { name : 'ant-input' } ] ;
256
- }
254
+ inputProps . directives = [ { name : 'ant-input' } ] ;
257
255
return this . renderLabeledIcon ( prefixCls , < input { ...inputProps } /> ) ;
258
256
} ,
259
257
} ,
Original file line number Diff line number Diff line change @@ -178,6 +178,9 @@ const DateInput = {
178
178
name : 'ant-ref' ,
179
179
value : this . saveDateInput ,
180
180
} ,
181
+ {
182
+ name : 'ant-input' ,
183
+ } ,
181
184
] ,
182
185
} }
183
186
class = { `${ prefixCls } -input ${ invalidClass } ` }
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ function chooseYear(year) {
15
15
const value = this . sValue . clone ( ) ;
16
16
value . year ( year ) ;
17
17
value . month ( this . sValue . month ( ) ) ;
18
- this . sValue = value
18
+ this . sValue = value ;
19
19
this . __emit ( 'select' , value ) ;
20
20
}
21
21
Original file line number Diff line number Diff line change @@ -129,6 +129,13 @@ export default {
129
129
onChange = { this . handleChange }
130
130
onKeyup = { this . go }
131
131
onBlur = { this . handleBlur }
132
+ { ...{
133
+ directives : [
134
+ {
135
+ name : 'ant-input' ,
136
+ } ,
137
+ ] ,
138
+ } }
132
139
/>
133
140
{ locale . page }
134
141
{ gotoButton }
Original file line number Diff line number Diff line change @@ -355,6 +355,13 @@ export default {
355
355
onKeyup = { this . handleKeyUp }
356
356
onInput = { this . handleKeyUp }
357
357
size = "3"
358
+ { ...{
359
+ directives : [
360
+ {
361
+ name : 'ant-input' ,
362
+ } ,
363
+ ] ,
364
+ } }
358
365
/>
359
366
< span class = { `${ prefixCls } -slash` } > /</ span >
360
367
{ allPages }
Original file line number Diff line number Diff line change @@ -733,7 +733,19 @@ const Select = {
733
733
const props = this . $props ;
734
734
const { _inputValue : inputValue } = this . $data ;
735
735
const attrs = getAttrs ( this ) ;
736
- const defaultInput = < input id = { attrs . id } autoComplete = "off" /> ;
736
+ const defaultInput = (
737
+ < input
738
+ { ...{
739
+ directives : [
740
+ {
741
+ name : 'ant-input' ,
742
+ } ,
743
+ ] ,
744
+ } }
745
+ id = { attrs . id }
746
+ autoComplete = "off"
747
+ />
748
+ ) ;
737
749
738
750
const inputElement = props . getInputElement ? props . getInputElement ( ) : defaultInput ;
739
751
const inputCls = classnames ( getClass ( inputElement ) , {
Original file line number Diff line number Diff line change @@ -178,6 +178,13 @@ const Header = {
178
178
placeholder = { placeholder }
179
179
onInput = { this . onInputChange }
180
180
readOnly = { ! ! inputReadOnly }
181
+ { ...{
182
+ directives : [
183
+ {
184
+ name : 'ant-input' ,
185
+ } ,
186
+ ] ,
187
+ } }
181
188
/>
182
189
) ;
183
190
} ,
Original file line number Diff line number Diff line change @@ -377,6 +377,13 @@ export default {
377
377
autoFocus = { autoFocus }
378
378
readOnly = { ! ! inputReadOnly }
379
379
id = { id }
380
+ { ...{
381
+ directives : [
382
+ {
383
+ name : 'ant-input' ,
384
+ } ,
385
+ ] ,
386
+ } }
380
387
/>
381
388
{ inputIcon || < span class = { `${ prefixCls } -icon` } /> }
382
389
{ this . renderClearButton ( ) }
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ const SearchInput = {
103
103
name : 'ant-ref' ,
104
104
value : this . inputRef ,
105
105
} ,
106
+ {
107
+ name : 'ant-input' ,
108
+ } ,
106
109
] ,
107
110
} }
108
111
onInput = { onSearchInputChange }
You can’t perform that action at this time.
0 commit comments