Bladeren bron

Merge branch 'dev' of http://124.70.149.18:10880/lianghj/queenshow into dev

bianjiang 1 jaar geleden
bovenliggende
commit
00af4dea87

+ 9 - 12
src/modules/editor/components/CompUI/basicUI/Page/PageForm.tsx

@@ -25,18 +25,15 @@ const styleColumns = (muisc?: string): ColumnItem[] => {
         options: [{ label: "无", value: "" }, ...MusicOptions],
       },
     },
-    {
-      label: "页面模式",
-      dataIndex: "value.pageMode",
-      component: Select,
-      props: {
-        class: "w-full flex-1 overflow-hidden",
-        options: [
-          { label: "长页", value: "long" },
-          { label: "翻页", value: "short" },
-        ],
-      },
-    },
+    // {
+    //   label: "页面模式",
+    //   dataIndex: "value.pageMode",
+    //   component: Select,
+    //   props: {
+    //     class: "w-full flex-1 overflow-hidden",
+    //     options: [{ label: "长页", value: "long" }, { label: "翻页", value: "short" }],
+    //   },
+    // },
     {
       dataIndex: "value.music",
       component: PageMusic,

+ 12 - 0
src/modules/editor/components/CompUI/defines/createAttrsForm.tsx

@@ -115,6 +115,10 @@ export const bdColumns: ColumnItem[] = [
     label: "边框尺寸",
     dataIndex: "layout.border.width",
     component: Slider,
+    getValue(v) {
+       if (v== undefined ) return 0;
+       return v;
+    },
     props: {
       defaultValue: 0,
       step: 1,
@@ -126,6 +130,10 @@ export const bdColumns: ColumnItem[] = [
     label: "边框弧度",
     dataIndex: "layout.border.radius",
     component: Slider,
+    getValue(v) {
+      if (v== undefined ) return 0;
+      return v;
+    },
     // isVisible: (value, data) =>
     //   ["Web3D", "Container", "Video"].includes(data.compKey) ? false : true,
     props: {
@@ -147,6 +155,10 @@ export const bgColumns: ColumnItem[] = [
     label: "透明度",
     dataIndex: "layout.opacity",
     component: Slider,
+    getValue(v) {
+      if (v== undefined ) return 1;
+      return v;
+    },
     isVisible: (value, data) =>
       ["Web3D", "Video"].includes(data.compKey) ? false : true,
     props: {