@file-viewer/web 3.3.3 → 3.3.4
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.en.md +1 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/dist/flyfish-file-viewer-web.amd.js +31 -30
- package/dist/flyfish-file-viewer-web.iife.js +31 -30
- package/package.json +2 -2
package/README.en.md
CHANGED
|
@@ -323,6 +323,7 @@ The table below lists the real props, event channel, and customization entry for
|
|
|
323
323
|
| Options Field | Description |
|
|
324
324
|
| --- | --- |
|
|
325
325
|
| `theme` | `light`, `dark`, or `system`. This takes precedence over browser `prefers-color-scheme`. |
|
|
326
|
+
| `locale` / `i18n` / `messages` | Bundled offline: `zh-CN`, `en-US`, `ja-JP`, `zh-TW`, `zh-HK`, `de-DE`, `ru-RU`. Update options to switch language while preserving the file and reading state. The i18n group takes priority. See [internationalization](https://doc.file-viewer.app/guide/i18n). |
|
|
326
327
|
| `styleIsolation` | `auto`, `shadow`, `scoped`, or `none`. With `auto`, Web Component, IIFE, Vue, React, Svelte, jQuery, and full packages all use Shadow DOM by default. Legacy integrations that depend on deep class overrides can explicitly use `none`. |
|
|
327
328
|
| `watermark` | Text or image watermark with opacity, rotation, gap, size, font, and color controls. |
|
|
328
329
|
| `toolbar` | Controls the theme toggle, download, print, HTML export, zoom, item order, toolbar position, and operation-level preflight checks. |
|
package/README.md
CHANGED
|
@@ -323,6 +323,7 @@ The table below lists the real props, event channel, and customization entry for
|
|
|
323
323
|
| Options Field | Description |
|
|
324
324
|
| --- | --- |
|
|
325
325
|
| `theme` | `light`, `dark`, or `system`. This takes precedence over browser `prefers-color-scheme`. |
|
|
326
|
+
| `locale` / `i18n` / `messages` | Bundled offline: `zh-CN`, `en-US`, `ja-JP`, `zh-TW`, `zh-HK`, `de-DE`, `ru-RU`. Update options to switch language while preserving the file and reading state. The i18n group takes priority. See [internationalization](https://doc.file-viewer.app/guide/i18n). |
|
|
326
327
|
| `styleIsolation` | `auto`, `shadow`, `scoped`, or `none`. With `auto`, Web Component, IIFE, Vue, React, Svelte, jQuery, and full packages all use Shadow DOM by default. Legacy integrations that depend on deep class overrides can explicitly use `none`. |
|
|
327
328
|
| `watermark` | Text or image watermark with opacity, rotation, gap, size, font, and color controls. |
|
|
328
329
|
| `toolbar` | Controls the theme toggle, download, print, HTML export, zoom, item order, toolbar position, and operation-level preflight checks. |
|
package/README.zh-CN.md
CHANGED
|
@@ -313,6 +313,7 @@ const options = {
|
|
|
313
313
|
|
|
314
314
|
| Options 字段 | 说明 |
|
|
315
315
|
| --- | --- |
|
|
316
|
+
| `locale` / `i18n` / `messages` | 离线内置 `zh-CN`, `en-US`, `ja-JP`, `zh-TW`, `zh-HK`, `de-DE`, `ru-RU`。通过 options 更新语言并保留当前文件和阅读状态,i18n 分组优先。详见[国际化指南](https://doc.file-viewer.app/zh/guide/i18n)。 |
|
|
316
317
|
| `theme` | `light`、`dark` 或 `system`,优先级高于浏览器 `prefers-color-scheme`。 |
|
|
317
318
|
| `styleIsolation` | `auto`、`shadow`、`scoped` 或 `none`。`auto` 下 Web Component、IIFE、Vue、React、Svelte、jQuery 和 full 包均默认使用 Shadow DOM;依赖深层 class 覆盖的旧项目可显式使用 `none`。 |
|
|
318
319
|
| `watermark` | 开启文字或图片水印,可设置透明度、旋转、间距、尺寸、字体和颜色。 |
|