vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
/**
* 批量测试某个目录下的 xlsx 文件是否渲染报错
*/
import puppeteer, {ElementHandle} from 'puppeteer';
import {getFiles} from './getFiles';
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
await page.goto('http://localhost:5173/examples/excel.html');
const dir = process.argv[2];
const uploadFile = (await page.$(
'#uploadFile'
)!) as ElementHandle<HTMLInputElement>;
for await (const file of getFiles(dir)) {
if (file.endsWith('.xlsx') && !file.includes('~$')) {
uploadFile?.uploadFile(file);
console.log(file);
await page.waitForSelector('.ov-excel-content', {
timeout: 2000
});
}
}
await browser.close();
})();