ananzhusen 11 сар өмнө
parent
commit
a55c561ae0

+ 17 - 2
src/services/defaults.ts

@@ -3525,8 +3525,8 @@ context.meta2d.translate(
           disableAnchor: true,
           borderRadius: 2,
           text: '按钮',
-          activeBackground: '#2D71EC',
-          activeColor: '#40a9ff',
+          activeBackground:undefined,
+          activeColor: undefined,
           background: '#4583FF',
           color: '#1890ff',
           hoverBackground: '#40a9ff',
@@ -3534,6 +3534,21 @@ context.meta2d.translate(
           textColor: '#ffffff',
           hoverTextColor: '#ffffff',
           activeTextColor: '#ffffff',
+          mouseDownValid:true,
+          props: {
+            custom: [
+              {
+                key: 'mouseDownColor',
+                label: '按下颜色',
+                type: 'color',
+              },
+              {
+                key: 'mouseDownBackground',
+                label: '按下背景',
+                type: 'color',
+              },
+            ]
+          }
         },
       },
       {

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

@@ -1554,7 +1554,7 @@ function initPenData() {
       data.pen.props.text = true;
     }
   }
-  if(['tablePlus','notification','menuDom','radio','checkbox','thermometer','thermometer1'].includes(data.pen.name)){
+  if(['tablePlus','notification','menuDom','radio','checkbox','thermometer','thermometer1','rectangle'].includes(data.pen.name)){
     data.pen.props.look = true;
     data.pen.props.text = true;
   }