VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] corner header do not display when columns & indicators is empty for pivot table

Open purpose233 opened this issue 1 year ago • 0 comments

Version

1.5.4

Link to Minimal Reproduction

null

Steps to Reproduce

{
    "records": [],
    "rows": [
        {
            "dimensionKey": "date",
            "width": "auto",
            "headerStyle": {
                "fontSize": 16,
                "bgColor": "#EEF1F5"
            },
            "cornerHeaderIcon": "data-type-text"
        }
    ],
    "columns": [],
    "indicators": [],
    "rowTree": [
        {
            "dimensionKey": "date",
            "value": "x1"
        },
        {
            "dimensionKey": "date",
            "value": "x2"
        },
        {
            "dimensionKey": "date",
            "value": "x3"
        }
    ],
    "columnTree": [],
    "corner": {
        "titleOnDimension": "row"
    },
    "editor": "input",
    "headerEditor": "input",
    "widthMode": "adaptive",
    "dragHeaderMode": "all",
    "dataConfig": {
        "aggregationRules": []
    },
    "menu": {},
    "theme": {
        "_defaultStyle": null,
        "_header": null,
        "_cornerHeader": null,
        "_cornerRightTopCell": null,
        "_cornerLeftBottomCell": null,
        "_cornerRightBottomCell": null,
        "_rightFrozen": null,
        "_bottomFrozen": null,
        "_rowHeader": null,
        "_body": null,
        "_scroll": null,
        "_tooltip": null,
        "_frameStyle": null,
        "_columnResize": null,
        "_dragHeaderSplitLine": null,
        "_frozenColumnLine": null,
        "_selectionStyle": null,
        "_axisStyle": null,
        "_checkboxStyle": null,
        "_radioStyle": null,
        "_textPopTipStyle": null,
        "isPivot": false,
        "internalTheme": {
            "obj": {
                "frameStyle": {
                    "borderLineWidth": 0
                }
            },
            "superTheme": {
                "underlayBackgroundColor": "#FFF",
                "defaultStyle": {
                    "borderColor": "#E1E4E8",
                    "color": "#000",
                    "bgColor": "#ECF1F5"
                },
                "headerStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold",
                    "bgColor": "#ECF1F5",
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "rowHeaderStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold",
                    "bgColor": "#ECF1F5",
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "cornerHeaderStyle": {
                    "fontSize": 16,
                    "fontWeight": "bold"
                },
                "bodyStyle": {
                    "fontSize": 14,
                    "hover": {
                        "cellBgColor": "#CCE0FF",
                        "inlineRowBgColor": "#F3F8FF",
                        "inlineColumnBgColor": "#F3F8FF"
                    }
                },
                "frameStyle": {
                    "borderColor": "#E1E4E8",
                    "borderLineWidth": 1,
                    "borderLineDash": [],
                    "cornerRadius": 0,
                    "shadowBlur": 0,
                    "shadowOffsetX": 0,
                    "shadowOffsetY": 0,
                    "shadowColor": "black"
                },
                "columnResize": {
                    "lineWidth": 1,
                    "lineColor": "#416EFF",
                    "bgColor": "#D9E2FF",
                    "width": 3
                },
                "frozenColumnLine": {
                    "shadow": {
                        "width": 3,
                        "startColor": "rgba(225, 228, 232, 0.6)",
                        "endColor": "rgba(225, 228, 232, 0.6)"
                    }
                },
                "selectionStyle": {
                    "cellBgColor": "rgba(0, 0, 255,0.1)",
                    "cellBorderLineWidth": 2,
                    "cellBorderColor": "#0000ff"
                },
                "tooltipStyle": {
                    "bgColor": "#FFF",
                    "color": "#000",
                    "fontSize": 12,
                    "fontFamily": "Arial,sans-serif"
                }
            }
        }
    }
}

Current Behavior

image

Expected Behavior

image

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

purpose233 avatar Aug 05 '24 11:08 purpose233