Permalink
Browse files

canvas table resizer

  • Loading branch information...
myliang committed Nov 5, 2018
1 parent 007db97 commit 1d8637445800b8c9ba518545bd1d268d4cac0afd
@@ -1,3 +1,6 @@
module.exports = {
"extends": "airbnb-base"
"extends": "airbnb-base",
// "rules": {
// "import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
// }
};
@@ -5,11 +5,26 @@
<title><%= htmlWebpackPlugin.options.title %></title>
</head>
<body onload="load()">
<div id="app"></div>
<canvas width="800" height="600" id="cavas"></canvas>
<div id="app" style="margin-left: 160px;">
<div style="width: 100%; height: 600px;" id="xss"></div>
</div>

<script>
function load(){
xspreadsheet(document.getElementById('cavas'));
xspreadsheet(document.getElementById('xss'))
.loadData({
borders: [
[1, 'dashed', '#0366d6'],
],
styles: [
{ bgcolor: '#dddddd', bi: 0, color: '#900b09' },
],
cellmm: {
1: {
1: { text: 'testing测试testtestetst', si: 0 },
},
},
});
}
</script>
</body>
Oops, something went wrong.

0 comments on commit 1d86374

Please sign in to comment.