From a00e4684b5071dc071341b615aaa3229536bf920 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Mon, 13 Jan 2025 20:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/7661=E3=80=91vxetable=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=BB=84=E4=BB=B6maxTagCount=E9=80=9A=E8=BF=87?= =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E4=BC=A0=E9=80=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JVxeCustom/src/components/JVxeUserSelectCell.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jeecgboot-vue3/src/components/JVxeCustom/src/components/JVxeUserSelectCell.vue b/jeecgboot-vue3/src/components/JVxeCustom/src/components/JVxeUserSelectCell.vue index 5da22f04..6891370d 100644 --- a/jeecgboot-vue3/src/components/JVxeCustom/src/components/JVxeUserSelectCell.vue +++ b/jeecgboot-vue3/src/components/JVxeCustom/src/components/JVxeUserSelectCell.vue @@ -18,7 +18,7 @@ components: { JSelectUser }, props: useJVxeCompProps(), setup(props: JVxeComponent.Props) { - const { innerValue, cellProps, handleChangeCommon, useCellDesign } = useJVxeComponent(props); + const { innerValue, cellProps, handleChangeCommon, useCellDesign, originColumn } = useJVxeComponent(props); const { prefixCls } = useCellDesign('user-select'); const selectedValue = computed(() => { @@ -49,7 +49,9 @@ // 不允许搜索 showSearch: false, // 设置最大的显示个数 - maxTagCount: 1, + // update-begin--author:liaozhiyang---date:20250106---for:【issues/7661】vxetable用户组件maxTagCount通过业务传递 + maxTagCount: originColumn.value.maxTagCount ?? 1, + // update-end--author:liaozhiyang---date:20250106---for:【issues/7661】vxetable用户组件maxTagCount通过业务传递 // 显示提示重写,去掉省略号 maxTagPlaceholder: ({ length }) => '+' + length, // -update-begin--author:liaozhiyang---date:20240617---for:【TV360X-1002】详情页面行编辑用户组件和部门组件显示方式优化