-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
105 lines (81 loc) · 2.33 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ExcelToJson</title>
<style>
* {
margin: 0px;
padding: 0px;
}
body {
overflow: hidden;
width: 100vw;
height: 100vh;
}
#app {
display: grid;
grid-template-rows: 64px 4fr 1fr;
width: 100%;
height: 100%;
}
#app-top {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 50px;
height: 48px;
}
#app-center {
display: grid;
grid-template-columns: 1fr 1fr;
column-gap: 64px;
justify-content: center;
}
#app-bottom {
position: absolute;
left: 0px;
bottom: 0px;
}
#input-excelData {
resize: none;
font-size: 24px;
width: 100%;
height: 90%;
}
#input-jsonData {
resize: none;
font-size: 24px;
width: 100%;
height: 90%;
}
</style>
</head>
<body>
<script src="./dist/app.js"></script>
<div id="app">
<div id="app-top">
<button onclick="btnExcelToJson()">转换</button>
<button onclick="btnExcelToJsonAndCopy()">转换并复制</button>
</div>
<div id="app-center">
<div>
<p>ExcelData</p>
<textarea id="input-excelData"></textarea>
</div>
<div>
<p>JsonData</p>
<textarea id="input-jsonData"></textarea>
</div>
</div>
<div id="app-bottom">
<p>欢迎使用Excel转换Json工具,此工具完全开源,作者联系方式Q:2430877819</p>
<a href="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/yxdtg/excel_to_json">github</a>
<p>excel格式说明</p>
<p>第一行名称 第二行类型</p>
<p>类型支持 string number boolean array object</p>
<a href="./img/test.png">示例</a>
</div>
</div>
</body>
</html>