About element-react upload uploading resources?

problems encountered while using the upload component of element-react.
first of all, there is the problem of upload parameters, which are optional parameters described in the data properties document, and the type is object.
when I write: data= {sourceType: "thumbnail"}, the error is as follows.

How should I write

?
now the requirement is that uploaded images must take a parameter resourceType is thumbnail.

Mar.20,2021

declare a variable data: {resourceType: 'thumbnail'}
Upload in state and write data= {this.state.data}

in it.
Menu