forked from myliang/xspreadsheet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (27 loc) · 7.04 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="spreadsheet.css"></link>
<script type="text/javascript" src="bundle.js"></script>
<script type="text/javascript">
window.onload = function () {
var data = {"rowHeight":22,"colWidth":100,"rows":{"1":{"height":35},"3":{"height":40},"4":{"height":53},"5":{"height":57}},"cols":{"0":{"width":74,"title":null},"2":{"width":79,"title":null},"3":{"width":75,"title":null},"5":{"width":58,"title":null},"6":{"width":59,"title":null},"8":{"width":89,"title":null},"9":{"width":80,"title":null},"10":{"width":53,"title":null},"11":{"width":54,"title":null},"12":{"width":51,"title":null},"13":{"width":52,"title":null},"14":{"width":53,"title":null},"15":{"width":52,"title":null},"16":{"width":51,"title":null},"17":{"width":52,"title":null}},"cell":{"font":"Microsoft YaHei","format":"normal","fontSize":14,"bold":false,"italic":false,"underline":false,"color":"#333","backgroundColor":"#fff","align":"left","valign":"middle","wordWrap":false,"invisible":false,"rowspan":1,"colspan":1,"text":""},"cells":{"1":{"2":{"colspan":19,"text":"2019-2021年中期财政规划(高速公路)","bold":true,"fontSize":16,"align":"center"},"3":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"4":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"5":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"6":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"7":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"8":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"9":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"10":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"11":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"12":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"13":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"14":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"15":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"16":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"17":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"18":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"19":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"},"20":{"invisible":true,"merge":[1,2],"bold":true,"fontSize":16,"align":"center"}},"3":{"0":{"rowspan":3,"text":"序号","align":"center"},"1":{"rowspan":3,"text":"单位名称","align":"center"},"2":{"colspan":2,"text":"项目所在地区","align":"center"},"3":{"invisible":true,"merge":[3,2],"align":"center"},"4":{"rowspan":3,"text":"项 目 名 称","align":"center"},"5":{"rowspan":3,"text":"项目所属集中连片特困地区","align":"center","wordWrap":true},"6":{"rowspan":3,"text":"项目所属革命老区","align":"center","wordWrap":true},"7":{"rowspan":3,"text":"贫困县类别(国贫、省贫、一般)","align":"center","wordWrap":true},"8":{"rowspan":3,"text":"线路性质","align":"center","wordWrap":true},"9":{"rowspan":3,"text":"建设性质","align":"center","wordWrap":true},"10":{"colspan":8,"text":"建设规模(公里)/(延米)","align":"center"},"11":{"invisible":true,"merge":[3,10],"align":"center"},"12":{"invisible":true,"merge":[3,10],"align":"center"},"13":{"invisible":true,"merge":[3,10],"align":"center"},"14":{"invisible":true,"merge":[3,10],"align":"center"},"15":{"invisible":true,"merge":[3,10],"align":"center"},"16":{"invisible":true,"merge":[3,10],"align":"center"},"17":{"invisible":true,"merge":[3,10],"align":"center"},"18":{"colspan":2,"text":"建设年限","align":"center"},"19":{"invisible":true,"merge":[3,18],"align":"center"}},"4":{"0":{"invisible":true,"merge":[3,0],"align":"center"},"1":{"invisible":true,"merge":[3,1],"align":"center"},"2":{"rowspan":2,"text":"市","align":"center"},"3":{"rowspan":2,"text":"县区","align":"center"},"4":{"invisible":true,"merge":[3,4],"align":"center"},"5":{"invisible":true,"merge":[3,5],"align":"center","wordWrap":true},"6":{"invisible":true,"merge":[3,6],"align":"center","wordWrap":true},"7":{"invisible":true,"merge":[3,7],"align":"center","wordWrap":true},"8":{"invisible":true,"merge":[3,8],"align":"center","wordWrap":true},"9":{"invisible":true,"merge":[3,9],"align":"center","wordWrap":true},"10":{"rowspan":2,"text":"合计","align":"center"},"11":{"rowspan":2,"text":"高速\n公路","align":"center","wordWrap":true},"12":{"rowspan":2,"text":"一级\n公路","align":"center","wordWrap":true},"13":{"rowspan":2,"text":"二级\n公路","align":"center","wordWrap":true},"14":{"rowspan":2,"text":"三级\n公路","align":"center","wordWrap":true},"15":{"rowspan":2,"text":"四级\n公路","align":"center","wordWrap":true},"16":{"rowspan":2,"text":"独立\n大桥","align":"center","wordWrap":true},"17":{"rowspan":2,"text":"独立\n隧道","align":"center","wordWrap":true},"18":{"rowspan":2,"text":"开工年","align":"center"},"19":{"rowspan":2,"text":"完工年","align":"center"}},"5":{"0":{"invisible":true,"merge":[3,0],"align":"center"},"1":{"invisible":true,"merge":[3,1],"align":"center"},"2":{"invisible":true,"merge":[4,2],"align":"center"},"3":{"invisible":true,"merge":[4,3],"align":"center"},"4":{"invisible":true,"merge":[3,4],"align":"center"},"5":{"invisible":true,"merge":[3,5],"align":"center","wordWrap":true},"6":{"invisible":true,"merge":[3,6],"align":"center","wordWrap":true},"7":{"invisible":true,"merge":[3,7],"align":"center","wordWrap":true},"8":{"invisible":true,"merge":[3,8],"align":"center","wordWrap":true},"9":{"invisible":true,"merge":[3,9],"align":"center","wordWrap":true},"10":{"invisible":true,"merge":[4,10],"align":"center"},"11":{"invisible":true,"merge":[4,11],"align":"center","wordWrap":true},"12":{"invisible":true,"merge":[4,12],"align":"center","wordWrap":true},"13":{"invisible":true,"merge":[4,13],"align":"center","wordWrap":true},"14":{"invisible":true,"merge":[4,14],"align":"center","wordWrap":true},"15":{"invisible":true,"merge":[4,15],"align":"center","wordWrap":true},"16":{"invisible":true,"merge":[4,16],"align":"center","wordWrap":true},"17":{"invisible":true,"merge":[4,17],"align":"center","wordWrap":true},"18":{"invisible":true,"merge":[4,18],"align":"center"},"19":{"invisible":true,"merge":[4,19],"align":"center"}}}};
xspreadsheet(document.getElementById('wrapper'), {mode: 'design'}).loadData(data)
}
</script>
<title>TypeScript with VSCode</title>
</head>
<body>
<div style="display: flex;">
<div style="width: 300px; flex: 0 0 auto;">
xxxxxx
</div>
<div style="flex: 1 1 auto;overflow: hidden;">
<div id="wrapper"></div>
</div>
</div>
</body>
</html>