Browse Source

docs(readme,config): readme,config

1.readme 2.config documentation add lang and plugins,tab shortcuts
master
liurunze 5 years ago
parent
commit
a5a7dc24a3
  1. 2
      .github/ISSUE_TEMPLATE/bug_report.md
  2. 2
      .github/ISSUE_TEMPLATE/bug_report_zh.md
  3. 14
      README-zh.md
  4. 14
      README.md
  5. 13
      docs/guide/README.md
  6. 11
      docs/guide/config.md
  7. 13
      docs/zh/guide/README.md
  8. 11
      docs/zh/guide/config.md
  9. 16
      src/controllers/rowColumnOperation.js
  10. 2
      src/index.html

2
.github/ISSUE_TEMPLATE/bug_report.md

@ -25,7 +25,7 @@ If applicable, add screenshots or online demo to help explain your problem.We wi
**Environment** **Environment**
- OS: [e.g. Windows,Mac,Linux] - OS: [e.g. Windows,Mac,Linux]
- Browser: [e.g. Chrome, Safari,Firefox,Edge] - Browser Version: [e.g. Chrome Version 84.0.4147.105 (Official Build) (64-bit), Safari,Firefox,Edge]
- Luckysheet Version: [e.g. 1.0.1,latest] - Luckysheet Version: [e.g. 1.0.1,latest]
**Additional context** **Additional context**

2
.github/ISSUE_TEMPLATE/bug_report_zh.md

@ -25,7 +25,7 @@ assignees: ''
**环境:** **环境:**
-操作系统:[例如 Windows,Mac,Linux] -操作系统:[例如 Windows,Mac,Linux]
-浏览器:[例如 Chrome,Safari,Firefox,Edge] -浏览器 版本号:[例如 Chrome 版本 84.0.4147.105(正式版本) (64 位),Safari,Firefox,Edge]
-Luckysheet版本:[例如 1.0.1,最新] -Luckysheet版本:[例如 1.0.1,最新]
**备注** **备注**

14
README-zh.md

