mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-15 21:48:29 +02:00
feat: Table support cssVar (#45856)
* feat: Table support cssVar * fix: fix * fix: fix * Update check-cssinjs.tsx Signed-off-by: lijianan <574980606@qq.com> * Update components/table/style/fixed.ts Co-authored-by: MadCcc <madccc@foxmail.com> Signed-off-by: lijianan <574980606@qq.com> * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * fix: fix * feat: optimize token * chore: update --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: MadCcc <madccc@foxmail.com> Co-authored-by: MadCcc <1075746765@qq.com>
This commit is contained in:
parent
427d1a3eef
commit
a1f77f3694
17 changed files with 261 additions and 201 deletions
|
@ -1,7 +1,7 @@
|
|||
import url from 'node:url';
|
||||
import path from 'path';
|
||||
import { globSync } from 'glob';
|
||||
import React from 'react';
|
||||
import { globSync } from 'glob';
|
||||
|
||||
type StyleFn = (prefix?: string) => void;
|
||||
|
||||
|
@ -29,7 +29,9 @@ export const generateCssinjs = ({ key, beforeRender, render, ignore }: GenCssinj
|
|||
const pathArr = file.split('/');
|
||||
const styleIndex = pathArr.lastIndexOf('style');
|
||||
const componentName = pathArr[styleIndex - 1];
|
||||
if (ignore?.includes(componentName)) return;
|
||||
if (ignore?.includes(componentName)) {
|
||||
return;
|
||||
}
|
||||
let useStyle: StyleFn = () => {};
|
||||
if (file.includes('grid')) {
|
||||
const { useColStyle, useRowStyle } = await import(absPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue