From e3ae5da789eb35217a4a377cab0ff3241ceaf72a Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 11 八月 2025 13:42:07 +0800 Subject: [PATCH] feat: 接口对接 --- packages/components/src/Input/ChooseInputWithAreaPicker.vue | 9 ++++----- 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/components/src/Input/ChooseInputWithAreaPicker.vue b/packages/components/src/Input/ChooseInputWithAreaPicker.vue index 62b687f..b0cd598 100644 --- a/packages/components/src/Input/ChooseInputWithAreaPicker.vue +++ b/packages/components/src/Input/ChooseInputWithAreaPicker.vue @@ -18,7 +18,7 @@ type Props = { fieldNames?: object; columns: API.AreaTreeNode[]; - modelValue: Array<string | number>; + modelValue: Array<string>; title?: string; }; @@ -30,12 +30,11 @@ children: 'children', }), }); -const inputValue = computed(() => - props.modelValue.map((x) => findAreaNameFromCode(Number(x))).join(',') -); +console.log('props: ', props); +const inputValue = computed(() => props.modelValue.map((x) => findAreaNameFromCode(x)).join(',')); const emit = defineEmits<{ - (e: 'update:modelValue', val: Array<string | number>): void; + (e: 'update:modelValue', val: Array<string>): void; }>(); function handleOpen() { -- Gitblit v1.9.1