first commit
This commit is contained in:
commit
eb2f504652
32490 changed files with 5731109 additions and 0 deletions
42
node_modules/vue-table-to-excel/docs/index.html
generated
vendored
Normal file
42
node_modules/vue-table-to-excel/docs/index.html
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Document</title>
|
||||
<script src="./js/index.umd.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button id="download">导出</button>
|
||||
<script>
|
||||
const downloadEl = document.getElementById('download')
|
||||
downloadEl.onclick = function () {
|
||||
jsontoexcel.getXlsx([{
|
||||
name: '路人甲',
|
||||
phone: '123456789',
|
||||
email: '000@123456.com',
|
||||
},
|
||||
{
|
||||
name: '炮灰乙',
|
||||
phone: '123456789',
|
||||
email: '000@123456.com'
|
||||
},
|
||||
{
|
||||
name: '土匪丙',
|
||||
phone: '123456789',
|
||||
email: '000@123456.com'
|
||||
},
|
||||
{
|
||||
name: '流氓丁',
|
||||
phone: '123456789',
|
||||
email: '000@123456.com'
|
||||
},
|
||||
], ['姓名', '手机号码', '邮箱', '年龄'], '城乡居民统计表.xlsx')
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
1
node_modules/vue-table-to-excel/docs/js/index.umd.js
generated
vendored
Normal file
1
node_modules/vue-table-to-excel/docs/js/index.umd.js
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).RouteSync={})}(this,(function(e){"use strict";const t=new class{getXlsx(e,t,o="数据报表.xlsx"){if(!Array.isArray(e))throw new Error(`${e} is must be Array and not empty!`);if(!Array.isArray(t))throw new Error(`${t} is must be Array and not empty!`);let n=t.toString()+"\n";for(let t=0;t<e.length;t++){for(let o in e[t])n+=`${e[t][o]+"\t"},`;n+="\n"}let r="data:text/csv;charset=utf-8,\ufeff"+encodeURIComponent(n);var d=document.createElement("a");d.href=r,d.download=o,document.body.appendChild(d),d.click(),document.body.removeChild(d)}};window.jsontoexcel=t;const o=t;e.jsontoexcel=o,Object.defineProperty(e,"__esModule",{value:!0})}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue