diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 5a0df37..bc6a785 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.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** - 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] **Additional context** diff --git a/.github/ISSUE_TEMPLATE/bug_report_zh.md b/.github/ISSUE_TEMPLATE/bug_report_zh.md index 41e3236..f9b07b9 100644 --- a/.github/ISSUE_TEMPLATE/bug_report_zh.md +++ b/.github/ISSUE_TEMPLATE/bug_report_zh.md @@ -25,7 +25,7 @@ assignees: '' **环境:** -操作系统:[例如 Windows,Mac,Linux] - -浏览器:[例如 Chrome,Safari,Firefox,Edge] + -浏览器 版本号:[例如 Chrome 版本 84.0.4147.105(正式版本) (64 位),Safari,Firefox,Edge] -Luckysheet版本:[例如 1.0.1,最新] **备注** diff --git a/README-zh.md b/README-zh.md index d41e8b1..aeab6e9 100644 --- a/README-zh.md +++ b/README-zh.md @@ -4,6 +4,13 @@ ## 介绍 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) + **敬请期待...** (可以提出好的建议给我们) -![演示](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 diff --git a/README.md b/README.md index 8af2df2..ae7e6e6 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,13 @@ English| [简体中文](./README-zh.md) ## Introduction 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 ### Formatting @@ -87,13 +94,6 @@ Luckysheet is an online spreadsheet like excel that is powerful, simple to confi + **Documentation** (Improve documentation and API) + **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 [Node.js](https://nodejs.org/en/) Version >= 6 diff --git a/docs/guide/README.md b/docs/guide/README.md index 1dd8b2b..a0ce529 100644 --- a/docs/guide/README.md +++ b/docs/guide/README.md @@ -3,6 +3,11 @@ ## Introduction 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 ### Formatting @@ -84,11 +89,6 @@ Luckysheet is an online spreadsheet like excel that is powerful, simple to confi + **Documentation** (Improve documentation and API) + **More...** (Please advise us) -![Demo](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif) - -## Demo -[Online demo](https://mengshukeji.github.io/LuckysheetDemo/) - ## Development model ### Requirements @@ -211,6 +211,7 @@ You can see the complete settings | SHIFT + UP/DOWN/LEFT/RIGHT | Adjust selection area | | CTRL + Left mouse click | Multiple selection cell | | 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 | +| TAB | Move cell selection box to the right | | DELETE | Clear cell data | \ No newline at end of file diff --git a/docs/guide/config.md b/docs/guide/config.md index 6b8c866..7d43b67 100644 --- a/docs/guide/config.md +++ b/docs/guide/config.md @@ -11,6 +11,12 @@ - Default: "Luckysheet Demo" - 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 - Type: Number @@ -30,7 +36,12 @@ - Usage: Client sheet data `[shee1, sheet2, sheet3]` ------------ +## plugins +- Type: Array +- Default: [] +- Usage: Plug-in configuration, support chart: "chart" +------------ ## fullscreenmode - Type: Boolean - Default: true diff --git a/docs/zh/guide/README.md b/docs/zh/guide/README.md index b4850ab..5a4cc4d 100644 --- a/docs/zh/guide/README.md +++ b/docs/zh/guide/README.md @@ -3,6 +3,11 @@ ## 基本介绍 Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置简单、完全开源。 +## Demo +[在线demo](https://mengshukeji.github.io/LuckysheetDemo/) + +![演示](https://minio.cnbabylon.com/public/luckysheet/LuckysheetDemo.gif) + ## 特性 ### 格式设置 @@ -84,11 +89,6 @@ Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置 + **文档** (完善文档和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 | 调整选区 | | CTRL + 鼠标左击 | 多选单元格 | | SHIFT + 鼠标左击 | 调整选区 | -| UP/DOWN/LEFT/RIGHT | 单个移动调整单元格选框 | +| UP/DOWN/LEFT/RIGHT | 移动单元格选框 | | ENTER | 编辑单元格 | +| TAB | 向右移动单元格选框 | | DELETE | 清除单元格数据 | diff --git a/docs/zh/guide/config.md b/docs/zh/guide/config.md index f66b1d7..b14469b 100644 --- a/docs/zh/guide/config.md +++ b/docs/zh/guide/config.md @@ -11,6 +11,12 @@ - 默认值:"Luckysheet Demo" - 作用:表格的名称 +------------ +## lang +- 类型:String +- 默认值:"en" +- 作用:国际化设置,允许设置表格的语言,暂时支持中文("zh")和英文("en") + ------------ ## column - 类型:Number @@ -30,7 +36,12 @@ - 作用:客户端sheet数据`[shee1, sheet2, sheet3]` ------------ +## plugins +- 类型:Array +- 默认值:[] +- 作用:配置插件,支持 图表:"chart" +------------ ## fullscreenmode - 类型:Boolean - 默认值:true diff --git a/src/controllers/rowColumnOperation.js b/src/controllers/rowColumnOperation.js index 888ae4d..e97f91f 100644 --- a/src/controllers/rowColumnOperation.js +++ b/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"); +} + +/** + * + * @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(){ + } \ No newline at end of file diff --git a/src/index.html b/src/index.html index 4c467e0..3b9b84e 100644 --- a/src/index.html +++ b/src/index.html @@ -33,7 +33,7 @@ luckysheet.create({ container: 'luckysheet', - lang: 'en', + lang: 'zh', allowEdit:true, plugins: ['chart'], data: [sheetCell,sheetFormula,sheetConditionFormat,sheetTable,sheetSparkline,sheetComment,sheetPivotTableData,sheetPivotTable,sheetChart]