Sfoglia il codice sorgente

fix: 修改标尺和水印定位的问题

奔跑的面条 3 anni fa
parent
commit
84864b759c

+ 6 - 0
src/views/chart/ContentEdit/components/EditRule/index.vue

@@ -41,6 +41,11 @@ const lines = {
 /* 使用 SCSS 会报错,直接使用最基础的 CSS 进行修改,
 此库有计划 Vue3 版本,但是开发的时候还没发布 */
 
+#mb-ruler {
+  top: 0; 
+  left: 0;
+}
+
 /* 横线 */
 #mb-ruler .v-container .lines .line {
   /* 最大缩放 200% */
@@ -71,6 +76,7 @@ const lines = {
   font-size: 26px;
   font-weight: bolder;
 }
+
 #mb-ruler .corner{
   border-width: 0!important;
 }

+ 2 - 0
src/views/chart/ContentEdit/components/EditWatermark/index.vue

@@ -21,6 +21,8 @@ import { watermarkText } from '@/settings/designSetting'
 <style lang="scss" scoped>
 #go-edit-watermark {
   display: none;
+  position: absolute;
+  top: 0;
   width: 100%;
   height: 100%;
 }