ananzhusen vor 1 Jahr
Ursprung
Commit
0f0373f24d
1 geänderte Dateien mit 90 neuen und 4 gelöschten Zeilen
  1. 90 4
      src/services/defaults.ts

+ 90 - 4
src/services/defaults.ts

@@ -2401,6 +2401,7 @@ context.meta2d.translate(
           selectedKeys: ['1'],
           // activeColor: '#4E85E5',
           iconPosition: 'left',
+          renderSubMenu:true,
           data: [
             {
               key: '1',
@@ -2633,9 +2634,8 @@ context.meta2d.translate(
           width: 500,
           height: 50,
           direction: 'horizontal',
-          selectKey: '1',
-          selectedKeys: [],
-          theme: '',
+          selectedKey: '1',
+          // selectedKeys: [],
           disableInput: true,
           data: [
             { text: '场景一', key: '0', isForbidden: true },
@@ -2650,6 +2650,49 @@ context.meta2d.translate(
                 label: '数据',
                 type: 'code',
               },
+              {
+                key: 'direction',
+                label: '方向',
+                type: 'select',
+                options: [
+                  { label: '水平', value: 'horizontal' },
+                  { label: '垂直', value: 'vertical' },
+                ],
+              },
+              {
+                key: 'gap',
+                label: '间隔',
+                type: 'number',
+              },
+              {
+                key: 'activeBackground',
+                label: '选中背景',
+                type: 'color',
+              },
+              {
+                key: 'activeColor',
+                label: '选中边框',
+                type: 'color',
+              },
+              {
+                key: 'activeTextColor',
+                label: '选中文字',
+                type: 'color',
+              }, {
+                key: 'background',
+                label: '(未选中)背景',
+                type: 'color',
+              },
+              {
+                key: 'color',
+                label: '(未选中)边框',
+                type: 'color',
+              },
+              {
+                key: 'textColor',
+                label: '(未选中)文字',
+                type: 'color',
+              }
             ],
           },
         },
@@ -2663,7 +2706,7 @@ context.meta2d.translate(
           height: 50,
           direction: 'horizontal',
           selectedKeys: ['0'],
-          theme: 'multiple',
+          multiple:true,
           disableInput: true,
           data: [
             { text: '场景一', key: '0' },
@@ -2678,6 +2721,49 @@ context.meta2d.translate(
                 label: '数据',
                 type: 'code',
               },
+              {
+                key: 'direction',
+                label: '方向',
+                type: 'select',
+                options: [
+                  { label: '水平', value: 'horizontal' },
+                  { label: '垂直', value: 'vertical' },
+                ],
+              },
+              {
+                key: 'gap',
+                label: '间隔',
+                type: 'number',
+              },
+              {
+                key: 'activeBackground',
+                label: '选中背景',
+                type: 'color',
+              },
+              {
+                key: 'activeColor',
+                label: '选中边框',
+                type: 'color',
+              },
+              {
+                key: 'activeTextColor',
+                label: '选中文字',
+                type: 'color',
+              }, {
+                key: 'background',
+                label: '(未选中)背景',
+                type: 'color',
+              },
+              {
+                key: 'color',
+                label: '(未选中)边框',
+                type: 'color',
+              },
+              {
+                key: 'textColor',
+                label: '(未选中)文字',
+                type: 'color',
+              }
             ],
           },
         },