wangzihao 1 year ago
parent
commit
27aedddb17
1 changed files with 3 additions and 6 deletions
  1. 3 6
      ruoyi-ui/src/views/template/addTemplate/blocks/detailDialog.vue

+ 3 - 6
ruoyi-ui/src/views/template/addTemplate/blocks/detailDialog.vue

@@ -57,7 +57,7 @@
               >
                 <div class="box-canvs-main-span">
                   <div
-                    style="width: 100%; height: 100%;display: flex;align-items: center;justify-content: center;background-size:cover"
+                    style="width: 100%; height: 100%;display: flex;align-items: center;justify-content: center; background-size: contain; background-repeat: no-repeat;"
                     :style="{
                       borderColor:item.borderColor,
                       borderWidth:item.border,
@@ -66,7 +66,7 @@
                       fontSize:item.fontSize,
                       backgroundColor:item.background,
                       color:item.color,
-                      backgroundImage:item.backgroundImage?`url(${baseUrl}${item.backgroundImage})`:''
+                      backgroundImage:item.backgroundImage?`url(${baseUrl}${item.backgroundImage})`:'',
                     }"
                   >
                     {{item.content}}
@@ -179,9 +179,6 @@ export default {
     pageArrayCount() {
       return this.pageArray.length;
     },
-    cpnArray() {
-      return this.allButton.map((item, index) => ({ x: 0, y: index*2, w: 2, h: 2, i: index, text: item.name, ...item }))
-    },
     btnClassConfig() {
       let config = [
         {
@@ -319,7 +316,7 @@ export default {
         w: Number(item.w),
         h: Number(item.h),
         i: index,
-        text: item.name
+        text: item.content
       }))
       this.initFormData(from);
     },