Skip to content

[Bug]: 1 tooltip 出现位置 如果tooltip 有一定高度,部分内容不可见 2tooltip 内容过长产生滚动条, 滚动条不可以用滚轮滚动 #7327

@lishixin2218

Description

@lishixin2218

Describe the bug / 问题描述

getContent: (e, items) => {
let names = items[0].data || [];

          let str = '';
          for (let i = 0; i < names .length; i++) {
            str += `<div class="list-item"
              onmouseover="this.style.background='#ccc'"
              onmouseout="this.style.background='transparent'"
           
            >${names [i]}</div>`;
          }

          return `
            <div class="node">
              <div >
             列表
              </div>
              ${str}
            </div>
          `;
        },
        style: {
          '.node': {
            'max-width': '400px',
            'max-height': '500px',
            'overflow-y': 'auto',          
          },

        },

Reproduction link / 复现链接

No response

Steps to Reproduce the Bug or Issue / 重现步骤

No response

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    need improvementLack of information or incorrect formatquestion 💬This issue is just a question. It will be converted into discussion automaticallywaiting for maintainerTriage or intervention needed from a maintainer.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions