傅豪杰 il y a 1 an
Parent
commit
5c1fa1de00

+ 4 - 1
ruoyi-ui/src/mock/cpnsList.js

@@ -2,7 +2,7 @@
  * @Author: 傅豪杰 18516149270@163.com
  * @Date: 2023-07-24 14:48:20
  * @LastEditors: 傅豪杰 18516149270@163.com
- * @LastEditTime: 2023-07-24 17:40:03
+ * @LastEditTime: 2023-07-24 18:43:12
  * @FilePath: /infrared_remote/admin_web/ruoyi-ui/src/mock/cpnsList.js
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  */
@@ -12,6 +12,7 @@ export const cpnsList = [
     classType: 'icon-m-anniu',
     type: 'button',
     text: '按钮',
+    content: '文案',
     border: '1px',
     borderColor: '#fff',
     borderRadius: '8px',
@@ -24,6 +25,7 @@ export const cpnsList = [
     classType: 'icon-wenben',
     type: 'text',
     text: '文字',
+    content: '文案',
     border: '0',
     borderColor: 'none',
     borderRadius: '0',
@@ -36,6 +38,7 @@ export const cpnsList = [
     classType: 'icon-tupian',
     type: 'image',
     text: '图片',
+    content: '',
     border: '0',
     borderColor: 'none',
     borderRadius: '0',

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

@@ -69,7 +69,7 @@
                       backgroundImage:item.backgroundImage?`url(${baseUrl}${item.backgroundImage})`:''
                     }"
                   >
-                    {{item.text}}
+                    {{item.content}}
                   </div>
                   <i class="el-icon-close" @click.stop="removeBtn(index)" />
                 </div>
@@ -209,7 +209,7 @@ export default {
           ...config,
           {
             itemType: 'input',
-            prop: 'text',
+            prop: 'content',
             label: '按钮文字'
           },
           {
@@ -249,7 +249,7 @@ export default {
           ...config,
           {
             itemType: 'input',
-            prop: 'text',
+            prop: 'content',
             label: '文字'
           },
           {