fix(table): 统一筛选交互并补齐移动视口覆盖

This commit is contained in:
zhanjunhao
2026-11-24 20:14:10 +08:00
parent 471d7843de
commit 2cbbf0839b
83 changed files with 2094 additions and 1355 deletions
+5 -3
View File
@@ -13,9 +13,9 @@ const aliases = {
'laptop-wxga': 'wxga',
};
export const browserChannel = config.browser.channel;
export const defaultProjectViewports = ['desktop', 'mobile', 'mobile-393'];
export const projectViewports = [
'desktop',
'mobile',
...defaultProjectViewports,
'tablet',
'desktop-boundary',
'laptop-hd',
@@ -30,7 +30,9 @@ export function deviceOptions(name) {
if (!size) throw new Error(`Unknown viewport: ${name}`);
const descriptor =
devices[
config.browser[key === 'mobile' ? 'mobileDevice' : 'desktopDevice']
config.browser[
key.startsWith('mobile') ? 'mobileDevice' : 'desktopDevice'
]
];
if (!descriptor) throw new Error(`Unknown device profile for ${name}`);
const { defaultBrowserType, ...context } = descriptor;