style: valuation item adapt to single line
This commit is contained in:
parent
37fa7feac0
commit
804e253203
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hera/plugin-core",
|
||||
"version": "1.3.0-alpha.8",
|
||||
"version": "1.4.0-alpha.0",
|
||||
"displayName": "Hera platform",
|
||||
"displayName.zh-CN": "赫拉平台",
|
||||
"description": "Hera platform as nocobase plugin.",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hera/plugin-rental",
|
||||
"version": "1.3.0-alpha.9",
|
||||
"version": "1.4.0-alpha.0",
|
||||
"main": "dist/server/index.js",
|
||||
"displayName": "professional construction materials rental system - customized based on hera",
|
||||
"displayName.zh-CN": "专业建材租赁系统 - 基于赫拉定制",
|
||||
|
@ -9,7 +9,6 @@ import { onFieldInit, onFieldValueChange } from '@formily/core';
|
||||
import _ from 'lodash';
|
||||
import { useRequest } from '@nocobase/client';
|
||||
import { ConversionLogics, RecordCategory } from '../../utils/constants';
|
||||
import { Descriptions } from 'antd';
|
||||
import { formatQuantity } from '../../utils/currencyUtils';
|
||||
|
||||
// 按合同计算换算
|
||||
@ -270,14 +269,15 @@ export const RecordItemValuationQuantity = (props) => {
|
||||
reqProduct.loading,
|
||||
reqWeightRules.loading,
|
||||
]);
|
||||
return result.map((item, index) => (
|
||||
<div key={index}>
|
||||
<span>
|
||||
{item.label}:{item.value}
|
||||
</span>
|
||||
<span> </span>
|
||||
</div>
|
||||
));
|
||||
return (
|
||||
<>
|
||||
{result.map((item, index) => (
|
||||
<span key={index} style={{ marginRight: '1rem' }}>
|
||||
{item.label}:{item.value}
|
||||
</span>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
RecordItemValuationQuantity.displayName = 'RecordItemValuationQuantity';
|
||||
|
Loading…
Reference in New Issue
Block a user