Skip to content

Commit

Permalink
调整表格列宽
Browse files Browse the repository at this point in the history
  • Loading branch information
imsfc committed Sep 22, 2024
1 parent 31eda9d commit bf5be9b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions src/components/ModularFactoryDrawerContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function createColumns({
{
title: t('targetItem'),
key: 'targetItem',
minWidth: 160,
minWidth: 120,
width: 160,
render(row) {
return (
<ItemSelect
Expand All @@ -88,7 +89,8 @@ function createColumns({
{
title: t('recipe'),
key: 'recipe',
minWidth: 160,
minWidth: 120,
width: 160,
render(row) {
return (
<ItemRecipeSelect
Expand All @@ -104,8 +106,8 @@ function createColumns({
{
title: t('targetItemSpeed'),
key: 'targetItemSpeed',
minWidth: 180,
width: 200,
minWidth: 120,
width: 160,
render(row) {
return (
<NInputNumber
Expand All @@ -122,7 +124,8 @@ function createColumns({
{
title: t('building'),
key: 'building',
minWidth: 160,
minWidth: 120,
width: 140,
render: (row) => {
const assemblyLineComputed =
modularFactoryList.assemblyLineComputedList[row.id]
Expand Down Expand Up @@ -168,6 +171,7 @@ function createColumns({
title: t('power'),
key: 'power',
minWidth: 80,
width: 120,
render: (row) => {
const assemblyLineComputed =
modularFactoryList.assemblyLineComputedList[row.id]
Expand Down Expand Up @@ -201,7 +205,8 @@ function createColumns({
{
title: t('inputs'),
key: 'inputs',
minWidth: 160,
minWidth: 120,
width: 160,
render: (row) => {
const assemblyLineComputed =
modularFactoryList.assemblyLineComputedList[row.id]
Expand All @@ -218,7 +223,8 @@ function createColumns({
{
title: t('outputs'),
key: 'outputs',
minWidth: 160,
minWidth: 120,
width: 160,
render: (row) => {
const assemblyLineComputed =
modularFactoryList.assemblyLineComputedList[row.id]
Expand Down

0 comments on commit bf5be9b

Please sign in to comment.