mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-10-31 18:28:43 +08:00 
			
		
		
		
	多模块重构 12:修改项目名字,按照新的规则
This commit is contained in:
		
							
								
								
									
										18
									
								
								yudao-ui-admin/src/components/generator/css.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								yudao-ui-admin/src/components/generator/css.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | ||||
| const styles = { | ||||
|   'el-rate': '.el-rate{display: inline-block; vertical-align: text-top;}', | ||||
|   'el-upload': '.el-upload__tip{line-height: 1.2;}' | ||||
| } | ||||
|  | ||||
| function addCss(cssList, el) { | ||||
|   const css = styles[el.__config__.tag] | ||||
|   css && cssList.indexOf(css) === -1 && cssList.push(css) | ||||
|   if (el.__config__.children) { | ||||
|     el.__config__.children.forEach(el2 => addCss(cssList, el2)) | ||||
|   } | ||||
| } | ||||
|  | ||||
| export function makeUpCss(conf) { | ||||
|   const cssList = [] | ||||
|   conf.fields.forEach(el => addCss(cssList, el)) | ||||
|   return cssList.join('\n') | ||||
| } | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV