فهرست منبع

feat:配置开关

ananzhusen 1 سال پیش
والد
کامیت
0909a53dd0
1فایلهای تغییر یافته به همراه30 افزوده شده و 1 حذف شده
  1. 30 1
      src/services/defaults.ts

+ 30 - 1
src/services/defaults.ts

@@ -1586,7 +1586,7 @@ export const formComponents = [
         name: '表格',
         icon: 'l-biaoge',
         data: {
-          name: 'table2',
+          name: 'table3',
           width: 0,
           height: 0,
           disableAnchor: true,
@@ -3366,6 +3366,35 @@ context.meta2d.translate(
           disableOffColor: '#E5E5E5',
           disableOnColor: '#A3D3FF',
           hoverBackground: '#40a9ff',
+          props: {
+            custom: [
+              {
+                key: 'onColor',
+                label: '开颜色',
+                type: 'color',
+              },
+              {
+                key: 'offColor',
+                label: '关颜色',
+                type: 'color',
+              },
+              {
+                key: 'disable',
+                label: '是否禁用',
+                type: 'bool',
+              },
+              {
+                key: 'disableOnColor',
+                label: '开(禁)颜色',
+                type: 'color',
+              },
+              {
+                key: 'disableOffColor',
+                label: '关(禁)颜色',
+                type: 'color',
+              },
+            ]
+          }
         },
       },
       {