Skip to content

Support transformOn in spreading props #501

Open
@xiaobaichiliangpi

Description

🧐 Problem Description

{ on: { click: this.handleClick } } can not be triggered even though 'transformOn' has been turn on.

💻 Sample code

// example.jsx
<el-button {...{
size: 'mini',
type: 'secondary',
on: {
click: () => this.handleSearch(),
},
}}>search

🚑 Other information

in vite.config.ts
image

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions