Browse Source

fix: 优化258表格水印

ldong 2 months ago
parent
commit
fa6910db73
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/components/sheet.vue

+ 3 - 3
src/components/sheet.vue

@@ -24,8 +24,8 @@ const dynamicSty = computed(()=>{
   <table
     cellpadding="0" 
     cellspacing="0" 
-    :class="props.config.Watermark?'background-watermark':'no-water'"
-    :style="{'font-size':(props.config.FontSize||12)+'px',backgroundImage: 'url('+props.config.Watermark+')'}"
+    :class="config.Watermark?'background-watermark':'no-water'"
+    :style="{'font-size':(config.FontSize||12)+'px',backgroundImage: 'url('+config.Watermark+')'}"
   >
     <tbody>
       <tr 
@@ -34,7 +34,7 @@ const dynamicSty = computed(()=>{
       >
         <td 
           :class="['data-cell',{
-            'one-bg':(index+1)%2&&index>0&&!props.config.Watermark,
+            'one-bg':(index+1)%2&&index>0&&!config.Watermark,
             'tow-bg': (index+1)%2!==0&&index>0,
             'head-column': index === 0
           }]"