online-excel-interface1
v1.0.3
Published
提供在线excel使用的数据格式,传入该格式数据,可以打开内部的在线excel
Downloads
1
Readme
Install
npm install online-excel-interface1 yarn add online-excel-interface1
使用
import handlerExcel { dataOptionsVo } from 'online-excel-interface1';
private openExcel() {
const dataOptions: dataOptionsVo = {
data:[
{
sheetName: '欢迎词',
content: [
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
],
merge: [
{
row: 0, // 要合并第几行
col: 1, // 要合并第几列
rowCount: 2, // 合并多少行
colCount: 3 // 合并多少列
}
],
columnCount: 5,
columnWidth: 100 // 每一列的宽度
},
{
sheetName: '欢迎词',
content: [
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
['nihao','welcome','hello','world'],
],
merge: [
{
row: 0, // 要合并第几行
col: 1, // 要合并第几列
rowCount: 1, // 合并多少行
colCount: 3 // 合并多少列
}
],
columnCount: 5,
columnWidth: 100 // 每一列的宽度
}
],
isSelected: 1
};
handlerExcel(dataOptions);
}
主要项目负责人
- 马乾博