调整结果总览页面样式与文案
This commit is contained in:
32
ruoyi-ui/tests/unit/preliminary-check-card-corners.test.js
Normal file
32
ruoyi-ui/tests/unit/preliminary-check-card-corners.test.js
Normal file
@@ -0,0 +1,32 @@
|
||||
const assert = require("assert");
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
|
||||
function read(file) {
|
||||
return fs.readFileSync(
|
||||
path.resolve(
|
||||
__dirname,
|
||||
`../../src/views/ccdiProject/components/detail/${file}`
|
||||
),
|
||||
"utf8"
|
||||
);
|
||||
}
|
||||
|
||||
const overview = read("OverviewStats.vue");
|
||||
const people = read("RiskPeopleSection.vue");
|
||||
const model = read("RiskModelSection.vue");
|
||||
const detail = read("RiskDetailSection.vue");
|
||||
const entry = read("PreliminaryCheck.vue");
|
||||
|
||||
[
|
||||
[overview, ".section-card", "border-radius: 0;"],
|
||||
[overview, ".stats-card", "border-radius: 0;"],
|
||||
[people, ".section-card", "border-radius: 0;"],
|
||||
[model, ".section-card", "border-radius: 0;"],
|
||||
[model, ".model-card", "border-radius: 0;"],
|
||||
[detail, ".section-card", "border-radius: 0;"],
|
||||
[entry, ".state-card", "border-radius: 0;"],
|
||||
].forEach(([source, selector, token]) => {
|
||||
assert(source.includes(selector), `缺少选择器: ${selector}`);
|
||||
assert(source.includes(token), `卡片应使用直角: ${selector}`);
|
||||
});
|
||||
Reference in New Issue
Block a user