amis icon indicating copy to clipboard operation
amis copied to clipboard

dialog上的rich-text的菜单层被遮盖,修改z-index后,和select的下拉层冲突。

Open colorless49 opened this issue 5 years ago • 4 comments

sdk1.1.4版本,代码如下:

{    
    "type": "page",
    "body":[ 
        { 
        "type": "crud",
        "name": "zzzclist",
        "headerToolbar": [
            {
                "type": "action",
                "label": "新增",
                "actionType": "dialog",
                "dialog": {
                    "title": "资助政策新增",
                    "size": "lg",
                    "body": {
                        "type": "form",
                        "api": "",
                        "title": "资助政策",
                        "reload": "zzzclist",
                        "controls": [
                            {
                                "type": "text",
                                "name": "name",
                                "label": "政策标题:",
                                "placeholder":"标题不超过50个汉字。",
                                "required": true
                              },
                              {
                                "label": "阶段类型:",
                                "required": true,
                                "type": "select",
                                "name": "select",
                                "options": [
                                  {
                                    "label": "A",
                                    "value": "a"
                                  },
                                  {
                                    "label": "B",
                                    "value": "b"
                                  },
                                  {
                                    "label": "C",
                                    "value": "c"
                                  }
                                ]
                              },
                            {
                                "name": "zccontent",
                                "type": "rich-text",
                                "label": "政策正文:",
                                "options": {
                                  "menubar": true,
                                  "height": 500,
                                  "plugins": [
                                    "advlist autolink lists link image charmap print preview anchor",
                                    "searchreplace visualblocks code fullscreen",
                                    "insertdatetime media table paste code help wordcount"
                                  ]
                                }
                            },
                            {
                                "type": "file",
                                "name": "file",
                                "label": "File",
                                "accept": "*",
                                "receiver": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/upload/file"
                              }
                        ]
                    }
                }
            },
            "export-excel"
        ],            
        "api": "get:http://192.168.16.237:3000/mock/65/zzzc",
        "syncLocation": false,
        "columns": [
            {
            "name": "id",
            "label": "序号"
            },
            {
            "name": "title",
            "label": "资助政策标题"
            },
            {
            "name": "stage",
            "label": "阶段类型"
            },
            {
            "name": "pubdate",
            "label": "发布时间"
            }
        ]
        }
    ]
  }

修改css的z-index如下:

.tox{z-index:1500!important;}

rich-text的菜单能够显示:

image

但是,select的下拉框却被遮住了。

image

colorless49 avatar Mar 23 '21 06:03 colorless49

没错,我也是这个问题~~

yymawei avatar Mar 25 '21 02:03 yymawei

      .tox{z-index:1400!important;}
      .amis-scope .a-PopOver{z-index:1400!important;}

后来用这个css,总算临时解决,不过还是希望amis能够处理这个问题。

colorless49 avatar Mar 26 '21 01:03 colorless49

应该是修了

nwind avatar Oct 28 '21 07:10 nwind

2.2.0 版本,这个问题又出现了。 image

1662353618878

huangkaiyan10 avatar Sep 05 '22 04:09 huangkaiyan10