Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

Commit

Permalink
feat(new style): new style
Browse files Browse the repository at this point in the history
change icon, toolbar /sheetbar change style
  • Loading branch information
Dushusir committed Sep 23, 2020
1 parent 2dddfaa commit 5c8d603
Show file tree
Hide file tree
Showing 32 changed files with 4,838 additions and 307 deletions.
6 changes: 3 additions & 3 deletions README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@
+ **截图** (把选区的内容进行截图展示)
+ **复制到其他格式** (右键菜单的"复制为", 支持复制为json、array、对角线数据、去重等)
+ **EXCEL,CSV,TXT 导入及导出** (专为Luckysheet打造的导入导出插件,支持密码、水印、公式等的本地导入导出)
+ **插入图片和svg形状** (支持JPG,PNG,SVG,Pen tool的插入、修改和删除,并且随表格的变动而产生变化)
+ **数据验证(表单功能)** (支持Checkbox, drop-down list, datePicker)
+ **单元格内多样式** (Alt+Enter单元格内换行、上标、下标、单元格内科定义每个文字的不同样式)

### ⏱️未来开发计划
+ **插入图表和svg形状** (支持JPG,PNG,SVG,Pen tool的插入、修改和删除,并且随表格的变动而产生变化)
+ **数据验证(表单功能)** (支持Checkbox, drop-down list, datePicker)
+ **打印及设置** (像excel一样进行打印设置,并导出为图片或者PDF)
+ **单元格内多样式** (Alt+Enter单元格内换行、上标、下标、单元格内科定义每个文字的不同样式)
+ **树形菜单** (类似excel中的分级显示(分组))
+ **表格新功能** (类似excel中表格的筛选器和切片器)
+ **文档** (完善文档和API)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ English| [简体中文](./README-zh.md)
+ **Screenshot** (Take a screenshot with selection)
+ **Copy to** (In the right-click menu, copy selection to json, array etc.)
+ **EXCEL,CSV,TXT import/export** (Specially adapted to Luckysheet)

### ⏱️Coming soon
+ **Insert picture and Shapes** (JPG,PNG,SVG,Pen tool and so on)
+ **Data validation** (Checkbox, drop-down list, datePicker)
+ **Print** (Like excel print option, save to PDF)
+ **Cell segmentation style** (Alt+Enter line break, sub,super, in-cell style)

### ⏱️Coming soon
+ **Print** (Like excel print option, save to PDF)
+ **Tree menu** (Just like the outline (group) function of excel)
+ **Table new Features** (filter, slicer)
+ **Documentation** (Improve documentation and API)
Expand Down
8 changes: 4 additions & 4 deletions docs/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ Luckysheet is an online spreadsheet like excel that is powerful, simple to confi
+ **Matrix operation** (Operate selection through the right-click menu: transpose, rotate, numerical calculation)
+ **Screenshot** (Take a screenshot with selection)
+ **Copy to** (In the right-click menu, copy selection to json, array etc.)

### Coming soon
+ **EXCEL,CSV,TXT import/export** (Specially adapted to luckysheet)
+ **Insert picture and Shapes** (JPG,PNG,SVG,Pen tool and so on)
+ **Data validation** (Checkbox, drop-down list, datePicker)
+ **Print** (Like excel print option, save to PDF)
+ **Cell segmentation style** (Alt+Enter line break, sub,super, in-cell style)

### Coming soon
+ **Print** (Like excel print option, save to PDF)
+ **Tree menu** (Just like the outline (group) function of excel)
+ **Table new Features** (filter, slicer)
+ **EXCEL,CSV,TXT import/export** (Specially adapted to luckysheet)
+ **Documentation** (Improve documentation and API)
+ **More...** (Please advise us)

Expand Down
6 changes: 6 additions & 0 deletions docs/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@
- Default: true
- Usage: Whether to allow copying

------------
## showGridLines
- Type: Number
- Default: 1
- Usage: Whether to show grid lines, `1` means show,`0` means hide

