You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
488 B
JavaScript
14 lines
488 B
JavaScript
const assert = require("assert");
|
|
const fs = require("fs");
|
|
const path = require("path");
|
|
|
|
const appMainPath = path.join(__dirname, "..", "src", "layout", "components", "AppMain.vue");
|
|
const source = fs.readFileSync(appMainPath, "utf8");
|
|
|
|
assert(
|
|
/\.el-table\s*\{[\s\S]*--el-fill-color-lighter:\s*rgba\(2, 16, 27, 0\.72\)/.test(source),
|
|
"深色主题必须覆盖 Element Plus 表格 stripe 使用的 --el-fill-color-lighter"
|
|
);
|
|
|
|
console.log("dark table stripe static checks passed");
|