amis2/packages/office-viewer/examples/excel.html
吴多益 4b8dd7a9ca
feat: Office Viewer 支持 Excel (#9826)
* feat: Office viewer 支持 Excel

* 修复类型报错

* 修复类型报错
2024-03-20 11:08:43 +08:00

41 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>excel viewer</title>
<link rel="stylesheet" href="/examples/static/css/app.css" />
<link rel="stylesheet" href="../scss/office.scss" />
<style>
@font-face {
font-family: DengXian;
src: local('DengXian'), url('static/font/DengXian.ttf');
}
@font-face {
font-family: '\u7b49\u7ebf';
src: local('\u7b49\u7ebf'), local('DengXian'),
url('static/font/DengXian.ttf');
}
</style>
<script>
window['OFFICE_VIEWER_DEBUG'] = true;
</script>
</head>
<body>
<div class="columns">
<div class="column file-list" id="fileList">
<button type="button" onclick="downloadDocx()">dl</button>
<button type="button" onclick="printDocx()">print</button>
<div id="files"></div>
<div id="mousePosition"></div>
<div id="hitTestResult"></div>
</div>
<div class="column">
<div id="viewer"></div>
</div>
</div>
<script type="module" src="/examples/excel.ts"></script>
</body>
</html>