feat: user apitransfer
							parent
							
								
									664e25ce66
								
							
						
					
					
						commit
						a261242279
					
				|  | @ -20,7 +20,7 @@ import { propTypes } from '@/utils/propTypes' | ||||||
| import { TransferDirection, TransferItem } from 'ant-design-vue/lib/transfer' | import { TransferDirection, TransferItem } from 'ant-design-vue/lib/transfer' | ||||||
| 
 | 
 | ||||||
| const props = defineProps({ | const props = defineProps({ | ||||||
|   value: { type: Array as PropType<Array<string>> }, |   value: { type: Array as PropType<Array<any>> }, | ||||||
|   api: { |   api: { | ||||||
|     type: Function as PropType<(arg?: Recordable) => Promise<TransferItem[]>>, |     type: Function as PropType<(arg?: Recordable) => Promise<TransferItem[]>>, | ||||||
|     default: null |     default: null | ||||||
|  |  | ||||||
|  | @ -115,12 +115,12 @@ export const formSchema: FormSchema[] = [ | ||||||
|     label: '成员', |     label: '成员', | ||||||
|     field: 'memberUserIds', |     field: 'memberUserIds', | ||||||
|     required: true, |     required: true, | ||||||
|     component: 'ApiSelect', |     component: 'ApiTransfer', | ||||||
|     componentProps: { |     componentProps: { | ||||||
|       api: () => getListSimpleUsers(), |       api: () => getListSimpleUsers(), | ||||||
|  |       showSearch: true, | ||||||
|       labelField: 'nickname', |       labelField: 'nickname', | ||||||
|       valueField: 'id', |       valueField: 'id' | ||||||
|       mode: 'multiple' |  | ||||||
|     } |     } | ||||||
|   }, |   }, | ||||||
|   { |   { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 xingyu
						xingyu