【issues/7661】vxetable用户组件maxTagCount通过业务传递

pull/7765/head^2
JEECG 2025-01-13 20:23:14 +08:00
parent a2a3ff6709
commit a00e4684b5
1 changed files with 4 additions and 2 deletions

View File

@ -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---forissues/7661vxetablemaxTagCount
maxTagCount: originColumn.value.maxTagCount ?? 1,
// update-end--author:liaozhiyang---date:20250106---forissues/7661vxetablemaxTagCount
//
maxTagPlaceholder: ({ length }) => '+' + length,
// -update-begin--author:liaozhiyang---date:20240617---forTV360X-1002