File tree 1 file changed +2
-12
lines changed
components/vc-mentions/src
1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 1
- import classNames from 'classnames' ;
2
1
import omit from 'omit.js' ;
3
2
import KeyCode from '../../_util/KeyCode' ;
4
3
import BaseMixin from '../../_util/BaseMixin' ;
@@ -32,17 +31,8 @@ const Mentions = {
32
31
} ,
33
32
props : initDefaultProps ( vcMentionsProps , defaultProps ) ,
34
33
provide ( ) {
35
- const { notFoundContent } = this . $props ;
36
- const { activeIndex } = this . $data ;
37
34
return {
38
- mentionsContext : {
39
- notFoundContent,
40
- activeIndex,
41
- setActiveIndex : this . setActiveIndex ,
42
- selectOption : this . selectOption ,
43
- onFocus : this . onDropdownFocus ,
44
- onBlur : this . onDropdownBlur ,
45
- } ,
35
+ mentionsContext : this ,
46
36
} ;
47
37
} ,
48
38
data ( ) {
@@ -289,7 +279,7 @@ const Mentions = {
289
279
const options = measuring ? this . getOptions ( ) : [ ] ;
290
280
291
281
return (
292
- < div class = { classNames ( prefixCls ) } style = { getStyle ( this ) } >
282
+ < div class = { prefixCls } style = { getStyle ( this ) } >
293
283
< textarea
294
284
ref = "textarea"
295
285
{ ...{
You can’t perform that action at this time.
0 commit comments