element-plus [Component] [popover] popper-options

zpjtge22  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(88)

Bug Type: Component

Environment

  • Vue Version: 3.2.45
  • Element Plus Version: 2.2.26
  • Browser / OS: chorme
  • Build Tool: Vite

Reproduction

  • el-popover

Element Plus Playground

Steps to reproduce

see link

What is Expected?

see link ,button2 offset to button1

What is actually happening?

see link

Additional comments

https://popper.js.org/docs/v2/modifiers/popper-offsets/

other API offset:EP playground

https://element-plus.run/#eyJBcHAudnVlIjoiPHNjcmlwdCBzZXR1cCBsYW5nPVwidHNcIj5cbmltcG9ydCB7IHJlZiwgdmVyc2lvbiBhcyB2dWVWZXJzaW9uIH0gZnJvbSAndnVlJ1xuaW1wb3J0IHsgdmVyc2lvbiBhcyBFcFZlcnNpb24gfSBmcm9tICdlbGVtZW50LXBsdXMnXG5pbXBvcnQgeyBFbGVtZW50UGx1cyB9IGZyb20gJ0BlbGVtZW50LXBsdXMvaWNvbnMtdnVlJ1xuY29uc3QgcG9wcGVyT3B0aW9ucyA9cmVmKHtcbiAgc3RyYXRlZ3k6IFwiYWJzb2x1dGVcIixcbiAgbW9kaWZpZXJzOiBbXG4gICAge1xuICAgICAgbmFtZTogXCJvZmZzZXRcIixcbiAgICAgIG9wdGlvbnM6IHtcbiAgICAgICAgb2Zmc2V0OiBbMTAwMCwgNTAwXSxcbiAgICAgIH0sXG4gICAgfSxcbiAgXSxcbn0pXG48L3NjcmlwdD5cblxuPHRlbXBsYXRlPlxuIDxlbC1wb3BvdmVyXG4gICAgOndpZHRoPVwiMjAwXCJcbiAgICA6dmlzaWJsZT1cInRydWVcIlxuICAgIDpwb3BwZXItb3B0aW9ucz1cInBvcHBlck9wdGlvbnNcIlxuICA+XG4gICAgPHRlbXBsYXRlICNkZWZhdWx0PlxuICAgICAgPGVsLWJ1dHRvbiBjbGFzcz1cIm0tMlwiPkhvdmVyIHRvIGExMWN0aXZhdGU8L2VsLWJ1dHRvbj5cbiAgICA8L3RlbXBsYXRlPlxuICA8L2VsLXBvcG92ZXI+XG48L3RlbXBsYXRlPlxuIiwiaW1wb3J0X21hcC5qc29uIjoie1xuICBcImltcG9ydHNcIjoge31cbn0iLCJfbyI6e319

相关问题