完成批次 L-R:限流移除/白名单驱动/打印增强/全屏/表格对齐/主题变量/滚动闪烁修复
- 移除登录失败限流;fix-config.php 修正 e2e 串味的 127.0.0.1 连接 - 白名单驱动缺/待考名单(DataService + SurveyKingClient::getWhitelist,复用已取 survey) - 打印成绩明细增强(范围/合格列默认关/去页脚);看板全屏占满;表格 vertical-align:middle;隐藏登陆账号;导入默认追加 - 主题变量收口(:root 新增 brand/primary-2/ok-2 等,替换硬编码渐变);删死规则 - 表头/数据列对齐修复(index 未匹配表、dashboard 成员榜、draw 结果/历史/排除表);看板占位卡片配色一致 - 修复滚动闪烁:row-drop-in 动画经 _dropAnim 门控,仅强制重绘时播放 - 测试:新增 test-whitelist.js;run-all.sh 全绿 132
This commit is contained in:
+10
-4
@@ -15,6 +15,8 @@ final class XlsxWriter
|
||||
private array $strIndex = [];
|
||||
/** @var array<int,string> 索引 => 共享字符串 */
|
||||
private array $strings = [];
|
||||
/** @var array<int,int> 索引 => 出现次数(sst 的 count 用,区别于 uniqueCount) */
|
||||
private array $strCount = [];
|
||||
/** @var array<int,array{name:string,rows:array,widths:array}> 工作表(按输出顺序) */
|
||||
private array $sheets = [];
|
||||
|
||||
@@ -156,8 +158,11 @@ final class XlsxWriter
|
||||
$i = count($this->strings);
|
||||
$this->strIndex[$s] = $i;
|
||||
$this->strings[$i] = $s;
|
||||
$this->strCount[$i] = 0;
|
||||
}
|
||||
return $this->strIndex[$s];
|
||||
$i = $this->strIndex[$s];
|
||||
$this->strCount[$i] = ($this->strCount[$i] ?? 0) + 1;
|
||||
return $i;
|
||||
}
|
||||
|
||||
private function sheetXml(array $cells, int $maxRow, int $maxCol, array $widths = []): string
|
||||
@@ -287,14 +292,15 @@ final class XlsxWriter
|
||||
|
||||
private function sharedStringsXml(): string
|
||||
{
|
||||
$count = count($this->strings);
|
||||
$unique = count($this->strings);
|
||||
$total = array_sum($this->strCount);
|
||||
$body = '';
|
||||
foreach ($this->strings as $s) {
|
||||
$body .= '<si><t xml:space="preserve">' . self::xml((string)$s) . '</t></si>';
|
||||
}
|
||||
return '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>' . "\n" .
|
||||
'<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="' . $count .
|
||||
'" uniqueCount="' . $count . '">' . $body . '</sst>';
|
||||
'<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="' . $total .
|
||||
'" uniqueCount="' . $unique . '">' . $body . '</sst>';
|
||||
}
|
||||
|
||||
private function coreXml(string $title): string
|
||||
|
||||
Reference in New Issue
Block a user