@ -4,6 +4,13 @@
## 介绍 ## 介绍
Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。 Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
## 文档
[在线demo](https://mengshukeji.github.io/LuckysheetDemo/)
[在线文档](https://mengshukeji.github.io/LuckysheetDocs/zh/)
![演示](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## 特性 ## 特性
### 格式设置 ### 格式设置
@ -85,13 +92,6 @@ Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置
+ **文档** (完善文档和API) + **文档** (完善文档和API)
+ **敬请期待...** (可以提出好的建议给我们) + **敬请期待...** (可以提出好的建议给我们)
![演示](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## 文档
[在线demo](https://mengshukeji.github.io/LuckysheetDemo/)
[在线文档](https://mengshukeji.github.io/LuckysheetDocs/zh/)
## 环境 ## 环境
[Node.js](https://nodejs.org/en/) Version >= 6 [Node.js](https://nodejs.org/en/) Version >= 6

14
README.md

@ -6,6 +6,13 @@ English| [简体中文](./README-zh.md)
## Introduction ## Introduction
Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source. Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.
## Documentation
[Online demo](https://mengshukeji.github.io/LuckysheetDemo/)
[Online documentation](https://mengshukeji.github.io/LuckysheetDocs/)
![Demo](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## Features ## Features
### Formatting ### Formatting
@ -87,13 +94,6 @@ Luckysheet is an online spreadsheet like excel that is powerful, simple to confi
+ **Documentation** (Improve documentation and API) + **Documentation** (Improve documentation and API)
+ **More...** (Please advise us) + **More...** (Please advise us)
![Demo](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## Documentation
[Online demo](https://mengshukeji.github.io/LuckysheetDemo/)
[Online documentation](https://mengshukeji.github.io/LuckysheetDocs/)
## Requirements ## Requirements
[Node.js](https://nodejs.org/en/) Version >= 6 [Node.js](https://nodejs.org/en/) Version >= 6

13
docs/guide/README.md

@ -3,6 +3,11 @@
## Introduction ## Introduction
Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source. Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.
## Demo
[Online demo](https://mengshukeji.github.io/LuckysheetDemo/)
![Demo](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## Features ## Features
### Formatting ### Formatting
@ -84,11 +89,6 @@ Luckysheet is an online spreadsheet like excel that is powerful, simple to confi
+ **Documentation** (Improve documentation and API) + **Documentation** (Improve documentation and API)
+ **More...** (Please advise us) + **More...** (Please advise us)
![Demo](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## Demo
[Online demo](https://mengshukeji.github.io/LuckysheetDemo/)
## Development model ## Development model
### Requirements ### Requirements
@ -211,6 +211,7 @@ You can see the complete settings
| SHIFT + UP/DOWN/LEFT/RIGHT | Adjust selection area | | SHIFT + UP/DOWN/LEFT/RIGHT | Adjust selection area |
| CTRL + Left mouse click | Multiple selection cell | | CTRL + Left mouse click | Multiple selection cell |
| SHIFT + Left mouse click | Adjust selection area | | SHIFT + Left mouse click | Adjust selection area |
| UP/DOWN/LEFT/RIGHT | Single move adjustment cell selection box | | UP/DOWN/LEFT/RIGHT | Move cell selection box |
| ENTER | Edit cell | | ENTER | Edit cell |
| TAB | Move cell selection box to the right |
| DELETE | Clear cell data | | DELETE | Clear cell data |

11
docs/guide/config.md

@ -11,6 +11,12 @@
- Default: "Luckysheet Demo" - Default: "Luckysheet Demo"
- Usage: Table's name - Usage: Table's name
------------
## lang
- Type: String
- Default: "en"
- Usage: Internationalization settings, allowing to set the language of the table, temporarily supporting Chinese ("zh") and English ("en")
------------ ------------
## column ## column
- Type: Number - Type: Number
@ -30,7 +36,12 @@
- Usage: Client sheet data `[shee1, sheet2, sheet3]` - Usage: Client sheet data `[shee1, sheet2, sheet3]`
------------ ------------
## plugins
- Type: Array
- Default: []
- Usage: Plug-in configuration, support chart: "chart"
------------
## fullscreenmode ## fullscreenmode
- Type: Boolean - Type: Boolean
- Default: true - Default: true

13
docs/zh/guide/README.md

@ -3,6 +3,11 @@
## 基本介绍 ## 基本介绍
Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。 Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。
## Demo
[在线demo](https://mengshukeji.github.io/LuckysheetDemo/)
![演示](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## 特性 ## 特性
### 格式设置 ### 格式设置
@ -84,11 +89,6 @@ Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置
+ **文档** (完善文档和API) + **文档** (完善文档和API)
+ **敬请期待...** (可以提出好的建议给我们) + **敬请期待...** (可以提出好的建议给我们)
![演示](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif)
## Demo
[在线demo](https://mengshukeji.github.io/LuckysheetDemo/)
## 开发模式 ## 开发模式
### 环境 ### 环境
@ -211,6 +211,7 @@ luckysheetfile[0] =
| SHIFT + UP/DOWN/LEFT/RIGHT | 调整选区 | | SHIFT + UP/DOWN/LEFT/RIGHT | 调整选区 |
| CTRL + 鼠标左击 | 多选单元格 | | CTRL + 鼠标左击 | 多选单元格 |
| SHIFT + 鼠标左击 | 调整选区 | | SHIFT + 鼠标左击 | 调整选区 |
| UP/DOWN/LEFT/RIGHT | 单个移动调整单元格选框 | | UP/DOWN/LEFT/RIGHT | 移动单元格选框 |
| ENTER | 编辑单元格 | | ENTER | 编辑单元格 |
| TAB | 向右移动单元格选框 |
| DELETE | 清除单元格数据 | | DELETE | 清除单元格数据 |

11
docs/zh/guide/config.md

@ -11,6 +11,12 @@
- 默认值:"Luckysheet Demo" - 默认值:"Luckysheet Demo"
- 作用:表格的名称 - 作用:表格的名称
------------
## lang
- 类型:String
- 默认值:"en"
- 作用:国际化设置,允许设置表格的语言,暂时支持中文("zh")和英文("en")
------------ ------------
## column ## column
- 类型:Number - 类型:Number
@ -30,7 +36,12 @@
- 作用:客户端sheet数据`[shee1, sheet2, sheet3]` - 作用:客户端sheet数据`[shee1, sheet2, sheet3]`
------------ ------------
## plugins
- 类型:Array
- 默认值:[]
- 作用:配置插件,支持 图表:"chart"
------------
## fullscreenmode ## fullscreenmode
- 类型:Boolean - 类型:Boolean
- 默认值:true - 默认值:true

16
src/controllers/rowColumnOperation.js

@ -1617,4 +1617,20 @@ function luckysheetcolsdbclick() {
} }
jfrefreshgridall(Store.flowdata[0].length, Store.flowdata.length, Store.flowdata, cfg, Store.luckysheet_select_save, "resizeC", "columlen"); jfrefreshgridall(Store.flowdata[0].length, Store.flowdata.length, Store.flowdata, cfg, Store.luckysheet_select_save, "resizeC", "columlen");
}
/**
*
* @param {String} type:delete type,
* @param {*} st_index
* @param {*} ed_index
*/
// Delete row api
export function deleteRows(type, st_index, ed_index){
Store.luckysheetRightHeadClickIs = "column";
}
// Delete column api
export function deleteColumns(){
} }

2
src/index.html

@ -33,7 +33,7 @@
luckysheet.create({ luckysheet.create({
container: 'luckysheet', container: 'luckysheet',
lang: 'en', lang: 'zh',
allowEdit:true, allowEdit:true,
plugins: ['chart'], plugins: ['chart'],
data: [sheetCell,sheetFormula,sheetConditionFormat,sheetTable,sheetSparkline,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart] data: [sheetCell,sheetFormula,sheetConditionFormat,sheetTable,sheetSparkline,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart]

Loading…
Cancel
Save