产品一张表luckysheet前端代码库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.0 KiB

5 years ago
# Luckysheet
## Introduction - 介绍
Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
## Features - 特性
5 years ago
1. Luckysheet支持表格设置包括冻结行列、合并单元格、筛选、排序、查询、条件格式、批注
5 years ago
2. 支持数据分析功能包括透视表、图表、分列、矩阵操作、内置385个计算函数
5 years ago
3. 支持一键截图、复制为json数据、共享编辑、excel与Luckysheet之间数据的复制粘贴
4. 支持移动端查看
5 years ago
![演示](https://minio.cnbabylon.com/babylon1/public/LuckysheetDemo.gif)
5 years ago
5 years ago
## Documentation - 文档
5 years ago
[在线demo](https://mengshukeji.github.io/LuckysheetDemo/)
5 years ago
5 years ago
[在线文档](https://mengshukeji.github.io/LuckysheetDocs/)
5 years ago
## Requirements - 环境
[Node.js](https://nodejs.org/en/) Version >= 6
## Installation - 安装
```
npm install
npm install gulp -g
```
## Development - 开发
开发
```
npm run dev
```
打包
```
npm run build
```
## Usage - 用法
#### 第一步
npm run build后dist文件夹下的所有文件复制到项目目录
#### 第二步
引入依赖
```
<link rel="stylesheet" href="plugins/css/pluginsCss.min.css">
<link rel="stylesheet" href="plugins/plugins.min.css">
<link rel="stylesheet" href="css/main.min.css">
<script src="plugins/js/plugin.min.js"></script>
<script src="main.min.js"></script>
```
#### 第三步
指定一个表格容器
```
<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height:100%;left: 0px;top: 0px;"></div>
5 years ago
```
#### 第四步
创建一个表格
```
<script>
$(function () {
//配置项
var options = {
container: 'luckysheet' //luckysheet为容器id
5 years ago
}
luckysheet.create(options)
5 years ago
})
</script>
```
## Contact - 联系
mengshu@office2.cn
## Authors and acknowledgment - 贡献者和感谢
5 years ago
- Bug Pan ([@wpxp123456](https://github.com/wpxp123456))
5 years ago
- Dushusir ([@Dushusir](https://github.com/Dushusir))
## License - 版权信息
[MIT](http://opensource.org/licenses/MIT)
5 years ago
Copyright (c) 2020-present, mengshukeji