element icon indicating copy to clipboard operation
element copied to clipboard

Popover组件在触发的组件被disabled之后依然可以点击弹出

Open dieslrae opened this issue 9 years ago • 4 comments

ElementUI version

1.2.3

OS/Browers version

chrome

Vue version

2.1

Reproduction Link

Steps to reproduce

<el-popover v-if="scope.row.status == 'stopped'" trigger="click" placement="top" v-model="scope.row.runPopoverVisible">
                                <p>确定要立即运行调度[{{scope.row.name}}]吗?</p>
                                <div style="text-align: right; margin: 0">
                                    <el-button type="text" size="mini" @click="scope.row.runPopoverVisible = false">
                                        取消
                                    </el-button>
                                    <el-button type="primary" size="mini" @click="runSchedule(scope.row)">
                                        确定
                                    </el-button>
                                </div>
                                
                                <div slot="reference" style="display:inline">
                                    <el-button size="small" :disabled="!scope.row.yxbz">
                                        运行 
                                    </el-button>
                                </div>
                            </el-popover>

What is Expected?

What is actually happening?

dieslrae avatar Mar 09 '17 02:03 dieslrae

感觉可以试试 trigger="manual"

Leopoldthecoder avatar Mar 09 '17 02:03 Leopoldthecoder

感谢帮助,用trigger="manual"之后再在button上手工修改弹出状态解决了

dieslrae avatar Mar 09 '17 03:03 dieslrae

请问怎么设置手动弹出呢?我进入页面就要显示,但是显示位置不对,手动点击又好了。不知道怎么写方法手动让触发跟点击一样的效果

wosqqa avatar Jun 14 '17 07:06 wosqqa

@dieslrae 用了 trigger="manual" 之后,如何设置,点及其他地方让其关闭呢

jinjinwa avatar Dec 04 '17 06:12 jinjinwa