@easyv/config 1.2.0 → 1.2.1

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/lib/control.js CHANGED
@@ -11,6 +11,7 @@ var defaultControl = {
11
11
  left: 40,
12
12
  right: 40
13
13
  },
14
+ gap: 20,
14
15
  drag: {
15
16
  width: 30,
16
17
  color: "RGBA(255, 255, 255, .3)"
@@ -28,6 +29,8 @@ var control = function control() {
28
29
  left = _ref$margin$left === void 0 ? defaultControl.margin.left : _ref$margin$left,
29
30
  _ref$margin$right = _ref$margin.right,
30
31
  right = _ref$margin$right === void 0 ? defaultControl.margin.right : _ref$margin$right,
32
+ _ref$gap = _ref.gap,
33
+ gap = _ref$gap === void 0 ? defaultControl.gap : _ref$gap,
31
34
  _ref$drag = _ref.drag;
32
35
  _ref$drag = _ref$drag === void 0 ? defaultControl.drag : _ref$drag;
33
36
  var _ref$drag$width = _ref$drag.width,
@@ -68,6 +71,15 @@ var control = function control() {
68
71
  span: 12
69
72
  }
70
73
  }]
74
+ }, {
75
+ name: "gap",
76
+ displayName: "上间距",
77
+ type: "number",
78
+ value: gap,
79
+ config: {
80
+ suffix: "px"
81
+ },
82
+ tip: "与X轴的距离"
71
83
  }, {
72
84
  name: "drag",
73
85
  displayName: "详情区域",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/config",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/control.js CHANGED
@@ -5,6 +5,7 @@ const defaultControl={
5
5
  left:40,
6
6
  right:40
7
7
  },
8
+ gap:20,
8
9
  drag:{
9
10
  width:30,
10
11
  color:"RGBA(255, 255, 255, .3)"
@@ -18,6 +19,7 @@ export const control = ({
18
19
  left = defaultControl.margin.left,
19
20
  right = defaultControl.margin.right
20
21
  } = defaultControl.margin,
22
+ gap = defaultControl.gap,
21
23
  drag:{
22
24
  width = defaultControl.drag.width,
23
25
  color:dragColor = defaultControl.drag.color
@@ -64,6 +66,16 @@ export const control = ({
64
66
  },
65
67
  ],
66
68
  },
69
+ {
70
+ name:"gap",
71
+ displayName:"上间距",
72
+ type:"number",
73
+ value:gap,
74
+ config:{
75
+ suffix:"px"
76
+ },
77
+ tip:"与X轴的距离"
78
+ },
67
79
  {
68
80
  name: "drag",
69
81
  displayName: "详情区域",