Skip to content

弹窗可以指定挂载的dom元素吗?就和date-input的popOverContainerSelector一样 #21281

Closed

Description

@haiahaia

{
type: "button",
icon: "fa fa-trash",
level: "link",
className: "p-0 delete-btn",
style: {
color: "#ff4d4f",
padding: "4px",
fontSize: "14px",
},
tooltip: "删除",
onEvent: {
click: {
actions: [
{
actionType: "confirmDialog",
dialog: {
title: "系统提示",
msg: '您确定要删除此模版吗?',
},
},
{
actionType: "custom",
script: window.AmisTableUtils['${this.instanceKey}'].deleteMModel('${item.id}'),
},
],
},
},
},
怎么让这个弹窗挂在指定的元素下

Activity

  1. added
    style
    spam
    on Jan 27, 2026
  2. github-actions commented on Jan 27, 2026

    @github-actions

    该 issue 被自动判定为可能的垃圾(标题/正文中存在大量特殊括号 (22))。已自动关闭。如误判请联系维护者。

  3. github-actions commented on Jan 27, 2026

    @github-actions

    👍 Thanks for this!
    🏷 I have applied any labels matching special text in your issue.

    Please review the labels and make any necessary changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    need confirmspamstyle

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions