@koi-br/ocr-web-sdk 1.0.22 → 1.0.25

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.
@@ -1,4 +1,4 @@
1
- import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-B7vUXfzK.mjs";
1
+ import { g as getAugmentedNamespace, a as getDefaultExportFromCjs } from "./index-BDV45uQO.mjs";
2
2
  function _mergeNamespaces(U, W) {
3
3
  for (var Z = 0; Z < W.length; Z++) {
4
4
  const s0 = W[Z];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koi-br/ocr-web-sdk",
3
- "version": "1.0.22",
3
+ "version": "1.0.25",
4
4
  "description": "一个支持多种Office文件格式预览的Vue3组件SDK,包括PDF、Word、Excel、图片、OFD、TIF等格式",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,7 +1,10 @@
1
1
  <template>
2
2
  <div class="preview-container">
3
3
  <!-- 工具栏 -->
4
- <div class="preview-toolbar preview-toolbar-between">
4
+ <div
5
+ class="preview-toolbar preview-toolbar-between"
6
+ :class="props.toolbarClass"
7
+ >
5
8
  <!-- 左侧: 翻页控制 -->
6
9
  <div class="toolbar-group">
7
10
  <!-- 左上角自定义按钮插槽 -->
@@ -362,6 +365,7 @@ interface Props {
362
365
  showTocSidebar?: boolean; // 是否显示目录侧边栏(包括工具栏中的切换按钮),默认为 true
363
366
  isDownload?: boolean; // 是否显示下载按钮,默认为 false
364
367
  enableMargin?: boolean; // 是否启用留白(自动缩放和适合页宽模式下),true=留白(左右各20px,共40px),false=不留白(只有左右5px padding),默认为 true
368
+ toolbarClass?: string; // 工具栏的自定义类名,用于自定义样式(包括深度选择器样式)
365
369
  }
366
370
 
367
371
  // 使用 withDefaults 显式设置默认值,确保未传递 prop 时使用默认值
@@ -2193,6 +2197,7 @@ onBeforeUnmount(() => {
2193
2197
 
2194
2198
  // 工具栏样式已统一到公共样式文件,使用 .preview-toolbar .preview-toolbar-between
2195
2199
  // PDF 特有的页码信息样式(在工具栏内)
2200
+
2196
2201
  .preview-toolbar {
2197
2202
  .page-info {
2198
2203
  display: flex;
@@ -2223,6 +2228,16 @@ onBeforeUnmount(() => {
2223
2228
  }
2224
2229
  }
2225
2230
 
2231
+ .custom-toolbar {
2232
+ :deep(.arco-btn-outline) {
2233
+ background: transparent !important;
2234
+ }
2235
+ padding: 1px 5px;
2236
+ background: #f7f7f7;
2237
+ border-color:#cbcbcb;
2238
+ }
2239
+
2240
+
2226
2241
  // PDF 内容区域
2227
2242
  .pdf-content {
2228
2243
  position: relative;