File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ describe('树搜索测试', () => {
52
52
propsData : { data }
53
53
} )
54
54
const vm = wrapper . vm
55
- const tree = wrapper . findComponent ( { ref : 'tree ' } ) . vm
55
+ const tree = wrapper . findComponent ( { ref : 'treeRef ' } ) . vm
56
56
57
57
const input = wrapper . find ( '.ctree-tree-search__input' )
58
58
const inputElement = input . element as HTMLInputElement
@@ -115,14 +115,14 @@ describe('树远程搜索增强测试包', () => {
115
115
checkable : true ,
116
116
modelValue : [ '93' , '124' ]
117
117
} ,
118
- listeners : {
119
- input : ( emitValue : Array < string | number > ) => {
118
+ attrs : {
119
+ 'onUpdate:modelValue' : ( emitValue : Array < string | number > ) => {
120
120
wrapper . setProps ( { modelValue : emitValue } )
121
121
}
122
122
}
123
123
} ) as any
124
124
const vm = wrapper . vm
125
- const treeWrapper = wrapper . findComponent ( { ref : 'tree ' } ) as any
125
+ const treeWrapper = wrapper . findComponent ( { ref : 'treeRef ' } ) as any
126
126
127
127
const input = wrapper . find ( '.ctree-tree-search__input' )
128
128
const inputElement = input . element as HTMLInputElement
Original file line number Diff line number Diff line change @@ -273,8 +273,8 @@ describe('树多选测试', () => {
273
273
data,
274
274
checkable : true
275
275
} ,
276
- listeners : {
277
- input : ( emitValue : Array < string | number > ) => {
276
+ attrs : {
277
+ 'onUpdate:modelValue' : ( emitValue : Array < string | number > ) => {
278
278
modelValue = emitValue
279
279
280
280
let expectedCheck = flatten ( data [ 0 ] )
@@ -301,8 +301,8 @@ describe('树多选测试', () => {
301
301
data,
302
302
checkable : true
303
303
} ,
304
- listeners : {
305
- input : ( emitValue : Array < string | number > ) => {
304
+ attrs : {
305
+ 'onUpdate:modelValue' : ( emitValue : Array < string | number > ) => {
306
306
modelValue = emitValue
307
307
308
308
let expectedCheck = flatten ( data [ 0 ] ) . map ( d => d . id )
@@ -328,8 +328,8 @@ describe('树多选测试', () => {
328
328
data,
329
329
checkable : true
330
330
} ,
331
- listeners : {
332
- input : ( emitValue : Array < string | number > ) => {
331
+ attrs : {
332
+ 'onUpdate:modelValue' : ( emitValue : Array < string | number > ) => {
333
333
modelValue = emitValue
334
334
335
335
let expectedCheck = flatten ( data [ 0 ] )
You can’t perform that action at this time.
0 commit comments