From 0cdc871687fc56b3dea0536e1fcce958e47e1ddb Mon Sep 17 00:00:00 2001 From: jueyue Date: Sat, 8 Aug 2015 11:56:57 +0800 Subject: [PATCH] =?UTF-8?q?Excel=E9=A2=84=E8=A7=88=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 84 ++++++++++--------- .../poi/excel/entity/ExcelToHtmlParams.java | 2 +- 2 files changed, 44 insertions(+), 42 deletions(-) diff --git a/README.md b/README.md index 7b8c8fa..8e6054b 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,49 @@ https://oss.sonatype.org/content/repositories/snapshots/ ``` +--------------------------- +EasyPoi 文档 +--------------------------- +这几篇是旧的教程,不过和现在大同小异 + +[Excel 介绍篇](http://note.youdao.com/share/?id=ea5166076313d437abbfb28a18d85486&type=note) +[Excel 工具类](http://note.youdao.com/share/?id=dcfef5355d1d75b718be8fd563ad5216&type=note) +[Excel 注解介绍.第一篇](http://note.youdao.com/share/?id=9898d1777ca97b81d82a6e151b880dbb&type=note) +[Excel 注解介绍.第二篇](http://note.youdao.com/share/?id=9898d1777ca97b81d82a6e151b880dbb&type=note) +[Excel 实体类](http://note.youdao.com/share/?id=dab97eababf8e91356f87be204b581e8&type=note) +[Word模板导出教程](http://note.youdao.com/share/?id=26794c8eb4a285828663178c0ae854a2&type=note) + +后面都是新的了 + +[EasyPoi-在财务报表中的应用](http://git.oschina.net/jueyue/easypoi/wikis/EasyPoi-%E5%9C%A8%E8%B4%A2%E5%8A%A1%E6%8A%A5%E8%A1%A8%E4%B8%AD%E7%9A%84%E5%BA%94%E7%94%A8) + +[EasyPoi-如何筛选导出属性](http://git.oschina.net/jueyue/easypoi/wikis/EasyPoi-%E5%A6%82%E4%BD%95%E7%AD%9B%E9%80%89%E5%AF%BC%E5%87%BA%E5%B1%9E%E6%80%A7) + +[EasyPoi 在spring mvc中简易开发方式](http://note.youdao.com/share/?id=8b04c4d88a0574a59aeaffd142c8e34b&type=note) + +[EasyPoi-新版自定义导出样式类型](http://note.youdao.com/share/?id=7937a9fe15f1016b8f39bf813be894f8&type=note) + +[EasyPoi-标签-模板导出的语法介绍](http://blog.csdn.net/qjueyue/article/details/45231801) + +[EasyPoi-Excel预览(New)](http://blog.afterturn.cn/?p=34) + + +-------------------------- +EasyPoi 模板 表达式支持 +-------------------------- +- 空格分割 +- 三目运算 {{test ? obj:obj2}} +- n: 表示 这个cell是数值类型 {{n:}} +- le: 代表长度{{le:()}} 在if/else 运用{{le:() > 8 ? obj1 : obj2}} +- fd: 格式化时间 {{fd:(obj;yyyy-MM-dd)}} +- fn: 格式化数字 {{fn:(obj;###.00)}} +- fe: 遍历数据,创建row +- !fe: 遍历数据不创建row +- $fe: 下移插入,把当前行,下面的行全部下移.size()行,然后插入 +- !if: 删除当前列 {{!if:(test)}} +- 单引号表示常量值 '' 比如'1' 那么输出的就是 1 + + -------------------------- 版本修改 -------------------------- @@ -128,47 +171,6 @@ https://oss.sonatype.org/content/repositories/snapshots/ - 增加index 列 ---------------------------- -EasyPoi 文档 ---------------------------- -这几篇是旧的教程,不过和现在大同小异 - -[Excel 介绍篇](http://note.youdao.com/share/?id=ea5166076313d437abbfb28a18d85486&type=note) -[Excel 工具类](http://note.youdao.com/share/?id=dcfef5355d1d75b718be8fd563ad5216&type=note) -[Excel 注解介绍.第一篇](http://note.youdao.com/share/?id=9898d1777ca97b81d82a6e151b880dbb&type=note) -[Excel 注解介绍.第二篇](http://note.youdao.com/share/?id=9898d1777ca97b81d82a6e151b880dbb&type=note) -[Excel 实体类](http://note.youdao.com/share/?id=dab97eababf8e91356f87be204b581e8&type=note) -[Word模板导出教程](http://note.youdao.com/share/?id=26794c8eb4a285828663178c0ae854a2&type=note) - -后面都是新的了 - -[EasyPoi-在财务报表中的应用](http://git.oschina.net/jueyue/easypoi/wikis/EasyPoi-%E5%9C%A8%E8%B4%A2%E5%8A%A1%E6%8A%A5%E8%A1%A8%E4%B8%AD%E7%9A%84%E5%BA%94%E7%94%A8) - -[EasyPoi-如何筛选导出属性](http://git.oschina.net/jueyue/easypoi/wikis/EasyPoi-%E5%A6%82%E4%BD%95%E7%AD%9B%E9%80%89%E5%AF%BC%E5%87%BA%E5%B1%9E%E6%80%A7) - -[EasyPoi 在spring mvc中简易开发方式](http://note.youdao.com/share/?id=8b04c4d88a0574a59aeaffd142c8e34b&type=note) - -[EasyPoi-新版自定义导出样式类型](http://note.youdao.com/share/?id=7937a9fe15f1016b8f39bf813be894f8&type=note) - -[EasyPoi-标签-模板导出的语法介绍](http://blog.csdn.net/qjueyue/article/details/45231801) - -[EasyPoi-Excel预览](http://blog.csdn.net/qjueyue/article/details/45620931) - - --------------------------- -EasyPoi 模板 表达式支持 --------------------------- -- 空格分割 -- 三目运算 {{test ? obj:obj2}} -- n: 表示 这个cell是数值类型 {{n:}} -- le: 代表长度{{le:()}} 在if/else 运用{{le:() > 8 ? obj1 : obj2}} -- fd: 格式化时间 {{fd:(obj;yyyy-MM-dd)}} -- fn: 格式化数字 {{fn:(obj;###.00)}} -- fe: 遍历数据,创建row -- !fe: 遍历数据不创建row -- $fe: 下移插入,把当前行,下面的行全部下移.size()行,然后插入 -- !if: 删除当前列 {{!if:(test)}} -- 单引号表示常量值 '' 比如'1' 那么输出的就是 1 --------------------------- diff --git a/easypoi-base/src/main/java/org/jeecgframework/poi/excel/entity/ExcelToHtmlParams.java b/easypoi-base/src/main/java/org/jeecgframework/poi/excel/entity/ExcelToHtmlParams.java index 2717645..e117033 100644 --- a/easypoi-base/src/main/java/org/jeecgframework/poi/excel/entity/ExcelToHtmlParams.java +++ b/easypoi-base/src/main/java/org/jeecgframework/poi/excel/entity/ExcelToHtmlParams.java @@ -21,7 +21,7 @@ public class ExcelToHtmlParams { */ private int sheetNum; /** - * 图片保存路径 + * 图片保存路径,/开始或者含有: 认为是绝对路径,其他是相对路径,每次img名称随机生成,按照天生成文件夹 */ private String path;