@easyv/config 1.1.30 → 1.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/control.js ADDED
@@ -0,0 +1,67 @@
1
+ export const control = () => {
2
+ return {
3
+ name: "control",
4
+ displayName: "控制条",
5
+ value: [
6
+ {
7
+ name: "height",
8
+ displayName: "高度",
9
+ value: 20,
10
+ type: "number",
11
+ },
12
+ {
13
+ name: "color",
14
+ displayName: "背景颜色",
15
+ value: "rgba(20, 95, 255, 0.1)",
16
+ type: "color",
17
+ },
18
+ {
19
+ type: "group",
20
+ name: "margin",
21
+ displayName: "边距",
22
+ value: [
23
+ {
24
+ name: "left",
25
+ displayName: "左边距",
26
+ value: 40,
27
+ type: "number",
28
+ config: {
29
+ span: 12,
30
+ },
31
+ },
32
+ {
33
+ name: "right",
34
+ displayName: "右边距",
35
+ value: 40,
36
+ type: "number",
37
+ config: {
38
+ span: 12,
39
+ },
40
+ },
41
+ ],
42
+ },
43
+ {
44
+ name: "drag",
45
+ displayName: "详情区域",
46
+ value: [
47
+ {
48
+ name: "width",
49
+ displayName: "宽度",
50
+ value: 30,
51
+ type: "number",
52
+ config: {
53
+ suffix: "%",
54
+ min: 1,
55
+ },
56
+ },
57
+ {
58
+ name: "color",
59
+ displayName: "颜色",
60
+ value: "RGBA(255, 255, 255, .3)",
61
+ type: "color",
62
+ },
63
+ ],
64
+ },
65
+ ],
66
+ };
67
+ };
package/src/extent.js CHANGED
@@ -1,36 +1,36 @@
1
- const extent = {
2
- min: "0",
3
- max: "",
4
- customDisplayName: "数值范围",
5
- customName: "extent",
6
- };
7
- export default ({
8
- min = extent.min,
9
- max = extent.max,
10
- customDisplayName = extent.customDisplayName,
11
- customName = extent.customName,
12
- } = extent) => ({
13
- name: customName,
14
- displayName: customDisplayName,
15
- value: [
16
- {
17
- name: "min",
18
- displayName: "最小值",
19
- value: min,
20
- type: "input",
21
- config: {
22
- span: 12,
23
- },
24
- },
25
- {
26
- name: "max",
27
- displayName: "最大值",
28
- value: max,
29
- type: "input",
30
- config: {
31
- span: 12,
32
- },
33
- },
34
- ],
35
- type: "group",
36
- });
1
+ const extent = {
2
+ min: "0",
3
+ max: "",
4
+ customDisplayName: "数值范围",
5
+ customName: "extent",
6
+ };
7
+ export default ({
8
+ min = extent.min,
9
+ max = extent.max,
10
+ customDisplayName = extent.customDisplayName,
11
+ customName = extent.customName,
12
+ } = extent) => ({
13
+ name: customName,
14
+ displayName: customDisplayName,
15
+ value: [
16
+ {
17
+ name: "min",
18
+ displayName: "最小值",
19
+ value: min,
20
+ type: "input",
21
+ config: {
22
+ span: 12,
23
+ },
24
+ },
25
+ {
26
+ name: "max",
27
+ displayName: "最大值",
28
+ value: max,
29
+ type: "input",
30
+ config: {
31
+ span: 12,
32
+ },
33
+ },
34
+ ],
35
+ type: "group",
36
+ });
package/src/index.js CHANGED
@@ -47,7 +47,9 @@ import sc from './sc';
47
47
  import shadow from './shadow';
48
48
  import textOverflow from './textOverflow';
49
49
  import baseLine from './baseLine';
50
+ import { control } from './control';
50
51
  export {
52
+ control,
51
53
  show,
52
54
  showRule,
53
55
  font,