We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e73be commit 756e19fCopy full SHA for 756e19f
packages/element-x-ui/src/components/Prompts/main.vue
@@ -79,7 +79,7 @@
79
class="el-x-prompts-nested"
80
:items="info.children"
81
:vertical="true"
82
- :on-item-click="onItemClick"
+ @on-item-click="$emit('on-item-click', $event)"
83
:class-names="{
84
list: classNames.subList,
85
item: classNames.subItem
@@ -216,6 +216,10 @@ export default {
216
if (info.disabled) {
217
return;
218
}
219
+ // 如果有子项,不触发点击事件
220
+ if (this.hasChildren(info)) {
221
+ return;
222
+ }
223
this.$emit('on-item-click', { data: info });
224
// 向后兼容性
225
if (this.onItemClick) {
0 commit comments