Replies: 2 comments
-
|
@ustcfury 您好!以下是关于您问题的自动回复: 您好,关于 表格列头自定义 icon 大小设置 的问题,下面为您详细解答: 如何设置自定义 icon 的大小?在 S2 的 推荐调整方式
const s2Options = {
style: {
colCell: {
height: 40, // 默认 30,增大后 icon 显示更大
width: 120, // 如需要也可增宽
},
},
headerActionIcons: [
{
icons: [
{ name: "FieldNumber", position: "left" },
],
belongsCell: "colCell",
},
],
}
import { S2 } from '@antv/s2';
S2.registerSVGIcon('FieldNumber', `
<svg width="20" height="20" ...>...</svg>
`);
常见问题与建议
参考文档如还有具体代码或实际效果需求,欢迎补充详细信息,方便进一步指导! 此回复由 AI 助手自动生成。如有任何问题,我们的团队会尽快跟进。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
icontheme可以调整ICON大小。或者直接改CustomSVGIcon的SVG |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
headerActionIcons 配置如下:

headerActionIcons: [
{
icons: [
{
name: "FieldNumber",// 自定义icon
position: "left",
},
],
belongsCell: "colCell",
},
],
如何更改自定义icon(FieldNumber)的大小?
显示的icon过小
Beta Was this translation helpful? Give feedback.
All reactions