style: editable cell input width
This commit is contained in:
@@ -40,7 +40,7 @@ const SealColumn: React.FC<SealColumnProps> = (props) => {
|
|||||||
if (isEditing && editable) {
|
if (isEditing && editable) {
|
||||||
return valueType === 'number' ? (
|
return valueType === 'number' ? (
|
||||||
<InputNumber
|
<InputNumber
|
||||||
style={{ width: '100%' }}
|
style={{ minWidth: '100px', width: '100%' }}
|
||||||
min={0}
|
min={0}
|
||||||
value={current}
|
value={current}
|
||||||
onChange={(val) => {
|
onChange={(val) => {
|
||||||
@@ -69,9 +69,10 @@ const SealColumn: React.FC<SealColumnProps> = (props) => {
|
|||||||
'cell-right': align === 'right'
|
'cell-right': align === 'right'
|
||||||
})}
|
})}
|
||||||
>
|
>
|
||||||
<span className="cell-content">{renderContent()}</span>
|
<span className="cell-content flex-center">
|
||||||
|
{renderContent()}
|
||||||
{editable && (
|
{editable && (
|
||||||
<>
|
<span>
|
||||||
{isEditing ? (
|
{isEditing ? (
|
||||||
<>
|
<>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -88,7 +89,7 @@ const SealColumn: React.FC<SealColumnProps> = (props) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={intl.formatMessage({ id: 'common.button.undo' })}
|
title={intl.formatMessage({ id: 'common.button.cancel' })}
|
||||||
key="undo"
|
key="undo"
|
||||||
>
|
>
|
||||||
<Button
|
<Button
|
||||||
@@ -121,8 +122,9 @@ const SealColumn: React.FC<SealColumnProps> = (props) => {
|
|||||||
</Button>
|
</Button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
)}
|
)}
|
||||||
</>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user