ananzhusen 1 год назад
Родитель
Сommit
43eca7131c
2 измененных файлов с 21 добавлено и 3 удалено
  1. 20 2
      src/services/defaults.ts
  2. 1 1
      src/views/components/View.vue

+ 20 - 2
src/services/defaults.ts

@@ -1204,10 +1204,28 @@ export const formComponents = [
     list: [
       {
         name: '列表',
-        icon: 'l-pc', //l-liebiao
+        icon: 'l-liebiao',
         data: {
           width: 200,
           height: 200,
+          name: 'list',
+          headingColor: '#000',
+          headingSize: 16,
+          background: '#fff',
+          data: [
+            {
+              title: '列表标题',
+              description: '列表内容的描述性文字',
+            },
+            {
+              title: '列表标题',
+              description: '列表内容的描述性文字',
+            },
+            {
+              title: '列表标题',
+              description: '列表内容的描述性文字',
+            },
+          ],
         },
       },
       {
@@ -1881,7 +1899,7 @@ export const formComponents = [
       },
       {
         name: '步骤条',
-        icon: 'l-pc', //l-buzhoutiao
+        icon: 'l-buzhoutiao',
         data: {
           name: 'steps',
           width: 500,

+ 1 - 1
src/views/components/View.vue

@@ -768,7 +768,7 @@ const meta2dOptions: Options = {
   height: 1080,
   color: '#bdc7db',
   disableAnchor: true,
-  domShapes: ['threeDSence'],
+  domShapes: ['threeDSence', 'list'],
   defaultFormat: { ...defaultFormat },
 };