|
@@ -2,11 +2,12 @@ import { useEditor } from "@/modules/editor";
|
|
|
import { DesignComp } from "@/modules/editor/objects/DesignTemp/DesignComp";
|
|
|
import { compMasks } from "@/modules/editor/objects/DesignTemp/creates/CompMasks";
|
|
|
import FormUI, { ColumnItem } from "@queenjs/components/FormUI";
|
|
|
-import { InputNumber, Select, Input } from "ant-design-vue";
|
|
|
+import { Input, InputNumber, Select } from "ant-design-vue";
|
|
|
import { isEmpty } from "lodash";
|
|
|
import { defineComponent } from "vue";
|
|
|
import { any } from "vue-types";
|
|
|
import { GroupNumber } from "../formItems/GroupNumber";
|
|
|
+import Slider from "../formItems/Slider";
|
|
|
import { createColorOpts } from "./formOpts/createColorOpts";
|
|
|
|
|
|
export const layoutColumns: ColumnItem[] = [
|
|
@@ -41,11 +42,11 @@ export const layoutColumns: ColumnItem[] = [
|
|
|
// dataIndex: "layout.padding",
|
|
|
// component: "Input",
|
|
|
// },
|
|
|
- {
|
|
|
- label: "偏移矩阵",
|
|
|
- dataIndex: "layout.transformMatrix",
|
|
|
- component: Input,
|
|
|
- },
|
|
|
+ // {
|
|
|
+ // label: "偏移矩阵",
|
|
|
+ // dataIndex: "layout.transformMatrix",
|
|
|
+ // component: Input,
|
|
|
+ // },
|
|
|
// {
|
|
|
// label: "上下偏移",
|
|
|
// dataIndex: "layout.offsetY",
|
|
@@ -56,29 +57,40 @@ export const layoutColumns: ColumnItem[] = [
|
|
|
// },
|
|
|
// getValue: (v) => v || 0,
|
|
|
// },
|
|
|
+ // {
|
|
|
+ // label: "层级",
|
|
|
+ // dataIndex: "layout.zIndex",
|
|
|
+ // component: InputNumber,
|
|
|
+ // props: {
|
|
|
+ // min: 0,
|
|
|
+ // max: 99,
|
|
|
+ // },
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // label: "遮罩",
|
|
|
+ // dataIndex: "layout.mask",
|
|
|
+ // component: Select,
|
|
|
+ // props: {
|
|
|
+ // class: "w-full",
|
|
|
+ // options: [{ label: "无", value: "" }].concat(
|
|
|
+ // Object.entries(compMasks).map(([key, value]) => {
|
|
|
+ // return {
|
|
|
+ // label: value.name,
|
|
|
+ // value: key,
|
|
|
+ // };
|
|
|
+ // })
|
|
|
+ // ),
|
|
|
+ // },
|
|
|
+ // },
|
|
|
{
|
|
|
- label: "层级",
|
|
|
- dataIndex: "layout.zIndex",
|
|
|
- component: InputNumber,
|
|
|
+ label: "透明度",
|
|
|
+ dataIndex: "layout.opacity",
|
|
|
+ component: Slider,
|
|
|
props: {
|
|
|
+ defaultValue: 1,
|
|
|
min: 0,
|
|
|
- max: 99,
|
|
|
- },
|
|
|
- },
|
|
|
- {
|
|
|
- label: "遮罩",
|
|
|
- dataIndex: "layout.mask",
|
|
|
- component: Select,
|
|
|
- props: {
|
|
|
- class: "w-full",
|
|
|
- options: [{ label: "无", value: "" }].concat(
|
|
|
- Object.entries(compMasks).map(([key, value]) => {
|
|
|
- return {
|
|
|
- label: value.name,
|
|
|
- value: key,
|
|
|
- };
|
|
|
- })
|
|
|
- ),
|
|
|
+ max: 1,
|
|
|
+ step: 0.01,
|
|
|
},
|
|
|
},
|
|
|
];
|