瀏覽代碼

新增快速选项卡图标和配置

Wind-Breaker1 10 月之前
父節點
當前提交
b8e200e4e4

+ 8 - 4
public/icon/v/iconfont.css

@@ -1,9 +1,9 @@
 @font-face {
   font-family: "l-icon"; /* Project id 4042197 */
-  src: url('iconfont.woff2?t=1709521853923') format('woff2'),
-       url('iconfont.woff?t=1709521853923') format('woff'),
-       url('iconfont.ttf?t=1709521853923') format('truetype'),
-       url('iconfont.svg?t=1709521853923#l-icon') format('svg');
+  src: url('iconfont.woff2?t=1721962784587') format('woff2'),
+       url('iconfont.woff?t=1721962784587') format('woff'),
+       url('iconfont.ttf?t=1721962784587') format('truetype'),
+       url('iconfont.svg?t=1721962784587#l-icon') format('svg');
 }
 
 .l-icon {
@@ -14,6 +14,10 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.l-shandianxuanxiangka:before {
+  content: "\eabd";
+}
+
 .l-dianchi:before {
   content: "\eabc";
 }

文件差異過大導致無法顯示
+ 0 - 0
public/icon/v/iconfont.js


+ 7 - 0
public/icon/v/iconfont.json

@@ -5,6 +5,13 @@
   "css_prefix_text": "l-",
   "description": "乐吾乐2D可视化编辑器",
   "glyphs": [
+    {
+      "icon_id": "41183381",
+      "name": "闪电选项卡",
+      "font_class": "shandianxuanxiangka",
+      "unicode": "eabd",
+      "unicode_decimal": 60093
+    },
     {
       "icon_id": "39412092",
       "name": "电池",

文件差異過大導致無法顯示
+ 2 - 0
public/icon/v/iconfont.svg


二進制
public/icon/v/iconfont.ttf


二進制
public/icon/v/iconfont.woff


二進制
public/icon/v/iconfont.woff2


+ 106 - 0
src/services/defaults.ts

@@ -3313,6 +3313,112 @@ context.meta2d.translate(
           },
         },
       },
+      {
+        name: '快速选项卡',
+        icon: 'l-shandianxuanxiangka',
+        data: {
+          name: 'quickTab',
+          width: 440,
+          height: 500,
+          direction: 'horizontal',
+          selectedKey: '1',
+          btnHeight: 32,
+          btnWidth: 100,
+          gap:8,
+          disableInput: true,
+          container: true,
+          followers: [],
+          dragRange:true,
+          disableRotate:true,
+          data: [
+            { text: '场景一', key: '0' },
+            { text: '场景二', key: '1' },
+            { text: '场景三', key: '2' },
+            { text: '场景四', key: '3' },
+          ],
+          props: {
+            custom: [
+              {
+                key: 'data',
+                label: '数据',
+                type: 'code',
+              },
+              {
+                key: 'direction',
+                label: '方向',
+                type: 'select',
+                options: [
+                  { label: '水平', value: 'horizontal' },
+                  { label: '垂直', value: 'vertical' },
+                ],
+              },
+              {
+                key: 'gap',
+                label: '间隔',
+                type: 'number',
+                min:1
+              },
+              {
+                key: 'btnWidth',
+                label: '按钮宽度',
+                type: 'number',
+                min:1
+              },
+              {
+                key: 'btnHeight',
+                label: '按钮高度',
+                type: 'number',
+                min:1
+              },
+              {
+                key: 'activeBackground',
+                label: '选中背景',
+                type: 'color',
+              },
+              {
+                key: 'activeColor',
+                label: '选中边框',
+                type: 'color',
+              },
+              {
+                key: 'activeTextColor',
+                label: '选中文字',
+                type: 'color',
+              }, 
+              {
+                key: 'activeBgImage',
+                label: '选中背景图片',
+                type: 'string',
+              },
+              {
+                key: 'background',
+                label: '(未选中)背景',
+                type: 'color',
+              },
+              {
+                key: 'color',
+                label: '(未选中)边框',
+                type: 'color',
+              },
+              {
+                key: 'textColor',
+                label: '(未选中)文字',
+                type: 'color',
+              },
+              {
+                key: 'bgImage',
+                label: '(未选中)背景图片',
+                type: 'string',
+              },
+              {
+                key: 'dragRange',
+                label: '显示拖拽范围',
+                type: 'bool',
+              }
+            ],
+          },
+        },
+      },
       {
         name: '基本选项卡',
         icon: 'l-xuanxiangka',

部分文件因文件數量過多而無法顯示