Closed 209 closed 2 years ago
https://github.com/209/element-plus-nuxt-starter
<el-dropdown> <span> test </span> <template #dropdown> <div> <el-dropdown-menu> <el-dropdown-item>Action 1</el-dropdown-item> <el-dropdown-item>Action 2</el-dropdown-item> <el-dropdown-item>Action 3</el-dropdown-item> <el-dropdown-item disabled>Action 4</el-dropdown-item> <el-dropdown-item divided>Action 5</el-dropdown-item> </el-dropdown-menu> </div> </template> </el-dropdown>
If add root <div> then we haven't warn
<div>
Its seems like el-dropdown is not single dom. so you should wrapper it by div
el-dropdown
div
fix: https://github.com/element-plus/element-plus-nuxt-starter/commit/98aa178d5031359d67653e1b5f5f7611ab94ca1f
https://github.com/209/element-plus-nuxt-starter
If add root
<div>
then we haven't warn