@work-zhanguo/light-file-preview 0.0.3 → 0.0.5

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
@@ -1,12 +1,23 @@
1
1
  # @work-zhanguo/light-file-preview
2
2
 
3
- Gitee: [https://gitee.com/hou_zhan_guo/light-file-preview](https://gitee.com/hou_zhan_guo/light-file-preview)
4
- npm:[https://www.npmjs.com/package/@work-zhanguo/light-file-preview](https://www.npmjs.com/package/@work-zhanguo/light-file-preview)
3
+ # Gitee: [https://gitee.com/hou_zhan_guo/light-file-preview](https://gitee.com/hou_zhan_guo/light-file-preview)
4
+
5
+ # npm:[https://www.npmjs.com/package/@work-zhanguo/light-file-preview](https://www.npmjs.com/package/@work-zhanguo/light-file-preview)
5
6
 
6
7
  ## 项目简介
7
8
 
8
9
  用于业务系统里的附件预览,支持传入文件路径、远程地址和本地文件,接入方式尽量保持简单。
9
10
 
11
+ 当前版本:`0.0.5`
12
+
13
+ 最近更新:
14
+
15
+ - `0.0.5`:修复 Vue2 `vue-cli / webpack4` 项目子路径入口解析失败,补充 `vue2.js` 和 `style.css` 兼容入口
16
+ - `0.0.4`:修复 Vue2 项目安装时的 `ERESOLVE` 依赖冲突,兼容 `Vue 2.6+` 和 `Vue 3.5+`
17
+ - `0.0.3`:发布 `@work-zhanguo/light-file-preview`,补充文档与站点构建说明
18
+
19
+ 详细版本记录见 [CHANGELOG.md](./CHANGELOG.md)
20
+
10
21
  ## 支持文件
11
22
 
12
23
  支持类型:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@work-zhanguo/light-file-preview",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "轻量级通用文件预览组件,支持 Vue3、Vue2 适配与独立产物嵌入。",
5
5
  "type": "module",
6
6
  "main": "./dist/light-file-preview.umd.cjs",
@@ -23,7 +23,9 @@
23
23
  "./standalone": "./dist/standalone/light-file-preview.iife.js"
24
24
  },
25
25
  "files": [
26
- "dist"
26
+ "dist",
27
+ "vue2.js",
28
+ "style.css"
27
29
  ],
28
30
  "scripts": {
29
31
  "dev": "vite",
@@ -44,7 +46,7 @@
44
46
  "author": "",
45
47
  "license": "MIT",
46
48
  "peerDependencies": {
47
- "vue": "^3.5.0"
49
+ "vue": "^2.6.0 || ^3.5.0"
48
50
  },
49
51
  "peerDependenciesMeta": {
50
52
  "vue": {
package/style.css ADDED
@@ -0,0 +1 @@
1
+ @import "./dist/style.css";
package/vue2.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default } from './dist/vue2/light-file-preview-vue2.js';
2
+ export * from './dist/vue2/light-file-preview-vue2.js';