mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	feat: 升级vue3
This commit is contained in:
		| @@ -29,8 +29,15 @@ export const useRenderSelect = (slots: Slots) => { | ||||
|     // 如果有别名,就取别名 | ||||
|     const labelAlias = item?.componentProps?.optionsAlias?.labelField | ||||
|     const valueAlias = item?.componentProps?.optionsAlias?.valueField | ||||
|  | ||||
|     const { label, value, ...other } = option | ||||
|  | ||||
|     return ( | ||||
|       <ElOption label={option[labelAlias || 'label']} value={option[valueAlias || 'value']}> | ||||
|       <ElOption | ||||
|         label={labelAlias ? option[labelAlias] : label} | ||||
|         value={valueAlias ? option[valueAlias] : value} | ||||
|         {...other} | ||||
|       > | ||||
|         {{ | ||||
|           default: () => | ||||
|             // option 插槽名规则,{field}-option | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 xingyu
					xingyu