@easyv/config 1.1.29 → 1.1.31

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/axes.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { gridLine, tickLine, axisLine, unit, font, sc } from '.';
2
- import { axisLabel, valueAsixLabel } from './label';
2
+ import { axisLabel, valueAsixLabel,valueCilpAsixLabel } from './label';
3
3
  const defaultFont = font();
4
4
  const defaultFontAxisY = font({
5
5
  color: 'rgba(230, 247, 255, 1)',
@@ -96,6 +96,8 @@ const defaultValueAxis = {
96
96
 
97
97
  export const valueAxis = ({
98
98
  on = defaultValueAxis.on,
99
+ openClipAxis = false,//断轴柱状图开启断轴 shuihan
100
+ clipValueAxis,
99
101
  openClip,
100
102
  clipAxis,
101
103
  label = defaultValueAxis.label,
@@ -133,7 +135,11 @@ export const valueAxis = ({
133
135
  tip:"不用设置高度占比为0或100的区间"
134
136
  }
135
137
  },{rule:[["openClip","$eq",true]]}),
136
- {
138
+ (openClipAxis === true) && {
139
+ ...valueCilpAsixLabel(),
140
+ rule: [['on', '$eq', true]],
141
+ },
142
+ (openClipAxis === false || !!!openClipAxis) && {
137
143
  rule: [['on', '$eq', true]],
138
144
  ...valueAsixLabel(label),
139
145
  },
package/src/baseLine.js CHANGED
@@ -77,8 +77,9 @@ export default ({
77
77
  type: 'select',
78
78
  config: {
79
79
  options: [
80
+ { name: "X轴", value: 'x' },
80
81
  { name: 'Y轴', value: 'y' },
81
- { name: 'Z轴', value: 'z' },
82
+ { name: 'Z轴', value: 'z' }
82
83
  ],
83
84
  },
84
85
  },
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,29 +1,36 @@
1
1
  const extent = {
2
- min: '0',
3
- max: '',
2
+ min: "0",
3
+ max: "",
4
+ customDisplayName: "数值范围",
5
+ customName: "extent",
4
6
  };
5
- export default ({ min = extent.min, max = extent.max } = extent) => ({
6
- name: 'extent',
7
- displayName: '数值范围',
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,
8
15
  value: [
9
16
  {
10
- name: 'min',
11
- displayName: '最小值',
17
+ name: "min",
18
+ displayName: "最小值",
12
19
  value: min,
13
- type: 'input',
20
+ type: "input",
14
21
  config: {
15
22
  span: 12,
16
23
  },
17
24
  },
18
25
  {
19
- name: 'max',
20
- displayName: '最大值',
26
+ name: "max",
27
+ displayName: "最大值",
21
28
  value: max,
22
- type: 'input',
29
+ type: "input",
23
30
  config: {
24
31
  span: 12,
25
32
  },
26
33
  },
27
34
  ],
28
- type: 'group',
35
+ type: "group",
29
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,