The problem that the event wants to pass other parameters when using components in vue

Today, when using the components of ant design, the encapsulated event already contains parameters, and I need to pass the index in the event to judge the event of the first element clicked.
insert image description here
After querying the data results

       <a-tree-select
                  :disabled="!items.change"
                  size="small"
                  :value="items.departmentId"
                  :replace-fields="replaceFields"
                  :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
                  :tree-data="treeData"
                  @select="(value, node)=>{changeItemOrg( value, node, index)}"
                  placeholder="组织"
                />

Guess you like

Origin blog.csdn.net/weixin_38566069/article/details/122114746