| | |
| | | type Props = { |
| | | fieldNames?: object; |
| | | columns: API.AreaTreeNode[]; |
| | | modelValue: Array<string | number>; |
| | | modelValue: Array<string>; |
| | | title?: string; |
| | | }; |
| | | |
| | |
| | | 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() { |