Showing
1 changed file
with
2 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-06 16:29:31 | 2 | * @Date: 2022-09-06 16:29:31 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-10 15:15:05 | 4 | + * @LastEditTime: 2023-02-10 15:31:06 |
| 5 | * @FilePath: /data-table/src/components/SignField/index.vue | 5 | * @FilePath: /data-table/src/components/SignField/index.vue |
| 6 | * @Description: 电子签名控件 | 6 | * @Description: 电子签名控件 |
| 7 | --> | 7 | --> |
| ... | @@ -78,7 +78,7 @@ onMounted(() => { | ... | @@ -78,7 +78,7 @@ onMounted(() => { |
| 78 | // 动态计算画板canvas宽度/高度 | 78 | // 动态计算画板canvas宽度/高度 |
| 79 | setTimeout(() => { | 79 | setTimeout(() => { |
| 80 | esignWidth.value = wrapperRef.value.offsetWidth - 32; | 80 | esignWidth.value = wrapperRef.value.offsetWidth - 32; |
| 81 | - esignHeight.value = (document.body.offsetHeight) / 5; | 81 | + esignHeight.value = (window.innerHeight) / 5; |
| 82 | }, 100); | 82 | }, 100); |
| 83 | }) | 83 | }) |
| 84 | const lineWidth = ref(6); | 84 | const lineWidth = ref(6); | ... | ... |
-
Please register or login to post a comment