perf: 优化template-admin-ts自带样式导入逻辑

This commit is contained in:
rd
2025-07-11 16:50:48 +08:00
parent 2fc1f64f5e
commit ba6ae87a1d
93 changed files with 230 additions and 242 deletions

View File

@ -1,8 +1,8 @@
/*
* @Author: 田鑫
* @Date: 2023-03-05 18:14:16
* @LastEditors: Please set LastEditors
* @LastEditTime: 2025-06-25 10:54:24
* @LastEditors: rd 1344903914@qq.com
* @LastEditTime: 2025-07-11 16:30:29
* @Description:
*/
import Unocss from 'unocss/vite';
@ -41,21 +41,5 @@ export const configUnocss = () =>
[/^w-(\d+)$/, ([, d]) => ({ width: `${d}px !important` })],
[/^h-(\d+)$/, ([, d]) => ({ height: `${d}px !important` })],
[/^ft-(\d+)$/, ([, d]) => ({ 'font-size': `${d}px !important` })],
[
'box-container',
{
'border-radius': '2px',
padding: '20px',
margin: '8px',
'background-color': '#fff',
},
],
[
'justify-between',
{
'justify-content': 'space-between',
},
],
['align-center', { 'text-align': 'center' }],
],
});