Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support transformOn in spreading props #501

Open
xiaobaichiliangpi opened this issue Sep 10, 2021 · 2 comments
Open

Support transformOn in spreading props #501

xiaobaichiliangpi opened this issue Sep 10, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@xiaobaichiliangpi
Copy link

xiaobaichiliangpi commented Sep 10, 2021

🧐 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

@xiaobaichiliangpi xiaobaichiliangpi added the question Further information is requested label Sep 10, 2021
@xiaobaichiliangpi xiaobaichiliangpi changed the title [Question] Help [Question] Help, transformOn is invalid Sep 10, 2021
@liuhoi
Copy link

liuhoi commented Oct 18, 2021

dont use spread

@luckydogM
Copy link

<el-button on={click: {}, change: {} }> isWork

const option = {
on: {
click: {}, change: {}
}
}
<el-button {...option }> can not Work

@sxzz sxzz added enhancement New feature or request and removed question Further information is requested labels Jul 30, 2023
@sxzz sxzz changed the title [Question] Help, transformOn is invalid Support transformOn in spreading props Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants