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:
lijianan 2023-11-17 13:46:41 +08:00 committed by GitHub
parent 427d1a3eef
commit a1f77f3694
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 261 additions and 201 deletions

View file

@ -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);