【发布时间】:2021-11-27 06:07:32
【问题描述】:
我正在处理一个我们正在创建 UI 的项目,我正在尝试使用 react 更改表格单元格的字体大小,但无论我做什么似乎都不起作用...我尝试使用“fontSize : 30," 以及 fontSize: "30pt",但似乎没有任何效果
import React, {Component} from "react";
import DynamicTable from '@atlaskit/dynamic-table';
export const caption = 'List of Addon Version';
export const createHead = (withWidth) => {
return {
cells: [
{
key: 'pluginName',
content: 'Plugin Name',
shouldTruncate: true,
isSortable: true,
fontSize: 30,
width: withWidth ? 25 : undefined,
},
{
key: 'pluginVersion',
content: 'Plugin Version',
shouldTruncate: true,
isSortable: true,
width: withWidth ? 25 : undefined,
fontSize: 30,
},
{
key: 'jiraVersion',
content: 'Jira Version Group',
shouldTruncate: true,
width: withWidth ? 25 : undefined,
isSortable: true,
fontSize: 30,
},
{
key: 'pluginKey',
content: 'Plugin Key',
shouldTruncate: true,
width: withWidth ? 25 : undefined,
fontSize: 30,
},
],
};
};
我会很感激任何想法
【问题讨论】:
标签: javascript java jquery node.js reactjs