@flyfish-group/file-viewer-web 1.0.9 → 1.0.10
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 +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
# @flyfish-group/file-viewer-web
|
|
2
2
|
|
|
3
|
-
纯 Web 文件预览组件。只提供私有化部署路线: npm 包随包携带 Vue 基线 viewer
|
|
3
|
+
纯 Web 文件预览组件。只提供私有化部署路线: npm 包随包携带 Vue 基线 viewer 产物;使用 `npm install` 或已允许 pnpm 安装脚本后,会自动复制到宿主项目的 `public/file-viewer`,组件默认加载 `/file-viewer/index.html`。
|
|
4
4
|
|
|
5
5
|
```bash
|
|
6
|
-
|
|
6
|
+
npm install @flyfish-group/file-viewer-web@1.0.10
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
pnpm 10 默认会拦截依赖包的 `postinstall`。如果安装后提示 `Ignored build scripts: @flyfish-group/file-viewer-web`,请执行 `pnpm approve-builds` 允许该包,或运行 `pnpm exec file-viewer-copy-assets ./public/file-viewer`。
|
|
10
|
+
|
|
9
11
|
```ts
|
|
10
12
|
import { mountViewerFrame } from '@flyfish-group/file-viewer-web'
|
|
11
13
|
|