From 9da637c36ad3ad92d483acd32aca93145f8b1181 Mon Sep 17 00:00:00 2001 From: zhangli <2235006734@qq.com> Date: Thu, 12 Oct 2023 13:10:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Descriptions/src/Descriptions.vue | 5 ++- src/components/Detail/src/Detail.vue | 40 +++++++++++-------- src/components/Form/src/helper.ts | 2 - src/views/wms/itembasic/ItembasicForm.vue | 1 - src/views/wms/itembasic/index.vue | 4 -- 5 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/components/Descriptions/src/Descriptions.vue b/src/components/Descriptions/src/Descriptions.vue index d6eff75df..c27c26b1c 100644 --- a/src/components/Descriptions/src/Descriptions.vue +++ b/src/components/Descriptions/src/Descriptions.vue @@ -22,6 +22,8 @@ const props = defineProps({ collapse: propTypes.bool.def(true), columns: propTypes.number.def(1), width: propTypes.string.def('50px'), + labelAlign: propTypes.string.def('right'), + labelClassName: propTypes.string.def(''), schema: { type: Array as PropType, default: () => [] @@ -109,7 +111,8 @@ const toggleClick = () => { v-for="item in schema" :key="item.field" v-bind="getBindItemValue(item)" - label-align="right" + :label-align="labelAlign" + :label-class-name="labelClassName" :width="width" >