mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-15 21:53:46 +08:00
1,优化URL报错,2,更新OFD组件 3,美化Excel 4,文本方法关闭字节流 5,新增多种类型文件预览 (#419)
1,优化URL报错 2,更新OFD组件 3,美化Excel 4,文本方法关闭字节流 5,新增xmind、eml、epub、"obj", "3ds", "stl", "ply", "off", "3dm", "fbx", "dae", "wrl", "3mf", "ifc","glb","o3dv","gltf","stp","bim","fcstd","step","iges","brep"格式 Co-authored-by: gaoxiongzaq <admin@cxcp.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/**创建一个div并固定在底部,将center中的所有a标签放在改div中**/
|
||||
$("body").append($("<div>").css({"width":"100%","height":"30px","position":"fixed","top":"0","left":"0"
|
||||
$("body").append($("<div>").css({"width":"100%","height":"100%px","position":"fixed","top":"0","left":"0"
|
||||
,"background-color":"rgba(53, 53, 53, 1)","line-height":"30px","font-size":"13px"}).attr("id","excel-header-nav"));
|
||||
$("center").css("display", "none");
|
||||
var centerChildrenA = $("center").children("a");
|
||||
@@ -15,4 +15,42 @@ $(centerChildrenA).each(function (a, b) {
|
||||
$("#excel-header-nav").append(b);
|
||||
});
|
||||
/**给所有的table添加class=table table-striped样式**/
|
||||
$("table").addClass("table table-striped");
|
||||
$("table").addClass("table table-striped");
|
||||
/**
|
||||
* openoffice,只有一个 colgroup,用col子标签来描述列,liboffice 每一列都是一个colgroup
|
||||
* var meta = $("meta[name=generator]");
|
||||
* LibreOffice //OpenOffice
|
||||
* console.log(meta[0].content);
|
||||
*/
|
||||
/**计算表头宽度----start**/
|
||||
function ______getColgroupWidth(colgroups){
|
||||
var twidth = 0;
|
||||
$(colgroups).each(function (i, g) {
|
||||
var w = $(g).attr("width");
|
||||
var s = $(g).attr("span");
|
||||
if(null==s || undefined==s){
|
||||
s=1;
|
||||
}
|
||||
twidth +=1*w*s;
|
||||
});
|
||||
return twidth;
|
||||
}
|
||||
$("table").each(function (a, b) {
|
||||
var twidth = 0;
|
||||
var tableChildrenColgroup = $(b).children("colgroup");
|
||||
if(0==tableChildrenColgroup.length){
|
||||
}else if(1==tableChildrenColgroup.length){
|
||||
var cols = tableChildrenColgroup.children("col");
|
||||
if(0==cols.length){
|
||||
twidth=______getColgroupWidth(tableChildrenColgroup);
|
||||
}else{
|
||||
$(cols).each(function (i, g) {
|
||||
var w = $(g).attr("width");
|
||||
twidth +=1*w;
|
||||
});
|
||||
}
|
||||
}else{
|
||||
twidth = ______getColgroupWidth(tableChildrenColgroup);
|
||||
}
|
||||
$(b).css({"width":twidth});
|
||||
});
|
||||
13
server/src/main/resources/static/js/jszip.min.js
vendored
Normal file
13
server/src/main/resources/static/js/jszip.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3597
server/src/main/resources/static/js/viewer.min.js
vendored
3597
server/src/main/resources/static/js/viewer.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user