fix: 兼容 Chrome 90 前端运行环境

- 为管理端与用户中心补齐旧浏览器运行时 API 和回归测试

- 增加现代 CSS 与选择器降级,保持现有界面效果

- 固定 Chrome 90 构建目标并补充兼容依赖
This commit is contained in:
2026-07-16 14:50:06 +08:00
parent 705e0faab6
commit 27e50a7624
34 changed files with 793 additions and 60 deletions

View File

@@ -121,7 +121,11 @@ const sizeMap = {
<template>
<div
class="tag"
:class="[`tag--${size}`, { 'tag--round': round }, `tag--border-${border}`]"
:class="[
`tag--${size}`,
{ 'tag--closable': closable, 'tag--round': round },
`tag--border-${border}`,
]"
:style="[
tagStyle,
{
@@ -212,15 +216,15 @@ const sizeMap = {
}
/* 为可关闭标签调整内边距 */
.tag:has(.tag__close) {
.tag--closable {
padding-right: 8px;
}
.tag:has(.tag__close).tag--small {
.tag--closable.tag--small {
padding-right: 6px;
}
.tag:has(.tag__close).tag--large {
.tag--closable.tag--large {
padding-right: 12px;
}
</style>