浏览代码

perfect_配置

ananzhusen 1 年之前
父节点
当前提交
f4be985df0
共有 1 个文件被更改,包括 91 次插入6 次删除
  1. 91 6
      src/services/defaults.ts

+ 91 - 6
src/services/defaults.ts

@@ -1008,6 +1008,20 @@ export const formComponents = [
             'https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4',
         },
       },
+      {
+        name: 'FLV视频流',
+        icon: 'l-pc',
+        data: {
+          name: 'leFlvPlayer',
+          width: 477,
+          height: 268,
+          externElement: true,
+          video:
+            'https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv',
+          mediaDataSource: {},
+          optionalConfig: {},
+        },
+      },
       {
         name: '音频',
         icon: 'l-pc',
@@ -1305,8 +1319,8 @@ export const formComponents = [
         icon: 'l-02',
         data: {
           name: 'iframe',
-          width: 100,
-          height: 100,
+          width: 500,
+          height: 400,
           externElement: true,
           iframe: 'https://le5le.com',
         },
@@ -1354,7 +1368,26 @@ export const formComponents = [
         icon: 'l-pc',
         data: {
           width: 200,
-          height: 200,
+          height: 46,
+          text: '用于表示普通操作信息提示',
+          borderRadius: 6,
+          name: 'rectangle',
+          icon: '\ue6e4',
+          iconFamily: 'l-icon',
+          iconColor: '#4583ff',
+          iconSize: 17.5,
+          iconAlign: 'left',
+          iconLeft: 8,
+          textAlign: 'left',
+          color: 'rgba(235, 235, 235, 1)',
+          background: 'rgba(255, 255, 255, 1)',
+          textLeft: 30,
+          shadow: false,
+          textColor: 'rgba(0, 0, 0, 1)',
+          shadowColor: 'rgba(250, 247, 247, 0.5)',
+          shadowOffsetX: 6,
+          shadowOffsetY: 6,
+          shadowBlur: 20,
         },
       },
       {
@@ -1436,6 +1469,28 @@ export const formComponents = [
           hiddenText: true,
         },
       },
+      {
+        name: '轮播页面',
+        icon: 'l-pc',
+        data: {
+          name: 'leSwiper',
+          width: 400,
+          height: 300,
+          swiperType: 'iframe',
+          data: [
+            {
+              src: 'https://2d.le5le.com/preview?id=6357a9e2d44b9402de84d2e8',
+            },
+            {
+              src: 'https://2d.le5le.com/preview?id=6357aec8d44b9402de84d2f1',
+            },
+            {
+              src: 'https://2d.le5le.com/preview?id=641d524a8df2c654ea652d7e',
+            },
+          ],
+          hiddenText: true,
+        },
+      },
     ],
   },
   {
@@ -1446,8 +1501,23 @@ export const formComponents = [
         name: '链接',
         icon: 'l-pc',
         data: {
-          width: 200,
-          height: 200,
+          text: '乐吾乐2D编辑器',
+          width: 100,
+          height: 30,
+          name: 'text',
+          textColor: '#0052d9',
+          events: [
+            {
+              where: {
+                type: null,
+              },
+              name: 'click',
+              action: 0,
+              params: '_blank',
+              value: 'https://2d.le5le.com/',
+              fn: null,
+            },
+          ],
         },
       },
       {
@@ -1828,7 +1898,22 @@ export const formComponents = [
       {
         name: '滑块',
         icon: 'l-kaiguan',
-        data: {},
+        data: {
+          anchors: [],
+          disableAnchor: true,
+          name: 'slider',
+          width: 300,
+          height: 20,
+          value: 10,
+          textWidth: 50,
+          barHeight: 4,
+          min: 0,
+          max: 100,
+          color: '#1890ff',
+          background: '#D4D6D9',
+          textColor: '#222222',
+          unit: '%',
+        },
       },
     ],
   },