------------
## showtoolbar
- Type: Boolean
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/guide/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ Luckysheet ,一款纯前端类似excel的在线表格,功能强大、配置
+ **矩阵计算** (通过右键菜单进行支持:对选区内的数据进行转置、旋转、数值计算)
+ **截图** (把选区的内容进行截图展示)
+ **复制到其他格式** (右键菜单的"复制为", 支持复制为json、array、对角线数据、去重等)
+ **EXCEL,CSV,TXT 导入及导出** (专为luckysheet打造的导入导出插件,支持密码、水印、公式等的本地导入导出)
+ **插入图片和svg形状** (支持JPG,PNG,SVG,Pen tool的插入、修改和删除,并且随表格的变动而产生变化)
+ **数据验证(表单功能)** (支持Checkbox, drop-down list, datePicker)
+ **单元格内多样式** (Alt+Enter单元格内换行、上标、下标、单元格内科定义每个文字的不同样式)

### 未来开发计划
+ **插入图表和svg形状** (支持JPG,PNG,SVG,Pen tool的插入、修改和删除,并且随表格的变动而产生变化)
+ **数据验证(表单功能)** (支持Checkbox, drop-down list, datePicker)
+ **打印及设置** (像excel一样进行打印设置,并导出为图片或者PDF)
+ **单元格内多样式** (Alt+Enter单元格内换行、上标、下标、单元格内科定义每个文字的不同样式)
+ **树形菜单** (类似excel中的分级显示(分组))
+ **表格新功能** (类似excel中表格的筛选器和切片器)
+ **EXCEL,CSV,TXT 导入及导出** (专为luckysheet打造的导入导出插件,支持密码、水印、公式等的本地导入导出)
+ **文档** (完善文档和API)
+ **敬请期待...** (可以提出好的建议给我们)

Expand Down
25 changes: 20 additions & 5 deletions docs/zh/guide/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1683,12 +1683,11 @@ Luckysheet针对常用的数据操作需求,开放了主要功能的API,开

[todo]


- **说明**

返回所有工作表配置,格式同[工作表配置](/zh/guide/sheet.html),得到的结果可用于表格初始化时作为`options.data`使用。

所以此API适用于,手动操作配置完一个表格后,将所有工作表信息取出来自行保存,再用于其他地方的表格创建。
返回所有工作表配置,格式同工作表配置,得到的结果可用于表格初始化时作为options.data使用。

