@work-zhanguo/light-file-preview 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -10,6 +10,8 @@
10
10
  <a href="https://gitee.com/hou_zhan_guo/light-file-preview" target="_blank" rel="noreferrer">Gitee</a>
11
11
  ·
12
12
  <a href="https://www.npmjs.com/package/@work-zhanguo/light-file-preview" target="_blank" rel="noreferrer">npm</a>
13
+ ·
14
+ <a href="http://49.234.120.202:9990/" target="_blank" rel="noreferrer">在线演示 Demo</a>
13
15
  </p>
14
16
 
15
17
  <p align="center">
@@ -23,12 +25,15 @@
23
25
 
24
26
  ## 项目简介
25
27
 
26
- - 当前版本:`0.0.16`
28
+ - 当前版本:`0.0.18`
27
29
  - 适用场景:业务系统附件预览、在线查看、弹窗预览、新页面预览
28
30
  - 支持 Vue 3、Vue 2 适配入口,以及非 Vue 项目的 standalone 产物
31
+ - 在线演示:可通过顶部 `在线演示 Demo` 入口访问
29
32
 
30
33
  最近更新:
31
34
 
35
+ - `0.0.18`:更新 `PPTX` 在线预览效果截图,README 与文档页展示改为真实预览画面
36
+ - `0.0.17`:补全 `PPTX` 在线预览能力,接入 `@work-zhanguo/pptx-preview`,同步更新演示文件与项目文档
32
37
  - `0.0.16`:修复 `style.css` 引入后污染业务全局样式的问题,组件样式已收敛到 `.lfp-*` 作用域
33
38
  - `0.0.15`:新增 npm `README.md` 的中英文双版本折叠切换展示,同步调整包描述与文档版本信息
34
39
  - `0.0.14`:优化 `xlsx` 空白区域填充,移除未声明的表头/首列固定效果,并为 `PDF`、`DOCX` 增加默认分页与全部展示切换
@@ -55,11 +60,11 @@
55
60
 
56
61
  ![PDF 预览效果](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pdf.png)
57
62
 
58
- ### PPTX 降级展示
63
+ ### PPTX
59
64
 
60
- 当前 `PPT` / `PPTX` 不做在线解析,组件会保留下载入口,不会伪装成已支持的在线预览。
65
+ `PPTX` 现已支持在线预览,适合业务系统里常见的汇报、方案、说明类演示文稿查看。旧版 `PPT` 仍保持下载入口降级。
61
66
 
62
- ![PPTX 降级效果](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pptx.png)
67
+ ![PPTX 预览效果](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pptx.png)
63
68
 
64
69
  ## 支持文件
65
70
 
@@ -83,6 +88,7 @@
83
88
  - `CSS`
84
89
  - `MD`
85
90
  - `DOCX`
91
+ - `PPTX`
86
92
  - `XLS`
87
93
  - `XLSX`
88
94
  - `CSV`
@@ -95,7 +101,6 @@
95
101
 
96
102
  - `DOC`
97
103
  - `PPT`
98
- - `PPTX`
99
104
  - 其他未识别格式
100
105
 
101
106
  补充说明:
@@ -108,6 +113,7 @@
108
113
 
109
114
  - [pdf.js](https://github.com/mozilla/pdf.js)
110
115
  - [docx-preview](https://github.com/VolodymyrBaydalka/docxjs)
116
+ - [@work-zhanguo/pptx-preview](https://www.npmjs.com/package/@work-zhanguo/pptx-preview)
111
117
  - [SheetJS](https://github.com/SheetJS/sheetjs)
112
118
  - [marked](https://github.com/markedjs/marked)
113
119
  - [DOMPurify](https://github.com/cure53/DOMPurify)
@@ -292,12 +298,15 @@ npm run build:site
292
298
 
293
299
  ## Overview
294
300
 
295
- - Current version: `0.0.16`
301
+ - Current version: `0.0.18`
296
302
  - Use cases: attachment preview in business systems, inline viewing, dialog preview, and standalone preview pages
297
303
  - Supports Vue 3, a Vue 2 adapter entry, and standalone assets for non-Vue projects
304
+ - Demo: available through the `在线演示 Demo` link at the top of this document
298
305
 
299
306
  Recent updates:
300
307
 
308
+ - `0.0.18`: refreshed the `PPTX` preview screenshot so README and docs now show the real online preview result
309
+ - `0.0.17`: added online `PPTX` preview through `@work-zhanguo/pptx-preview`, and synchronized the demo file and project documentation
301
310
  - `0.0.16`: fixed global style leakage caused by importing `style.css`, and scoped published component styles to `.lfp-*` rules only
302
311
  - `0.0.15`: rewrote `README.md` for npm with collapsible Chinese and English sections, and synchronized package description and documentation version info
303
312
  - `0.0.14`: optimized blank area handling in `xlsx`, removed undeclared frozen header/column behavior, and added paged/all display switching for `PDF` and `DOCX`
@@ -324,11 +333,11 @@ The images below use the npm CDN URL. Local repository changes do not affect the
324
333
 
325
334
  ![PDF preview](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pdf.png)
326
335
 
327
- ### PPTX fallback
336
+ ### PPTX
328
337
 
329
- `PPT` / `PPTX` files are intentionally not parsed as online previews for now. The component keeps a download entry instead of pretending the format is fully supported.
338
+ `PPTX` files are now supported for online preview, which fits common slide decks used in business systems. Legacy `PPT` files still fall back to a download entry.
330
339
 
331
- ![PPTX fallback](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pptx.png)
340
+ ![PPTX preview](https://unpkg.com/@work-zhanguo/light-file-preview/public/screenshots/effect-pptx.png)
332
341
 
333
342
  ## Supported Files
334
343
 
@@ -352,6 +361,7 @@ Supported for online preview:
352
361
  - `CSS`
353
362
  - `MD`
354
363
  - `DOCX`
364
+ - `PPTX`
355
365
  - `XLS`
356
366
  - `XLSX`
357
367
  - `CSV`
@@ -364,7 +374,6 @@ Fallback to download entry:
364
374
 
365
375
  - `DOC`
366
376
  - `PPT`
367
- - `PPTX`
368
377
  - any unrecognized format
369
378
 
370
379
  Notes:
@@ -377,6 +386,7 @@ Notes:
377
386
 
378
387
  - [pdf.js](https://github.com/mozilla/pdf.js)
379
388
  - [docx-preview](https://github.com/VolodymyrBaydalka/docxjs)
389
+ - [@work-zhanguo/pptx-preview](https://www.npmjs.com/package/@work-zhanguo/pptx-preview)
380
390
  - [SheetJS](https://github.com/SheetJS/sheetjs)
381
391
  - [marked](https://github.com/markedjs/marked)
382
392
  - [DOMPurify](https://github.com/cure53/DOMPurify)