From 804e25320345ea737175a56fb1aa2db5cd03f768 Mon Sep 17 00:00:00 2001 From: sealday Date: Thu, 7 Mar 2024 21:21:17 +0800 Subject: [PATCH] style: valuation item adapt to single line --- .../plugins/@hera/plugin-core/package.json | 2 +- .../plugins/@hera/plugin-rental/package.json | 2 +- .../RecordItemValuationQuantity.tsx | 18 +++++++++--------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/plugins/@hera/plugin-core/package.json b/packages/plugins/@hera/plugin-core/package.json index 19ccaf382..f2b275338 100644 --- a/packages/plugins/@hera/plugin-core/package.json +++ b/packages/plugins/@hera/plugin-core/package.json @@ -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.", diff --git a/packages/plugins/@hera/plugin-rental/package.json b/packages/plugins/@hera/plugin-rental/package.json index 6dde748e0..c2a2a2088 100644 --- a/packages/plugins/@hera/plugin-rental/package.json +++ b/packages/plugins/@hera/plugin-rental/package.json @@ -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": "专业建材租赁系统 - 基于赫拉定制", diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx index cc4baf6b1..1469c4f62 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordItemValuationQuantity.tsx @@ -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) => ( -
- - {item.label}:{item.value} - - -
- )); + return ( + <> + {result.map((item, index) => ( + + {item.label}:{item.value} + + ))} + + ); }; RecordItemValuationQuantity.displayName = 'RecordItemValuationQuantity';