@@ -2,7 +2,7 @@ import classNames from 'classnames';
2
2
import omit from 'omit.js' ;
3
3
import PropTypes from '../_util/vue-types' ;
4
4
import VcMentions from '../vc-mentions' ;
5
- import { mentionsProps , defaultProps } from '../vc-mentions/src/mentionsProps' ;
5
+ import { mentionsProps } from '../vc-mentions/src/mentionsProps' ;
6
6
import Base from '../base' ;
7
7
import Spin from '../spin' ;
8
8
import BaseMixin from '../_util/BaseMixin' ;
@@ -12,7 +12,6 @@ import {
12
12
getComponentFromProp ,
13
13
getListeners ,
14
14
filterEmpty ,
15
- initDefaultProps ,
16
15
} from '../_util/props-util' ;
17
16
18
17
const { Option } = VcMentions ;
@@ -60,13 +59,10 @@ const Mentions = {
60
59
} ,
61
60
Option : { ...Option , name : 'AMentionsOption' } ,
62
61
getMentions,
63
- props : initDefaultProps (
64
- {
65
- ...mentionsProps ,
66
- loading : PropTypes . bool ,
67
- } ,
68
- defaultProps ,
69
- ) ,
62
+ props : {
63
+ ...mentionsProps ,
64
+ loading : PropTypes . bool ,
65
+ } ,
70
66
inject : {
71
67
configProvider : { default : ( ) => ConfigConsumerProps } ,
72
68
} ,
@@ -168,7 +164,7 @@ const Mentions = {
168
164
children : this . getOptions ( ) ,
169
165
} ,
170
166
class : mergedClassName ,
171
- attrs : this . $attrs ,
167
+ attrs : { rows : 1 , ... this . $attrs } ,
172
168
on : {
173
169
...getListeners ( this ) ,
174
170
change : this . onChange ,
0 commit comments