mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
4b8dd7a9ca
* feat: Office viewer 支持 Excel * 修复类型报错 * 修复类型报错
41 lines
1.2 KiB
HTML
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>
|