84 Star 647 Fork 161

白云 / x-sheet

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
index.html 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
白云 提交于 2023-02-24 19:08 . merge dev
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title><%= htmlWebpackPlugin.options.title %></title>
<style>
* {
padding: 0;
margin: 0;
}
html, body {
height: 100%;
display: block;
}
</style>
</head>
<body id="demo1">
</body>
<script>
new XSheet('#demo1', {
workConfig: {
name: 'x-sheet',
top: {
option: {
show: true,
},
menu: {
show: true,
},
},
body: {
sheetConfig: {
showMenu: true,
},
sheets: [{
tableConfig: {
rows: {
data: [{height: 90}]
},
cols: {
len: 100
},
data: [
[{
contentType: 2,
fontAttr: {
textWrap: 2,
direction: 'vertical'
},
richText: {
rich: [{text: '哈哈aaFDF', color: 'rgb(255,0,2)'}, {text: 'FDFDFDF'}]
}
}]
],
xFixedBar: {
height: 2,
width: 2,
},
},
}],
tabConfig: {
showMenu: true,
},
},
bottom: {
show: true,
},
},
});
</script>
</html>
JavaScript
1
https://gitee.com/eigi/x-sheet.git
git@gitee.com:eigi/x-sheet.git
eigi
x-sheet
x-sheet
master

搜索帮助