VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Feature] 目前headerType不支持函数,无法对某几个行头、列头或某些虚拟节点单独设置类型

Open blngblng opened this issue 6 months ago • 0 comments

What problem does this feature solve?

比如想给某个columnTree里的虚拟列头设置超链接link类型,目前的headerType只支持在rows和colums中统一设置,无法针对columnTree或rowTree中的某个节点设置link。

What does the proposed API look like?

columns: [
      {
        dimensionKey: "title",
        title: "标题",
      },
    ],

columnTree: [
      {
        dimensionKey: "title",
        value: "标题-1",
        virtual: true,

       // 【期望:此处允许headerType功能或者在columns的headerType支持函数,允许对所有的title单独进行控制】

        children: [
          {
            indicatorKey: "column1",
          },
        ],
      },
      {
        dimensionKey: "title",
        value: "标题-2",
        virtual: true,
        children: [
          {
            indicatorKey: "column2",
          },
        ],
      },
]

blngblng avatar Aug 14 '24 03:08 blngblng