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

dependabot/npm_and_yarn/jeecgboot-vue3/vite-6.0.9
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 }, components: { JSelectUser },
props: useJVxeCompProps(), props: useJVxeCompProps(),
setup(props: JVxeComponent.Props) { 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 { prefixCls } = useCellDesign('user-select');
const selectedValue = computed(() => { const selectedValue = computed(() => {
@ -49,7 +49,9 @@
// //
showSearch: false, 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, maxTagPlaceholder: ({ length }) => '+' + length,
// -update-begin--author:liaozhiyang---date:20240617---forTV360X-1002 // -update-begin--author:liaozhiyang---date:20240617---forTV360X-1002