amis
amis copied to clipboard
dialog上的rich-text的菜单层被遮盖,修改z-index后,和select的下拉层冲突。
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的菜单能够显示:

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

没错,我也是这个问题~~
.tox{z-index:1400!important;}
.amis-scope .a-PopOver{z-index:1400!important;}
后来用这个css,总算临时解决,不过还是希望amis能够处理这个问题。
应该是修了
2.2.0 版本,这个问题又出现了。

