style: valuation item adapt to single line

This commit is contained in:
sealday 2024-03-07 21:21:17 +08:00
parent 37fa7feac0
commit 804e253203
3 changed files with 11 additions and 11 deletions

View File

@ -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.",

View File

@ -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": "专业建材租赁系统 - 基于赫拉定制",

View File

@ -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>
return (
<>
{result.map((item, index) => (
<span key={index} style={{ marginRight: '1rem' }}>
{item.label}{item.value}
</span>
<span> </span>
</div>
));
))}
</>
);
};
RecordItemValuationQuantity.displayName = 'RecordItemValuationQuantity';