element icon indicating copy to clipboard operation
element copied to clipboard

dilog组件套表单之后、表单用refs调不到方法

Open likaixuan opened this issue 9 years ago • 2 comments

<template>
    <div>
        <el-dialog>
            <el-form ref="test"></el-form>
       </<el-dialog>
   </div>
</template>

这样的形式调用ref里面的重置表单方法会失败

<template>
    <div>
            <el-form ref="test"></el-form>
   </div>
</template>

这样一层是可以的 不知道是bug问题还是我们使用姿势有问题

likaixuan avatar Jun 05 '17 02:06 likaixuan

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

element-bot avatar Jun 05 '17 02:06 element-bot

用this.$nextTick()包起来就可以了

AlenWang avatar Sep 22 '17 06:09 AlenWang