新增unocss,暂未启用
							parent
							
								
									704b8ed0d0
								
							
						
					
					
						commit
						6ec0a5d5b1
					
				
											
												
													File diff suppressed because it is too large
													Load Diff
												
											
										
									
								@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					import { defineConfig } from "unocss";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const rules = [
 | 
				
			||||||
 | 
						[/^mg-([\.\d]+)$/, ([_, num]) => ({ margin: `${num}px` })],
 | 
				
			||||||
 | 
						[/^mg-t-([\.\d]+)$/, ([_, num]) => ({ marginTop: `${num}px` })],
 | 
				
			||||||
 | 
						[/^mg-b-([\.\d]+)$/, ([_, num]) => ({ marginBottom: `${num}px` })],
 | 
				
			||||||
 | 
						[/^mg-r-([\.\d]+)$/, ([_, num]) => ({ marginRight: `${num}px` })],
 | 
				
			||||||
 | 
						[/^mg-l-([\.\d]+)$/, ([_, num]) => ({ marginLeft: `${num}px` })]
 | 
				
			||||||
 | 
					]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					export default defineConfig({
 | 
				
			||||||
 | 
						rules,
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
					Loading…
					
					
				
		Reference in New Issue