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

使用element-ui 的颜色选择器时 该如何避免点击事件冒泡 导致其他组件失去焦点 #748

Open
zhangkkkai opened this issue Jan 22, 2025 · 0 comments

Comments

@zhangkkkai
Copy link

<formCreate
v-if="store.current?.componentConfig"
:rule="rule"
:option="options"
v-model="formData"
@change="onChange"
@click.stop ="click"

@click.stop 无法避免 点击事件传播
[{"type":"subForm","field":"color","title":"框架颜色","value":{"color1":"#C61FCF","color2":"#EBC106"},"props":{"rule":[{"type":"el-color-picker","field":"color1","title":"静态颜色"},{"type":"el-color-picker","field":"color2","title":"波动颜色"}]}}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant