amis icon indicating copy to clipboard operation
amis copied to clipboard

input-table下样式问题

Open d402236598 opened this issue 4 years ago • 1 comments

描述问题:

input-table下样式问题,input-number丢失+,-符号,Select选择器被遮挡

截图或视频:

image image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? sdk

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在 1.6.3

  3. 粘贴有问题的完整 amis schema 代码:

{
            "title": "表格编辑",
            "body": {
                "type": "form",
                "mode": "horizontal",
                "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm?waitSeconds=2",
                "actions": [
                    {
                        "type": "submit",
                        "label": "提交",
                        "primary": true
                    }
                ],
                "body": [
                    {
                        "type": "combo",
                        "name": "colors",
                        "label": "Combo",
                        "multiple": true,
                        "draggable": true,
                        "multiLine": true,
                        "value": [
                            {
                                "color": "green",
                                "name": "颜色"
                            }
                        ],
                        "items": [
                            {
                                "type": "input-color",
                                "name": "color",
                                "clearable": false
                            },
                            {
                                "type": "input-text",
                                "name": "name",
                                "placeholder": "说明文字"
                            }
                        ]
                    },
                    {
                        "type": "static",
                        "label": "当前值",
                        "tpl": "<pre>${colors|json}</pre>"
                    },
                    {
                        "type": "input-table",
                        "name": "colors",
                        "label": "Table",
                        "draggable": true,
                        "addable": true,
                        "removable": true,
                        "needConfirm": false,
                        "columns": [
                            {
                                "label": "Color",
                                "name": "color",
                                "type": "input-color",
                                "quickEdit": false
                            },
                            {
                                "label": "date",
                                "name": "date",
                                "type": "input-date",
                                "quickEdit": false
                            },
                            {
                                "label": "说明文字",
                                "name": "name"
                            },
                            {
                                "label": "数字填写",
                                "name": "name",
                                "type":"input-number"
                            },
                            {
                                "label": "SELECT表格形式",
                                "type": "select",
                                "name": "a",
                                "selectMode": "table",
                                "columns": [
                                    {
                                        "name": "label",
                                        "label": "英雄"
                                    },
                                    {
                                        "name": "position",
                                        "label": "位置"
                                    }
                                ],
                                "options": [
                                    {
                                        "label": "诸葛亮",
                                        "value": "zhugeliang",
                                        "position": "中单"
                                    },
                                    {
                                        "label": "曹操",
                                        "value": "caocao",
                                        "position": "上单"
                                    },
                                    {
                                        "label": "钟无艳",
                                        "value": "zhongwuyan",
                                        "position": "上单"
                                    },
                                    {
                                        "label": "李白",
                                        "value": "libai",
                                        "position": "打野"
                                    },
                                    {
                                        "label": "韩信",
                                        "value": "hanxin",
                                        "position": "打野"
                                    },
                                    {
                                        "label": "云中君",
                                        "value": "yunzhongjun",
                                        "position": "打野"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "type": "control",
                        "body": {
                            "type": "button",
                            "label": "Table2新增一行",
                            "target": "table2",
                            "actionType": "add"
                        }
                    },
                    {
                        "type": "input-table",
                        "name": "table2",
                        "label": "Table2",
                        "editable": true,
                        "addable": true,
                        "removable": true,
                        "draggable": true,
                        "columns": [
                            {
                                "name": "a",
                                "label": "A"
                            },
                            {
                                "name": "b",
                                "label": "B",
                                "quickEdit": {
                                    "type": "select",
                                    "options": [
                                        {
                                            "label": "A",
                                            "value": "a"
                                        },
                                        {
                                            "label": "B",
                                            "value": "b"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    {
                        "type": "input-table",
                        "name": "table3",
                        "label": "Table3(指定第2列只有update时能编辑)",
                        "editable": true,
                        "addable": true,
                        "removable": true,
                        "draggable": true,
                        "columns": [
                            {
                                "name": "a",
                                "label": "A",
                                "quickEdit": true
                            },
                            {
                                "name": "b",
                                "label": "B",
                                "quickEdit": false,
                                "quickEditOnUpdate": {
                                    "type": "select",
                                    "options": [
                                        {
                                            "label": "A",
                                            "value": "a"
                                        },
                                        {
                                            "label": "B",
                                            "value": "b"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                ]
            }
        }
  1. 操作步骤 点击如图位置即可

d402236598 avatar Jan 21 '22 06:01 d402236598

图标问题是没引入 iconfont.css

nwind avatar Jan 28 '22 07:01 nwind