fix(table): 统一筛选交互并补齐移动视口覆盖
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user