所以此API适用于,手动操作配置完一个表格后,将所有工作表信息取出来自行保存,再用于其他地方的表格创建。如果想得到包括工作簿配置在内的所有工作簿数据,可以使用 [toJson](#toJson())

- **示例**:

Expand All @@ -1701,7 +1700,6 @@ Luckysheet针对常用的数据操作需求,开放了主要功能的API,开

[todo]


- **参数**

- {PlainObject} [setting]: 可选参数
Expand All @@ -1718,6 +1716,23 @@ Luckysheet针对常用的数据操作需求,开放了主要功能的API,开

------------

### getSheet([setting])

[todo]

- **参数**

- {PlainObject} [setting]: 可选参数
+ {Number} [index]: 工作表索引;默认值为当前工作表索引
+ {Number} [order]: 工作表顺序;默认值为当前工作表顺序
+ {Number} [name]: 工作表名称;默认值为当前工作表名称

- **说明**

根据index/order/name,快捷返回指定工作表的配置,同 `luckysheetfile[i]`。如果设置多个参数,优先级为:index > order > name。

------------

### getSheetData([setting])

[todo]
Expand Down
7 changes: 7 additions & 0 deletions docs/zh/guide/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Luckysheet开放了更细致的自定义配置选项,分别有
- 亿万格式 [autoFormatw](#autoFormatw)
- 精度 [accuracy](#accuracy)
- 允许复制 [allowCopy](#allowCopy)
- 网格线 [showGridLines](#showGridLines)
- 工具栏 [showtoolbar](#showtoolbar)
- 自定义工具栏[showtoolbarConfig](#showtoolbarConfig)
- 名称栏 [showinfobar](#showinfobar)
Expand Down Expand Up @@ -171,6 +172,12 @@ Luckysheet开放了更细致的自定义配置选项,分别有
- 默认值:true
- 作用:是否允许拷贝

------------
### showGridLines
- 类型:Number
- 默认值:1
- 作用:是否显示网格线,`1`表示显示,`0`表示隐藏

------------
### showtoolbar
- 类型:Boolean
Expand Down
11 changes: 9 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const paths = {
// static resources,contains index.html, fonts and images,and extension plugins dependency
staticHtml: ['src/*.html'],
staticFonts: ['src/fonts/**'],
staticAssets: ['src/assets/**'],
staticImages: ['src/plugins/images/*.png'],
staticExpendPlugins: ['src/expendPlugins/**', '!src/expendPlugins/**/plugin.js'],
staticDemoData: ['src/demoData/*.js'],
Expand All @@ -60,6 +61,7 @@ const paths = {
// static resources dest
destStaticHtml: ['dist'],
destStaticFonts: ['dist/fonts'],
destStaticAssets: ['dist/assets'],
destStaticImages: ['dist/plugins/images'],
destStaticExpendPlugins: ['dist/expendPlugins'],
destStaticDemoData: ['dist/demoData'],
Expand Down Expand Up @@ -133,6 +135,7 @@ function watcher(done) {
// watch static
watch(paths.staticHtml,{ delay: 500 }, series(copyStaticHtml, reloadBrowser));
watch(paths.staticFonts,{ delay: 500 }, series(copyStaticFonts, reloadBrowser));
watch(paths.staticAssets,{ delay: 500 }, series(copyStaticAssets, reloadBrowser));
watch(paths.staticImages,{ delay: 500 }, series(copyStaticImages, reloadBrowser));
watch(paths.staticExpendPlugins,{ delay: 500 }, series(copyStaticExpendPlugins, reloadBrowser));
watch(paths.staticDemoData,{ delay: 500 }, series(copyStaticDemoData, reloadBrowser));
Expand Down Expand Up @@ -222,6 +225,10 @@ function copyStaticFonts(){
return src(paths.staticFonts)
.pipe(dest(paths.destStaticFonts));
}
function copyStaticAssets(){
return src(paths.staticAssets)
.pipe(dest(paths.destStaticAssets));
}
function copyStaticImages(){
return src(paths.staticImages)
.pipe(dest(paths.destStaticImages));
Expand All @@ -239,8 +246,8 @@ function copyStaticCssImages(){
.pipe(dest(paths.destStaticCssImages));
}

const dev = series(clean, parallel(pluginsCss, plugins, css, pluginsJs, copyStaticHtml, copyStaticFonts, copyStaticImages, copyStaticExpendPlugins, copyStaticDemoData, copyStaticCssImages, core), watcher, serve);
const build = series(clean, parallel(pluginsCss, plugins, css, pluginsJs, copyStaticHtml, copyStaticFonts, copyStaticImages, copyStaticExpendPlugins, copyStaticDemoData, copyStaticCssImages, core));
const dev = series(clean, parallel(pluginsCss, plugins, css, pluginsJs, copyStaticHtml, copyStaticFonts, copyStaticAssets, copyStaticImages, copyStaticExpendPlugins, copyStaticDemoData, copyStaticCssImages, core), watcher, serve);
const build = series(clean, parallel(pluginsCss, plugins, css, pluginsJs, copyStaticHtml, copyStaticFonts, copyStaticAssets, copyStaticImages, copyStaticExpendPlugins, copyStaticDemoData, copyStaticCssImages, core));

exports.dev = dev;
exports.build = build;
Expand Down
Loading

0 comments on commit 5c8d603

Please sign in to comment.